cloud-b2b 1.1.22 → 1.1.24

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/es/Area/Area.js CHANGED
@@ -152,7 +152,8 @@ var Area = /*#__PURE__*/function (_React$Component) {
152
152
  onChange: _bindInstanceProperty(_context3 = _this2.onChange).call(_context3, _this2, item.key),
153
153
  options: childOptions,
154
154
  value: value[item.key] && value[item.key].title ? value[item.key].title : value[item.key],
155
- type: readonly ? 'readonly' : item.type
155
+ type: readonly ? 'readonly' : item.type,
156
+ searchWhenClick: true
156
157
  });
157
158
 
158
159
  return /*#__PURE__*/React.createElement(_Col, {
@@ -98,7 +98,8 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
98
98
  key: index,
99
99
  value: String(option.value),
100
100
  text: option.title,
101
- remark: option.remark || ''
101
+ remark: option.remark || '',
102
+ disabled: option.disabled || false
102
103
  }, /*#__PURE__*/React.createElement("span", null, option.title), /*#__PURE__*/React.createElement("span", {
103
104
  style: OPTION_STYLE
104
105
  }, option.remark || ''));
@@ -107,7 +108,8 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
107
108
  _defineProperty(_assertThisInitialized(_this), "toOption", function (option, index) {
108
109
  return /*#__PURE__*/React.createElement(SelectOption, {
109
110
  key: index,
110
- value: String(option.value)
111
+ value: String(option.value),
112
+ disabled: option.disabled || false
111
113
  }, option.title);
112
114
  });
113
115
 
@@ -152,7 +154,9 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
152
154
  options = _this$props2$options === void 0 ? [] : _this$props2$options,
153
155
  size = _this$props2.size,
154
156
  _this$props2$value = _this$props2.value,
155
- value = _this$props2$value === void 0 ? [] : _this$props2$value;
157
+ value = _this$props2$value === void 0 ? [] : _this$props2$value,
158
+ _this$props2$allowCle = _this$props2.allowClear,
159
+ allowClear = _this$props2$allowCle === void 0 ? true : _this$props2$allowCle;
156
160
 
157
161
  var values = _mapInstanceProperty(value).call(value, function (o) {
158
162
  return o.value;
@@ -172,7 +176,7 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
172
176
  onSearch: this.onSearch,
173
177
  onChange: _bindInstanceProperty(_context4 = this.onChange).call(_context4, this, allOptions),
174
178
  labelInValue: true,
175
- allowClear: true,
179
+ allowClear: allowClear,
176
180
  size: size
177
181
  };
178
182
  return /*#__PURE__*/React.createElement("div", {
@@ -412,8 +412,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
412
412
  type: type
413
413
  }, props), {}, {
414
414
  size: defaultSize,
415
- value: makeString(value[control.key]),
416
- readonly: readonly
415
+ value: makeString(value[control.key])
417
416
  });
418
417
  });
419
418
 
package/lib/Area/Area.js CHANGED
@@ -180,7 +180,8 @@ var Area = /*#__PURE__*/function (_React$Component) {
180
180
  onChange: (0, _bind["default"])(_context3 = _this2.onChange).call(_context3, _this2, item.key),
181
181
  options: childOptions,
182
182
  value: value[item.key] && value[item.key].title ? value[item.key].title : value[item.key],
183
- type: readonly ? 'readonly' : item.type
183
+ type: readonly ? 'readonly' : item.type,
184
+ searchWhenClick: true
184
185
  });
185
186
 
186
187
  return /*#__PURE__*/_react["default"].createElement(_col["default"], {
@@ -128,7 +128,8 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
128
128
  key: index,
129
129
  value: String(option.value),
130
130
  text: option.title,
131
- remark: option.remark || ''
131
+ remark: option.remark || '',
132
+ disabled: option.disabled || false
132
133
  }, /*#__PURE__*/_react["default"].createElement("span", null, option.title), /*#__PURE__*/_react["default"].createElement("span", {
133
134
  style: OPTION_STYLE
134
135
  }, option.remark || ''));
@@ -136,7 +137,8 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
136
137
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toOption", function (option, index) {
137
138
  return /*#__PURE__*/_react["default"].createElement(SelectOption, {
138
139
  key: index,
139
- value: String(option.value)
140
+ value: String(option.value),
141
+ disabled: option.disabled || false
140
142
  }, option.title);
141
143
  });
142
144
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (options, keyValue) {
@@ -178,7 +180,9 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
178
180
  options = _this$props2$options === void 0 ? [] : _this$props2$options,
179
181
  size = _this$props2.size,
180
182
  _this$props2$value = _this$props2.value,
181
- value = _this$props2$value === void 0 ? [] : _this$props2$value;
183
+ value = _this$props2$value === void 0 ? [] : _this$props2$value,
184
+ _this$props2$allowCle = _this$props2.allowClear,
185
+ allowClear = _this$props2$allowCle === void 0 ? true : _this$props2$allowCle;
182
186
  var values = (0, _map["default"])(value).call(value, function (o) {
183
187
  return o.value;
184
188
  });
@@ -195,7 +199,7 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
195
199
  onSearch: this.onSearch,
196
200
  onChange: (0, _bind["default"])(_context4 = this.onChange).call(_context4, this, allOptions),
197
201
  labelInValue: true,
198
- allowClear: true,
202
+ allowClear: allowClear,
199
203
  size: size
200
204
  };
201
205
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -448,8 +448,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
448
448
  type: type
449
449
  }, props), {}, {
450
450
  size: defaultSize,
451
- value: (0, _Control.makeString)(value[control.key]),
452
- readonly: readonly
451
+ value: (0, _Control.makeString)(value[control.key])
453
452
  });
454
453
  });
455
454
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getOptions", function (key, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-b2b",
3
- "version": "1.1.22",
3
+ "version": "1.1.24",
4
4
  "description": "A react component library dependent antd",
5
5
  "keywords": [
6
6
  "react",