逻辑问题
This commit is contained in:
parent
c6a9c0c5fb
commit
9af3734b78
@ -269,7 +269,8 @@ const filterFormSchema = (crudSchema: VxeCrudSchema): FormSchema[] => {
|
|||||||
defaultValue = 0
|
defaultValue = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let comonentProps = {}
|
const componentProps =
|
||||||
|
schemaItem.form?.componentProps != null ? schemaItem.form?.componentProps : {}
|
||||||
if (schemaItem.dictType) {
|
if (schemaItem.dictType) {
|
||||||
const options: ComponentOptions[] = []
|
const options: ComponentOptions[] = []
|
||||||
if (schemaItem.dictClass && schemaItem.dictClass === 'number') {
|
if (schemaItem.dictClass && schemaItem.dictClass === 'number') {
|
||||||
@ -285,14 +286,12 @@ const filterFormSchema = (crudSchema: VxeCrudSchema): FormSchema[] => {
|
|||||||
options.push(dict)
|
options.push(dict)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
comonentProps = {
|
componentProps.options = options
|
||||||
options: options
|
|
||||||
}
|
|
||||||
if (!(schemaItem.form && schemaItem.form.component)) component = 'Select'
|
if (!(schemaItem.form && schemaItem.form.component)) component = 'Select'
|
||||||
}
|
}
|
||||||
const formSchemaItem = {
|
const formSchemaItem = {
|
||||||
component: component,
|
component: component,
|
||||||
componentProps: comonentProps,
|
componentProps: componentProps,
|
||||||
value: defaultValue,
|
value: defaultValue,
|
||||||
...schemaItem.form,
|
...schemaItem.form,
|
||||||
field: schemaItem.field,
|
field: schemaItem.field,
|
||||||
|
Loading…
Reference in New Issue
Block a user