props:[value:1],
render: (h, params) => {
this.combos[params.index].number = 1;
return h('InputNumber', {
props: {
max: 10,
min: 1,
value: this.value
},
on: {
'on-change': (value) => {
this.value = value;
}
}
});
}
以上能够实现数据的双向绑定,但是当modal(弹窗)隐藏掉时,在次打开该如何 让inputNumber的默认值为1呢?