resolver-egretimp-plus 0.0.31 → 0.0.33
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 -5
- package/src/components/packages-web/ElSelect.vue +2 -2
- package/src/hooks/mock.js +313 -2503
- package/src/hooks/pageConfig.js +4 -3
- 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 +4 -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') {
|
|
@@ -47,8 +47,9 @@ export function useBuildInData(messageTipInstance, loadingInstance) {
|
|
|
47
47
|
}
|
|
48
48
|
buildInRequest(QUERY_PAGE_CONFIG_DATA, reqData).then(ret => {
|
|
49
49
|
if (ret.data.success) {
|
|
50
|
-
pageConfig.value = normalPageConfigs(mock)
|
|
51
|
-
|
|
50
|
+
// pageConfig.value = normalPageConfigs(mock)
|
|
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
|
@@ -213,21 +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(() => {
|
|
217
|
-
debugger
|
|
216
|
+
// setTimeout(() => {
|
|
218
217
|
const dynamicMapComp = props.config.dynamicMapComp
|
|
219
218
|
const dynamicMapCompKeys = Object.keys(dynamicMapComp)
|
|
220
219
|
const dynamicHireRelat = props.config.dynamicHireRelat
|
|
221
220
|
dispatchClickEvent(service, { dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat, rootValue, axiosInstance, messageInstance })
|
|
222
|
-
}, 0);
|
|
221
|
+
// }, 0);
|
|
223
222
|
}
|
|
224
223
|
tableConfig.sizeChange = (val, props, page) => {
|
|
225
|
-
setTimeout(() => {
|
|
224
|
+
// setTimeout(() => {
|
|
226
225
|
const dynamicMapComp = props.config.dynamicMapComp
|
|
227
226
|
const dynamicMapCompKeys = Object.keys(dynamicMapComp)
|
|
228
227
|
const dynamicHireRelat = props.config.dynamicHireRelat
|
|
229
228
|
dispatchClickEvent(service, { dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat, rootValue, axiosInstance, messageInstance })
|
|
230
|
-
}, 0);
|
|
229
|
+
// }, 0);
|
|
231
230
|
}
|
|
232
231
|
}))
|
|
233
232
|
})
|