Commit 8eae094b by 李少勇

修改金额组件后端返回或者前端代码赋值非数字的问题

parent 704f562e
......@@ -137,6 +137,16 @@ export default {
}
},
watch: {
value: {
handler(newVal) {
if (newVal && isNaN(newVal)) {
let newValFormat = this.formatValue(newVal);
let formatNaNvalue = this.formatNaN(newValFormat);
this.$emit('input', formatNaNvalue)
}
},
immediate: true
},
disabled(newVal) {
if (newVal) {
this.resetValidate()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment