浏览代码

feat: dict add all options

xingyu 2 年之前
父节点
当前提交
6cfd3a15a9
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      yudao-ui-admin-vue3/src/hooks/web/useCrudSchemas.ts

+ 2 - 0
yudao-ui-admin-vue3/src/hooks/web/useCrudSchemas.ts

@@ -80,6 +80,8 @@ const filterSearchSchema = (crudSchema: CrudSchema[]): FormSchema[] => {
       const options: ComponentOptions[] = []
       let comonentProps = {}
       if (schemaItem.dictType) {
+        const allOptions: ComponentOptions = { label: '全部', value: '' }
+        options.push(allOptions)
         getIntDictOptions(schemaItem.dictType).forEach((dict) => {
           options.push(dict)
         })