feat: dict add all options

pull/2/head
xingyu 2022-08-10 18:56:53 +08:00
parent d0fb7d3d8d
commit 6cfd3a15a9
1 changed files with 2 additions and 0 deletions

View File

@ -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)
})