resolver-egretimp-plus 0.0.46 → 0.0.47
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/theme/element/index.css +1 -1
- package/dist/theme/element/src/components/collapse.scss +98 -10
- package/dist/theme/element/src/components/common.scss +12 -0
- package/dist/theme/element/src/components/dialog.scss +42 -0
- package/dist/theme/element/src/components/index.scss +1 -0
- package/dist/theme/element/src/components/tabs.scss +10 -0
- package/dist/theme/element/src/index.scss +0 -63
- package/dist/web/index.js +1 -1
- package/package.json +1 -1
- package/scripts/webpack.config.js +3 -1
- package/src/components/childDialog/src/index.vue +25 -18
- package/src/components/helper/eventOrchestration.js +7 -1
- package/src/components/packages-web/CustomComponentCol.vue +0 -1
- package/src/components/packages-web/CustomComponentCollapse.vue +2 -70
- package/src/components/packages-web/CustomComponentRow.vue +1 -3
- package/src/components/packages-web/CustomComponentTable.jsx +1 -1
- package/src/components/styles/CustomComponenTable.scss +1 -1
- package/src/theme/element/components/collapse.scss +98 -10
- package/src/theme/element/components/common.scss +12 -0
- package/src/theme/element/components/dialog.scss +42 -0
- package/src/theme/element/components/index.scss +1 -0
- package/src/theme/element/components/tabs.scss +10 -0
- package/src/theme/element/index.scss +0 -63
- package/src/utils/const.js +5 -1
- package/src/utils/render.jsx +2 -2
- package/src/utils/respone.js +10 -4
package/package.json
CHANGED
|
@@ -80,7 +80,9 @@ module.exports = {
|
|
|
80
80
|
'@element-plus/icons-vue': '@element-plus/icons-vue',
|
|
81
81
|
'element-plus/es/components/icon/index.mjs': 'element-plus/es/components/icon/index.mjs',
|
|
82
82
|
'element-plus/es/constants/index.mjs': 'element-plus/es/constants/index.mjs',
|
|
83
|
-
'element-plus/es/utils/index.mjs': 'element-plus/es/utils/index.mjs'
|
|
83
|
+
'element-plus/es/utils/index.mjs': 'element-plus/es/utils/index.mjs',
|
|
84
|
+
'element-plus/es/locale/lang/zh-cn': 'element-plus/es/locale/lang/zh-cn',
|
|
85
|
+
'element-plus/es/locale/lang/en': 'element-plus/es/locale/lang/en'
|
|
84
86
|
},
|
|
85
87
|
externalsType: 'module',
|
|
86
88
|
experiments: {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed, defineAsyncComponent, ref } from 'vue';
|
|
3
3
|
import { ElDialog } from 'element-plus';
|
|
4
|
+
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
|
5
|
+
import en from 'element-plus/es/locale/lang/en'
|
|
4
6
|
const Resolver = defineAsyncComponent(() => import('../../../resolver-web.vue'))
|
|
5
7
|
|
|
6
8
|
const props = defineProps({
|
|
@@ -38,6 +40,9 @@ const rootOptionComp = ref({})
|
|
|
38
40
|
const dialogHeight = computed(() => {
|
|
39
41
|
return rootOptionComp.value?.widgetHeight
|
|
40
42
|
})
|
|
43
|
+
const locale = computed(() => {
|
|
44
|
+
return props.lang?.indexOf('zh') > -1 ? zhCn : en
|
|
45
|
+
})
|
|
41
46
|
const dialogWidth = computed(() => {
|
|
42
47
|
return rootOptionComp.value?.widgetWidth
|
|
43
48
|
})
|
|
@@ -58,24 +63,26 @@ defineExpose({
|
|
|
58
63
|
})
|
|
59
64
|
</script>
|
|
60
65
|
<template>
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
66
|
+
<ElConfigProvider :locale="locale">
|
|
67
|
+
<ElDialog class="open-child-frame" v-model="dialogVisible"
|
|
68
|
+
:style="dialogStyle"
|
|
69
|
+
:close-on-click-modal="false" :width="dialogWidth"
|
|
70
|
+
>
|
|
71
|
+
<div>
|
|
72
|
+
</div>
|
|
73
|
+
<Resolver v-if="dialogVisible" ref="resolverRef"
|
|
74
|
+
@loadedConfigCompeted="loadedConfigCompeted"
|
|
75
|
+
@rootStoreChange="rootStoreChange"
|
|
76
|
+
v-model="formData"
|
|
77
|
+
:busiIdentityId="busiIdentityId"
|
|
78
|
+
:lang="props.lang"
|
|
79
|
+
:loadEvnetsReq="props.loadEvnetsReq"
|
|
80
|
+
:polyfillConfigs="props.polyfillConfigs"
|
|
81
|
+
:axiosInstance="props.axiosInstance"
|
|
82
|
+
:axiosConfig="props.axiosConfig"
|
|
83
|
+
></Resolver>
|
|
84
|
+
</ElDialog>
|
|
85
|
+
</ElConfigProvider>
|
|
79
86
|
</template>
|
|
80
87
|
|
|
81
88
|
<style lang="scss">
|
|
@@ -128,9 +128,10 @@ export function openDailg({
|
|
|
128
128
|
const reqData = getReqData(pagePopupMap.inParamMappingList || [], {dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat})
|
|
129
129
|
|
|
130
130
|
const outParamMappingList = pagePopupMap?.outParamMappingList?.map(item => {
|
|
131
|
+
const orignParamArr = item.orignParam ? item.orignParam.split('->') : []
|
|
131
132
|
return {
|
|
132
133
|
...item,
|
|
133
|
-
orignParam: item.orignParam ?
|
|
134
|
+
orignParam: item.orignParam ? orignParamArr[orignParamArr.length - 1] : ''
|
|
134
135
|
}
|
|
135
136
|
}) || []
|
|
136
137
|
|
|
@@ -231,6 +232,11 @@ export async function executeDataValid(validConfig, { dynamicMapComp, mixinServi
|
|
|
231
232
|
})
|
|
232
233
|
}
|
|
233
234
|
|
|
235
|
+
function closePage() {
|
|
236
|
+
// window?.close()
|
|
237
|
+
// window?.history?.back()
|
|
238
|
+
}
|
|
239
|
+
|
|
234
240
|
export async function executeEventOrchestration({props, axiosInstance, rootValue, confirmInstance, dynamicMapComp, messageInstance, openChildDialog, messageCb, lang, appContext } = {}) {
|
|
235
241
|
const lcpPageRuleVOLis = props.config?.lcpPageRuleVOList || []
|
|
236
242
|
const PageServiceMapVOList = props.config.lcpPageServiceMapVOList || []
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<component :is="component"
|
|
2
|
+
<component :is="component" class="standard-wrap" v-bind="{...componentProps, ...attrs}">
|
|
3
3
|
<ElCollapse v-bind="{...collapseProps}" :class="collapseClass" v-model="activeNames">
|
|
4
4
|
<ElCollapseItem v-bind="collapseItemProps" >
|
|
5
5
|
<template #title>
|
|
@@ -93,7 +93,7 @@ const activeNames = computed({
|
|
|
93
93
|
})
|
|
94
94
|
|
|
95
95
|
</script>
|
|
96
|
-
<style lang="scss">
|
|
96
|
+
<style lang="scss" scoped>
|
|
97
97
|
.collapge-slot-title {
|
|
98
98
|
display: flex;
|
|
99
99
|
justify-content: space-between;
|
|
@@ -112,72 +112,4 @@ const activeNames = computed({
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
.not-wrap-border {
|
|
116
|
-
&.el-collapse {
|
|
117
|
-
border-top: none;
|
|
118
|
-
border-bottom: none;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
</style>
|
|
122
|
-
<style lang="scss">
|
|
123
|
-
// 配置被包裹的一层样式
|
|
124
|
-
.standard-wrap {
|
|
125
|
-
box-sizing: border-box;
|
|
126
|
-
}
|
|
127
|
-
.custom-component-collapse {
|
|
128
|
-
.el-collapse-item__wrap, .el-collapse-item__header {
|
|
129
|
-
border-bottom: none;
|
|
130
|
-
&::before {
|
|
131
|
-
display: none;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
.el-collapse-item__wrap {
|
|
135
|
-
overflow: none;
|
|
136
|
-
}
|
|
137
|
-
.el-collapse-item {
|
|
138
|
-
position: relative;
|
|
139
|
-
&::after {
|
|
140
|
-
content: "";
|
|
141
|
-
display: block;
|
|
142
|
-
position: absolute;
|
|
143
|
-
width: 100%;
|
|
144
|
-
bottom: 0;
|
|
145
|
-
left: 0;
|
|
146
|
-
height: 1px;
|
|
147
|
-
background-color: #d0d3d6;
|
|
148
|
-
// margin-bottom: var(--prmary-marign);
|
|
149
|
-
}
|
|
150
|
-
.el-collapse-item__content {
|
|
151
|
-
& > .el-row {
|
|
152
|
-
> .el-col {
|
|
153
|
-
&:last-child {
|
|
154
|
-
& > .el-form-item {
|
|
155
|
-
margin-bottom: 24px;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
.el-collapse-item__arrow {
|
|
163
|
-
font-size: 16px;
|
|
164
|
-
color: #646A73;
|
|
165
|
-
svg path {
|
|
166
|
-
d: path("M 338.752 104.704 a 64 64 0 0 0 0 90.496 l 316.8 316.8 l -316.8 316.8 a 64 64 0 0 0 90.496 90.496 l 362.048 -362.048 a 64 64 0 0 0 0 -90.496 L 429.248 104.704 a 64 64 0 0 0 -90.496 0 Z");
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
.el-collapse-item__content {
|
|
170
|
-
.el-tabs {
|
|
171
|
-
margin-right: 16px;
|
|
172
|
-
margin-bottom: 16px;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
.underline-hidden {
|
|
177
|
-
.el-collapse-item {
|
|
178
|
-
&::after {
|
|
179
|
-
display: none;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
115
|
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ElRow class="custom-component-row" :class="classRef" v-bind="{...
|
|
2
|
+
<ElRow class="custom-component-row" :class="classRef" v-bind="{...attrs, ...elRowProps}">
|
|
3
3
|
<Renderer :config="pmPageMetaList" v-model="props.refValue.value"></Renderer>
|
|
4
4
|
</ElRow>
|
|
5
5
|
</template>
|
|
@@ -22,7 +22,6 @@ const elRowProps = computed(() => {
|
|
|
22
22
|
}, {})
|
|
23
23
|
})
|
|
24
24
|
const attrs = useAttrs()
|
|
25
|
-
|
|
26
25
|
const classRef = computed(() => {
|
|
27
26
|
return {
|
|
28
27
|
'clear-right-margin': !reserveRightMargin.value,
|
|
@@ -44,7 +43,6 @@ const reserveBottomMargin = computed(() => {
|
|
|
44
43
|
</script>
|
|
45
44
|
<style lang="scss">
|
|
46
45
|
.custom-component-row {
|
|
47
|
-
width: 100%;
|
|
48
46
|
.el-col {
|
|
49
47
|
& > .el-form-item {
|
|
50
48
|
}
|
|
@@ -360,7 +360,7 @@ export default {
|
|
|
360
360
|
<ElTable {...tableProps.value} {...tableEvents}
|
|
361
361
|
ref={(e) => {tableRef.value = e}}
|
|
362
362
|
highlight-current-row={selectable.value || tableProps.value?.highlightCurrentRow ? true : false}
|
|
363
|
-
onCurrentChange={selectable.value ? currentChange : () => {}}
|
|
363
|
+
onCurrentChange={selectable.value || tableProps.value?.highlightCurrentRow ? currentChange : () => {}}
|
|
364
364
|
data={[...(props.refValue.value || []), ...totalRow.value]}
|
|
365
365
|
onSelectionChange={handleSelectionChange}
|
|
366
366
|
>
|
|
@@ -1,16 +1,104 @@
|
|
|
1
|
+
@import "./common.scss";not-wrap-border
|
|
1
2
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
// 配置被包裹的一层样式
|
|
4
|
+
.standard-wrap {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
7
|
+
.CustomComponentCollapse {
|
|
8
|
+
.el-collapse {
|
|
9
|
+
--el-collapse-header-height: 22px;
|
|
10
|
+
--el-collapse-header-font-size: 14px;
|
|
11
|
+
// margin-bottom: var(--prmary-marign);
|
|
12
|
+
.el-collapse-item__header {
|
|
13
|
+
padding-bottom: 12px;
|
|
14
|
+
box-sizing: content-box;
|
|
15
|
+
}
|
|
16
|
+
.el-collapse-item__content {
|
|
17
|
+
padding-bottom: 0;
|
|
18
|
+
}
|
|
19
|
+
.el-collapse-item__wrap {
|
|
20
|
+
margin-right: calc(var(--prmary-marign) - var(--prmary-marign) * 2);
|
|
21
|
+
}
|
|
9
22
|
}
|
|
10
|
-
|
|
11
|
-
|
|
23
|
+
|
|
24
|
+
.el-collapse-item__wrap, .el-collapse-item__header {
|
|
25
|
+
border-bottom: none;
|
|
26
|
+
&::before {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
12
29
|
}
|
|
13
30
|
.el-collapse-item__wrap {
|
|
14
|
-
|
|
31
|
+
overflow: none;
|
|
32
|
+
}
|
|
33
|
+
.el-collapse-item {
|
|
34
|
+
position: relative;
|
|
35
|
+
&::after {
|
|
36
|
+
content: "";
|
|
37
|
+
display: block;
|
|
38
|
+
position: absolute;
|
|
39
|
+
width: 100%;
|
|
40
|
+
bottom: 0;
|
|
41
|
+
left: 0;
|
|
42
|
+
height: 1px;
|
|
43
|
+
background-color: #d0d3d6;
|
|
44
|
+
// margin-bottom: var(--prmary-marign);
|
|
45
|
+
}
|
|
46
|
+
.el-collapse-item__content {
|
|
47
|
+
& > .el-row {
|
|
48
|
+
> .el-col {
|
|
49
|
+
&:last-child {
|
|
50
|
+
& > .el-form-item {
|
|
51
|
+
margin-bottom: 24px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
.el-collapse-item__arrow {
|
|
59
|
+
font-size: 16px;
|
|
60
|
+
color: #646A73;
|
|
61
|
+
svg path {
|
|
62
|
+
d: path("M 338.752 104.704 a 64 64 0 0 0 0 90.496 l 316.8 316.8 l -316.8 316.8 a 64 64 0 0 0 90.496 90.496 l 362.048 -362.048 a 64 64 0 0 0 0 -90.496 L 429.248 104.704 a 64 64 0 0 0 -90.496 0 Z");
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
.el-collapse-item__content {
|
|
66
|
+
@include nestMargin
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.el-collapse-item__arrow {
|
|
70
|
+
margin-right: 0;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.CustomComponentCollapse:first-child {
|
|
75
|
+
margin-bottom: 12px;
|
|
76
|
+
}
|
|
77
|
+
.CustomComponentCollapse + .CustomComponentCollapse {
|
|
78
|
+
margin-bottom: 12px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.CustomComponentCollapse.is-card:first-child {
|
|
82
|
+
margin-bottom: 16px;
|
|
83
|
+
}
|
|
84
|
+
.CustomComponentCollapse.is-card + .CustomComponentCollapse.is-card {
|
|
85
|
+
margin-bottom: 16px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// 加权
|
|
89
|
+
.CustomComponentCollapse.CustomComponentCollapse.CustomComponentCollapse:last-child {
|
|
90
|
+
margin-bottom: 0;
|
|
91
|
+
}
|
|
92
|
+
.underline-hidden {
|
|
93
|
+
.el-collapse-item {
|
|
94
|
+
&::after {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
.not-wrap-border {
|
|
100
|
+
&.el-collapse {
|
|
101
|
+
border-top: none;
|
|
102
|
+
border-bottom: none;
|
|
15
103
|
}
|
|
16
104
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
// 组件弹框样式定义调整
|
|
3
|
+
.custom-component-dialog {
|
|
4
|
+
padding-top: 0px;
|
|
5
|
+
padding-bottom: 0;
|
|
6
|
+
|
|
7
|
+
.el-dialog__header {
|
|
8
|
+
display: none;
|
|
9
|
+
}
|
|
10
|
+
.el-dialog__body {
|
|
11
|
+
height: 100%;
|
|
12
|
+
.header {
|
|
13
|
+
line-height: 46px;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
font-weight: 500;
|
|
16
|
+
color: #1F2329;
|
|
17
|
+
}
|
|
18
|
+
.content {
|
|
19
|
+
height: 100%;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
// .el-scrollbar__wrap {
|
|
22
|
+
// overflow-x: hidden;
|
|
23
|
+
// }
|
|
24
|
+
// .is-horizontal {
|
|
25
|
+
// display: none;
|
|
26
|
+
// }
|
|
27
|
+
}
|
|
28
|
+
.footer {
|
|
29
|
+
height: 68px;
|
|
30
|
+
text-align: right;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
.dialog-footer {
|
|
33
|
+
margin-top: 16px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
&.el-dialog footer {
|
|
38
|
+
position: initial;
|
|
39
|
+
transform: none;
|
|
40
|
+
padding: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
|
|
2
|
+
@import "./common.scss";
|
|
3
|
+
|
|
2
4
|
.resolver-tabs {
|
|
3
5
|
// 这个是渲染器里面tabs
|
|
4
6
|
display: block;
|
|
@@ -69,4 +71,12 @@
|
|
|
69
71
|
border: none;
|
|
70
72
|
}
|
|
71
73
|
}
|
|
74
|
+
}
|
|
75
|
+
.CustomComponentTabs {
|
|
76
|
+
.el-tabs__content {
|
|
77
|
+
margin-right: -16px;
|
|
78
|
+
.el-tab-pane {
|
|
79
|
+
@include nestMargin
|
|
80
|
+
}
|
|
81
|
+
}
|
|
72
82
|
}
|
|
@@ -14,66 +14,3 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.CustomComponentCollapse:first-child {
|
|
18
|
-
margin-bottom: 12px;
|
|
19
|
-
}
|
|
20
|
-
.CustomComponentCollapse + .CustomComponentCollapse {
|
|
21
|
-
margin-bottom: 12px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.CustomComponentCollapse.is-card:first-child {
|
|
25
|
-
margin-bottom: 16px;
|
|
26
|
-
}
|
|
27
|
-
.CustomComponentCollapse.is-card + .CustomComponentCollapse.is-card {
|
|
28
|
-
margin-bottom: 16px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// 加权
|
|
32
|
-
.CustomComponentCollapse.CustomComponentCollapse.CustomComponentCollapse:last-child {
|
|
33
|
-
margin-bottom: 0;
|
|
34
|
-
}
|
|
35
|
-
.el-collapse-item__arrow {
|
|
36
|
-
margin-right: 0;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// 组件弹框样式定义调整
|
|
40
|
-
.custom-component-dialog {
|
|
41
|
-
padding-top: 0px;
|
|
42
|
-
padding-bottom: 0;
|
|
43
|
-
|
|
44
|
-
.el-dialog__header {
|
|
45
|
-
display: none;
|
|
46
|
-
}
|
|
47
|
-
.el-dialog__body {
|
|
48
|
-
height: 100%;
|
|
49
|
-
.header {
|
|
50
|
-
line-height: 46px;
|
|
51
|
-
font-size: 14px;
|
|
52
|
-
font-weight: 500;
|
|
53
|
-
color: #1F2329;
|
|
54
|
-
}
|
|
55
|
-
.content {
|
|
56
|
-
height: 100%;
|
|
57
|
-
box-sizing: border-box;
|
|
58
|
-
// .el-scrollbar__wrap {
|
|
59
|
-
// overflow-x: hidden;
|
|
60
|
-
// }
|
|
61
|
-
// .is-horizontal {
|
|
62
|
-
// display: none;
|
|
63
|
-
// }
|
|
64
|
-
}
|
|
65
|
-
.footer {
|
|
66
|
-
height: 68px;
|
|
67
|
-
text-align: right;
|
|
68
|
-
overflow: hidden;
|
|
69
|
-
.dialog-footer {
|
|
70
|
-
margin-top: 16px;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
&.el-dialog footer {
|
|
75
|
-
position: initial;
|
|
76
|
-
transform: none;
|
|
77
|
-
padding: 0;
|
|
78
|
-
}
|
|
79
|
-
}
|
package/src/utils/const.js
CHANGED
|
@@ -164,7 +164,11 @@ export const commonPropsType = {
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
export function calcDisable(config, mode) {
|
|
167
|
-
const
|
|
167
|
+
const specicesType = [
|
|
168
|
+
'CustomComponentTabs',
|
|
169
|
+
// 'CustomComponentTabPane' // 有需要需根据配置来进行配置是否禁用
|
|
170
|
+
]
|
|
171
|
+
const flag = isPatchComponent(specicesType, config) ?
|
|
168
172
|
false :
|
|
169
173
|
mode === MODE.LOG ?
|
|
170
174
|
(
|
package/src/utils/render.jsx
CHANGED
|
@@ -195,9 +195,9 @@ export function normalConfig({
|
|
|
195
195
|
}
|
|
196
196
|
const pageConfig = {
|
|
197
197
|
...extendObj,
|
|
198
|
-
...extendAttrObj,
|
|
199
198
|
...config,
|
|
200
|
-
...
|
|
199
|
+
...extendAttrObj,
|
|
200
|
+
...extendNativeObj,
|
|
201
201
|
}
|
|
202
202
|
if (config.metaType == 'textarea') {
|
|
203
203
|
pageConfig.type = 'textarea'
|
package/src/utils/respone.js
CHANGED
|
@@ -40,21 +40,27 @@ export function resultToast(result = {}, messageInstance, {messageCb, service, c
|
|
|
40
40
|
cbKey = 'error'
|
|
41
41
|
break;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
// transactionType
|
|
44
44
|
if (messageCb) {
|
|
45
45
|
if (isPromise(messageCb)) {
|
|
46
46
|
messageCb({resultMessage, result, resultCode, service, compConfig}).then(res => {
|
|
47
47
|
if (res === true) {
|
|
48
|
-
|
|
48
|
+
if (service?.transactionType === '2') {
|
|
49
|
+
messageInstance?.[cbKey]?.(resultMessage)
|
|
50
|
+
}
|
|
49
51
|
}
|
|
50
52
|
})
|
|
51
53
|
} else {
|
|
52
54
|
if (messageCb({resultMessage, result, resultCode, service, compConfig}) === true) {
|
|
53
|
-
|
|
55
|
+
if (service?.transactionType === '2') {
|
|
56
|
+
messageInstance?.[cbKey]?.(resultMessage)
|
|
57
|
+
}
|
|
54
58
|
}
|
|
55
59
|
}
|
|
56
60
|
} else {
|
|
57
|
-
|
|
61
|
+
if (service?.transactionType === '2') {
|
|
62
|
+
messageInstance?.[cbKey]?.(resultMessage)
|
|
63
|
+
}
|
|
58
64
|
}
|
|
59
65
|
return ret
|
|
60
66
|
}
|