This commit is contained in:
qsh
2024-07-04 18:58:18 +08:00
parent 87a2fe09de
commit e1ff8213bf
9 changed files with 113 additions and 70 deletions

View File

@@ -59,6 +59,11 @@ const usedSchema = ref([])
const newSchema = computed(() => {
let schema: FormSchema[] = cloneDeep(usedSchema.value)
schema.forEach((item: FormSchema) => {
if (item.component == 'TreeSelect') {
item.componentProps['check-strictly'] = true
}
})
if (props.expand && props.expandField && !unref(visible)) {
const index = findIndex(schema, (v: FormSchema) => v.field === props.expandField)
if (index > -1) {