easy3wui 4.0.29 → 4.0.31-beta1
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.
|
@@ -488,7 +488,7 @@ var Easy3wFormPage = function (_Component) {
|
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
var objValidator = {};
|
|
491
|
-
if (fieldType === 'braftEditor' && required) {
|
|
491
|
+
if (fieldType === 'braftEditor' && required && !(readFlag || allReadFlag)) {
|
|
492
492
|
objValidator = {
|
|
493
493
|
validator: _this.validatorBraftEditor
|
|
494
494
|
};
|
|
@@ -501,7 +501,7 @@ var Easy3wNewFormPage = function (_Component) {
|
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
var objValidator = {};
|
|
504
|
-
if (fieldType === 'braftEditor' && required) {
|
|
504
|
+
if (fieldType === 'braftEditor' && required && !(readFlag || allReadFlag)) {
|
|
505
505
|
objValidator = {
|
|
506
506
|
validator: _this.validatorBraftEditor
|
|
507
507
|
};
|
|
@@ -546,10 +546,11 @@ var Easy3wNewFormPage = function (_Component) {
|
|
|
546
546
|
// 只读文本框改为禁止录入
|
|
547
547
|
if (fieldType === 'textarea' && (readFlag || allReadFlag)) {
|
|
548
548
|
disableFlagReal = true;
|
|
549
|
-
|
|
550
|
-
decoratorObj =
|
|
551
|
-
|
|
552
|
-
|
|
549
|
+
// } else if (fieldType === 'braftEditor') {
|
|
550
|
+
// decoratorObj = {
|
|
551
|
+
// ...decoratorObj,
|
|
552
|
+
// valuePropName: 'defaultValue',
|
|
553
|
+
// };
|
|
553
554
|
}
|
|
554
555
|
if (loadFinishFlag === true && bigFormFlag === true) {
|
|
555
556
|
if ((fieldType === 'input' || fieldType === 'textarea') && !hadOnBlurFlag && !disableFlagReal && !notProxyOnblurFlag) {
|
|
@@ -581,7 +582,7 @@ var Easy3wNewFormPage = function (_Component) {
|
|
|
581
582
|
FormItem,
|
|
582
583
|
(0, _extends3['default'])({
|
|
583
584
|
label: label,
|
|
584
|
-
name: fieldId
|
|
585
|
+
name: fieldId,
|
|
585
586
|
style: formItemStyle
|
|
586
587
|
}, decoratorObj, formItemLayout, formItemProps),
|
|
587
588
|
_react2['default'].createElement(_input2['default'], { style: { border: 'none', background: 'none' }, disabled: true })
|