cloud-b2b 1.1.83 → 1.1.85

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.
@@ -262,6 +262,7 @@ var InputSearch = /*#__PURE__*/function (_React$Component) {
262
262
  onClick: this.onClick
263
263
  }, /*#__PURE__*/React.createElement(_AutoComplete, this.getProps(), /*#__PURE__*/React.createElement(_Input, {
264
264
  suffix: suffix,
265
+ placeholder: this.props.placeholder,
265
266
  style: {
266
267
  backgroundColor: this.props.isBgColor ? '#f6ffc1' : ''
267
268
  }
@@ -257,6 +257,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
257
257
  });
258
258
  _defineProperty(_assertThisInitialized(_this2), "specialProps", function (type, _ref5) {
259
259
  var key = _ref5.key,
260
+ placeholder = _ref5.placeholder,
260
261
  _ref5$props = _ref5.props,
261
262
  props = _ref5$props === void 0 ? {} : _ref5$props,
262
263
  originType = _ref5.type;
@@ -278,7 +279,8 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
278
279
  } else {
279
280
  var _context5;
280
281
  return {
281
- onBlur: _bindInstanceProperty(_context5 = _this2.onExitValid).call(_context5, _assertThisInitialized(_this2), key)
282
+ onBlur: _bindInstanceProperty(_context5 = _this2.onExitValid).call(_context5, _assertThisInitialized(_this2), key),
283
+ placeholder: placeholder
282
284
  };
283
285
  }
284
286
  } else if (type === 'text' || type === 'textArea') {
@@ -573,6 +575,8 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
573
575
  });
574
576
  _defineProperty(_assertThisInitialized(_this2), "toLabel", function (_ref12, type) {
575
577
  var title = _ref12.title,
578
+ _ref12$preWrap = _ref12.preWrap,
579
+ preWrap = _ref12$preWrap === void 0 ? false : _ref12$preWrap,
576
580
  showAdd = _ref12.showAdd,
577
581
  showQuery = _ref12.showQuery,
578
582
  key = _ref12.key,
@@ -620,6 +624,12 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
620
624
  }, /*#__PURE__*/React.createElement(_Icon, {
621
625
  type: "info-circle"
622
626
  })));
627
+ } else if (preWrap) {
628
+ return /*#__PURE__*/React.createElement("span", {
629
+ style: {
630
+ whiteSpace: 'pre-wrap'
631
+ }
632
+ }, title);
623
633
  } else {
624
634
  return title;
625
635
  }
@@ -270,6 +270,7 @@ var InputSearch = /*#__PURE__*/function (_React$Component) {
270
270
  onClick: this.onClick
271
271
  }, /*#__PURE__*/_react["default"].createElement(_autoComplete["default"], this.getProps(), /*#__PURE__*/_react["default"].createElement(_input["default"], {
272
272
  suffix: suffix,
273
+ placeholder: this.props.placeholder,
273
274
  style: {
274
275
  backgroundColor: this.props.isBgColor ? '#f6ffc1' : ''
275
276
  }
@@ -269,6 +269,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
269
269
  });
270
270
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "specialProps", function (type, _ref5) {
271
271
  var key = _ref5.key,
272
+ placeholder = _ref5.placeholder,
272
273
  _ref5$props = _ref5.props,
273
274
  props = _ref5$props === void 0 ? {} : _ref5$props,
274
275
  originType = _ref5.type;
@@ -290,7 +291,8 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
290
291
  } else {
291
292
  var _context5;
292
293
  return {
293
- onBlur: (0, _bind["default"])(_context5 = _this2.onExitValid).call(_context5, (0, _assertThisInitialized2["default"])(_this2), key)
294
+ onBlur: (0, _bind["default"])(_context5 = _this2.onExitValid).call(_context5, (0, _assertThisInitialized2["default"])(_this2), key),
295
+ placeholder: placeholder
294
296
  };
295
297
  }
296
298
  } else if (type === 'text' || type === 'textArea') {
@@ -585,6 +587,8 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
585
587
  });
586
588
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toLabel", function (_ref12, type) {
587
589
  var title = _ref12.title,
590
+ _ref12$preWrap = _ref12.preWrap,
591
+ preWrap = _ref12$preWrap === void 0 ? false : _ref12$preWrap,
588
592
  showAdd = _ref12.showAdd,
589
593
  showQuery = _ref12.showQuery,
590
594
  key = _ref12.key,
@@ -632,6 +636,12 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
632
636
  }, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
633
637
  type: "info-circle"
634
638
  })));
639
+ } else if (preWrap) {
640
+ return /*#__PURE__*/_react["default"].createElement("span", {
641
+ style: {
642
+ whiteSpace: 'pre-wrap'
643
+ }
644
+ }, title);
635
645
  } else {
636
646
  return title;
637
647
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-b2b",
3
- "version": "1.1.83",
3
+ "version": "1.1.85",
4
4
  "description": "A react component library dependent antd",
5
5
  "keywords": [
6
6
  "react",