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"
|
style="width: 80px; height: 50px"
|
||||||
src={row[column.field]}
|
src={row[column.field]}
|
||||||
key={row[column.field]}
|
key={row[column.field]}
|
||||||
|
preview-src-list={[row[column.field]]}
|
||||||
fit="contain"
|
fit="contain"
|
||||||
lazy
|
lazy
|
||||||
></ElImage>
|
></ElImage>
|
||||||
|
@ -39,8 +39,9 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
|||||||
title: '应用图标',
|
title: '应用图标',
|
||||||
field: 'logo',
|
field: 'logo',
|
||||||
table: {
|
table: {
|
||||||
type: 'html',
|
cellRender: {
|
||||||
formatter: 'formatImg'
|
name: 'XImg'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user