{
title:‘状态’,
key:‘status’,
align: ‘center’,
render:(h,params)=> {
return h(
‘i-switch’,{
props: {
value: params.row.status,
size:‘default’,
disabled: true
},
on:{
‘on-change’: (value) => {
this.change(value)
}
}
},
[
h(‘span’, {slot: ‘open’}, ‘开’),
h(‘span’, {slot: ‘close’}, ‘关’)
)
}
}
iview基础知识2——表格中的i-switch
最新推荐文章于 2023-10-16 11:57:48 发布