resolver-egretimp-plus 0.0.77 → 0.0.79
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 +134 -134
- package/dist/web/index.js +13 -13
- package/package.json +1 -1
- package/src/components/childDialog/src/index.vue +3 -0
- package/src/components/helper/eventOrchestration.js +1 -1
- package/src/components/packages-H5/CustomComponentCollapseH5.vue +2 -2
- package/src/components/packages-web/CustomComponentTable.jsx +5 -2
- package/src/components/styles/CustomComponenTable.scss +4 -3
- package/src/index.jsx +6 -3
- package/src/utils/common.js +8 -2
- package/src/utils/valid.js +1 -1
package/package.json
CHANGED
|
@@ -46,7 +46,7 @@ export async function dispatchClickEvent(service, { dynamicMapComp, requestTrace
|
|
|
46
46
|
delete reqConfig.data
|
|
47
47
|
}
|
|
48
48
|
const ret = await (axiosInstance && axiosInstance(reqConfig))
|
|
49
|
-
if (!resultToast(ret?.data, messageInstance, {messageCb, service, compConfig})) {
|
|
49
|
+
if (!resultToast(ret?.data, messageInstance, {messageCb, service, compConfig, noSuccessIip: httpMethod.toLocaleLowerCase() === 'get'})) {
|
|
50
50
|
await Promise.reject()
|
|
51
51
|
return
|
|
52
52
|
}
|
|
@@ -28,10 +28,10 @@ const pmPageMetaList = computed(() => {
|
|
|
28
28
|
return props.config?.pmPageMetaList?.filter(item => !item.collapseSlot) || []
|
|
29
29
|
})
|
|
30
30
|
const showCollapseBtn = computed(() => {
|
|
31
|
-
return pmPageMetaList.value.filter(item => item.displayType != DISPLAY_HIDDEN)?.length > collapseLimt
|
|
31
|
+
return pmPageMetaList.value.filter(item => item.displayType != DISPLAY_HIDDEN && item.hidden != '1')?.length > collapseLimt
|
|
32
32
|
})
|
|
33
33
|
const showPageMeteList = computed(() => {
|
|
34
|
-
return pmPageMetaList.value.filter(item => item.displayType != DISPLAY_HIDDEN).slice(0, isCollapse.value ? collapseLimt : Number.MAX_VALUE)
|
|
34
|
+
return pmPageMetaList.value.filter(item => item.displayType != DISPLAY_HIDDEN && item.hidden != '1').slice(0, isCollapse.value ? collapseLimt : Number.MAX_VALUE)
|
|
35
35
|
})
|
|
36
36
|
const collapseLabel = computed(() => {
|
|
37
37
|
const isCh = lang?.value?.indexOf('zh') > -1
|
|
@@ -129,7 +129,7 @@ export default {
|
|
|
129
129
|
// 获取表格列的属性配置
|
|
130
130
|
const getTableColumnProps = (config, idx) => {
|
|
131
131
|
const nextList = tableColumnConfigs.value.slice(idx + 1)
|
|
132
|
-
const nextConfig = nextList.find(config => config.displayType
|
|
132
|
+
const nextConfig = nextList.find(config => config.displayType != DISPLAY_HIDDEN)
|
|
133
133
|
const props = Object.keys(ElTableColumn.props).reduce((ret, key) => {
|
|
134
134
|
if (hasOwn(config, key)) {
|
|
135
135
|
ret[key] = config[key]
|
|
@@ -146,7 +146,7 @@ export default {
|
|
|
146
146
|
props.className = 'hidden-column'
|
|
147
147
|
props.width = '1px'
|
|
148
148
|
}
|
|
149
|
-
if (nextConfig && (nextConfig.width == 0 || nextConfig.width == '0px')) {
|
|
149
|
+
if (nextConfig && (nextConfig.width == 0 || nextConfig.width == '0px' || nextConfig.hidden == '1')) {
|
|
150
150
|
props.className = `${props.className || ''} next-hidden-column`
|
|
151
151
|
}
|
|
152
152
|
if (isPlainColumn({...config, isColumn: true}, calcDisable(config, props.mode))) {
|
|
@@ -216,6 +216,9 @@ export default {
|
|
|
216
216
|
watch(() => {
|
|
217
217
|
return tableData?.value?.length
|
|
218
218
|
}, (length) => {
|
|
219
|
+
// if (props.config.metaCode == 'solutionSupports') {
|
|
220
|
+
// debugger
|
|
221
|
+
// }
|
|
219
222
|
let list = []
|
|
220
223
|
if (length) {
|
|
221
224
|
const newVal = tableData?.value
|
|
@@ -114,12 +114,13 @@
|
|
|
114
114
|
margin-top: 16px;
|
|
115
115
|
}
|
|
116
116
|
.hidden-column {
|
|
117
|
-
|
|
117
|
+
border: none;
|
|
118
|
+
// display: none;
|
|
118
119
|
}
|
|
119
120
|
.hidden-column + .el-table__cell {
|
|
120
|
-
border: none;
|
|
121
|
+
// border: none;
|
|
121
122
|
}
|
|
122
123
|
.next-hidden-column {
|
|
123
|
-
border: none;
|
|
124
|
+
// border: none;
|
|
124
125
|
}
|
|
125
126
|
}
|
package/src/index.jsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { provide, toRef, watch, computed, ref, defineExpose, reactive, getCurrentInstance } from "vue"
|
|
1
|
+
import { provide, toRef, watch, computed, ref, defineExpose, reactive, getCurrentInstance, toRaw } from "vue"
|
|
2
2
|
import Renderer from './renderer.jsx'
|
|
3
3
|
// import './style/index.scss'
|
|
4
4
|
import { usePageConfig } from './hooks/pageConfig'
|
|
@@ -6,6 +6,7 @@ import { toValidate } from './utils/valid.js'
|
|
|
6
6
|
import { MODE } from "./utils/const.js"
|
|
7
7
|
import { generateRequester } from "./utils/request.js"
|
|
8
8
|
import { executeLoadServices } from "./components/helper/resolver.js"
|
|
9
|
+
import { deepMerge } from "./utils/index.js"
|
|
9
10
|
export default {
|
|
10
11
|
name: 'Resolver',
|
|
11
12
|
props: {
|
|
@@ -168,7 +169,8 @@ export default {
|
|
|
168
169
|
reqData: props.loadEvnetsReq,
|
|
169
170
|
respCb: (result) => {
|
|
170
171
|
nativeDataLoad.value = true
|
|
171
|
-
|
|
172
|
+
const val = deepMerge(props.modelValue, result, 'replace')
|
|
173
|
+
emit('update:modelValue', val)
|
|
172
174
|
emit('loadEvnetsCompleted', result)
|
|
173
175
|
}
|
|
174
176
|
}
|
|
@@ -197,7 +199,8 @@ export default {
|
|
|
197
199
|
reqData: props.loadEvnetsReq,
|
|
198
200
|
respCb: (result) => {
|
|
199
201
|
nativeDataLoad.value = true
|
|
200
|
-
|
|
202
|
+
const val = deepMerge(props.modelValue, result, 'replace')
|
|
203
|
+
emit('update:modelValue', val)
|
|
201
204
|
emit('loadEvnetsCompleted', result)
|
|
202
205
|
}
|
|
203
206
|
}
|
package/src/utils/common.js
CHANGED
|
@@ -168,7 +168,13 @@ export function deepMerge(
|
|
|
168
168
|
if (!source) {
|
|
169
169
|
return target;
|
|
170
170
|
}
|
|
171
|
-
let ret = mergeWith(
|
|
171
|
+
let ret = mergeWith(source, target, (sourceValue, targetValue) => {
|
|
172
|
+
if (!targetValue) {
|
|
173
|
+
return sourceValue
|
|
174
|
+
}
|
|
175
|
+
if (!sourceValue) {
|
|
176
|
+
return targetValue
|
|
177
|
+
}
|
|
172
178
|
if (isArray(targetValue) && isArray(sourceValue)) {
|
|
173
179
|
switch (mergeArrays) {
|
|
174
180
|
case 'union':
|
|
@@ -186,7 +192,7 @@ export function deepMerge(
|
|
|
186
192
|
if (isPlainObject(targetValue) && isPlainObject(sourceValue)) {
|
|
187
193
|
return deepMerge(sourceValue, targetValue, mergeArrays);
|
|
188
194
|
}
|
|
189
|
-
return
|
|
195
|
+
return targetValue;
|
|
190
196
|
});
|
|
191
197
|
if (Array.isArray(source)) {
|
|
192
198
|
if (ret && !Array.isArray(ret)) {
|
package/src/utils/valid.js
CHANGED
|
@@ -40,7 +40,7 @@ function validFailAction(errInfo, dynamicMapComp) {
|
|
|
40
40
|
// 标签组件,需要进行聚焦当前页面
|
|
41
41
|
// component组件,需要打开折叠
|
|
42
42
|
function validFail(config, nextConfig) {
|
|
43
|
-
const type = config.metaType
|
|
43
|
+
const type = config.renderby || config.metaType
|
|
44
44
|
switch (type) {
|
|
45
45
|
case 'CustomComponentTabPane':
|
|
46
46
|
case 'CustomComponentCycleTabPane':
|