iveiw InputNumber組件的precision屬性會(huì)有一定交互缺陷膨俐,解決此問(wèn)題只需在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;
}