cloud-web-corejs 1.0.54-dev.516 → 1.0.54-dev.518
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -64,6 +64,9 @@ export default {
|
|
|
64
64
|
},
|
|
65
65
|
computed: {
|
|
66
66
|
showVaule() {
|
|
67
|
+
if (this.designState) {
|
|
68
|
+
return this.field.options.defaultValue ?? "";
|
|
69
|
+
}
|
|
67
70
|
let value = this.formatterValue();
|
|
68
71
|
return value;
|
|
69
72
|
},
|
|
@@ -102,7 +105,9 @@ export default {
|
|
|
102
105
|
return this.handleCustomEvent(this.field.options.renderHandle);
|
|
103
106
|
break;
|
|
104
107
|
case "money":
|
|
105
|
-
return cellValue
|
|
108
|
+
return cellValue !== null && cellValue !== undefined
|
|
109
|
+
? cellValue.toFixed(2)
|
|
110
|
+
: "";
|
|
106
111
|
break;
|
|
107
112
|
case "d1":
|
|
108
113
|
return formatUtil.formatDate1(cellValue);
|
|
@@ -120,7 +125,9 @@ export default {
|
|
|
120
125
|
return formatUtil.formatDate4(cellValue);
|
|
121
126
|
break;
|
|
122
127
|
case "n0":
|
|
123
|
-
return cellValue
|
|
128
|
+
return cellValue !== null && cellValue !== undefined
|
|
129
|
+
? cellValue.toFixed(this.field.options.formatDecimal || 0)
|
|
130
|
+
: "";
|
|
124
131
|
break;
|
|
125
132
|
case "n1":
|
|
126
133
|
return formatUtil.formatNumber1(cellValue);
|