resolver-egretimp-plus 0.0.186 → 0.0.187

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.186",
3
+ "version": "0.0.187",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -83,7 +83,7 @@ export default {
83
83
  definePrivatelyProp(props.config, 'vm', e)
84
84
  }
85
85
  const onVnodeMounted = (e) => {
86
- props.config.vmIsBind = true
86
+ definePrivatelyProp(props.config, 'vmIsBind', true)
87
87
  definePrivatelyProp(props.config, 'router', router)
88
88
  definePrivatelyProp(props.config, 'route', route)
89
89
 
@@ -200,9 +200,9 @@ export default {
200
200
  const configLinks = [parent, ...props.additionConfigs, props.config]
201
201
  configLinks.reduce((parent, config) => {
202
202
  definePrivatelyProp(config, 'parent', parent)
203
-
204
- config.dynamicMapComp = dynamicMapComp
205
- config.dynamicHireRelat = parent?.dynamicHireRelat ? `${parent?.dynamicHireRelat}${hasOwn(config, 'rowIndex') ? `[${config.rowIndex}]` : ''}->${(config.metaCode || '')}` : config.metaCode
203
+ definePrivatelyProp(config, 'dynamicMapComp', dynamicMapComp)
204
+ const dynamicHireRelat = parent?.dynamicHireRelat ? `${parent?.dynamicHireRelat}${hasOwn(config, 'rowIndex') ? `[${config.rowIndex}]` : ''}->${(config.metaCode || '')}` : config.metaCode
205
+ definePrivatelyProp(config, 'dynamicHireRelat', dynamicHireRelat)
206
206
  config.dynamicHireRelat && (dynamicMapComp[config.dynamicHireRelat] = config)
207
207
  return config
208
208
  })
@@ -11,7 +11,7 @@
11
11
  </template>
12
12
  <script setup>
13
13
  import { computed, defineModel, watch, reactive } from 'vue'
14
- import { commonPropsType, cloneDeep } from '../../utils/index.js'
14
+ import { commonPropsType, cloneDeep, definePrivatelyProp } from '../../utils/index.js'
15
15
  import { ElRow, ElCard } from 'element-plus'
16
16
  import Renderer from '../../renderer.jsx'
17
17
 
@@ -71,7 +71,7 @@ watch(() => {
71
71
  }
72
72
  })
73
73
  }
74
- props.config.multiPmPageMetaList = list
74
+ definePrivatelyProp(props.config, 'multiPmPageMetaList', list)
75
75
  }, {
76
76
  immediate: true
77
77
  })
@@ -12,7 +12,7 @@
12
12
  import { ElTabPane, ElRow } from 'element-plus'
13
13
  import Renderer from '../../renderer.jsx'
14
14
  import { computed, inject, reactive, watch, defineModel, defineProps } from 'vue'
15
- import { commonPropsType, cloneDeep } from '../../utils/index.js'
15
+ import { commonPropsType, cloneDeep, definePrivatelyProp } from '../../utils/index.js'
16
16
  import { TabPane } from '../tabs'
17
17
 
18
18
  const props = defineProps({
@@ -78,7 +78,7 @@ watch(() => {
78
78
  }
79
79
  })
80
80
  }
81
- props.config.multiPmPageMetaList = list
81
+ definePrivatelyProp(props.config, 'multiPmPageMetaList', list)
82
82
  }, {
83
83
  immediate: true
84
84
  })
@@ -2,7 +2,7 @@
2
2
  import { ElTable, ElTableColumn, ElPagination } from 'element-plus'
3
3
  import Renderer from '../../renderer.jsx'
4
4
  import { computed, inject, watch, h, ref, reactive } from 'vue'
5
- import { commonPropsType, TABLE_COLUMN_NOT_RENDER_META_TYPE, DISPLAY_SHOW, compareComponet, isPlainObject, hasOwn, cloneDeep, isPromise, isPlainColumn, generateUniqueId, calcDisable, camelize, capitalize, DISPLAY_HIDDEN } from '../../utils/index.js'
5
+ import { commonPropsType, TABLE_COLUMN_NOT_RENDER_META_TYPE, DISPLAY_SHOW, compareComponet, isPlainObject, hasOwn, cloneDeep, isPromise, isPlainColumn, generateUniqueId, calcDisable, camelize, capitalize, DISPLAY_HIDDEN, definePrivatelyProp } from '../../utils/index.js'
6
6
  import '../styles/CustomComponenTable.scss'
7
7
 
8
8
  export default {
@@ -277,7 +277,7 @@ export default {
277
277
  }
278
278
  })
279
279
  }
280
- props.config.multiPmPageMetaList = list
280
+ definePrivatelyProp(props.config, 'multiPmPageMetaList', list)
281
281
  }, {
282
282
  immediate: true,
283
283
  deep: true,
@@ -1,7 +1,7 @@
1
1
  import { computed, inject, nextTick, reactive } from "vue"
2
2
  import rulesDriver from '../rules/rulesDriver'
3
3
  import defaultVal from '../utils/defaultVal.js'
4
- import {isNonRefType, modelValueDeepMerge } from "../utils"
4
+ import {definePrivatelyProp, isNonRefType, modelValueDeepMerge } from "../utils"
5
5
 
6
6
  export function useVModel(config, props, emit, modelKey = 'update:modelValue') {
7
7
  const { hireRelatMapRules, messageInstance, rootValue, ruleExecuter, dataLoad, dynamicMapComp, lang, _mapComp } = this
@@ -50,7 +50,7 @@ export function useVModel(config, props, emit, modelKey = 'update:modelValue') {
50
50
  _mapComp,
51
51
  messageInstance
52
52
  }, currentRules, true)
53
- config.eventInit = true
53
+ definePrivatelyProp(config, 'eventInit', true)
54
54
  }, 0)
55
55
  }
56
56
  }
@@ -356,6 +356,7 @@ export function getConfigOptions(config, selects) {
356
356
  }
357
357
 
358
358
  export function definePrivatelyProp(obj, key, value, options) {
359
+ obj[key] = value
359
360
  const op = options || {}
360
361
  Object.defineProperty(obj, key, {
361
362
  value,
@@ -179,14 +179,14 @@ export function normalConfig({
179
179
  // 这个对象是不可以被配置进行覆盖
180
180
  const extendNativeObj = {
181
181
  metaType,
182
- eventInit: false, // 初始渲染的时候,配置项对应的事件是否执行了
182
+ // eventInit: false, // 初始渲染的时候,配置项对应的事件是否执行了
183
183
  bindValue: '', // 这个是对应组件绑定的值
184
- vmIsBind: false,
185
- vm: null, // 具体渲染的组件
186
- wrapVm: null, // 当前组件的实例(也就是analysisComponent)
184
+ // vmIsBind: false,
185
+ // vm: null, // 具体渲染的组件
186
+ // wrapVm: null, // 当前组件的实例(也就是analysisComponent)
187
187
  hireRelat,
188
- parent: null, // 这个是执行过程中,动态获取的
189
- dynamicHireRelat: '', // 这个也是执行过程中,动态获取的层级
188
+ // parent: null, // 这个是执行过程中,动态获取的
189
+ // dynamicHireRelat: '', // 这个也是执行过程中,动态获取的层级
190
190
  }
191
191
 
192
192
  let extendAttrObj = parseExtendAttr(config)