easy3wui 4.0.28-beta4 → 4.0.28-beta6
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.
|
@@ -291,7 +291,7 @@ var Easy3wFormPage = function (_Component) {
|
|
|
291
291
|
}
|
|
292
292
|
itemNew = (0, _extends3['default'])({}, item, { cmptPros: newCmptPros });
|
|
293
293
|
}
|
|
294
|
-
if (fieldType === 'textarea' && allReadFlag
|
|
294
|
+
if (fieldType === 'textarea' && (allReadFlag || readFlag)) {
|
|
295
295
|
itemNew.disabled = true;
|
|
296
296
|
}
|
|
297
297
|
switch (fieldType) {
|
|
@@ -274,8 +274,10 @@ var Easy3wNewFormPage = function (_Component) {
|
|
|
274
274
|
func(e);
|
|
275
275
|
}
|
|
276
276
|
}, _this.getItemArea = function (item) {
|
|
277
|
+
var allReadFlag = _this.props.allReadFlag;
|
|
277
278
|
var fieldType = item.fieldType,
|
|
278
279
|
cmptPros = item.cmptPros,
|
|
280
|
+
readFlag = item.readFlag,
|
|
279
281
|
disableFlag = item.disableFlag;
|
|
280
282
|
|
|
281
283
|
var itemNew = item;
|
|
@@ -288,6 +290,9 @@ var Easy3wNewFormPage = function (_Component) {
|
|
|
288
290
|
}
|
|
289
291
|
itemNew = (0, _extends3['default'])({}, item, { cmptPros: newCmptPros });
|
|
290
292
|
}
|
|
293
|
+
if (fieldType === 'textarea' && (allReadFlag || readFlag)) {
|
|
294
|
+
itemNew.disabled = true;
|
|
295
|
+
}
|
|
291
296
|
switch (fieldType) {
|
|
292
297
|
case 'autoComplete':
|
|
293
298
|
return _this.autoCompleteHandler(itemNew);
|
|
@@ -499,6 +504,10 @@ var Easy3wNewFormPage = function (_Component) {
|
|
|
499
504
|
disableFlagReal = true;
|
|
500
505
|
}
|
|
501
506
|
}
|
|
507
|
+
// 只读文本框改为禁止录入
|
|
508
|
+
if (fieldType === 'textarea' && (readFlag || allReadFlag)) {
|
|
509
|
+
disableFlagReal = true;
|
|
510
|
+
}
|
|
502
511
|
if (loadFinishFlag === true && bigFormFlag === true) {
|
|
503
512
|
if ((fieldType === 'input' || fieldType === 'textarea') && !hadOnBlurFlag && !disableFlagReal && !notProxyOnblurFlag) {
|
|
504
513
|
decoratorObj = (0, _extends3['default'])({}, decoratorObj, {
|
|
@@ -507,7 +516,7 @@ var Easy3wNewFormPage = function (_Component) {
|
|
|
507
516
|
});
|
|
508
517
|
}
|
|
509
518
|
}
|
|
510
|
-
if (readFlag || allReadFlag) {
|
|
519
|
+
if ((readFlag || allReadFlag) && fieldType !== 'textarea') {
|
|
511
520
|
if (fieldType === 'braftEditor') {
|
|
512
521
|
return _react2['default'].createElement(
|
|
513
522
|
FormItem,
|