{
title: ‘’,
width: 125,
type: ‘check’,
align: ‘center’,
key: ‘check’,
ref: " chargeAgainstRadio",
render: (h, params) => {
return h(‘Checkbox’, {
props: {
type: ‘text’,
value: params.row.check = this.chargeAgainstRadio
},
on: {
‘on-change’: (value) => {
// alert(params.index);
this.show(params.index);
}
},
});
},
//自定义列头的renderHeader函数
renderHeader: (h, index) => {
return h(‘div’, {
domProps: {
title: ‘点击全选’,//鼠标经过的提示信息
type: ‘selection’,
innerHTML: ‘是否冲抵(全选)’ //自定义的列头的标题
},
on: {
click: () => { //自定义列头的点击事件
this.allChangeAgainst(this.allCharge);
}
}
});
}
},
iview的table:自定义table表格中列头的标题和点击事件
最新推荐文章于 2024-07-18 16:16:44 发布