From cd12a30764ae79f8d069f4e35a100d6cb1fe01b8 Mon Sep 17 00:00:00 2001 From: Gary Fu Date: Mon, 1 Jan 2024 11:37:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E8=87=AA=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common-table/common-table-column.vue | 52 ++++++++++++++- src/components/common-table/index.vue | 65 ++++++++++++++++++- src/messages/common_cn.js | 7 ++ src/messages/common_en.js | 7 ++ src/views/tools/Tables.vue | 37 ++++++++++- 5 files changed, 162 insertions(+), 6 deletions(-) diff --git a/src/components/common-table/common-table-column.vue b/src/components/common-table/common-table-column.vue index f9bffaf..ff60a6a 100644 --- a/src/components/common-table/common-table-column.vue +++ b/src/components/common-table/common-table-column.vue @@ -7,6 +7,9 @@ * @property {string} property 数据属性 * @property {string} width 宽度 * @property {boolean} isOperation 是否是操作列 + * @property {string} slot 自定义插槽 + * @property [ButtonProps] buttons 自定义按钮 + * @property {Object} attrs 其他属性 */ /** * 配置信息 @@ -18,16 +21,61 @@ const props = defineProps({ column: { type: Object, required: true + }, + buttonSize: { + type: String, + default: 'small' } }) +