vue中render函数button按钮禁用
render: (row, column, cell) => {
return self.$createElement('button', {
style: {
cursor: row.handleStatus === 20 ? 'pointer' : 'not-allowed',
color: row.handleStatus === 20 ? '#0075ED' : '#999999',
border: 'none',
background: 'none'
},
domProps: {
innerHTML: '下载失败名单'
},
attrs: { disabled: row.handleStatus !== 20 },
on: {
click: () => self.handleNameListFail(row)
}
})
}