Skip to content

dict 字典

基础用法

vue
<script setup lang="ts">
import type { BasicForm } from '@/types/form'

const formConfig = reactive<BasicForm>({
  formItems: [
    {
      label: '',
      value: '',
      name: '',
      type: 'dict',
      props: {
        type: '具体的字典类型',
      },
    },
  ],
})
</script>

属性

ts
interface Props {
  modelValue: any
  type: string
}
参数说明类型默认值可选值
v-model字典值any
type字典类型String