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' + } } }, {