From 8891199873a56ab8b9e2fb7358dad07b258c95a6 Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Fri, 6 May 2022 08:14:32 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=A3=20=E9=87=8D=E6=9E=84=E5=BA=95?= =?UTF-8?q?=E5=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kicc-ui/src/views/system/config/index.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kicc-ui/src/views/system/config/index.vue b/kicc-ui/src/views/system/config/index.vue index c799f991..33ff4727 100644 --- a/kicc-ui/src/views/system/config/index.vue +++ b/kicc-ui/src/views/system/config/index.vue @@ -179,6 +179,7 @@ import {basicProps} from "/@/components/Table/src/props"; import {usePagination} from "/@/components/Table/src/hooks/usePagination"; import {useTableStyle} from "/@/components/Table/src/hooks/useTableStyle"; + import {useTableScroll} from "/@/components/Table/src/hooks/useTableScroll"; /** 类型规范统一声明定义区域 */ interface TableState { @@ -285,6 +286,14 @@ } = usePagination(basicTableProps); // 使用vben-table行斑马线 const { getRowClassName } = useTableStyle(basicTableProps, prefixCls); + // 使用vben-table自动计算表格高度 + /*const { getScrollRef, redoHeight } = useTableScroll( + basicTableProps, + tableElRef, + getColumnsRef, + getRowSelectionRef, + getDataSourceRef + );*/ /** 生命周期钩子回调处理区域 */ onMounted(() => {