cloud-b2b 1.1.78 → 1.1.80
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.
|
@@ -236,7 +236,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
236
236
|
var key = _ref4.key,
|
|
237
237
|
type = _ref4.type;
|
|
238
238
|
var readonly = _this2.props.readonly;
|
|
239
|
-
if (_includesInstanceProperty(_context2 = ['area', 'uploadImg']).call(_context2, type)) {
|
|
239
|
+
if (_includesInstanceProperty(_context2 = ['area', 'uploadImg', 'checkbox']).call(_context2, type)) {
|
|
240
240
|
return type;
|
|
241
241
|
} else if (!readonly) {
|
|
242
242
|
return type;
|
|
@@ -510,6 +510,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
510
510
|
var options = control.options || [];
|
|
511
511
|
return /*#__PURE__*/React.createElement(_Checkbox.Group, {
|
|
512
512
|
options: options,
|
|
513
|
+
disabled: _this2.props.readonly === true,
|
|
513
514
|
onChange: _bindInstanceProperty(_context21 = _this2.onBlur).call(_context21, _this2, control.key),
|
|
514
515
|
value: _this2.props.value[control.key]
|
|
515
516
|
});
|
|
@@ -247,7 +247,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
247
247
|
var key = _ref4.key,
|
|
248
248
|
type = _ref4.type;
|
|
249
249
|
var readonly = _this2.props.readonly;
|
|
250
|
-
if ((0, _includes["default"])(_context2 = ['area', 'uploadImg']).call(_context2, type)) {
|
|
250
|
+
if ((0, _includes["default"])(_context2 = ['area', 'uploadImg', 'checkbox']).call(_context2, type)) {
|
|
251
251
|
return type;
|
|
252
252
|
} else if (!readonly) {
|
|
253
253
|
return type;
|
|
@@ -521,6 +521,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
521
521
|
var options = control.options || [];
|
|
522
522
|
return /*#__PURE__*/_react["default"].createElement(_checkbox["default"].Group, {
|
|
523
523
|
options: options,
|
|
524
|
+
disabled: _this2.props.readonly === true,
|
|
524
525
|
onChange: (0, _bind["default"])(_context21 = _this2.onBlur).call(_context21, _this2, control.key),
|
|
525
526
|
value: _this2.props.value[control.key]
|
|
526
527
|
});
|