this.$Modal.confirm({
render: (h) => {
return h('Select', {
props: {
value: this.value,
autofocus: true,
placeholder: '修改设备状态'
},
on: {
'on-change':(event) => {
console.log(event)
}
},
},
this.value.map((value) => {
return h('Option', {
props: {value: value.value}
}, value.label)
})
)
}
})
iview 在modal中用render渲染select
最新推荐文章于 2023-02-10 16:20:31 发布