resolver-egretimp-plus 0.0.32 → 0.0.34
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/3/index.js +1 -0
- package/dist/661/index.js +2 -0
- package/dist/661/index.js.LICENSE.txt +6 -0
- package/dist/h5/index.js +1 -1
- package/dist/theme/element/index.css +1 -1
- package/dist/theme/element/src/components/tabs.scss +1 -1
- package/dist/web/index.js +1 -1
- package/package.json +1 -1
- package/src/components/childDialog/index.js +33 -0
- package/src/components/childDialog/src/index.vue +94 -0
- package/src/components/helper/button.js +63 -7
- package/src/components/packages-web/CustomComponentCollapse.vue +2 -2
- package/src/components/packages-web/CustomComponentTable.jsx +4 -0
- package/src/components/packages-web/ElButton.vue +27 -4
- package/src/hooks/mock.js +313 -2503
- package/src/hooks/pageConfig.js +2 -1
- package/src/index.jsx +7 -4
- package/src/resolver-common.vue +3 -0
- package/src/theme/element/components/tabs.scss +1 -1
- package/src/utils/render.jsx +5 -5
package/src/hooks/pageConfig.js
CHANGED
|
@@ -39,7 +39,7 @@ export function usePageConfig() {
|
|
|
39
39
|
|
|
40
40
|
export function useBuildInData(messageTipInstance, loadingInstance) {
|
|
41
41
|
const pageConfig = ref(null)
|
|
42
|
-
function getPageConfig(reqData) {
|
|
42
|
+
function getPageConfig(reqData, cb) {
|
|
43
43
|
if (loadingInstance.start && typeof loadingInstance.start === 'function') {
|
|
44
44
|
loadingInstance.start()
|
|
45
45
|
} else if (loadingInstance.show && typeof loadingInstance.show === 'function') {
|
|
@@ -49,6 +49,7 @@ export function useBuildInData(messageTipInstance, loadingInstance) {
|
|
|
49
49
|
if (ret.data.success) {
|
|
50
50
|
// pageConfig.value = normalPageConfigs(mock)
|
|
51
51
|
pageConfig.value = normalPageConfigs(ret.data.result)
|
|
52
|
+
cb(pageConfig.value)
|
|
52
53
|
getSelects(ret.data.result?.pmBusinessIdentityVO?.tenantId)
|
|
53
54
|
return
|
|
54
55
|
}
|
package/src/index.jsx
CHANGED
|
@@ -88,8 +88,9 @@ export default {
|
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
setup(props, { emit, attrs, expose }) {
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
const rootStore = reactive({})
|
|
92
|
+
const nativeDataLoad = ref(false)
|
|
93
|
+
const axiosInstance = ref(props.axiosInstance)
|
|
93
94
|
watch(() => {
|
|
94
95
|
return props.axiosConfig
|
|
95
96
|
}, (val) => {
|
|
@@ -101,8 +102,10 @@ export default {
|
|
|
101
102
|
}, {
|
|
102
103
|
immediate: true
|
|
103
104
|
})
|
|
105
|
+
watch(rootStore, () => {
|
|
106
|
+
emit('rootStoreChange', rootStore)
|
|
107
|
+
}, { immediate: true })
|
|
104
108
|
|
|
105
|
-
|
|
106
109
|
const dataLoad = computed(() => {
|
|
107
110
|
return props.dataLoad || nativeDataLoad.value
|
|
108
111
|
})
|
|
@@ -152,7 +155,6 @@ export default {
|
|
|
152
155
|
axiosInstance,
|
|
153
156
|
reqData: props.loadEvnetsReq,
|
|
154
157
|
respCb: (result) => {
|
|
155
|
-
debugger
|
|
156
158
|
nativeDataLoad.value = true
|
|
157
159
|
emit('update:modelValue', result)
|
|
158
160
|
emit('loadEvnetsCompleted', result)
|
|
@@ -161,6 +163,7 @@ export default {
|
|
|
161
163
|
)
|
|
162
164
|
})
|
|
163
165
|
|
|
166
|
+
provide('_rootStore', rootStore)
|
|
164
167
|
provide('_messageInstance', toRef(props, 'messageInstance'))
|
|
165
168
|
provide('_loadingInstance', toRef(props, 'loadingInstance'))
|
|
166
169
|
provide('_getNativeComps', props.getNativeComps)
|
package/src/resolver-common.vue
CHANGED
|
@@ -32,6 +32,9 @@ getPageConfig({
|
|
|
32
32
|
busiIdentityId: props.busiIdentityId,
|
|
33
33
|
queryPageMeta: '1',
|
|
34
34
|
queryPageService: '1',
|
|
35
|
+
}, (pageConfig) => {
|
|
36
|
+
// 数据加载完成事件 'loadedConfigCompeted'
|
|
37
|
+
attrs.onLoadedConfigCompeted(pageConfig)
|
|
35
38
|
})
|
|
36
39
|
const allSelects = computed(() => {
|
|
37
40
|
return {
|
package/src/utils/render.jsx
CHANGED
|
@@ -204,7 +204,7 @@ export function normalConfig({
|
|
|
204
204
|
pageConfig.type = 'daterange'
|
|
205
205
|
}
|
|
206
206
|
if (config.metaType == 'card') {
|
|
207
|
-
pageConfig.needWrap = '
|
|
207
|
+
pageConfig.needWrap = '1'
|
|
208
208
|
}
|
|
209
209
|
mapComp[hireRelat] = pageConfig
|
|
210
210
|
parsePolyfillConfigs({ polyfillConfigs, instance }, pageConfig)
|
|
@@ -213,20 +213,20 @@ export function normalConfig({
|
|
|
213
213
|
const tabsServices = getTableServices(pageConfig.lcpPageServiceMapVOList, {dynamicMapComp: mapComp, dynamicMapCompKeys: Object.keys(mapComp), hireRelat})
|
|
214
214
|
tabsServices.forEach((({tableConfig, service}) => {
|
|
215
215
|
tableConfig.currentChange = (val, props, page) => {
|
|
216
|
-
setTimeout(() => {
|
|
216
|
+
// setTimeout(() => {
|
|
217
217
|
const dynamicMapComp = props.config.dynamicMapComp
|
|
218
218
|
const dynamicMapCompKeys = Object.keys(dynamicMapComp)
|
|
219
219
|
const dynamicHireRelat = props.config.dynamicHireRelat
|
|
220
220
|
dispatchClickEvent(service, { dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat, rootValue, axiosInstance, messageInstance })
|
|
221
|
-
}, 0);
|
|
221
|
+
// }, 0);
|
|
222
222
|
}
|
|
223
223
|
tableConfig.sizeChange = (val, props, page) => {
|
|
224
|
-
setTimeout(() => {
|
|
224
|
+
// setTimeout(() => {
|
|
225
225
|
const dynamicMapComp = props.config.dynamicMapComp
|
|
226
226
|
const dynamicMapCompKeys = Object.keys(dynamicMapComp)
|
|
227
227
|
const dynamicHireRelat = props.config.dynamicHireRelat
|
|
228
228
|
dispatchClickEvent(service, { dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat, rootValue, axiosInstance, messageInstance })
|
|
229
|
-
}, 0);
|
|
229
|
+
// }, 0);
|
|
230
230
|
}
|
|
231
231
|
}))
|
|
232
232
|
})
|