From 3b5944e789d39a4c740b5a2100fc6b6362055c2f Mon Sep 17 00:00:00 2001 From: Leo <98382335+gaoziman@users.noreply.github.com> Date: Tue, 8 Jul 2025 22:35:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(user):=20=E4=BF=AE=E6=AD=A3=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=B8=8B=E6=8B=89=E8=8F=9C=E5=8D=95=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 导入正确的图标组件:IconParkOutlineDownload、IconParkOutlineDownloadOne、IconParkOutlineFileCodeOne - 修正render函数中的图标使用方式,从字符串引用改为组件引用 - 为下拉菜单图标添加合适的尺寸设置(size: 14) - 完善图标语义化映射:导出当前查询数据→download、导出全部数据→download-one、下载导入模板→file-code-one - 优化操作按钮样式,统一使用小尺寸按钮和图标 - 调整表格布局和滚动条样式,提升用户体验 --- src/views/system/user/index.vue | 248 ++++++++++++++------------------ 1 file changed, 108 insertions(+), 140 deletions(-) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index cdfc617..6847987 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -11,7 +11,7 @@ label-width="auto" class="search-form" > - + h(NIcon, null, { default: () => h('icon-park-outline:download') }), + icon: () => h(NIcon, { size: 14 }, { default: () => h(IconParkOutlineDownload) }), }, { label: '导出全部数据', key: 'all', - icon: () => h(NIcon, null, { default: () => h('icon-park-outline:download-one') }), + icon: () => h(NIcon, { size: 14 }, { default: () => h(IconParkOutlineDownloadOne) }), }, { type: 'divider', @@ -164,7 +164,7 @@ { label: '下载导入模板', key: 'template', - icon: () => h(NIcon, null, { default: () => h('icon-park-outline:file-code-one') }), + icon: () => h(NIcon, { size: 14 }, { default: () => h(IconParkOutlineFileCodeOne) }), }, ]" @update:show="(show: boolean) => showExportDropdown = show" @@ -214,7 +214,8 @@ :row-key="(row: UserVo) => row.userId" :bordered="false" :single-line="false" - size="large" + :scroll-x="1600" + size="medium" class="custom-table" @update:checked-row-keys="handleRowSelectionChange" /> @@ -705,11 +706,14 @@