Commit b1a2dfb09b9f4acf3aadf67a466dfba77e26c92f

Authored by xingyu4j
1 parent 11770292

fix: vxe crud

yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts
1 import { reactive } from 'vue' 1 import { reactive } from 'vue'
2 -  
3 import { 2 import {
4 FormItemRenderOptions, 3 FormItemRenderOptions,
5 VxeColumnPropTypes, 4 VxeColumnPropTypes,
@@ -8,8 +7,8 @@ import { @@ -8,8 +7,8 @@ import {
8 VxeTableDefines 7 VxeTableDefines
9 } from 'vxe-table' 8 } from 'vxe-table'
10 import { eachTree } from 'xe-utils' 9 import { eachTree } from 'xe-utils'
11 -import { getBoolDictOptions, getDictOptions, getIntDictOptions } from '@/utils/dict'  
12 import { useI18n } from '@/hooks/web/useI18n' 10 import { useI18n } from '@/hooks/web/useI18n'
  11 +import { getBoolDictOptions, getDictOptions, getIntDictOptions } from '@/utils/dict'
13 import { FormSchema } from '@/types/form' 12 import { FormSchema } from '@/types/form'
14 import { VxeTableColumn } from '@/types/table' 13 import { VxeTableColumn } from '@/types/table'
15 import { ComponentOptions } from '@/types/components' 14 import { ComponentOptions } from '@/types/components'
@@ -162,7 +161,7 @@ const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => { @@ -162,7 +161,7 @@ const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => {
162 const buttons: VxeFormItemProps = { 161 const buttons: VxeFormItemProps = {
163 span: 24, 162 span: 24,
164 align: 'center', 163 align: 'center',
165 - collapseNode: searchSchema.length > 3, 164 + collapseNode: searchSchema.length > 4,
166 itemRender: { 165 itemRender: {
167 name: '$buttons', 166 name: '$buttons',
168 children: [ 167 children: [