shineout 3.7.0-beta.16 → 3.7.0-beta.18

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
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
514
514
  // 此文件由脚本自动生成,请勿直接修改。
515
515
  // This file was generated automatically by a script. Please do not modify it directly.
516
516
  var _default = exports.default = {
517
- version: '3.7.0-beta.16'
517
+ version: '3.7.0-beta.18'
518
518
  };
package/dist/shineout.js CHANGED
@@ -12217,7 +12217,7 @@ var handleStyle = function handleStyle(style) {
12217
12217
  };
12218
12218
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12219
12219
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12220
- /* harmony default export */ var version = ('3.7.0-beta.16');
12220
+ /* harmony default export */ var version = ('3.7.0-beta.18');
12221
12221
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12222
12222
 
12223
12223
 
@@ -40471,7 +40471,7 @@ var More = function More(props) {
40471
40471
  mode: visible ? 'fill' : 'bright',
40472
40472
  color: visible ? 'info' : 'default',
40473
40473
  children: shouldShowMore ? '+' : "+".concat(itemsLength)
40474
- }, 'more'), /*#__PURE__*/(0,jsx_runtime.jsx)(src_popover_popover, {
40474
+ }, 'more'), compressed !== 'hide-popover' && /*#__PURE__*/(0,jsx_runtime.jsx)(src_popover_popover, {
40475
40475
  jssStyle: jssStyle,
40476
40476
  className: compressedClassName,
40477
40477
  visible: visible,
@@ -53603,7 +53603,7 @@ var NodeContent = function NodeContent(props) {
53603
53603
  var handleNodeCheck = function handleNodeCheck(_, checked) {
53604
53604
  set(id, checked ? 1 : 0);
53605
53605
  if (onChange) {
53606
- onChange(getValue());
53606
+ onChange(getValue(), id);
53607
53607
  }
53608
53608
  };
53609
53609
  var checked = getChecked(id);
@@ -55295,6 +55295,7 @@ function Select(props0) {
55295
55295
  compressed = props.compressed,
55296
55296
  compressedBound = props.compressedBound,
55297
55297
  compressedClassName = props.compressedClassName,
55298
+ renderCompressed = props.renderCompressed,
55298
55299
  placeholder = props.placeholder,
55299
55300
  emptyAfterSelect = props.emptyAfterSelect,
55300
55301
  autoAdapt = props.autoAdapt,
@@ -55731,6 +55732,7 @@ function Select(props0) {
55731
55732
  reFocus: reFocus,
55732
55733
  convertBr: convertBr,
55733
55734
  compressed: compressed,
55735
+ renderCompressed: renderCompressed,
55734
55736
  compressedBound: compressedBound,
55735
55737
  compressedClassName: compressedClassName,
55736
55738
  multiple: multiple,
@@ -62853,6 +62855,8 @@ var Tr = function Tr(props) {
62853
62855
  });
62854
62856
  var setVirtualRowHeight = usePersistFn(function () {
62855
62857
  if (props.setRowHeight && trRef.current) {
62858
+ // 祖先元素不可见时(display: none)
62859
+ if (!trRef.current.offsetParent) return;
62856
62860
  var expandHeight = expandRef.current ? expandRef.current.getBoundingClientRect().height : 0;
62857
62861
  props.setRowHeight(props.rowIndex, trRef.current.getBoundingClientRect().height + expandHeight);
62858
62862
  }
@@ -66102,6 +66106,7 @@ var TreeSelect = function TreeSelect(props0) {
66102
66106
  onChangeProp = props.onChange,
66103
66107
  compressedBound = props.compressedBound,
66104
66108
  compressedClassName = props.compressedClassName,
66109
+ renderCompressed = props.renderCompressed,
66105
66110
  expandedProp = props.expanded,
66106
66111
  defaultExpanded = props.defaultExpanded,
66107
66112
  defaultExpandAll = props.defaultExpandAll,
@@ -66509,6 +66514,7 @@ var TreeSelect = function TreeSelect(props0) {
66509
66514
  disabled: disabled,
66510
66515
  compressed: compressed,
66511
66516
  compressedBound: compressedBound,
66517
+ renderCompressed: renderCompressed,
66512
66518
  compressedClassName: compressedClassName,
66513
66519
  multiple: multiple,
66514
66520
  placeholder: placeholder,
@@ -70367,7 +70373,7 @@ var upload_interface = __webpack_require__(8821);
70367
70373
 
70368
70374
 
70369
70375
  /* harmony default export */ var src_0 = ({
70370
- version: '3.7.0-beta.16'
70376
+ version: '3.7.0-beta.18'
70371
70377
  });
70372
70378
  }();
70373
70379
  /******/ return __webpack_exports__;