resolver-egretimp-plus 0.0.224 → 0.0.225

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,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.0.224",
3
+ "version": "0.0.225",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -34,6 +34,11 @@ export default {
34
34
  type: Number,
35
35
  default: 2
36
36
  },
37
+ // 在显示金额的时候,可以显示的符号
38
+ canShowFlag: {
39
+ type: Array,
40
+ default: ['na', '-']
41
+ },
37
42
  // 是否显示货币符号
38
43
  showSymbol: {
39
44
  type: String,
@@ -251,6 +256,9 @@ export default {
251
256
 
252
257
  // 格式化显示
253
258
  function formatValue(value) {
259
+ if (props.canShowFlag?.includes(String(value).toLowerCase())) {
260
+ return value
261
+ }
254
262
  if (value === null || isNaN(value)) return ''
255
263
  let val = parseFloat(value)
256
264
  if (isNaN(val)) {
@@ -275,6 +283,9 @@ export default {
275
283
 
276
284
  // 解析输入值
277
285
  function parseValue(value) {
286
+ if (props.canShowFlag?.includes(String(value).toLowerCase())) {
287
+ return value
288
+ }
278
289
  if (value === undefined || value === null || value === '') {
279
290
  return ''
280
291
  }