From a47910f650e18a84d0d3a1fb8afbcd4a70f08889 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Sat, 12 Apr 2025 15:01:28 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=89=80=E6=9C=89=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E6=93=8D=E4=BD=9C=E5=88=97=E5=AE=BD=E5=BA=A6=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E4=B8=BA'auto',=20=E8=BF=99=E6=A0=B7=E4=BC=9A?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E5=AD=90=E5=85=83=E7=B4=A0=E5=AE=BD=E5=BA=A6?= =?UTF-8?q?=E9=80=82=E9=85=8D(=E6=AF=94=E5=A6=82=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=88=86=E9=85=8D=E6=9D=83=E9=99=90=E7=9A=84=E6=83=85=E5=86=B5?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++++ apps/web-antd/src/views/demo/demo/data.ts | 3 ++- apps/web-antd/src/views/demo/tree/data.ts | 3 ++- apps/web-antd/src/views/monitor/online/data.ts | 3 ++- apps/web-antd/src/views/monitor/operlog/data.tsx | 3 ++- apps/web-antd/src/views/system/client/data.tsx | 3 ++- apps/web-antd/src/views/system/config/data.ts | 3 ++- apps/web-antd/src/views/system/dept/data.ts | 6 ++++-- apps/web-antd/src/views/system/dict/data/data.ts | 3 ++- apps/web-antd/src/views/system/dict/type/data.ts | 3 ++- apps/web-antd/src/views/system/menu/data.tsx | 3 ++- apps/web-antd/src/views/system/notice/data.ts | 3 ++- apps/web-antd/src/views/system/oss-config/data.tsx | 3 ++- apps/web-antd/src/views/system/oss/data.tsx | 3 ++- apps/web-antd/src/views/system/post/data.ts | 3 ++- apps/web-antd/src/views/system/role-assign/data.tsx | 3 ++- apps/web-antd/src/views/system/tenant/data.tsx | 3 ++- apps/web-antd/src/views/system/tenantPackage/data.ts | 3 ++- apps/web-antd/src/views/workflow/category/data.ts | 3 ++- apps/web-antd/src/views/workflow/leave/data.tsx | 3 ++- .../src/views/workflow/processDefinition/category-tree.vue | 4 +++- .../web-antd/src/views/workflow/processDefinition/data.tsx | 2 +- apps/web-antd/src/views/演示使用自行删除/sse/index.vue | 7 +++++-- playground/src/views/system/dept/data.ts | 3 ++- 24 files changed, 57 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fb33f60..ebb9d8ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 1.3.2 + +**REFACTOR** + +- 所有表格操作列宽度调整为'auto', 这样会根据子元素宽度适配(比如没有分配权限的情况) + # 1.3.1 **REFACTOR** diff --git a/apps/web-antd/src/views/demo/demo/data.ts b/apps/web-antd/src/views/demo/demo/data.ts index 81c90c39..241d855f 100755 --- a/apps/web-antd/src/views/demo/demo/data.ts +++ b/apps/web-antd/src/views/demo/demo/data.ts @@ -51,7 +51,8 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 180, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/demo/tree/data.ts b/apps/web-antd/src/views/demo/tree/data.ts index a6984f67..ae15288e 100755 --- a/apps/web-antd/src/views/demo/tree/data.ts +++ b/apps/web-antd/src/views/demo/tree/data.ts @@ -60,7 +60,8 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 180, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/monitor/online/data.ts b/apps/web-antd/src/views/monitor/online/data.ts index 8a42aaf6..15944dc4 100644 --- a/apps/web-antd/src/views/monitor/online/data.ts +++ b/apps/web-antd/src/views/monitor/online/data.ts @@ -79,6 +79,7 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 120, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/monitor/operlog/data.tsx b/apps/web-antd/src/views/monitor/operlog/data.tsx index ee1bacea..d42b3709 100644 --- a/apps/web-antd/src/views/monitor/operlog/data.tsx +++ b/apps/web-antd/src/views/monitor/operlog/data.tsx @@ -86,6 +86,7 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 120, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/system/client/data.tsx b/apps/web-antd/src/views/system/client/data.tsx index 2b852f0b..1cf85720 100644 --- a/apps/web-antd/src/views/system/client/data.tsx +++ b/apps/web-antd/src/views/system/client/data.tsx @@ -95,7 +95,8 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 180, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/system/config/data.ts b/apps/web-antd/src/views/system/config/data.ts index 9cb45ffa..0b462e4f 100644 --- a/apps/web-antd/src/views/system/config/data.ts +++ b/apps/web-antd/src/views/system/config/data.ts @@ -71,7 +71,8 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 180, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/system/dept/data.ts b/apps/web-antd/src/views/system/dept/data.ts index e5f9a669..8ae8a96d 100644 --- a/apps/web-antd/src/views/system/dept/data.ts +++ b/apps/web-antd/src/views/system/dept/data.ts @@ -39,11 +39,13 @@ export const columns: VxeGridProps['columns'] = [ { field: 'orderNum', title: '排序', - width: 180, + resizable: false, + width: 'auto', }, { field: 'status', - width: 180, + resizable: false, + width: 'auto', title: '状态', slots: { default: ({ row }) => { diff --git a/apps/web-antd/src/views/system/dict/data/data.ts b/apps/web-antd/src/views/system/dict/data/data.ts index 81887463..087e96b2 100644 --- a/apps/web-antd/src/views/system/dict/data/data.ts +++ b/apps/web-antd/src/views/system/dict/data/data.ts @@ -45,7 +45,8 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 180, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/system/dict/type/data.ts b/apps/web-antd/src/views/system/dict/type/data.ts index 2d08365b..cfd584a7 100644 --- a/apps/web-antd/src/views/system/dict/type/data.ts +++ b/apps/web-antd/src/views/system/dict/type/data.ts @@ -39,7 +39,8 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 180, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/system/menu/data.tsx b/apps/web-antd/src/views/system/menu/data.tsx index a416c429..f29cc4f3 100644 --- a/apps/web-antd/src/views/system/menu/data.tsx +++ b/apps/web-antd/src/views/system/menu/data.tsx @@ -145,7 +145,8 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 200, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/system/notice/data.ts b/apps/web-antd/src/views/system/notice/data.ts index 4e463e9a..8e052c19 100644 --- a/apps/web-antd/src/views/system/notice/data.ts +++ b/apps/web-antd/src/views/system/notice/data.ts @@ -69,7 +69,8 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 180, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/system/oss-config/data.tsx b/apps/web-antd/src/views/system/oss-config/data.tsx index 7b394def..2d086210 100644 --- a/apps/web-antd/src/views/system/oss-config/data.tsx +++ b/apps/web-antd/src/views/system/oss-config/data.tsx @@ -81,7 +81,8 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 180, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/system/oss/data.tsx b/apps/web-antd/src/views/system/oss/data.tsx index 06d1bc67..ec834796 100644 --- a/apps/web-antd/src/views/system/oss/data.tsx +++ b/apps/web-antd/src/views/system/oss/data.tsx @@ -69,7 +69,8 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 180, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/system/post/data.ts b/apps/web-antd/src/views/system/post/data.ts index 3a7da9d2..e8595553 100644 --- a/apps/web-antd/src/views/system/post/data.ts +++ b/apps/web-antd/src/views/system/post/data.ts @@ -65,7 +65,8 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 180, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/system/role-assign/data.tsx b/apps/web-antd/src/views/system/role-assign/data.tsx index 75f8bfe9..a26bd164 100644 --- a/apps/web-antd/src/views/system/role-assign/data.tsx +++ b/apps/web-antd/src/views/system/role-assign/data.tsx @@ -37,6 +37,7 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 180, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/system/tenant/data.tsx b/apps/web-antd/src/views/system/tenant/data.tsx index c86ec835..69af062b 100644 --- a/apps/web-antd/src/views/system/tenant/data.tsx +++ b/apps/web-antd/src/views/system/tenant/data.tsx @@ -68,7 +68,8 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 200, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/system/tenantPackage/data.ts b/apps/web-antd/src/views/system/tenantPackage/data.ts index 4015f432..a80de6a5 100644 --- a/apps/web-antd/src/views/system/tenantPackage/data.ts +++ b/apps/web-antd/src/views/system/tenantPackage/data.ts @@ -29,7 +29,8 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 180, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/workflow/category/data.ts b/apps/web-antd/src/views/workflow/category/data.ts index 41a0a884..9dfe1940 100644 --- a/apps/web-antd/src/views/workflow/category/data.ts +++ b/apps/web-antd/src/views/workflow/category/data.ts @@ -33,7 +33,8 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 200, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/workflow/leave/data.tsx b/apps/web-antd/src/views/workflow/leave/data.tsx index 7afdb898..7eb3441b 100644 --- a/apps/web-antd/src/views/workflow/leave/data.tsx +++ b/apps/web-antd/src/views/workflow/leave/data.tsx @@ -91,7 +91,8 @@ export const columns: VxeGridProps['columns'] = [ fixed: 'right', slots: { default: 'action' }, title: '操作', - width: 210, + resizable: false, + width: 'auto', }, ]; diff --git a/apps/web-antd/src/views/workflow/processDefinition/category-tree.vue b/apps/web-antd/src/views/workflow/processDefinition/category-tree.vue index 6912c256..901038c8 100644 --- a/apps/web-antd/src/views/workflow/processDefinition/category-tree.vue +++ b/apps/web-antd/src/views/workflow/processDefinition/category-tree.vue @@ -1,7 +1,9 @@