easy3wui 1.4.223 → 1.4.224
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/index.js +10 -6
- package/package.json +1 -1
|
@@ -388,9 +388,13 @@ var Easy3wFormPage = function (_Component) {
|
|
|
388
388
|
|
|
389
389
|
if (treeData && treeData.length > 0) {
|
|
390
390
|
if (typeof value === 'object') {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
391
|
+
if (!value) {
|
|
392
|
+
value = undefined;
|
|
393
|
+
} else if (!value.key && !value.value) {
|
|
394
|
+
value = undefined;
|
|
395
|
+
} else if (value instanceof Array) {
|
|
396
|
+
// 数组
|
|
397
|
+
var arrVal = value && value.map(function (itemVal) {
|
|
394
398
|
return itemVal.label;
|
|
395
399
|
});
|
|
396
400
|
value = arrVal.join();
|
|
@@ -1379,11 +1383,11 @@ var Easy3wFormPage = function (_Component) {
|
|
|
1379
1383
|
var findObj = ''; // 只读单选字符串
|
|
1380
1384
|
var afterBtns = _this.getAfterBtn(item);
|
|
1381
1385
|
selectOpts = optionLst && optionLst.map(function (opt) {
|
|
1382
|
-
return _react2['default'].createElement(
|
|
1386
|
+
return opt.key || opt.value ? _react2['default'].createElement(
|
|
1383
1387
|
Option,
|
|
1384
|
-
{ key: opt.value },
|
|
1388
|
+
{ key: opt.value || opt.key, disabled: opt.disabled },
|
|
1385
1389
|
opt.label
|
|
1386
|
-
);
|
|
1390
|
+
) : '';
|
|
1387
1391
|
});
|
|
1388
1392
|
var allContents = optionLst && optionLst.map(function (opt) {
|
|
1389
1393
|
if (value && value instanceof Array && value.length > 0) {
|