From 2f7ec67903244134a555f46d5d1e6932da5b9550 Mon Sep 17 00:00:00 2001 From: Sisyphus Date: Thu, 9 Jul 2026 13:55:34 +0800 Subject: [PATCH] =?UTF-8?q?refactor(F006-W17.6.1):=20TableActions=20?= =?UTF-8?q?=E6=8C=89=E6=95=B0=E9=87=8F=E8=87=AA=E5=8A=A8=E6=94=B6=E7=BA=B3?= =?UTF-8?q?=20(=E2=89=A43=20=E5=85=A8=E6=98=BE=E7=A4=BA,=20>3=20=E5=89=8D2?= =?UTF-8?q?+=E2=8B=AF)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 用户反馈: 操作列只显示一个文字按钮+⋯ 不方便, 期望按按钮数量智能显示 - 过滤 when 后 ≤3 个: 全部显示文字按钮, 不显示 ⋯ - 过滤 when 后 ≥4 个: 前 2 个常驻文字按钮 + ⋯ (收纳剩余) - 默认 visibleCount=2 (可配置) TableActions API 调整 (W17.6 → W17.6.1): - 原来: :primary=[A] + :more=[B,C,D] (人为主次划分) - 现在: :actions=[A,B,C,D] (按数组顺序自动前 2 显 + ⋯) 16 文件改动 (1 组件 + 15 view 调用方式): - 15 view 合并 :primary/:more → :actions - 3 按钮页 (10 个): 现在全部显示文字按钮无 ⋯, 体验更直接 - 4/5 按钮页 (5 个): 前 2 显 + ⋯, 比之前详情+⋯更直观 --- src/components/TableActions/TableActions.vue | 62 +++++++++++++------ .../openapi/CompanyAccountListView.vue | 6 +- src/modules/openapi/OpenAppListView.vue | 6 +- src/modules/order/OrderListView.vue | 4 +- .../categoryGood/CategoryGoodListView.vue | 6 +- src/modules/other/label/LabelListView.vue | 6 +- .../supplier/coupon/CouponListView.vue | 4 +- src/modules/supplier/good/GoodListView.vue | 4 +- .../ordercomment/OrderCommentListView.vue | 6 +- .../supplier/promoter/PromoterListView.vue | 6 +- .../servicegood/ServiceGoodListView.vue | 4 +- src/modules/sys/ScheduleListView.vue | 6 +- src/modules/sys/UserListView.vue | 6 +- src/modules/sys/region/RegionListView.vue | 6 +- src/modules/user/UserListView.vue | 6 +- .../EnterpriselevelListView.vue | 6 +- 16 files changed, 84 insertions(+), 60 deletions(-) diff --git a/src/components/TableActions/TableActions.vue b/src/components/TableActions/TableActions.vue index 9bd9b18..14835ca 100644 --- a/src/components/TableActions/TableActions.vue +++ b/src/components/TableActions/TableActions.vue @@ -1,17 +1,19 @@