From ca2cdc031ddd9e2a1534d8650853386391463097 Mon Sep 17 00:00:00 2001 From: xingyu Date: Wed, 7 Dec 2022 21:27:12 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=B7=BB=E5=8A=A0=E5=8F=AF=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin-vue3/src/hooks/web/useVxeGrid.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yudao-ui-admin-vue3/src/hooks/web/useVxeGrid.ts b/yudao-ui-admin-vue3/src/hooks/web/useVxeGrid.ts index 7bced0ffe..34106be2a 100644 --- a/yudao-ui-admin-vue3/src/hooks/web/useVxeGrid.ts +++ b/yudao-ui-admin-vue3/src/hooks/web/useVxeGrid.ts @@ -11,6 +11,7 @@ const message = useMessage() // 消息弹窗 interface UseVxeGridConfig { allSchemas: VxeAllSchemas + height?: number // 高度 默认730 topActionSlots?: boolean // 是否开启表格内顶部操作栏插槽 treeConfig?: VxeTablePropTypes.TreeConfig // 树形表单配置 isList?: boolean // 是否不带分页的list @@ -48,7 +49,7 @@ export const useVxeGrid = (config?: UseVxeGridConfig) => { const gridOptions = reactive>({ loading: true, size: currentSize as any, - height: 730, // 1080高度 + height: config?.height ? config.height : 730, rowConfig: { isCurrent: true, // 当鼠标点击行时,是否要高亮当前行 isHover: true // 当鼠标移到行时,是否要高亮当前行