resolver-egretimp-plus 0.0.77 → 0.0.78
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 +2 -1
- package/src/utils/valid.js +3 -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
|
@@ -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: {
|
|
@@ -197,7 +198,7 @@ export default {
|
|
|
197
198
|
reqData: props.loadEvnetsReq,
|
|
198
199
|
respCb: (result) => {
|
|
199
200
|
nativeDataLoad.value = true
|
|
200
|
-
emit('update:modelValue', result)
|
|
201
|
+
emit('update:modelValue', deepMerge(props.modelValue, result, 'replace') )
|
|
201
202
|
emit('loadEvnetsCompleted', result)
|
|
202
203
|
}
|
|
203
204
|
}
|
package/src/utils/valid.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export function toValidate(formRef, cb, dynamicMapComp) {
|
|
2
2
|
if (!cb) {
|
|
3
3
|
return formRef.value && formRef.value.validate().catch(err => {
|
|
4
|
+
debugger
|
|
4
5
|
validFailAction(err, dynamicMapComp)
|
|
5
6
|
return Promise.reject(err)
|
|
6
7
|
})
|
|
7
8
|
}
|
|
8
9
|
return formRef.value && formRef.value.validate((valid, errInfo) => {
|
|
10
|
+
debugger
|
|
9
11
|
errInfo && validFailAction(errInfo, dynamicMapComp)
|
|
10
12
|
cb && cb(valid, errInfo)
|
|
11
13
|
})
|
|
@@ -40,7 +42,7 @@ function validFailAction(errInfo, dynamicMapComp) {
|
|
|
40
42
|
// 标签组件,需要进行聚焦当前页面
|
|
41
43
|
// component组件,需要打开折叠
|
|
42
44
|
function validFail(config, nextConfig) {
|
|
43
|
-
const type = config.metaType
|
|
45
|
+
const type = config.renderby || config.metaType
|
|
44
46
|
switch (type) {
|
|
45
47
|
case 'CustomComponentTabPane':
|
|
46
48
|
case 'CustomComponentCycleTabPane':
|