From 270b68bd7b5e07f1d0c3d6a1405ecbc679d2011b Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Tue, 22 Nov 2022 17:26:50 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20vxe=20img=20=E6=B8=B2=E6=9F=93=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin-vue3/src/plugins/vxeTable/renderer/img.tsx | 1 + .../src/views/system/oauth2/client/client.data.ts | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/yudao-ui-admin-vue3/src/plugins/vxeTable/renderer/img.tsx b/yudao-ui-admin-vue3/src/plugins/vxeTable/renderer/img.tsx index 7703dcb00..fbbf24a12 100644 --- a/yudao-ui-admin-vue3/src/plugins/vxeTable/renderer/img.tsx +++ b/yudao-ui-admin-vue3/src/plugins/vxeTable/renderer/img.tsx @@ -11,6 +11,7 @@ VXETable.renderer.add('XImg', { style="width: 80px; height: 50px" src={row[column.field]} key={row[column.field]} + preview-src-list={[row[column.field]]} fit="contain" lazy > diff --git a/yudao-ui-admin-vue3/src/views/system/oauth2/client/client.data.ts b/yudao-ui-admin-vue3/src/views/system/oauth2/client/client.data.ts index 303f10184..1425448cf 100644 --- a/yudao-ui-admin-vue3/src/views/system/oauth2/client/client.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/oauth2/client/client.data.ts @@ -39,8 +39,9 @@ const crudSchemas = reactive({ title: '应用图标', field: 'logo', table: { - type: 'html', - formatter: 'formatImg' + cellRender: { + name: 'XImg' + } } }, {