render: (h, params) => {
return h('Select', {
props:{
value: params.row.style,
},
on: {
'on-change':(event) => {
console.log(event);
self.selectData[params.index].style = event;
// self.$refs.selectDataTable.objData[params.index]['style'] = value;
// this.data[params.index].volumeType = event;
}
},
},
[
h('Option',{
props: {
value: 'Y'
}
},'年'),
h('Option',{
props: {
value: 'M'
}
},'月'),
h('Option',{
props: {
value: 'D'
}
},'日'),
h('Option',{
props: {
value: 'W'
}
},'周')
]);
}
iview在table组件中设置select组件
最新推荐文章于 2024-01-05 13:59:18 发布