|
@@ -94,6 +94,10 @@ function getFromatterFn(val: string) {
|
|
|
case 'FromatterPercent': // 数值百分比
|
|
case 'FromatterPercent': // 数值百分比
|
|
|
result = (obj: any) => (Number(obj.text) * 100).toFixed(2) + '%'
|
|
result = (obj: any) => (Number(obj.text) * 100).toFixed(2) + '%'
|
|
|
break
|
|
break
|
|
|
|
|
+ case 'FromatterDecimal': // 数值小数位
|
|
|
|
|
+ result = (obj: any) => arr[1] ? (obj.text ? obj.text.toFixed(obj.record[arr[1]]) : obj.text) : obj.text
|
|
|
|
|
+ break
|
|
|
}
|
|
}
|
|
|
return result
|
|
return result
|
|
|
-}
|
|
|
|
|
|
|
+}
|
|
|
|
|
+
|