shineout 3.9.2-beta.2 → 3.9.2-beta.4

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/cjs/index.js CHANGED
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.9.2-beta.2'
525
+ version: '3.9.2-beta.4'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12400,7 +12400,7 @@ var handleStyle = function handleStyle(style) {
12400
12400
  };
12401
12401
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12402
12402
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12403
- /* harmony default export */ var version = ('3.9.2-beta.2');
12403
+ /* harmony default export */ var version = ('3.9.2-beta.4');
12404
12404
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12405
12405
 
12406
12406
 
@@ -30758,9 +30758,10 @@ var usePopup = function usePopup(props) {
30758
30758
  var changeOpen = function changeOpen(openIn, delay) {
30759
30759
  if (context.triggerTimer) clearTimeout(context.triggerTimer);
30760
30760
  context.triggerTimer = setTimeout(function () {
30761
- var _props$onCollapse;
30762
- if (open === openIn) return;
30763
- (_props$onCollapse = props.onCollapse) === null || _props$onCollapse === void 0 || _props$onCollapse.call(props, openIn);
30761
+ if (open !== openIn) {
30762
+ var _props$onCollapse;
30763
+ (_props$onCollapse = props.onCollapse) === null || _props$onCollapse === void 0 || _props$onCollapse.call(props, openIn);
30764
+ }
30764
30765
  if (props.open === undefined) {
30765
30766
  setOpenState(openIn);
30766
30767
  }
@@ -58450,7 +58451,8 @@ function Select(props0) {
58450
58451
  _props$columnWidth = props.columnWidth,
58451
58452
  columnWidth = _props$columnWidth === void 0 ? 160 : _props$columnWidth,
58452
58453
  width = props.width,
58453
- trim = props.trim,
58454
+ _props$trim = props.trim,
58455
+ trim = _props$trim === void 0 ? true : _props$trim,
58454
58456
  maxLength = props.maxLength,
58455
58457
  style = props.style,
58456
58458
  reFocus = props.reFocus,
@@ -58782,8 +58784,7 @@ function Select(props0) {
58782
58784
  if (hideCreate) {
58783
58785
  // optionListRef.current?.hoverMove(filterData.length - 1, true);
58784
58786
  }
58785
- // onFilter?.(trim ? text.trim() : text, from);
58786
- onFilter === null || onFilter === void 0 || onFilter(text.trim(), from);
58787
+ onFilter === null || onFilter === void 0 || onFilter(trim ? text.trim() : text, from);
58787
58788
  };
58788
58789
  var handleOptionClick = function handleOptionClick() {
58789
58790
  if (multiple) return;
@@ -70171,7 +70172,7 @@ var TreeSelect = function TreeSelect(props0) {
70171
70172
  return d;
70172
70173
  } : _props$renderItem,
70173
70174
  _props$trim = props.trim,
70174
- trim = _props$trim === void 0 ? false : _props$trim,
70175
+ trim = _props$trim === void 0 ? true : _props$trim,
70175
70176
  placeholder = props.placeholder,
70176
70177
  renderUnmatched = props.renderUnmatched,
70177
70178
  resultClassName = props.resultClassName,
@@ -74525,7 +74526,7 @@ var upload_interface = __webpack_require__(8821);
74525
74526
 
74526
74527
 
74527
74528
  /* harmony default export */ var src_0 = ({
74528
- version: '3.9.2-beta.2'
74529
+ version: '3.9.2-beta.4'
74529
74530
  });
74530
74531
  }();
74531
74532
  /******/ return __webpack_exports__;