resolver-egretimp-plus 0.0.35 → 0.0.36
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/h5/index.js +1 -1
- package/dist/web/index.js +1 -1
- package/package.json +1 -1
- package/src/components/helper/button.js +18 -14
- package/src/hooks/pageConfig.js +1 -1
package/package.json
CHANGED
|
@@ -48,18 +48,20 @@ function getReqData(inParamMappingList = [], {dynamicMapComp, dynamicMapCompKeys
|
|
|
48
48
|
console.error('search arg muti', params, configCodes)
|
|
49
49
|
}
|
|
50
50
|
const configCode = configCodes[0]
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
currentObj[item]
|
|
51
|
+
if (configCode) {
|
|
52
|
+
const destParamArr = destParam?.split('.') || []
|
|
53
|
+
let currentObj = ret
|
|
54
|
+
destParamArr.forEach((item, idx) => {
|
|
55
|
+
if (idx + 1 === destParamArr.length) {
|
|
56
|
+
currentObj[item] = dynamicMapComp[configCode]?.refValue
|
|
57
|
+
} else {
|
|
58
|
+
if (!currentObj[item]) {
|
|
59
|
+
currentObj[item] = {}
|
|
60
|
+
}
|
|
61
|
+
currentObj = currentObj[item]
|
|
59
62
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
})
|
|
63
|
+
})
|
|
64
|
+
}
|
|
63
65
|
return ret
|
|
64
66
|
}, {})
|
|
65
67
|
}
|
|
@@ -94,9 +96,11 @@ export function getTableConfig(outParamMappingList = [], { dynamicMapComp, dynam
|
|
|
94
96
|
console.error('search arg muti', params, configCodes)
|
|
95
97
|
}
|
|
96
98
|
const configCode = configCodes[0]
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
if (configCode) {
|
|
100
|
+
const compConfig = dynamicMapComp[configCode]
|
|
101
|
+
if (compConfig.metaType === 'CustomComponentTable') {
|
|
102
|
+
return compConfig
|
|
103
|
+
}
|
|
100
104
|
}
|
|
101
105
|
}
|
|
102
106
|
}
|
package/src/hooks/pageConfig.js
CHANGED
|
@@ -47,7 +47,7 @@ export function useBuildInData(messageTipInstance, loadingInstance) {
|
|
|
47
47
|
loadingInstance.show()
|
|
48
48
|
}
|
|
49
49
|
buildInRequest(QUERY_PAGE_CONFIG_DATA, reqData).then(ret => {
|
|
50
|
-
if (resultToast(ret.data, messageTipInstance)) {
|
|
50
|
+
if (resultToast(ret.data, messageTipInstance, { noSuccessIip: true })) {
|
|
51
51
|
// pageConfig.value = normalPageConfigs(mock)
|
|
52
52
|
pageConfig.value = normalPageConfigs(ret.data.result)
|
|
53
53
|
cb(pageConfig.value)
|