方法一:
{
title:'备注',
key:'',
align:'center',
130,
render:(h,params)=>{
return h('Input',{
props:{
value:this.formInline.financeAccountBillDetailVOList[params.index].invoiceCode,
disabled:this.isDisabled,
maxlength:255
},
on:{
'on-blur': (event) => {
params.row.invoiceCode = event.target.value
this.formInline.financeAccountBillDetailVOList[params.index] = params.row
}
}
})
}
}
方法二:
{
title: '入库数量',
key: 'quantity',
align: 'center',
render: (h, params) => {
return h('div', [
h('Input', {
style: {
padding: '8px'
},
on: {
'on-change': (event) => {
this.tableData[params.index].quantity = event.target.value
}
}
})
])
}
},
tableData: [],