From f78676dde144f187605ed3e555e60d29dc7a0eab Mon Sep 17 00:00:00 2001 From: lijingjia Date: Fri, 1 Nov 2024 17:52:41 +0800 Subject: [PATCH] vxetable --- src/components/Table/src/BasicTable.vue | 65 ++++++++++++++++--- src/components/Table/src/hooks/useColumns.ts | 1 + .../Table/src/hooks/useDataSource.ts | 1 - src/views/operation/seaexport/columns.tsx | 40 ++++++------ src/views/operation/seaexport/index.vue | 10 ++- 5 files changed, 85 insertions(+), 32 deletions(-) diff --git a/src/components/Table/src/BasicTable.vue b/src/components/Table/src/BasicTable.vue index 4fafb7f3..f9e9ad35 100644 --- a/src/components/Table/src/BasicTable.vue +++ b/src/components/Table/src/BasicTable.vue @@ -9,6 +9,16 @@
+
+ + + 刷新 + + + + 列设置 + +
@@ -20,23 +30,27 @@ show-header-overflow show-footer-overflow :height="tableHeightRef + 35" - :row-config="{isCurrent: true, isHover: true}" - :column-config="{resizable: true}" - :scroll-y="{enabled: true, gt: 0}" - :scroll-x="{enabled: true, gt: 0}" + :row-config="{ isCurrent: true, isHover: true }" + :column-config="{ resizable: true }" + :scroll-y="{ enabled: true, gt: 0 }" + :scroll-x="{ enabled: true, gt: 0 }" + :sort-config="{ trigger: 'cell', remote: true }" rowSelection size="mini" :loading="getBindValues.loading" @cell-dblclick="dbclickVxeRow" - @checkbox-change="vxeCheckBoxChange" + @sort-change="sortChangeEvent" > +