table 组件中 render 怎么绑定click事件

2025-05-11 05:32:16
推荐回答(1个)
回答1:

render: (h, params) => {
return h('div', [
h('Button', {
props: {
type: 'text',
size: 'small'
},
on: {
click: () => {
this.updateRole(params.index)
}
}
}, '编辑')
])
}