resolver-egretimp-plus 0.0.41 → 0.0.42

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.41",
3
+ "version": "0.0.42",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -49,7 +49,7 @@ function loadedConfigCompeted(pageConfig) {
49
49
  rootOptionComp.value = pageConfig.rootOptionComp
50
50
  }
51
51
  function rootStoreChange(rootStore) {
52
- props.rootStoreChange(rootStore)
52
+ props.rootStoreChange && props.rootStoreChange(rootStore)
53
53
  }
54
54
 
55
55
 
@@ -77,7 +77,8 @@ function initOutParamData(outParamMappingList = [], { dynamicMapComp, dynamicMap
77
77
  const compConfig = dynamicMapComp[configCode]
78
78
 
79
79
  if (compConfig) {
80
- const orignParamArr = orignParam?.split('.') || []
80
+ debugger
81
+ const orignParamArr = orignParam ? orignParam?.split('.') : []
81
82
  const val = orignParamArr.reduce((ret, item) => {
82
83
  if (!ret) return
83
84
  return ret[item]
package/src/index.jsx CHANGED
@@ -116,9 +116,9 @@ export default {
116
116
  }, {
117
117
  immediate: true
118
118
  })
119
- watch(rootStore, () => {
119
+ watch(() => rootStore, () => {
120
120
  emit('rootStoreChange', rootStore)
121
- }, { immediate: true })
121
+ }, { immediate: true, deep: true })
122
122
 
123
123
  const dataLoad = computed(() => {
124
124
  return props.dataLoad || nativeDataLoad.value