refactor: 支持改变字典颜色
This commit is contained in:
@@ -19,6 +19,7 @@ interface DictTagGroupProps {
|
||||
* 图标
|
||||
*/
|
||||
icon?: string;
|
||||
color?: string;
|
||||
}
|
||||
|
||||
const props = defineProps<DictTagGroupProps>();
|
||||
@@ -60,6 +61,9 @@ const dictTag = computed(() => {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (props.color) {
|
||||
colorType = props.color;
|
||||
}
|
||||
dictTagGroup.push({
|
||||
label: dict.label || '',
|
||||
colorType,
|
||||
|
||||
Reference in New Issue
Block a user