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.
- package/lib/Easy3wFormPage/indexPC.js +40 -40
- package/lib/Easy3wI18N/index.js +1 -3
- package/package.json +1 -1
|
@@ -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
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
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
|
-
|
|
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 = [];
|
package/lib/Easy3wI18N/index.js
CHANGED
|
@@ -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
|
|
30
|
+
return processTextInElement(child, processor);
|
|
33
31
|
})));
|
|
34
32
|
}
|
|
35
33
|
|