resolver-egretimp-plus 0.0.192 → 0.0.194
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/dist/h5/index.js +2 -2
- package/dist/web/index.js +2 -2
- package/package.json +1 -1
- package/src/components/packages-H5/CmiButton.vue +3 -1
- package/src/components/packages-web/ElButton.vue +3 -1
- package/src/index.jsx +2 -1
- package/src/rules/eventsSupplement.js +7 -1
- package/src/utils/render.jsx +2 -6
package/package.json
CHANGED
|
@@ -59,6 +59,7 @@ const dataLoad = inject('dataLoad')
|
|
|
59
59
|
const rootForm = inject('rootForm')
|
|
60
60
|
const validate = inject('_validate', () => {})
|
|
61
61
|
const parentRootValue = inject('_parentRootValue', {})
|
|
62
|
+
const rootInstance = inject('_rootInstance', {})
|
|
62
63
|
|
|
63
64
|
const routeQuery= route?.query
|
|
64
65
|
|
|
@@ -82,7 +83,8 @@ const buttonAction = (...arg) => {
|
|
|
82
83
|
routeQuery,
|
|
83
84
|
validate,
|
|
84
85
|
lastClick,
|
|
85
|
-
parentRootValue
|
|
86
|
+
parentRootValue,
|
|
87
|
+
rootInstance
|
|
86
88
|
}, appContext)
|
|
87
89
|
}
|
|
88
90
|
if (actionFnRet !== null && actionFnRet !== undefined) {
|
|
@@ -78,6 +78,7 @@ const dataLoad = inject('dataLoad')
|
|
|
78
78
|
const rootForm = inject('rootForm')
|
|
79
79
|
const validate = inject('_validate', () => {})
|
|
80
80
|
const parentRootValue = inject('_parentRootValue', {})
|
|
81
|
+
const rootInstance = inject('_rootInstance', {})
|
|
81
82
|
|
|
82
83
|
const routeQuery= route?.query
|
|
83
84
|
|
|
@@ -102,7 +103,8 @@ const buttonAction = async (e, params) => {
|
|
|
102
103
|
routeQuery,
|
|
103
104
|
validate,
|
|
104
105
|
lastClick,
|
|
105
|
-
parentRootValue
|
|
106
|
+
parentRootValue,
|
|
107
|
+
rootInstance
|
|
106
108
|
}, appContext)
|
|
107
109
|
}
|
|
108
110
|
if (actionFnRet !== null && actionFnRet !== undefined) {
|
package/src/index.jsx
CHANGED
|
@@ -140,6 +140,7 @@ export default {
|
|
|
140
140
|
},
|
|
141
141
|
emits: ['update:modelValue', 'rootStoreChange'],
|
|
142
142
|
setup(props, { emit, attrs, expose }) {
|
|
143
|
+
const instance = getCurrentInstance()
|
|
143
144
|
const ruleExecuter = null
|
|
144
145
|
// const ruleExecuter = new RuleExecuter()
|
|
145
146
|
const rootStore = reactive({})
|
|
@@ -167,7 +168,6 @@ export default {
|
|
|
167
168
|
const dataLoad = computed(() => {
|
|
168
169
|
return props.dataLoad || nativeDataLoad.value
|
|
169
170
|
})
|
|
170
|
-
const instance = getCurrentInstance()
|
|
171
171
|
const { initPageConfig, pageConfigRef, mapCompRef, hireRelatMapRulesRef } = usePageConfig()
|
|
172
172
|
function toExecuteLoadServices(clearFlag) {
|
|
173
173
|
// 触发加载事件执行
|
|
@@ -258,6 +258,7 @@ export default {
|
|
|
258
258
|
provide('buttonActions', props.buttonActions)
|
|
259
259
|
provide('components', toRef(props, 'components'))
|
|
260
260
|
provide('selects', toRef(props, 'selects'))
|
|
261
|
+
provide('_rootInstance', instance)
|
|
261
262
|
provide('rootValue', computed({
|
|
262
263
|
get() {
|
|
263
264
|
return props.modelValue
|
|
@@ -68,9 +68,15 @@ const allInitEvents = {
|
|
|
68
68
|
const { config } = this
|
|
69
69
|
val = config?.bindValue
|
|
70
70
|
} else {
|
|
71
|
+
let routeMatchs = null
|
|
71
72
|
const _absoluteTarget = /^_absoluteTarget:(.+)$/
|
|
72
73
|
const matchs = val.match(_absoluteTarget)
|
|
73
|
-
if (typeof val === 'string' &&
|
|
74
|
+
if ( typeof val === 'string' && (routeMatchs = val.match(/^_route:(.*)$/))) {
|
|
75
|
+
const { config } = this
|
|
76
|
+
const queryKey = routeMatchs[1]
|
|
77
|
+
const routeQuery = config?.route?.query
|
|
78
|
+
val = routeQuery?.[queryKey]
|
|
79
|
+
} else if (typeof val === 'string' && matchs?.[1]) {
|
|
74
80
|
const { dynamicMapComp } = this
|
|
75
81
|
const targetConfig = dynamicMapComp?.[matchs[1]]
|
|
76
82
|
val = targetConfig?.bindValue || ''
|
package/src/utils/render.jsx
CHANGED
|
@@ -251,9 +251,7 @@ export function normalConfig({
|
|
|
251
251
|
...detailExtendAttrObj
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
|
|
255
|
-
pageConfig.hidden = '1'
|
|
256
|
-
}
|
|
254
|
+
pageConfig.hidden = pageConfig.detailHidden || pageConfig.hidden
|
|
257
255
|
}
|
|
258
256
|
// 在日志的情况下,配置组件是否显示
|
|
259
257
|
if (mode === MODE.LOG) {
|
|
@@ -267,9 +265,7 @@ export function normalConfig({
|
|
|
267
265
|
...logExtendAttrObj
|
|
268
266
|
}
|
|
269
267
|
}
|
|
270
|
-
|
|
271
|
-
pageConfig.hidden = '1'
|
|
272
|
-
}
|
|
268
|
+
pageConfig.hidden = pageConfig.logHidden || pageConfig.hidden
|
|
273
269
|
}
|
|
274
270
|
|
|
275
271
|
mapComp[hireRelat] = pageConfig
|