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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -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: 30px !important;
167
- margin-bottom: 30px;
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 {
@@ -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: 8px 8px;
25
+ padding: 5px 8px;
24
26
  height: var(--el-button-size);
25
27
  }
26
28
  .el-button:hover {
@@ -4,5 +4,5 @@
4
4
 
5
5
 
6
6
  .el-card__body {
7
- padding: var(--prmary-marign-second) var(--prmary-marign) 0 var(--prmary-marign);
7
+ padding: var(--prmary-marign) var(--prmary-marign) 0 var(--prmary-marign);
8
8
  }
@@ -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: 12px;
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: 500;
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 {
@@ -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 = val?.reduce((ret, item, idx) => {ret[idx] = item; return ret;}, {})
65
+ retValue = retValue?.reduce((ret, item, idx) => {ret[idx] = item; return ret;}, {})
65
66
  }
66
67
  }
67
68
  }
68
69
  }
69
- return val
70
+ return retValue
70
71
  }