This commit is contained in:
guochunsi
2026-01-30 16:29:15 +08:00
parent 53f71066f3
commit c6da6e286f
70 changed files with 688 additions and 519 deletions

View File

@@ -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)'
}