resolver-egretimp-plus 0.1.20 → 0.1.22
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/button.scss +3 -1
- package/dist/theme/element/src/components/card.scss +1 -1
- package/dist/theme/element/src/components/collapse.scss +3 -1
- package/dist/theme/element/src/components/dialog.scss +2 -1
- package/dist/theme/element/src/components/tabs.scss +6 -0
- package/dist/web/index.js +2 -2
- package/package.json +1 -1
- package/src/components/childDialog/src/index.vue +8 -2
- package/src/rules/ruleUtils.js +1 -1
- package/src/theme/element/components/button.scss +3 -1
- package/src/theme/element/components/card.scss +1 -1
- package/src/theme/element/components/collapse.scss +3 -1
- package/src/theme/element/components/dialog.scss +2 -1
- package/src/theme/element/components/tabs.scss +6 -0
- package/src/utils/defaultVal.js +5 -4
package/package.json
CHANGED
|
@@ -162,13 +162,19 @@ defineExpose({
|
|
|
162
162
|
padding: 16px 20px 20px 20px;
|
|
163
163
|
overflow-y: auto;
|
|
164
164
|
overflow-x: hidden;
|
|
165
|
+
|
|
166
|
+
max-height: calc(100vh - 200px);
|
|
167
|
+
|
|
165
168
|
&.el-dialog {
|
|
166
|
-
margin-top:
|
|
167
|
-
margin-bottom:
|
|
169
|
+
margin-top: 100px !important;
|
|
170
|
+
margin-bottom: 100px;
|
|
168
171
|
}
|
|
169
172
|
.el-dialog__header {
|
|
170
173
|
--el-dialog-title-font-size: 16px;
|
|
171
174
|
min-height: 40px;
|
|
175
|
+
font-weight: 600;
|
|
176
|
+
}
|
|
177
|
+
.el-dialog__body {
|
|
172
178
|
}
|
|
173
179
|
&.hidden-head {
|
|
174
180
|
& > .el-dialog__header {
|
package/src/rules/ruleUtils.js
CHANGED
|
@@ -47,7 +47,7 @@ export function setFormVal(pathStr, val) {
|
|
|
47
47
|
configs.forEach(cg => {
|
|
48
48
|
if (hasOwn(cg, 'refValue')) {
|
|
49
49
|
if (cg.metaType === 'ElSelect') {
|
|
50
|
-
val = formatSelectVal({config, val: val})
|
|
50
|
+
val = formatSelectVal({config: cg, val: val, isActive: true})
|
|
51
51
|
}
|
|
52
52
|
cg.refValue = val
|
|
53
53
|
} else {
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
--el-button-text-color: #1F2329;
|
|
5
5
|
--el-font-size-base: 14px;
|
|
6
6
|
--el-font-weight-primary: 400;
|
|
7
|
+
|
|
8
|
+
padding: 5px 18px;
|
|
7
9
|
}
|
|
8
10
|
.el-button--large {
|
|
9
11
|
padding: 8px 12px;
|
|
@@ -20,7 +22,7 @@
|
|
|
20
22
|
}
|
|
21
23
|
.el-button--def {
|
|
22
24
|
--el-button-size: 32px;
|
|
23
|
-
padding:
|
|
25
|
+
padding: 5px 8px;
|
|
24
26
|
height: var(--el-button-size);
|
|
25
27
|
}
|
|
26
28
|
.el-button:hover {
|
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
--el-collapse-header-text-color: #1F2329;
|
|
12
12
|
// margin-bottom: var(--prmary-marign);
|
|
13
13
|
.el-collapse-item__header {
|
|
14
|
-
padding-bottom:
|
|
14
|
+
padding-bottom: 16px;
|
|
15
15
|
box-sizing: content-box;
|
|
16
|
+
height: unset;
|
|
17
|
+
max-height: var(--el-collapse-header-height);
|
|
16
18
|
}
|
|
17
19
|
.el-collapse-item__content {
|
|
18
20
|
padding-bottom: 0;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
.el-dialog__header {
|
|
8
8
|
display: none;
|
|
9
|
+
font-weight: bold;
|
|
9
10
|
}
|
|
10
11
|
.el-dialog__body {
|
|
11
12
|
height: 100%;
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
// line-height: 46px;
|
|
14
15
|
margin-bottom: 16px;
|
|
15
16
|
font-size: 14px;
|
|
16
|
-
font-weight:
|
|
17
|
+
font-weight: 600;
|
|
17
18
|
color: #1F2329;
|
|
18
19
|
}
|
|
19
20
|
.content {
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
.el-tabs {
|
|
14
|
+
--el-text-color-primary: #1F2329;
|
|
15
|
+
|
|
14
16
|
// display: block;
|
|
15
17
|
border-radius: 4px;
|
|
16
18
|
overflow: hidden;
|
|
@@ -19,9 +21,13 @@
|
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
.el-tabs__item {
|
|
24
|
+
padding: 0 16px;
|
|
22
25
|
min-height: var(--el-tabs-header-height);
|
|
23
26
|
height: unset;
|
|
24
27
|
}
|
|
28
|
+
.el-tabs__header {
|
|
29
|
+
margin: 0 0 16px;
|
|
30
|
+
}
|
|
25
31
|
.tabs-level-1 {
|
|
26
32
|
--el-tabs-header-height: 49px;
|
|
27
33
|
&.full-border {
|
package/src/utils/defaultVal.js
CHANGED
|
@@ -43,10 +43,11 @@ export default function defaultVal(config) {
|
|
|
43
43
|
|
|
44
44
|
export function formatSelectVal({
|
|
45
45
|
config,
|
|
46
|
-
val
|
|
46
|
+
val,
|
|
47
|
+
isActive = false
|
|
47
48
|
}) {
|
|
48
49
|
let retValue = val
|
|
49
|
-
if (!isHidden({config})) {
|
|
50
|
+
if (!isHidden({config}) || isActive) {
|
|
50
51
|
const valueType = config?.valueType
|
|
51
52
|
const separator = config?.separator
|
|
52
53
|
if (valueType == VALUE_TYPES.STRING) {
|
|
@@ -61,10 +62,10 @@ export function formatSelectVal({
|
|
|
61
62
|
if ((val && isString(val)) || isNumber(val)) {
|
|
62
63
|
retValue = `${val}`?.split(separator)
|
|
63
64
|
if (valueType == VALUE_TYPES.OBJECT) {
|
|
64
|
-
retValue =
|
|
65
|
+
retValue = retValue?.reduce((ret, item, idx) => {ret[idx] = item; return ret;}, {})
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
|
-
return
|
|
70
|
+
return retValue
|
|
70
71
|
}
|