vue中table中render渲染input并给input赋值用props
{
title: '入库数量',
key: 'quantity',
align: 'center',
render: (h, params) => {
return h('div', [
h('Input', {
style: {
padding: '8px'
},
props: {
value: params.row.quantity
},
on: {
'on-change': (event) => {
this.tableData[params.index].quantity = event.target.value
}
}
})
])
}
}