form-driver 0.2.1 → 0.2.3
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/m3.css +5 -0
- package/dist/m3.js +1 -1
- package/es/m3.css +5 -0
- package/es/m3.js +8 -4
- package/lib/m3.css +5 -0
- package/lib/m3.js +8 -4
- package/package.json +1 -1
- package/src/types/MCascadeType.ts +5 -1
- package/src/ui/editor/basic/ARate.less +17 -7
package/es/m3.css
CHANGED
|
@@ -128,9 +128,14 @@ table.M3_table tr:last-child td {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.ant-rate {
|
|
131
|
+
/* 自定义Rate组件未选中星星的颜色 */
|
|
131
132
|
display: flex !important;
|
|
132
133
|
width: 100%;
|
|
133
134
|
}
|
|
135
|
+
.ant-rate .ant-rate-star-zero .ant-rate-star-first,
|
|
136
|
+
.ant-rate .ant-rate-star-zero .ant-rate-star-second {
|
|
137
|
+
color: #666;
|
|
138
|
+
}
|
|
134
139
|
.ant-rate .ant-rate-star {
|
|
135
140
|
flex: 1;
|
|
136
141
|
}
|
package/es/m3.js
CHANGED
|
@@ -20340,11 +20340,15 @@ var MCascadeType = {
|
|
|
20340
20340
|
min: 1
|
|
20341
20341
|
}, "请重新填写")],
|
|
20342
20342
|
toReadable: function toReadable(assembly, s, vs) {
|
|
20343
|
-
|
|
20343
|
+
if (vs && vs.map) {
|
|
20344
|
+
var _vs$map$join, _vs$map;
|
|
20344
20345
|
|
|
20345
|
-
|
|
20346
|
-
|
|
20347
|
-
|
|
20346
|
+
return (_vs$map$join = (_vs$map = vs.map(function (e) {
|
|
20347
|
+
return e.label;
|
|
20348
|
+
})) == null ? void 0 : _vs$map.join("/")) != null ? _vs$map$join : assembly.theme.READABLE_BLANK;
|
|
20349
|
+
} else {
|
|
20350
|
+
return assembly.theme.READABLE_BLANK;
|
|
20351
|
+
}
|
|
20348
20352
|
},
|
|
20349
20353
|
standardValue: function standardValue(assembly, s, v, strict) {
|
|
20350
20354
|
return v;
|
package/lib/m3.css
CHANGED
|
@@ -128,9 +128,14 @@ table.M3_table tr:last-child td {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.ant-rate {
|
|
131
|
+
/* 自定义Rate组件未选中星星的颜色 */
|
|
131
132
|
display: flex !important;
|
|
132
133
|
width: 100%;
|
|
133
134
|
}
|
|
135
|
+
.ant-rate .ant-rate-star-zero .ant-rate-star-first,
|
|
136
|
+
.ant-rate .ant-rate-star-zero .ant-rate-star-second {
|
|
137
|
+
color: #666;
|
|
138
|
+
}
|
|
134
139
|
.ant-rate .ant-rate-star {
|
|
135
140
|
flex: 1;
|
|
136
141
|
}
|
package/lib/m3.js
CHANGED
|
@@ -20360,11 +20360,15 @@ var MCascadeType = {
|
|
|
20360
20360
|
min: 1
|
|
20361
20361
|
}, "请重新填写")],
|
|
20362
20362
|
toReadable: function toReadable(assembly, s, vs) {
|
|
20363
|
-
|
|
20363
|
+
if (vs && vs.map) {
|
|
20364
|
+
var _vs$map$join, _vs$map;
|
|
20364
20365
|
|
|
20365
|
-
|
|
20366
|
-
|
|
20367
|
-
|
|
20366
|
+
return (_vs$map$join = (_vs$map = vs.map(function (e) {
|
|
20367
|
+
return e.label;
|
|
20368
|
+
})) == null ? void 0 : _vs$map.join("/")) != null ? _vs$map$join : assembly.theme.READABLE_BLANK;
|
|
20369
|
+
} else {
|
|
20370
|
+
return assembly.theme.READABLE_BLANK;
|
|
20371
|
+
}
|
|
20368
20372
|
},
|
|
20369
20373
|
standardValue: function standardValue(assembly, s, v, strict) {
|
|
20370
20374
|
return v;
|
package/package.json
CHANGED
|
@@ -18,7 +18,11 @@ export const MCascadeType: MType = {
|
|
|
18
18
|
validators: [validateRequired, generateSchemaValidate({type:"array", arrayMember: {type: "vl"}, min:1}, "请重新填写") ],
|
|
19
19
|
|
|
20
20
|
toReadable: (assembly:Assembly, s:MFieldSchemaAnonymity, vs:any):string => {
|
|
21
|
-
|
|
21
|
+
if (vs && vs.map) {
|
|
22
|
+
return vs.map(e => e.label)?.join("/") ?? assembly.theme.READABLE_BLANK;
|
|
23
|
+
} else {
|
|
24
|
+
return assembly.theme.READABLE_BLANK;
|
|
25
|
+
}
|
|
22
26
|
},
|
|
23
27
|
|
|
24
28
|
standardValue: (assembly:Assembly, s:MFieldSchemaAnonymity, v:any, strict:boolean):any => { // TODO 尚未实现
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
.ant-rate {
|
|
2
|
+
|
|
3
|
+
/* 自定义Rate组件未选中星星的颜色 */
|
|
4
|
+
.ant-rate-star-zero .ant-rate-star-first,
|
|
5
|
+
.ant-rate-star-zero .ant-rate-star-second {
|
|
6
|
+
color: #666;
|
|
7
|
+
}
|
|
8
|
+
|
|
2
9
|
display: flex !important;
|
|
3
|
-
width
|
|
10
|
+
width : 100%;
|
|
4
11
|
|
|
5
12
|
.ant-rate-star {
|
|
6
13
|
flex: 1
|
|
@@ -14,27 +21,30 @@
|
|
|
14
21
|
padding-left: 15px;
|
|
15
22
|
padding-right: 15px;
|
|
16
23
|
display: flex;
|
|
24
|
+
|
|
17
25
|
.m3-nps-tip-left {
|
|
18
|
-
flex: 1;
|
|
26
|
+
flex: 1;
|
|
19
27
|
text-align: left;
|
|
20
28
|
}
|
|
29
|
+
|
|
21
30
|
.m3-nps-tip-center {
|
|
22
|
-
flex: 1;
|
|
23
|
-
padding: 0 10px;
|
|
31
|
+
flex: 1;
|
|
32
|
+
padding: 0 10px;
|
|
24
33
|
text-align: center;
|
|
25
34
|
}
|
|
35
|
+
|
|
26
36
|
.m3-nps-tip-right {
|
|
27
|
-
flex: 1;
|
|
37
|
+
flex: 1;
|
|
28
38
|
text-align: right;
|
|
29
39
|
}
|
|
30
40
|
}
|
|
31
41
|
|
|
32
42
|
.ant-rate {
|
|
33
43
|
display: flex !important;
|
|
34
|
-
width
|
|
44
|
+
width: 100%;
|
|
35
45
|
|
|
36
46
|
.ant-rate-star {
|
|
37
|
-
|
|
47
|
+
&>div {
|
|
38
48
|
text-align: center;
|
|
39
49
|
}
|
|
40
50
|
}
|