diff --git a/apps/web-antdv-next/src/components/form-create/components/dict-select.vue b/apps/web-antdv-next/src/components/form-create/components/dict-select.vue index 11b961c5f..04a62f109 100644 --- a/apps/web-antdv-next/src/components/form-create/components/dict-select.vue +++ b/apps/web-antdv-next/src/components/form-create/components/dict-select.vue @@ -6,14 +6,7 @@ import { computed, useAttrs } from 'vue'; import { getDictOptions } from '@vben/hooks'; -import { - Checkbox, - CheckboxGroup, - Radio, - RadioGroup, - Select, - SelectOption, -} from 'antdv-next'; +import { Checkbox, CheckboxGroup, Radio, RadioGroup, Select } from 'antdv-next'; defineOptions({ name: 'DictSelect' }); @@ -41,18 +34,22 @@ const getDictOption = computed(() => { } } }); + +const selectOptions = computed(() => + getDictOption.value.map((dict) => ({ + label: dict.label, + value: dict.value as any, + })), +);