resolver-egretimp-plus 0.0.90 → 0.0.92

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.92",
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
@@ -132,8 +132,10 @@ export default {
132
132
  setup(props, { emit, attrs, expose }) {
133
133
  const rootStore = reactive({})
134
134
  const nativeDataLoad = ref(false)
135
- const router = useRouter()
136
- const route = useRoute()
135
+ // const router = useRouter()
136
+ // const route = useRoute()
137
+ const router = {}
138
+ const route = {}
137
139
  const axiosInstance = ref(props.axiosInstance)
138
140
  watch(() => {
139
141
  return props.axiosConfig
@@ -174,8 +174,8 @@ export function normalConfig({
174
174
  wrapVm: null, // 当前组件的实例(也就是analysisComponent)
175
175
  hireRelat,
176
176
  parent: null, // 这个是执行过程中,动态获取的
177
- router,
178
- route,
177
+ router: router,
178
+ route: route,
179
179
  dynamicHireRelat: '', // 这个也是执行过程中,动态获取的层级
180
180
  }
181
181
 
@@ -195,8 +195,8 @@ export function normalConfig({
195
195
  if (config.pmPageMetaList && config.pmPageMetaList.length) {
196
196
  config.pmPageMetaList = config.pmPageMetaList.map(metaItem => {
197
197
  const { pageConfig } = normalConfig({
198
- route,
199
- router,
198
+ // routeQuery: route?.query,
199
+ // router,
200
200
  cbs,
201
201
  polyfillConfigs,
202
202
  instance,