From 0f14c38e52cf03162288a80d16456fa2b6a5895f Mon Sep 17 00:00:00 2001
From: wangxiang <1827945911@qq.com>
Date: Fri, 6 May 2022 08:07:39 +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 | 25 ++++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)
diff --git a/kicc-ui/src/views/system/config/index.vue b/kicc-ui/src/views/system/config/index.vue
index fa42507f..c799f991 100644
--- a/kicc-ui/src/views/system/config/index.vue
+++ b/kicc-ui/src/views/system/config/index.vue
@@ -57,6 +57,7 @@
y: state.tableHeight,
scrollToFirstRowOnChange: true
}"
+ :rowClassName="getRowClassName"
:rowSelection="getRowSelectionRef"
:pagination="getPaginationInfo"
@change="handleTablePaginationChange"
@@ -125,6 +126,22 @@
+
+
+
+
+
+ 已选中 {{ getSelectRowKeys().length }} 条记录(可跨页)
+
+ 清空
+
+
+ 未选中任何数据
+
+
+
+
+
@@ -144,7 +161,7 @@
import { BasicTitle } from '/@/components/Basic';
import { RedoOutlined, ColumnHeightOutlined, FullscreenOutlined, FullscreenExitOutlined, LeftOutlined, RightOutlined } from '@ant-design/icons-vue';
import {ref, onMounted, watchEffect, ComputedRef, computed, watch} from 'vue';
- import { Table, Form, Row, Col, Divider, Tooltip, Dropdown, Menu, Select, DatePicker } from 'ant-design-vue';
+ import { Table, Form, Row, Col, Divider, Tooltip, Dropdown, Menu, Select, DatePicker, Alert } from 'ant-design-vue';
import {BasicTableProps, PaginationProps, SizeType, SorterResult} from '/@/components/Table';
import { listConfig, delConfig } from '/@/api/platform/system/controller/config';
import ConfigModal from './ConfigModal.vue';
@@ -161,8 +178,7 @@
import {useRowSelection} from "/@/components/Table/src/hooks/useRowSelection";
import {basicProps} from "/@/components/Table/src/props";
import {usePagination} from "/@/components/Table/src/hooks/usePagination";
- import {PAGE_SIZE} from "/@/components/Table/src/const";
- import {isFunction} from "/@/utils/is";
+ import {useTableStyle} from "/@/components/Table/src/hooks/useTableStyle";
/** 类型规范统一声明定义区域 */
interface TableState {
@@ -195,6 +211,7 @@
const ARow = Row;
const ACol = Col;
const ASelect = Select;
+ const AAlert = Alert;
const ASelectOption = Select.Option;
const ARangePicker = DatePicker.RangePicker;
@@ -266,6 +283,8 @@
setShowPagination,
getShowPagination
} = usePagination(basicTableProps);
+ // 使用vben-table行斑马线
+ const { getRowClassName } = useTableStyle(basicTableProps, prefixCls);
/** 生命周期钩子回调处理区域 */
onMounted(() => {