feat:【antd/ele】【组件】dict-tag 封装的代码统一评审

This commit is contained in:
YunaiV
2025-11-20 16:22:47 +08:00
parent 342a948bc0
commit 21b5c126c1
2 changed files with 7 additions and 25 deletions

View File

@@ -7,18 +7,9 @@ import { isValidColor, TinyColor } from '@vben/utils';
import { Tag } from 'ant-design-vue';
interface DictTagProps {
/**
* 字典类型
*/
type: string;
/**
* 字典值
*/
value: any;
/**
* 图标
*/
icon?: string;
type: string; // 字典类型
value: any; // 字典
icon?: string; // 图标
}
const props = defineProps<DictTagProps>();