resolver-egretimp-plus 0.0.214 → 0.0.215

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.214",
3
+ "version": "0.0.215",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -146,6 +146,8 @@ export default {
146
146
  }, 0);
147
147
  unWatch && unWatch()
148
148
  }
149
+ }, {
150
+ immediate: true
149
151
  })
150
152
  }
151
153
  // 使用json-rules-engine书写的规则,打开这边,需要对之前的规则进行注释,并且需要再index.js文件中进行开启 ====end====
package/src/index.jsx CHANGED
@@ -100,6 +100,10 @@ export default {
100
100
  type: Object,
101
101
  default: () => ({})
102
102
  },
103
+ loadEventsAfter: {
104
+ type: Function,
105
+ default: null
106
+ },
103
107
  // 在弹框里面的页面,通过弹窗传染的请求数据
104
108
  dialogReq: {
105
109
  type: Object,
@@ -187,6 +191,9 @@ export default {
187
191
  respCb: (result) => {
188
192
  nativeDataLoad.value = true
189
193
  let val = result
194
+ if (props.loadEventsAfter && typeof props.loadEventsAfter === 'function') {
195
+ val = props.loadEventsAfter(val)
196
+ }
190
197
  if (!clearFlag) {
191
198
  val = deepMerge(props.modelValue, result, 'replace')
192
199
  val = {...val}