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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.0.90",
3
+ "version": "0.0.91",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -16,7 +16,7 @@ module.exports = {
16
16
  path: path.resolve(__dirname, '../dist'),
17
17
  filename: '[name]/index.js'
18
18
  },
19
- devtool: 'inline-source-map',
19
+ // devtool: 'inline-source-map',
20
20
  module: {
21
21
  rules: [
22
22
  {
@@ -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
@@ -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,