input输入框的值显示和设置的不一致
cjking
- 发布:2019-12-24 17:38
- 更新:2019-12-24 17:43
- 阅读:1674
cjking (作者)
<input type="digit" v-model="withdrawalAmount" @input="inputEdit"/>
/**
- input绑定值更新
- @param e
*/
inputEdit (e) {
e.detail.value = NumberPipe(e.detail.value, { isPrice: true, isBlur: true });
this.$nextTick(() => {
e.mp.detail.value = e.target.value = e.detail.value;
this.withdrawalAmount = e.detail.value;
});
}