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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.516",
4
+ "version": "1.0.54-dev.518",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -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.toFixed(2);
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.toFixed(this.field.options.formatDecimal || 0);
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);
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div>
2
+ <div v-show="false">
3
3
  <el-form-item :label="i18nt('启用动态值显示')">
4
4
  <el-switch v-model="optionModel.autoValueEnabled"></el-switch>
5
5
  </el-form-item>