linkmore-design 1.1.14 → 1.1.15

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/dist/index.umd.js CHANGED
@@ -34794,11 +34794,11 @@
34794
34794
  others = _objectWithoutProperties$1(props, _excluded$y);
34795
34795
 
34796
34796
  var displayRender = function displayRender(label, selectedOptions) {
34797
- var hasOptions = selectedOptions.some(function (v) {
34798
- return !!v;
34797
+ var hasUndefined = selectedOptions.some(function (v) {
34798
+ return !v;
34799
34799
  });
34800
34800
 
34801
- if (!hasOptions && defaultLabel) {
34801
+ if (hasUndefined && defaultLabel) {
34802
34802
  return defaultLabel;
34803
34803
  }
34804
34804
 
@@ -188467,22 +188467,15 @@
188467
188467
  }))));
188468
188468
  };
188469
188469
 
188470
- var _excluded$1i = ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore"],
188471
- _excluded2$i = ["allowClear"],
188472
- _excluded3$5 = ["allowClear"];
188470
+ var _excluded$1i = ["className", "size", "disabled", "allowClear"],
188471
+ _excluded2$i = ["allowClear", "className"],
188472
+ _excluded3$5 = ["allowClear", "className"];
188473
188473
  var LmInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
188474
- var customizePrefixCls = props.prefixCls,
188475
- _props$bordered = props.bordered,
188476
- customStatus = props.status,
188474
+ var className = props.className,
188477
188475
  customSize = props.size,
188478
188476
  customDisabled = props.disabled,
188479
- onBlur = props.onBlur,
188480
- onFocus = props.onFocus,
188481
- suffix = props.suffix,
188482
188477
  _props$allowClear = props.allowClear,
188483
188478
  allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
188484
- addonAfter = props.addonAfter,
188485
- addonBefore = props.addonBefore,
188486
188479
  rest = _objectWithoutProperties$1(props, _excluded$1i); // ===================== Size =====================
188487
188480
 
188488
188481
 
@@ -188492,7 +188485,7 @@
188492
188485
  var mergedDisabled = customDisabled || disabled;
188493
188486
  return /*#__PURE__*/React__default['default'].createElement(Input$3, _objectSpread(_objectSpread({
188494
188487
  ref: ref,
188495
- className: "lm_input",
188488
+ className: classnames('lm_input', className),
188496
188489
  disabled: mergedDisabled || undefined,
188497
188490
  size: size
188498
188491
  }, rest), {}, {
@@ -188503,6 +188496,7 @@
188503
188496
  LmInput.Search = /*#__PURE__*/React.forwardRef(function (props, ref) {
188504
188497
  var _props$allowClear2 = props.allowClear,
188505
188498
  allowClear = _props$allowClear2 === void 0 ? true : _props$allowClear2,
188499
+ className = props.className,
188506
188500
  rest = _objectWithoutProperties$1(props, _excluded2$i);
188507
188501
 
188508
188502
  return /*#__PURE__*/React__default['default'].createElement(Input$3.Search, _objectSpread(_objectSpread({
@@ -188512,7 +188506,7 @@
188512
188506
  }, rest), {}, {
188513
188507
  ref: ref,
188514
188508
  allowClear: allowClear,
188515
- className: "lm_input_search"
188509
+ className: classnames('lm_input_search', className)
188516
188510
  }));
188517
188511
  });
188518
188512
  LmInput.TextArea = Input$3.TextArea;
@@ -188520,10 +188514,11 @@
188520
188514
  LmInput.Password = function (props) {
188521
188515
  var _props$allowClear3 = props.allowClear,
188522
188516
  allowClear = _props$allowClear3 === void 0 ? true : _props$allowClear3,
188517
+ className = props.className,
188523
188518
  rest = _objectWithoutProperties$1(props, _excluded3$5);
188524
188519
 
188525
188520
  return /*#__PURE__*/React__default['default'].createElement(Input$3.Password, _objectSpread(_objectSpread({
188526
- className: "lm_input_password",
188521
+ className: classnames('lm_input_password', className),
188527
188522
  iconRender: function iconRender(visible) {
188528
188523
  return visible ? /*#__PURE__*/React__default['default'].createElement(IconFont, {
188529
188524
  type: "lmweb-eye"
@@ -312445,7 +312440,7 @@
312445
312440
  fontSize: 16
312446
312441
  }
312447
312442
  })
312448
- })) : /*#__PURE__*/React__default['default'].createElement(LMButton, {
312443
+ })) : (options === null || options === void 0 ? void 0 : options.includes('add')) || (options === null || options === void 0 ? void 0 : options.includes('addInChildren')) ? /*#__PURE__*/React__default['default'].createElement(LMButton, {
312449
312444
  type: "link",
312450
312445
  size: "small",
312451
312446
  icon: /*#__PURE__*/React__default['default'].createElement(IconFont, {
@@ -312457,7 +312452,7 @@
312457
312452
  onClick: function onClick() {
312458
312453
  return handleAdd(record, (options === null || options === void 0 ? void 0 : options.includes('addInChildren')) ? true : false);
312459
312454
  }
312460
- }));
312455
+ }) : null);
312461
312456
  }; // const isValidValue = (verifyValue) => {
312462
312457
  // const toStringValue = JSON.stringify(verifyValue);
312463
312458
  // if (verifyValue === undefined || verifyValue === null || verifyValue === '' || toStringValue === '[]' || toStringValue === '{}') {