resolver-egretimp-plus 0.0.90 → 0.0.91
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/const/index.js +1 -2
- package/dist/h5/index.js +18 -19
- package/dist/web/index.js +75 -76
- package/package.json +1 -1
- package/scripts/webpack.config.js +1 -1
- package/src/analysisComponent.jsx +5 -0
- package/src/index.jsx +3 -0
- package/src/utils/render.jsx +5 -4
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ import rulesDriver from './rules/rulesDriver'
|
|
|
6
6
|
import { penddingRules } from './rules/ruleUtils.js'
|
|
7
7
|
import { useRoute } from 'vue-router'
|
|
8
8
|
import { executeEventOrchestration } from './components/helper/eventOrchestration.js'
|
|
9
|
+
import { useRouter } from 'vue-router'
|
|
9
10
|
|
|
10
11
|
export default {
|
|
11
12
|
name: 'AnalysisComponent',
|
|
@@ -52,6 +53,7 @@ export default {
|
|
|
52
53
|
const requestTraceId = inject('requestTraceId')
|
|
53
54
|
const polyfillConfigs = inject('_polyfillConfigs', {})
|
|
54
55
|
const buttonActions = inject('buttonActions', {})
|
|
56
|
+
const router = useRouter()
|
|
55
57
|
const route = useRoute()
|
|
56
58
|
const routeQuery= route?.query
|
|
57
59
|
const hireRelatMapRules = inject('hireRelatMapRules')
|
|
@@ -74,6 +76,9 @@ export default {
|
|
|
74
76
|
props.config.vm = e
|
|
75
77
|
}
|
|
76
78
|
const onVnodeMounted = (e) => {
|
|
79
|
+
props.config.vmIsBind = true
|
|
80
|
+
props.config.router = router
|
|
81
|
+
props.config.route = route
|
|
77
82
|
props.config.vmIsBind = true
|
|
78
83
|
if (props.config.onVnodeMounted && typeof props.config.onVnodeMounted === 'function') {
|
|
79
84
|
props.config.onVnodeMounted(props, e, selects)
|
package/src/index.jsx
CHANGED
|
@@ -9,6 +9,7 @@ import { executeLoadServices } from "./components/helper/resolver.js"
|
|
|
9
9
|
import { deepMerge } from "./utils/index.js"
|
|
10
10
|
import { useRouter } from "vue-router"
|
|
11
11
|
import { useRoute } from "vue-router"
|
|
12
|
+
import { markRaw } from "vue"
|
|
12
13
|
export default {
|
|
13
14
|
name: 'Resolver',
|
|
14
15
|
props: {
|
|
@@ -134,6 +135,8 @@ export default {
|
|
|
134
135
|
const nativeDataLoad = ref(false)
|
|
135
136
|
const router = useRouter()
|
|
136
137
|
const route = useRoute()
|
|
138
|
+
// const router = {}
|
|
139
|
+
// const route = {}
|
|
137
140
|
const axiosInstance = ref(props.axiosInstance)
|
|
138
141
|
watch(() => {
|
|
139
142
|
return props.axiosConfig
|
package/src/utils/render.jsx
CHANGED
|
@@ -29,6 +29,7 @@ import QuestionFilled from '../components/icons/question-filled.vue'
|
|
|
29
29
|
import { dispatchClickEvent, dispatchClickEvents, getTableConfig } from '../components/helper/eventOrchestration.js'
|
|
30
30
|
import CmiFormItem from '../components/cmiFormItem'
|
|
31
31
|
import loadModule from './loadModule.js'
|
|
32
|
+
import { toRaw } from 'vue'
|
|
32
33
|
|
|
33
34
|
// 解析配置中的defStyle属性
|
|
34
35
|
export function parseDefStyle(defStyle) {
|
|
@@ -174,8 +175,8 @@ export function normalConfig({
|
|
|
174
175
|
wrapVm: null, // 当前组件的实例(也就是analysisComponent)
|
|
175
176
|
hireRelat,
|
|
176
177
|
parent: null, // 这个是执行过程中,动态获取的
|
|
177
|
-
router,
|
|
178
|
-
route,
|
|
178
|
+
router: router,
|
|
179
|
+
route: route,
|
|
179
180
|
dynamicHireRelat: '', // 这个也是执行过程中,动态获取的层级
|
|
180
181
|
}
|
|
181
182
|
|
|
@@ -195,8 +196,8 @@ export function normalConfig({
|
|
|
195
196
|
if (config.pmPageMetaList && config.pmPageMetaList.length) {
|
|
196
197
|
config.pmPageMetaList = config.pmPageMetaList.map(metaItem => {
|
|
197
198
|
const { pageConfig } = normalConfig({
|
|
198
|
-
route,
|
|
199
|
-
router,
|
|
199
|
+
// routeQuery: route?.query,
|
|
200
|
+
// router,
|
|
200
201
|
cbs,
|
|
201
202
|
polyfillConfigs,
|
|
202
203
|
instance,
|