From 76c3632c52faa7d93bcf31d0bbdd22306818f550 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 20 Nov 2025 15:24:09 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90antd/ele=E3=80=91?= =?UTF-8?q?=E3=80=90=E7=BB=84=E4=BB=B6=E3=80=91table-action=20=E5=B0=81?= =?UTF-8?q?=E8=A3=85=E7=9A=84=E4=BB=A3=E7=A0=81=E7=BB=9F=E4=B8=80=EF=BC=88?= =?UTF-8?q?=E5=89=A9=E4=BD=99=E9=83=A8=E5=88=86=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/table-action/table-action.vue | 4 ++-- apps/web-ele/src/components/table-action/icons.ts | 3 ++- .../web-ele/src/components/table-action/table-action.vue | 9 +++++++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/apps/web-antd/src/components/table-action/table-action.vue b/apps/web-antd/src/components/table-action/table-action.vue index c8a48a73b..679f6fcaa 100644 --- a/apps/web-antd/src/components/table-action/table-action.vue +++ b/apps/web-antd/src/components/table-action/table-action.vue @@ -137,11 +137,11 @@ function handleButtonClick(action: ActionItem) { } } -/** 监听props变化,强制重新计算 */ +/** 监听 props 变化,强制重新计算 */ watch( () => [props.actions, props.dropDownActions], () => { - // 这里不需要额外处理,computed会自动重新计算 + // 这里不需要额外处理,computed 会自动重新计算 }, { deep: true }, ); diff --git a/apps/web-ele/src/components/table-action/icons.ts b/apps/web-ele/src/components/table-action/icons.ts index f8e5e90a7..578265f4c 100644 --- a/apps/web-ele/src/components/table-action/icons.ts +++ b/apps/web-ele/src/components/table-action/icons.ts @@ -3,13 +3,14 @@ export const ACTION_ICON = { UPLOAD: 'lucide:upload', ADD: 'lucide:plus', EDIT: 'lucide:edit', - DELETE: 'lucide:trash', + DELETE: 'lucide:trash-2', REFRESH: 'lucide:refresh-cw', SEARCH: 'lucide:search', FILTER: 'lucide:filter', MORE: 'lucide:ellipsis-vertical', VIEW: 'lucide:eye', COPY: 'lucide:copy', + CLOSE: 'lucide:x', BOOK: 'lucide:book', AUDIT: 'lucide:file-check', }; diff --git a/apps/web-ele/src/components/table-action/table-action.vue b/apps/web-ele/src/components/table-action/table-action.vue index 7e127ef5e..649c6c7f7 100644 --- a/apps/web-ele/src/components/table-action/table-action.vue +++ b/apps/web-ele/src/components/table-action/table-action.vue @@ -1,5 +1,6 @@