resolver-egretimp-plus 0.0.41 → 0.0.43

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.43",
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,7 @@ function initOutParamData(outParamMappingList = [], { dynamicMapComp, dynamicMap
77
77
  const compConfig = dynamicMapComp[configCode]
78
78
 
79
79
  if (compConfig) {
80
- const orignParamArr = orignParam?.split('.') || []
80
+ const orignParamArr = orignParam ? orignParam?.split('.') : []
81
81
  const val = orignParamArr.reduce((ret, item) => {
82
82
  if (!ret) return
83
83
  return ret[item]
@@ -17,7 +17,7 @@ const calcProps = computed(() => {
17
17
  islink: props.config?.islink === '1',
18
18
  icon: props.config?.icon,
19
19
  selfadaption: hasOwn(props.config, 'selfadaption') ? props.config.selfadaption === '1' : true,
20
- noborder: props.noborder === '1',
20
+ noborder: props.config?.noborder === '1',
21
21
  }
22
22
  })
23
23
  const attrs = useAttrs()
@@ -20,7 +20,7 @@ const cmiProps = computed(() => {
20
20
  subtitle: lang?.value?.indexOf('zh') ? props.config.subtitleZh : props.config.subtitleEn,
21
21
  content: props.content,
22
22
  noborder: props.noborder == '1' ? true : false,
23
- cardbgcolor: props.cardbgcolor,
23
+ cardbgcolor: props.cardbgcolor || '#FAFAFA',
24
24
  }
25
25
  })
26
26
 
@@ -30,6 +30,9 @@ const pmPageMetaList = computed(() => {
30
30
 
31
31
  </script>
32
32
  <template>
33
+ <div style="">
34
+
35
+ </div>
33
36
  <cmi-card v-bind="{...cmiProps, ...attrs}">
34
37
  <div slot="content">
35
38
  <Renderer :config="pmPageMetaList" v-model="modelValue"></Renderer>
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