easy3wui 1.4.230 → 1.4.234
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/README.md +7 -1
- package/assets/btn.css +3 -0
- package/assets/flow.css +9 -4
- package/assets/formPage.css +10 -1
- package/assets/index.css +22 -5
- package/lib/Easy3wButtonOne/index.js +1 -1
- package/lib/Easy3wFormPage/easy3wFormPage.less +6 -0
- package/lib/Easy3wFormPage/index.js +147 -45
- package/lib/Easy3wUpload/index.js +2 -1
- package/lib/Easy3wUploadB/index.js +2 -1
- package/lib/Easy3wUploadM/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/assets/btn.css
CHANGED
package/assets/flow.css
CHANGED
|
@@ -521,7 +521,7 @@
|
|
|
521
521
|
.flowbottom .flowdoc {
|
|
522
522
|
display: inline-block;
|
|
523
523
|
margin: 0 2px;
|
|
524
|
-
height:
|
|
524
|
+
height: 28px;
|
|
525
525
|
text-align: center;
|
|
526
526
|
/*浮动区块居中,必须配合.float-center使用*/
|
|
527
527
|
position: relative;
|
|
@@ -749,12 +749,14 @@
|
|
|
749
749
|
}
|
|
750
750
|
.flowmain .borderblue {
|
|
751
751
|
border: 1px solid #5867ad;
|
|
752
|
+
border-radius: 4px;
|
|
752
753
|
}
|
|
753
754
|
.flowmain .borderorange {
|
|
754
755
|
border: 1px solid #ad7c59;
|
|
755
756
|
}
|
|
756
757
|
.flowmain .borderblueDashed {
|
|
757
758
|
border: 1px dashed #5867ad;
|
|
759
|
+
border-radius: 4px;
|
|
758
760
|
}
|
|
759
761
|
.flowmain .borderorangeDashed {
|
|
760
762
|
border: 1px dashed #ad7c59;
|
|
@@ -767,7 +769,7 @@
|
|
|
767
769
|
}
|
|
768
770
|
.flowmain .flowbottomtextblue {
|
|
769
771
|
text-align: center;
|
|
770
|
-
line-height:
|
|
772
|
+
line-height: 28px;
|
|
771
773
|
color: #5867ad;
|
|
772
774
|
}
|
|
773
775
|
.flowmain .flowdoc img {
|
|
@@ -777,10 +779,12 @@
|
|
|
777
779
|
bottom: -1px;
|
|
778
780
|
z-index: 1;
|
|
779
781
|
width: 21px;
|
|
782
|
+
border-bottom-right-radius: 4px;
|
|
780
783
|
}
|
|
781
784
|
.flowmain .flowbottomtextorange {
|
|
782
785
|
text-align: center;
|
|
783
|
-
line-height:
|
|
786
|
+
line-height: 28px;
|
|
787
|
+
border-radius: 4px;
|
|
784
788
|
}
|
|
785
789
|
.flowmain .flowbottomtextorange a {
|
|
786
790
|
color: #ad7c59;
|
|
@@ -788,8 +792,9 @@
|
|
|
788
792
|
}
|
|
789
793
|
.flowmain .flowbottomtextgrey {
|
|
790
794
|
text-align: center;
|
|
791
|
-
line-height:
|
|
795
|
+
line-height: 28px;
|
|
792
796
|
color: #999999;
|
|
797
|
+
border-radius: 4px;
|
|
793
798
|
}
|
|
794
799
|
.flowmain .flowbottomtextgrey a {
|
|
795
800
|
text-align: center;
|
package/assets/formPage.css
CHANGED
|
@@ -9,13 +9,22 @@
|
|
|
9
9
|
.ant-upload-list-item .anticon-cross {
|
|
10
10
|
right: -2px;
|
|
11
11
|
}
|
|
12
|
+
.e3wFormPageNoBorder {
|
|
13
|
+
margin: 12px;
|
|
14
|
+
}
|
|
15
|
+
.e3wFormPageNoBorder > div {
|
|
16
|
+
margin: 3px;
|
|
17
|
+
}
|
|
12
18
|
.e3wFormPage {
|
|
13
19
|
border-top: 1px solid #e8e8e8;
|
|
14
20
|
border-left: 1px solid #e8e8e8;
|
|
15
21
|
border-right: 1px solid #e8e8e8;
|
|
16
22
|
margin: 12px;
|
|
17
23
|
}
|
|
18
|
-
.e3wFormPage >
|
|
24
|
+
.e3wFormPage > div {
|
|
25
|
+
margin: 3px;
|
|
26
|
+
}
|
|
27
|
+
.e3wFormPage > div > .ant-row {
|
|
19
28
|
border-bottom: 1px solid #e8e8e8;
|
|
20
29
|
}
|
|
21
30
|
.e3wFormItem .ant-form-item {
|
package/assets/index.css
CHANGED
|
@@ -966,7 +966,7 @@ s {
|
|
|
966
966
|
.flowbottom .flowdoc {
|
|
967
967
|
display: inline-block;
|
|
968
968
|
margin: 0 2px;
|
|
969
|
-
height:
|
|
969
|
+
height: 28px;
|
|
970
970
|
text-align: center;
|
|
971
971
|
/*浮动区块居中,必须配合.float-center使用*/
|
|
972
972
|
position: relative;
|
|
@@ -1194,12 +1194,14 @@ s {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
.flowmain .borderblue {
|
|
1196
1196
|
border: 1px solid #5867ad;
|
|
1197
|
+
border-radius: 4px;
|
|
1197
1198
|
}
|
|
1198
1199
|
.flowmain .borderorange {
|
|
1199
1200
|
border: 1px solid #ad7c59;
|
|
1200
1201
|
}
|
|
1201
1202
|
.flowmain .borderblueDashed {
|
|
1202
1203
|
border: 1px dashed #5867ad;
|
|
1204
|
+
border-radius: 4px;
|
|
1203
1205
|
}
|
|
1204
1206
|
.flowmain .borderorangeDashed {
|
|
1205
1207
|
border: 1px dashed #ad7c59;
|
|
@@ -1212,7 +1214,7 @@ s {
|
|
|
1212
1214
|
}
|
|
1213
1215
|
.flowmain .flowbottomtextblue {
|
|
1214
1216
|
text-align: center;
|
|
1215
|
-
line-height:
|
|
1217
|
+
line-height: 28px;
|
|
1216
1218
|
color: #5867ad;
|
|
1217
1219
|
}
|
|
1218
1220
|
.flowmain .flowdoc img {
|
|
@@ -1222,10 +1224,12 @@ s {
|
|
|
1222
1224
|
bottom: -1px;
|
|
1223
1225
|
z-index: 1;
|
|
1224
1226
|
width: 21px;
|
|
1227
|
+
border-bottom-right-radius: 4px;
|
|
1225
1228
|
}
|
|
1226
1229
|
.flowmain .flowbottomtextorange {
|
|
1227
1230
|
text-align: center;
|
|
1228
|
-
line-height:
|
|
1231
|
+
line-height: 28px;
|
|
1232
|
+
border-radius: 4px;
|
|
1229
1233
|
}
|
|
1230
1234
|
.flowmain .flowbottomtextorange a {
|
|
1231
1235
|
color: #ad7c59;
|
|
@@ -1233,8 +1237,9 @@ s {
|
|
|
1233
1237
|
}
|
|
1234
1238
|
.flowmain .flowbottomtextgrey {
|
|
1235
1239
|
text-align: center;
|
|
1236
|
-
line-height:
|
|
1240
|
+
line-height: 28px;
|
|
1237
1241
|
color: #999999;
|
|
1242
|
+
border-radius: 4px;
|
|
1238
1243
|
}
|
|
1239
1244
|
.flowmain .flowbottomtextgrey a {
|
|
1240
1245
|
text-align: center;
|
|
@@ -1537,13 +1542,22 @@ s {
|
|
|
1537
1542
|
.ant-upload-list-item .anticon-cross {
|
|
1538
1543
|
right: -2px;
|
|
1539
1544
|
}
|
|
1545
|
+
.e3wFormPageNoBorder {
|
|
1546
|
+
margin: 12px;
|
|
1547
|
+
}
|
|
1548
|
+
.e3wFormPageNoBorder > div {
|
|
1549
|
+
margin: 3px;
|
|
1550
|
+
}
|
|
1540
1551
|
.e3wFormPage {
|
|
1541
1552
|
border-top: 1px solid #e8e8e8;
|
|
1542
1553
|
border-left: 1px solid #e8e8e8;
|
|
1543
1554
|
border-right: 1px solid #e8e8e8;
|
|
1544
1555
|
margin: 12px;
|
|
1545
1556
|
}
|
|
1546
|
-
.e3wFormPage >
|
|
1557
|
+
.e3wFormPage > div {
|
|
1558
|
+
margin: 3px;
|
|
1559
|
+
}
|
|
1560
|
+
.e3wFormPage > div > .ant-row {
|
|
1547
1561
|
border-bottom: 1px solid #e8e8e8;
|
|
1548
1562
|
}
|
|
1549
1563
|
.e3wFormItem .ant-form-item {
|
|
@@ -1580,6 +1594,9 @@ s {
|
|
|
1580
1594
|
.e3wFootBtn {
|
|
1581
1595
|
margin: 0px 8px;
|
|
1582
1596
|
}
|
|
1597
|
+
.e3wFormBtn {
|
|
1598
|
+
margin-right: 8px;
|
|
1599
|
+
}
|
|
1583
1600
|
.positionDiv {
|
|
1584
1601
|
position: absolute;
|
|
1585
1602
|
right: 12px;
|
|
@@ -117,7 +117,7 @@ var Easy3wButtonOne = function (_Component) {
|
|
|
117
117
|
} },
|
|
118
118
|
_react2['default'].createElement(
|
|
119
119
|
_button2['default'],
|
|
120
|
-
(0, _extends3['default'])({}, typeProps, { className: (0, _classnames2['default'])(['btn', '
|
|
120
|
+
(0, _extends3['default'])({}, typeProps, { className: (0, _classnames2['default'])(['btn', 'e3wFormBtn']) }),
|
|
121
121
|
cName || children
|
|
122
122
|
)
|
|
123
123
|
);
|
|
@@ -198,6 +198,8 @@ var _easy3wui = require('easy3wui');
|
|
|
198
198
|
|
|
199
199
|
var _propTypes = require('prop-types');
|
|
200
200
|
|
|
201
|
+
var _comonConfig = require('comonConfigPath/comonConfig');
|
|
202
|
+
|
|
201
203
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
202
204
|
|
|
203
205
|
// import TagSelect from '../Easy3wTagSelect/index.js';
|
|
@@ -205,8 +207,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd
|
|
|
205
207
|
// import Easy3wUploadB from '../../Easy3wUploadB';
|
|
206
208
|
// import Easy3wUploadM from '../../Easy3wUploadM';
|
|
207
209
|
|
|
208
|
-
_moment2['default'].locale('zh-cn');
|
|
209
|
-
|
|
210
|
+
_moment2['default'].locale('zh-cn'); /* eslint-disable prefer-destructuring */
|
|
210
211
|
var Option = _select2['default'].Option;
|
|
211
212
|
var MonthPicker = _datePicker2['default'].MonthPicker,
|
|
212
213
|
RangePicker = _datePicker2['default'].RangePicker;
|
|
@@ -257,9 +258,13 @@ var formItemRightWithBtn = {
|
|
|
257
258
|
wrapperCol: { span: 12 }
|
|
258
259
|
};
|
|
259
260
|
var formItemStyle = {
|
|
260
|
-
|
|
261
|
-
|
|
261
|
+
margin: '0px'
|
|
262
|
+
// marginBottom: '3px',
|
|
263
|
+
// marginTop: '3px',
|
|
262
264
|
};
|
|
265
|
+
// const rowItemStyle = {
|
|
266
|
+
// padding: '3px',
|
|
267
|
+
// };
|
|
263
268
|
|
|
264
269
|
var Easy3wFormPage = function (_Component) {
|
|
265
270
|
(0, _inherits3['default'])(Easy3wFormPage, _Component);
|
|
@@ -473,6 +478,7 @@ var Easy3wFormPage = function (_Component) {
|
|
|
473
478
|
popProps = item.popProps,
|
|
474
479
|
fieldType = item.fieldType,
|
|
475
480
|
disableFlag = item.disableFlag,
|
|
481
|
+
value = item.value,
|
|
476
482
|
formItemProps = item.formItemProps,
|
|
477
483
|
novalueFlag = item.novalueFlag,
|
|
478
484
|
label = item.label,
|
|
@@ -542,6 +548,27 @@ var Easy3wFormPage = function (_Component) {
|
|
|
542
548
|
afterBtns
|
|
543
549
|
);
|
|
544
550
|
}
|
|
551
|
+
if (fieldType === 'textarea') {
|
|
552
|
+
return _react2['default'].createElement(
|
|
553
|
+
FormItem,
|
|
554
|
+
(0, _extends3['default'])({
|
|
555
|
+
label: label
|
|
556
|
+
}, formItemLayout, formItemProps, {
|
|
557
|
+
style: formItemStyle,
|
|
558
|
+
className: (0, _classnames2['default'])(['formContent'])
|
|
559
|
+
}),
|
|
560
|
+
getFieldDecorator(fieldId + 'Easy3wView', {
|
|
561
|
+
initialValue: 'easy3wView',
|
|
562
|
+
rules: [{ required: required, message: requiredMessage || '\u8BF7\u586B\u5199' + label }]
|
|
563
|
+
})(_react2['default'].createElement(_input2['default'], { type: 'hidden', size: 'small' })),
|
|
564
|
+
_react2['default'].createElement(
|
|
565
|
+
'pre',
|
|
566
|
+
null,
|
|
567
|
+
itemValue
|
|
568
|
+
),
|
|
569
|
+
afterBtns
|
|
570
|
+
);
|
|
571
|
+
}
|
|
545
572
|
return _react2['default'].createElement(
|
|
546
573
|
FormItem,
|
|
547
574
|
(0, _extends3['default'])({
|
|
@@ -969,7 +996,11 @@ var Easy3wFormPage = function (_Component) {
|
|
|
969
996
|
var hiddenForms = [];
|
|
970
997
|
if (rowItems) {
|
|
971
998
|
uiForms = rowItems.map(function (rowItem) {
|
|
972
|
-
var singleRow =
|
|
999
|
+
var singleRow = _react2['default'].createElement(
|
|
1000
|
+
'div',
|
|
1001
|
+
null,
|
|
1002
|
+
_this.getSingleRow(rowItem)
|
|
1003
|
+
);
|
|
973
1004
|
return singleRow;
|
|
974
1005
|
});
|
|
975
1006
|
}
|
|
@@ -1017,7 +1048,9 @@ var Easy3wFormPage = function (_Component) {
|
|
|
1017
1048
|
sendData: '',
|
|
1018
1049
|
form: form,
|
|
1019
1050
|
required: required,
|
|
1020
|
-
label: label
|
|
1051
|
+
label: label,
|
|
1052
|
+
style: formItemStyle,
|
|
1053
|
+
className: (0, _classnames2['default'])(['formContent'])
|
|
1021
1054
|
}, formItemLayout, cmptProsNew));
|
|
1022
1055
|
}, _this.getUploadBColItem = function (colObj, formItemLayout) {
|
|
1023
1056
|
var label = colObj.label,
|
|
@@ -1041,7 +1074,9 @@ var Easy3wFormPage = function (_Component) {
|
|
|
1041
1074
|
sendData: '',
|
|
1042
1075
|
form: form,
|
|
1043
1076
|
required: required,
|
|
1044
|
-
label: label
|
|
1077
|
+
label: label,
|
|
1078
|
+
style: formItemStyle,
|
|
1079
|
+
className: (0, _classnames2['default'])(['formContent'])
|
|
1045
1080
|
}, formItemLayout, cmptProsNew));
|
|
1046
1081
|
}, _this.getUploadMColItem = function (colObj, formItemLayout) {
|
|
1047
1082
|
var label = colObj.label,
|
|
@@ -1064,7 +1099,9 @@ var Easy3wFormPage = function (_Component) {
|
|
|
1064
1099
|
sendData: '',
|
|
1065
1100
|
form: form,
|
|
1066
1101
|
required: required,
|
|
1067
|
-
label: label
|
|
1102
|
+
label: label,
|
|
1103
|
+
style: formItemStyle,
|
|
1104
|
+
className: (0, _classnames2['default'])(['formContent'])
|
|
1068
1105
|
}, formItemLayout, cmptProsNew));
|
|
1069
1106
|
}, _this.inputHandler = function (item) {
|
|
1070
1107
|
var cmptPros = item.cmptPros;
|
|
@@ -1238,6 +1275,8 @@ var Easy3wFormPage = function (_Component) {
|
|
|
1238
1275
|
_message3['default'].info('\u8F93\u5165\u5B57\u6570\u4E0D\u80FD\u8D85\u8FC7' + maxLength);
|
|
1239
1276
|
}
|
|
1240
1277
|
}, _this.textareaHandler = function (item) {
|
|
1278
|
+
var readFlag = item.readFlag,
|
|
1279
|
+
value = item.value;
|
|
1241
1280
|
var cmptPros = item.cmptPros;
|
|
1242
1281
|
|
|
1243
1282
|
var maxlength = void 0;
|
|
@@ -1252,12 +1291,12 @@ var Easy3wFormPage = function (_Component) {
|
|
|
1252
1291
|
return _react2['default'].createElement(
|
|
1253
1292
|
'div',
|
|
1254
1293
|
{ className: (0, _classnames2['default'])(['countContent']), 'data-count': _this.state.leftCount + '/' + maxCount },
|
|
1255
|
-
_react2['default'].createElement(TextArea, (0, _extends3['default'])({ onChange: function onChange(e) {
|
|
1294
|
+
_react2['default'].createElement(TextArea, (0, _extends3['default'])({ style: { minHeight: '24px', height: '24px', padding: '0 11px', lineHeight: '24px' }, onChange: function onChange(e) {
|
|
1256
1295
|
return _this.textAreaOnchange(e, maxlength);
|
|
1257
1296
|
} }, cmptPros))
|
|
1258
1297
|
);
|
|
1259
1298
|
} else {
|
|
1260
|
-
return _react2['default'].createElement(TextArea, (0, _extends3['default'])({ onChange: function onChange(e) {
|
|
1299
|
+
return _react2['default'].createElement(TextArea, (0, _extends3['default'])({ style: { minHeight: '24px', height: '24px', padding: '0 11px', lineHeight: '24px' }, onChange: function onChange(e) {
|
|
1261
1300
|
return _this.textAreaOnchange(e, maxlength);
|
|
1262
1301
|
} }, cmptPros));
|
|
1263
1302
|
}
|
|
@@ -1397,7 +1436,7 @@ var Easy3wFormPage = function (_Component) {
|
|
|
1397
1436
|
} else if (opt.label !== '请选择' && opt.value === value) {
|
|
1398
1437
|
findObj = opt.label;
|
|
1399
1438
|
} else if (labelInValue && typeof value === 'object') {
|
|
1400
|
-
findObj = value.
|
|
1439
|
+
findObj = value.label;
|
|
1401
1440
|
}
|
|
1402
1441
|
return allContents;
|
|
1403
1442
|
});
|
|
@@ -1463,10 +1502,13 @@ var Easy3wFormPage = function (_Component) {
|
|
|
1463
1502
|
label = item.label,
|
|
1464
1503
|
fieldId = item.fieldId,
|
|
1465
1504
|
required = item.required,
|
|
1466
|
-
value = item.value,
|
|
1467
1505
|
requiredMessage = item.requiredMessage,
|
|
1468
1506
|
formItemProps = item.formItemProps,
|
|
1469
|
-
disableFlag = item.disableFlag
|
|
1507
|
+
disableFlag = item.disableFlag,
|
|
1508
|
+
readFlag = item.readFlag;
|
|
1509
|
+
var value = item.value;
|
|
1510
|
+
var _cmptPros$options = cmptPros.options,
|
|
1511
|
+
options = _cmptPros$options === undefined ? [] : _cmptPros$options;
|
|
1470
1512
|
var getFieldDecorator = form.getFieldDecorator;
|
|
1471
1513
|
|
|
1472
1514
|
var disabled = false;
|
|
@@ -1496,31 +1538,58 @@ var Easy3wFormPage = function (_Component) {
|
|
|
1496
1538
|
}
|
|
1497
1539
|
|
|
1498
1540
|
var cmptProsNew = (0, _extends3['default'])({}, cmptPros, { disabled: disabled });
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1541
|
+
if (allReadFlag || readFlag) {
|
|
1542
|
+
options.map(function (opt) {
|
|
1543
|
+
if (value === opt.value) {
|
|
1544
|
+
value = opt.label;
|
|
1545
|
+
}
|
|
1546
|
+
return '';
|
|
1547
|
+
});
|
|
1548
|
+
return _react2['default'].createElement(
|
|
1549
|
+
FormItem,
|
|
1550
|
+
(0, _extends3['default'])({
|
|
1551
|
+
label: label
|
|
1552
|
+
}, formItemLayout, formItemProps, {
|
|
1553
|
+
style: formItemStyle,
|
|
1554
|
+
className: (0, _classnames2['default'])(['formContent'])
|
|
1555
|
+
}),
|
|
1556
|
+
getFieldDecorator(fieldId + 'Easy3wView', {
|
|
1557
|
+
initialValue: 'easy3wView',
|
|
1558
|
+
rules: [{ required: required, message: '\u8BF7\u586B\u5199' + label }]
|
|
1559
|
+
})(_react2['default'].createElement(_input2['default'], { type: 'hidden', size: 'small' })),
|
|
1560
|
+
value
|
|
1561
|
+
);
|
|
1562
|
+
} else {
|
|
1563
|
+
return _react2['default'].createElement(
|
|
1564
|
+
FormItem,
|
|
1565
|
+
(0, _extends3['default'])({
|
|
1566
|
+
label: label
|
|
1567
|
+
}, formItemLayout, formItemProps, {
|
|
1568
|
+
style: formItemStyle,
|
|
1569
|
+
className: (0, _classnames2['default'])(['formContent'])
|
|
1570
|
+
}),
|
|
1571
|
+
getFieldDecorator(fieldId, (0, _extends3['default'])({}, decoratorObj, {
|
|
1572
|
+
initialValue: value
|
|
1573
|
+
}))(_react2['default'].createElement(RadioGroup, cmptProsNew))
|
|
1574
|
+
);
|
|
1575
|
+
}
|
|
1511
1576
|
}, _this.getCheckBoxColItem = function (item, formItemLayout) {
|
|
1512
1577
|
var _this$props7 = _this.props,
|
|
1513
1578
|
form = _this$props7.form,
|
|
1514
1579
|
allReadFlag = _this$props7.allReadFlag;
|
|
1515
1580
|
var getFieldDecorator = form.getFieldDecorator;
|
|
1516
|
-
var cmptPros = item.cmptPros,
|
|
1581
|
+
var _item$cmptPros = item.cmptPros,
|
|
1582
|
+
cmptPros = _item$cmptPros === undefined ? {} : _item$cmptPros,
|
|
1517
1583
|
label = item.label,
|
|
1518
1584
|
fieldId = item.fieldId,
|
|
1519
1585
|
required = item.required,
|
|
1520
|
-
value = item.value,
|
|
1521
1586
|
formItemProps = item.formItemProps,
|
|
1522
1587
|
disableFlag = item.disableFlag,
|
|
1523
|
-
requiredMessage = item.requiredMessage
|
|
1588
|
+
requiredMessage = item.requiredMessage,
|
|
1589
|
+
readFlag = item.readFlag;
|
|
1590
|
+
var value = item.value;
|
|
1591
|
+
var _cmptPros$options2 = cmptPros.options,
|
|
1592
|
+
options = _cmptPros$options2 === undefined ? [] : _cmptPros$options2;
|
|
1524
1593
|
|
|
1525
1594
|
var disabled = false;
|
|
1526
1595
|
var addRules = [];
|
|
@@ -1548,18 +1617,46 @@ var Easy3wFormPage = function (_Component) {
|
|
|
1548
1617
|
disabled = true;
|
|
1549
1618
|
}
|
|
1550
1619
|
var cmptProsNew = (0, _extends3['default'])({}, cmptPros, { disabled: disabled });
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
(
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
})
|
|
1562
|
-
|
|
1620
|
+
if (allReadFlag || readFlag) {
|
|
1621
|
+
var arrValue = [];
|
|
1622
|
+
options.map(function (opt) {
|
|
1623
|
+
value.map(function (val) {
|
|
1624
|
+
if (val === opt.value) {
|
|
1625
|
+
arrValue.push(opt.label);
|
|
1626
|
+
}
|
|
1627
|
+
return '';
|
|
1628
|
+
});
|
|
1629
|
+
return '';
|
|
1630
|
+
});
|
|
1631
|
+
value = arrValue.join(',');
|
|
1632
|
+
return _react2['default'].createElement(
|
|
1633
|
+
FormItem,
|
|
1634
|
+
(0, _extends3['default'])({
|
|
1635
|
+
label: label
|
|
1636
|
+
}, formItemLayout, formItemProps, {
|
|
1637
|
+
style: formItemStyle,
|
|
1638
|
+
className: (0, _classnames2['default'])(['formContent'])
|
|
1639
|
+
}),
|
|
1640
|
+
getFieldDecorator(fieldId + 'Easy3wView', {
|
|
1641
|
+
initialValue: 'easy3wView',
|
|
1642
|
+
rules: [{ required: required, message: '\u8BF7\u586B\u5199' + label }]
|
|
1643
|
+
})(_react2['default'].createElement(_input2['default'], { type: 'hidden', size: 'small' })),
|
|
1644
|
+
value
|
|
1645
|
+
);
|
|
1646
|
+
} else {
|
|
1647
|
+
return _react2['default'].createElement(
|
|
1648
|
+
FormItem,
|
|
1649
|
+
(0, _extends3['default'])({
|
|
1650
|
+
label: label
|
|
1651
|
+
}, formItemLayout, formItemProps, {
|
|
1652
|
+
style: formItemStyle,
|
|
1653
|
+
className: (0, _classnames2['default'])(['formContent'])
|
|
1654
|
+
}),
|
|
1655
|
+
getFieldDecorator(fieldId, (0, _extends3['default'])({}, decoratorObj, {
|
|
1656
|
+
initialValue: value
|
|
1657
|
+
}))(_react2['default'].createElement(CheckboxGroup, cmptProsNew))
|
|
1658
|
+
);
|
|
1659
|
+
}
|
|
1563
1660
|
}, _this.numberInputHandler = function (item) {
|
|
1564
1661
|
var cmptPros = item.cmptPros;
|
|
1565
1662
|
|
|
@@ -1860,14 +1957,19 @@ var Easy3wFormPage = function (_Component) {
|
|
|
1860
1957
|
|
|
1861
1958
|
Easy3wFormPage.prototype.render = function render() {
|
|
1862
1959
|
var getAllForms = this.getAllForms();
|
|
1863
|
-
var
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1960
|
+
var borderFlag = this.props.borderFlag;
|
|
1961
|
+
// noLabelFlag 布尔值
|
|
1962
|
+
|
|
1963
|
+
var noBorderFlag = false;
|
|
1964
|
+
if (typeof this.props.noBorderFlag === 'boolean') {
|
|
1965
|
+
noBorderFlag = this.props.noBorderFlag;
|
|
1966
|
+
} else if (typeof _comonConfig.noBorderFlag === 'boolean') {
|
|
1967
|
+
noBorderFlag = _comonConfig.noBorderFlag;
|
|
1968
|
+
}
|
|
1867
1969
|
if (noBorderFlag) {
|
|
1868
1970
|
return _react2['default'].createElement(
|
|
1869
1971
|
'div',
|
|
1870
|
-
{
|
|
1972
|
+
{ className: (0, _classnames2['default'])(['e3wFormPageNoBorder']) },
|
|
1871
1973
|
getAllForms
|
|
1872
1974
|
);
|
|
1873
1975
|
} else {
|
|
@@ -80,7 +80,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd
|
|
|
80
80
|
|
|
81
81
|
var FormItem = _form2['default'].Item;
|
|
82
82
|
var formItemStyle = {
|
|
83
|
-
marginBottom: 0
|
|
83
|
+
// marginBottom: 0,
|
|
84
|
+
margin: 3
|
|
84
85
|
};
|
|
85
86
|
|
|
86
87
|
var Easy3wUpload = function (_Component) {
|
|
@@ -93,7 +93,8 @@ var _Easy3wAESEncrypt2 = _interopRequireDefault(_Easy3wAESEncrypt);
|
|
|
93
93
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
94
94
|
|
|
95
95
|
var formItemStyle = {
|
|
96
|
-
marginBottom: 0
|
|
96
|
+
// marginBottom: 0,
|
|
97
|
+
margin: 3
|
|
97
98
|
};
|
|
98
99
|
|
|
99
100
|
var BigFileUpload = function (_Component) {
|
|
@@ -79,7 +79,8 @@ var _Easy3wAESEncrypt2 = _interopRequireDefault(_Easy3wAESEncrypt);
|
|
|
79
79
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
80
80
|
|
|
81
81
|
var formItemStyle = {
|
|
82
|
-
marginBottom: 0
|
|
82
|
+
// marginBottom: 0,
|
|
83
|
+
margin: 3
|
|
83
84
|
};
|
|
84
85
|
|
|
85
86
|
var Easy3wUploadM = function (_Component) {
|