easy3wui 1.5.86-5.beta → 1.5.86-7.beta

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.
@@ -383,29 +383,29 @@ var Easy3wFormPagePC = exports.Easy3wFormPagePC = function (_Component) {
383
383
  rowItems = _this$props.rowItems,
384
384
  e3wFieldCfg = _this$props.e3wFieldCfg;
385
385
 
386
- if (e3wFieldCfg) {
387
- var rowItemsF = [];
388
- if (rowItems && rowItems instanceof Array) {
389
- rowItems.map(function (row) {
390
- if (row && row instanceof Object) {
391
- var cols = row.cols;
392
-
393
- if (cols && cols instanceof Array && cols.length) {
394
- var arrCols = _this.getRowCfg(cols);
395
- if (arrCols) {
396
- rowItemsF.push({
397
- cols: arrCols
398
- });
399
- }
386
+ var rowItemsF = [];
387
+ if (rowItems && rowItems instanceof Array) {
388
+ rowItems.map(function (row) {
389
+ if (row && row instanceof Object) {
390
+ var cols = row.cols;
391
+
392
+ if (cols && cols instanceof Array && cols.length) {
393
+ var arrCols = _this.getRowCfg(cols);
394
+ if (arrCols) {
395
+ rowItemsF.push({
396
+ cols: arrCols
397
+ });
400
398
  }
401
399
  }
402
- return row;
403
- });
404
- }
405
- return rowItemsF;
406
- } else {
407
- return rowItems;
400
+ }
401
+ return row;
402
+ });
408
403
  }
404
+ return rowItemsF;
405
+ // if (e3wFieldCfg) {
406
+ // } else {
407
+ // return rowItems;
408
+ // }
409
409
  }, _this.getRowCfg = function (cols) {
410
410
  var arrCols = [];
411
411
  var arrColsEmpty = [];
@@ -2622,29 +2622,29 @@ var Easy3wFormPageTightPC = exports.Easy3wFormPageTightPC = function (_Component
2622
2622
  rowItems = _this2$props.rowItems,
2623
2623
  e3wFieldCfg = _this2$props.e3wFieldCfg;
2624
2624
 
2625
- if (e3wFieldCfg) {
2626
- var rowItemsF = [];
2627
- if (rowItems && rowItems instanceof Array) {
2628
- rowItems.map(function (row) {
2629
- if (row && row instanceof Object) {
2630
- var cols = row.cols;
2631
-
2632
- if (cols && cols instanceof Array && cols.length) {
2633
- var arrCols = _this2.getRowCfg(cols);
2634
- if (arrCols) {
2635
- rowItemsF.push({
2636
- cols: arrCols
2637
- });
2638
- }
2625
+ var rowItemsF = [];
2626
+ if (rowItems && rowItems instanceof Array) {
2627
+ rowItems.map(function (row) {
2628
+ if (row && row instanceof Object) {
2629
+ var cols = row.cols;
2630
+
2631
+ if (cols && cols instanceof Array && cols.length) {
2632
+ var arrCols = _this2.getRowCfg(cols);
2633
+ if (arrCols) {
2634
+ rowItemsF.push({
2635
+ cols: arrCols
2636
+ });
2639
2637
  }
2640
2638
  }
2641
- return row;
2642
- });
2643
- }
2644
- return rowItemsF;
2645
- } else {
2646
- return rowItems;
2639
+ }
2640
+ return row;
2641
+ });
2647
2642
  }
2643
+ return rowItemsF;
2644
+ // if (e3wFieldCfg) {
2645
+ // } else {
2646
+ // return rowItems;
2647
+ // }
2648
2648
  }, _this2.getRowCfg = function (cols) {
2649
2649
  var arrCols = [];
2650
2650
  var arrColsEmpty = [];
@@ -19,8 +19,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd
19
19
  * @param {(text: string) => React.ReactNode} processor - 文本处理函数
20
20
  */
21
21
  function processTextInElement(element, processor, objParam) {
22
- var _this = this;
23
-
24
22
  // 纯文本节点:直接处理
25
23
  if (typeof element === 'string' || typeof element === 'number') {
26
24
  return processor(element, element, objParam);
@@ -29,7 +27,7 @@ function processTextInElement(element, processor, objParam) {
29
27
  // React 元素:递归处理其 children
30
28
  if (_react2['default'].isValidElement(element)) {
31
29
  return _react2['default'].cloneElement.apply(_react2['default'], [element, element.props].concat(_react2['default'].Children.map(element.props.children, function (child) {
32
- return _this.processTextInElement(child, processor);
30
+ return processTextInElement(child, processor);
33
31
  })));
34
32
  }
35
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.86-5.beta",
3
+ "version": "1.5.86-7.beta",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",