第一次提交

This commit is contained in:
gxwebsoft
2023-08-04 13:32:43 +08:00
commit c02e8be49b
1151 changed files with 200453 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<template>
<template v-for="(item, index) in data" :key="index">
<a-tag v-if="item.value == value" :color="item.comments">
{{ item.label }}
</a-tag>
</template>
</template>
<script lang="ts" setup>
import { getDictionaryOptions } from '@/utils/common';
const props = withDefaults(
defineProps<{
value?: string;
placeholder?: string;
dictCode?: string;
}>(),
{
placeholder: undefined
}
);
// 字典数据
const data = getDictionaryOptions(props.dictCode);
</script>