mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
perf: vxe img 渲染增加预览
This commit is contained in:
parent
7b40e5a5e4
commit
270b68bd7b
@ -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
|
||||
></ElImage>
|
||||
|
@ -39,8 +39,9 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
title: '应用图标',
|
||||
field: 'logo',
|
||||
table: {
|
||||
type: 'html',
|
||||
formatter: 'formatImg'
|
||||
cellRender: {
|
||||
name: 'XImg'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user