From b1a2dfb09b9f4acf3aadf67a466dfba77e26c92f Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Wed, 23 Nov 2022 13:37:39 +0800 Subject: [PATCH] fix: vxe crud --- yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts b/yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts index fbf2b92c1..eaade4693 100644 --- a/yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts +++ b/yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts @@ -1,5 +1,4 @@ import { reactive } from 'vue' - import { FormItemRenderOptions, VxeColumnPropTypes, @@ -8,8 +7,8 @@ import { VxeTableDefines } from 'vxe-table' import { eachTree } from 'xe-utils' -import { getBoolDictOptions, getDictOptions, getIntDictOptions } from '@/utils/dict' import { useI18n } from '@/hooks/web/useI18n' +import { getBoolDictOptions, getDictOptions, getIntDictOptions } from '@/utils/dict' import { FormSchema } from '@/types/form' import { VxeTableColumn } from '@/types/table' import { ComponentOptions } from '@/types/components' @@ -162,7 +161,7 @@ const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => { const buttons: VxeFormItemProps = { span: 24, align: 'center', - collapseNode: searchSchema.length > 3, + collapseNode: searchSchema.length > 4, itemRender: { name: '$buttons', children: [