a
This commit is contained in:
@@ -37,13 +37,13 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
|
||||
// 默认的类型映射(只使用字符串键)
|
||||
const defaultTypeMap: Record<string, { type: string; effect: string }> = {
|
||||
'1': { type: 'warning', effect: 'dark' },
|
||||
'1': { type: 'danger', effect: 'dark' },
|
||||
'0': { type: 'primary', effect: 'light' }
|
||||
}
|
||||
|
||||
// 默认的颜色映射(只使用字符串键)
|
||||
const defaultColorMap: Record<string, string> = {
|
||||
'1': 'var(--el-color-warning)',
|
||||
'1': 'var(--el-color-danger)',
|
||||
'0': 'var(--el-color-primary)'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user