easy3wui 1.4.232 → 1.4.236

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 CHANGED
@@ -1,2 +1,8 @@
1
1
  # easy3wUI
2
- easy3w UI 组件
2
+ easy3w UI 组件
3
+
4
+ # 编译
5
+ npm run compile
6
+
7
+ # 发布
8
+ npm publish
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: 35px;
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: 35px;
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: 35px;
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: 35px;
795
+ line-height: 28px;
792
796
  color: #999999;
797
+ border-radius: 4px;
793
798
  }
794
799
  .flowmain .flowbottomtextgrey a {
795
800
  text-align: center;
@@ -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 > .ant-row {
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 {
@@ -30,6 +39,12 @@
30
39
  .formContent :global .ant-form-item-control {
31
40
  line-height: 24px;
32
41
  }
42
+ .formContent :global .ant-form-item-required::before {
43
+ margin-left: -10px;
44
+ }
45
+ .formContent :global .ant-form-item-label {
46
+ padding-left: 12px;
47
+ }
33
48
  .formContentAlone :global .ant-input-group-wrapper {
34
49
  vertical-align: middle;
35
50
  }
@@ -39,6 +54,12 @@
39
54
  .formContentAlone :global .ant-form-item-control {
40
55
  line-height: 24px;
41
56
  }
57
+ .formContentAlone :global .ant-form-item-required::before {
58
+ margin-left: -10px;
59
+ }
60
+ .formContentAlone :global .ant-form-item-label {
61
+ padding-left: 12px;
62
+ }
42
63
  .formContentAlone :global .ant-input-number {
43
64
  border-radius: 4px 0 0 4px;
44
65
  }
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: 35px;
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: 35px;
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: 35px;
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: 35px;
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 > .ant-row {
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 {
@@ -1558,6 +1572,12 @@ s {
1558
1572
  .formContent :global .ant-form-item-control {
1559
1573
  line-height: 24px;
1560
1574
  }
1575
+ .formContent :global .ant-form-item-required::before {
1576
+ margin-left: -10px;
1577
+ }
1578
+ .formContent :global .ant-form-item-label {
1579
+ padding-left: 12px;
1580
+ }
1561
1581
  .formContentAlone :global .ant-input-group-wrapper {
1562
1582
  vertical-align: middle;
1563
1583
  }
@@ -1567,6 +1587,12 @@ s {
1567
1587
  .formContentAlone :global .ant-form-item-control {
1568
1588
  line-height: 24px;
1569
1589
  }
1590
+ .formContentAlone :global .ant-form-item-required::before {
1591
+ margin-left: -10px;
1592
+ }
1593
+ .formContentAlone :global .ant-form-item-label {
1594
+ padding-left: 12px;
1595
+ }
1570
1596
  .formContentAlone :global .ant-input-number {
1571
1597
  border-radius: 4px 0 0 4px;
1572
1598
  }
@@ -11,7 +11,21 @@
11
11
  .ant-form-item-control {
12
12
  line-height: 24px;
13
13
  }
14
- }
14
+ // .ant-form-item-label label { // * 号突出, 文字对齐
15
+ // padding-left: 12px;
16
+ // .ant-form-item-required::before {
17
+ // margin-left: -10px;
18
+ // }
19
+ // }
20
+ .ant-form-item-required::before {
21
+ // color: @formRequiredColor; // * 号颜色
22
+ margin-left: -10px;
23
+ }
24
+ .ant-form-item-label {
25
+ // text-align: @formItemLabelTextAlign; // label标题对齐方式
26
+ padding-left: 12px;
27
+ }
28
+ }
15
29
  }
16
30
 
17
31
  .countContent::after{
@@ -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,10 +258,13 @@ var formItemRightWithBtn = {
257
258
  wrapperCol: { span: 12 }
258
259
  };
259
260
  var formItemStyle = {
260
- margin: '3px'
261
+ margin: '0px'
261
262
  // marginBottom: '3px',
262
263
  // marginTop: '3px',
263
264
  };
265
+ // const rowItemStyle = {
266
+ // padding: '3px',
267
+ // };
264
268
 
265
269
  var Easy3wFormPage = function (_Component) {
266
270
  (0, _inherits3['default'])(Easy3wFormPage, _Component);
@@ -474,6 +478,7 @@ var Easy3wFormPage = function (_Component) {
474
478
  popProps = item.popProps,
475
479
  fieldType = item.fieldType,
476
480
  disableFlag = item.disableFlag,
481
+ value = item.value,
477
482
  formItemProps = item.formItemProps,
478
483
  novalueFlag = item.novalueFlag,
479
484
  label = item.label,
@@ -543,6 +548,27 @@ var Easy3wFormPage = function (_Component) {
543
548
  afterBtns
544
549
  );
545
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
+ }
546
572
  return _react2['default'].createElement(
547
573
  FormItem,
548
574
  (0, _extends3['default'])({
@@ -970,7 +996,11 @@ var Easy3wFormPage = function (_Component) {
970
996
  var hiddenForms = [];
971
997
  if (rowItems) {
972
998
  uiForms = rowItems.map(function (rowItem) {
973
- var singleRow = _this.getSingleRow(rowItem);
999
+ var singleRow = _react2['default'].createElement(
1000
+ 'div',
1001
+ null,
1002
+ _this.getSingleRow(rowItem)
1003
+ );
974
1004
  return singleRow;
975
1005
  });
976
1006
  }
@@ -1245,6 +1275,8 @@ var Easy3wFormPage = function (_Component) {
1245
1275
  _message3['default'].info('\u8F93\u5165\u5B57\u6570\u4E0D\u80FD\u8D85\u8FC7' + maxLength);
1246
1276
  }
1247
1277
  }, _this.textareaHandler = function (item) {
1278
+ var readFlag = item.readFlag,
1279
+ value = item.value;
1248
1280
  var cmptPros = item.cmptPros;
1249
1281
 
1250
1282
  var maxlength = void 0;
@@ -1259,12 +1291,12 @@ var Easy3wFormPage = function (_Component) {
1259
1291
  return _react2['default'].createElement(
1260
1292
  'div',
1261
1293
  { className: (0, _classnames2['default'])(['countContent']), 'data-count': _this.state.leftCount + '/' + maxCount },
1262
- _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) {
1263
1295
  return _this.textAreaOnchange(e, maxlength);
1264
1296
  } }, cmptPros))
1265
1297
  );
1266
1298
  } else {
1267
- 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) {
1268
1300
  return _this.textAreaOnchange(e, maxlength);
1269
1301
  } }, cmptPros));
1270
1302
  }
@@ -1470,10 +1502,13 @@ var Easy3wFormPage = function (_Component) {
1470
1502
  label = item.label,
1471
1503
  fieldId = item.fieldId,
1472
1504
  required = item.required,
1473
- value = item.value,
1474
1505
  requiredMessage = item.requiredMessage,
1475
1506
  formItemProps = item.formItemProps,
1476
- 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;
1477
1512
  var getFieldDecorator = form.getFieldDecorator;
1478
1513
 
1479
1514
  var disabled = false;
@@ -1503,31 +1538,58 @@ var Easy3wFormPage = function (_Component) {
1503
1538
  }
1504
1539
 
1505
1540
  var cmptProsNew = (0, _extends3['default'])({}, cmptPros, { disabled: disabled });
1506
- return _react2['default'].createElement(
1507
- FormItem,
1508
- (0, _extends3['default'])({
1509
- label: label
1510
- }, formItemLayout, formItemProps, {
1511
- style: formItemStyle,
1512
- className: (0, _classnames2['default'])(['formContent'])
1513
- }),
1514
- getFieldDecorator(fieldId, (0, _extends3['default'])({}, decoratorObj, {
1515
- initialValue: value
1516
- }))(_react2['default'].createElement(RadioGroup, cmptProsNew))
1517
- );
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
+ }
1518
1576
  }, _this.getCheckBoxColItem = function (item, formItemLayout) {
1519
1577
  var _this$props7 = _this.props,
1520
1578
  form = _this$props7.form,
1521
1579
  allReadFlag = _this$props7.allReadFlag;
1522
1580
  var getFieldDecorator = form.getFieldDecorator;
1523
- var cmptPros = item.cmptPros,
1581
+ var _item$cmptPros = item.cmptPros,
1582
+ cmptPros = _item$cmptPros === undefined ? {} : _item$cmptPros,
1524
1583
  label = item.label,
1525
1584
  fieldId = item.fieldId,
1526
1585
  required = item.required,
1527
- value = item.value,
1528
1586
  formItemProps = item.formItemProps,
1529
1587
  disableFlag = item.disableFlag,
1530
- 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;
1531
1593
 
1532
1594
  var disabled = false;
1533
1595
  var addRules = [];
@@ -1555,18 +1617,46 @@ var Easy3wFormPage = function (_Component) {
1555
1617
  disabled = true;
1556
1618
  }
1557
1619
  var cmptProsNew = (0, _extends3['default'])({}, cmptPros, { disabled: disabled });
1558
- return _react2['default'].createElement(
1559
- FormItem,
1560
- (0, _extends3['default'])({
1561
- label: label
1562
- }, formItemLayout, formItemProps, {
1563
- style: formItemStyle,
1564
- className: (0, _classnames2['default'])(['formContent'])
1565
- }),
1566
- getFieldDecorator(fieldId, (0, _extends3['default'])({}, decoratorObj, {
1567
- initialValue: value
1568
- }))(_react2['default'].createElement(CheckboxGroup, cmptProsNew))
1569
- );
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
+ }
1570
1660
  }, _this.numberInputHandler = function (item) {
1571
1661
  var cmptPros = item.cmptPros;
1572
1662
 
@@ -1867,14 +1957,19 @@ var Easy3wFormPage = function (_Component) {
1867
1957
 
1868
1958
  Easy3wFormPage.prototype.render = function render() {
1869
1959
  var getAllForms = this.getAllForms();
1870
- var _props = this.props,
1871
- borderFlag = _props.borderFlag,
1872
- noBorderFlag = _props.noBorderFlag;
1873
-
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
+ }
1874
1969
  if (noBorderFlag) {
1875
1970
  return _react2['default'].createElement(
1876
1971
  'div',
1877
- { style: { marginTop: '9px' } },
1972
+ { className: (0, _classnames2['default'])(['e3wFormPageNoBorder']) },
1878
1973
  getAllForms
1879
1974
  );
1880
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.4.232",
3
+ "version": "1.4.236",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",