mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-31 06:50:51 +00:00
crud单图和多图展示优化
This commit is contained in:
parent
c2e3962d32
commit
9e6c80ebae
@ -85,6 +85,44 @@ export default {
|
||||
width: 100,
|
||||
align: 'center',
|
||||
});
|
||||
res.data.columns.map(item=>{
|
||||
if(item.from_type === 'frameImageOne'){
|
||||
item.render = (h,params)=>{
|
||||
return h('div',{
|
||||
class:'tabBox_img',
|
||||
directives:[{
|
||||
name:'viewer'
|
||||
}]
|
||||
},[
|
||||
h('img',{
|
||||
directives:[{
|
||||
name:'lazy',
|
||||
value: params.row[item.slot]
|
||||
}],
|
||||
})
|
||||
])
|
||||
}
|
||||
} else if(item.from_type === 'frameImages'){
|
||||
item.render = (h,params)=>{
|
||||
let image = params.row[item.slot] || []
|
||||
let imageH = [];
|
||||
image.map(item=>{
|
||||
imageH.push(h('img',{
|
||||
directives:[{
|
||||
name:'lazy',
|
||||
value: item
|
||||
}],
|
||||
}));
|
||||
})
|
||||
return h('div',{
|
||||
class:'tabBox_img',
|
||||
directives:[{
|
||||
name:'viewer'
|
||||
}]
|
||||
},imageH)
|
||||
}
|
||||
}
|
||||
})
|
||||
this.columns = res.data.columns;
|
||||
this.getList();
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user