iveiw InputNumber组件的precision属性会有一定交互缺陷,解决此问题只需在main.js中加入如下代码即可:
ViewUI.InputNumber.computed.precisionValue = function () {
let arr = (this.currentValue + '').split('.')
if (this.precision && arr[1] && this.precision < arr[1].length)
return this.currentValue.toFixed(this.precision)
return this.currentValue;
}