resolver-egretimp-plus 0.1.135 → 0.1.136

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.1.135",
3
+ "version": "0.1.136",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -70,8 +70,7 @@ const separator = computed(() => {
70
70
  return props.separator
71
71
  })
72
72
  const metaCode = computed(() => {
73
- return props.config.dynamicHireRelat?.replace(/(\]|\[|(->))/g, '')?.replace(' ', '').replace(/[!@#$%^&*]/g, '')
74
- // return `${props.config?.metaCode}-${props?.rowScope?.$index || ''}`
73
+ return props.config.dynamicHireRelat?.replace(/(\]|\[|(->))/g, '')?.replace(' ', '').replace(/[!@#$%^&*]/g, '') + `${Math.random()}`.replace('.', '')
75
74
  })
76
75
  const styleObj = computed(() => {
77
76
  const obj = {}
@@ -167,6 +167,13 @@ export default {
167
167
  modelValue.value = parseValue(formatValue(currentVal.value))
168
168
  }
169
169
  }
170
+ ret['onClear'] = () => {
171
+ attrs?.onClear?.()
172
+ modelValue.value = ''
173
+ if (props.showMoney == '1') {
174
+ currentVal.value = ''
175
+ }
176
+ }
170
177
  } else {
171
178
  ret['onClear'] = () => {
172
179
  attrs?.onClear?.()