shineout 3.6.4-beta.5 → 3.6.4-beta.6

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.6.4-beta.5'
517
+ version: '3.6.4-beta.6'
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.6.4-beta.5');
12220
+ /* harmony default export */ var version = ('3.6.4-beta.6');
12221
12221
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12222
12222
 
12223
12223
 
@@ -41401,8 +41401,9 @@ var Cascader = function Cascader(props0) {
41401
41401
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
41402
41402
  if (!value) return;
41403
41403
  datum.setValue(value);
41404
+ if (!open) return;
41404
41405
  updatePathByValue();
41405
- }, [value]);
41406
+ }, [value, open]);
41406
41407
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
41407
41408
  if (filterText !== undefined) {
41408
41409
  updatePath();
@@ -54307,6 +54308,7 @@ var TreeVirtual = function TreeVirtual(props) {
54307
54308
  height = props.height,
54308
54309
  _props$lineHeight = props.lineHeight,
54309
54310
  lineHeight = _props$lineHeight === void 0 ? 36 : _props$lineHeight,
54311
+ rowsInView = props.rowsInView,
54310
54312
  line = props.line,
54311
54313
  mode = props.mode,
54312
54314
  contentClass = props.contentClass,
@@ -54368,7 +54370,7 @@ var TreeVirtual = function TreeVirtual(props) {
54368
54370
  return /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_list, {
54369
54371
  data: datum.dataFlat,
54370
54372
  height: height,
54371
- rowsInView: 10,
54373
+ rowsInView: rowsInView,
54372
54374
  scrollerStyle: {
54373
54375
  height: '100%',
54374
54376
  width: '100%',
@@ -54388,7 +54390,7 @@ var TreeVirtual = function TreeVirtual(props) {
54388
54390
 
54389
54391
 
54390
54392
 
54391
- var tree_excluded = ["jssStyle", "line", "childrenKey", "data", "value", "mode", "keygen", "virtual", "expanded", "expandIcons", "iconClass", "leafClass", "nodeClass", "contentClass", "rootStyle", "renderItem", "defaultValue", "dataUpdate", "childrenClass", "defaultExpandAll", "defaultExpanded", "parentClickExpand", "doubleClickExpand", "dragImageSelector", "dragImageStyle", "dragSibling", "unmatch", "ignoreSetFlat", "dragHoverExpand", "active", "setActive", "disabled", "inlineNode", "highlight", "className", "onClick", "loader", "getDatum", "onDrop", "onExpand", "onChange", "onDragEnd", "onDragLeave", "onDragOver", "onDragStart", "datum", "actionOnClick", "tiledData"];
54393
+ var tree_excluded = ["jssStyle", "line", "childrenKey", "data", "value", "mode", "keygen", "virtual", "expanded", "expandIcons", "iconClass", "leafClass", "nodeClass", "contentClass", "rootStyle", "renderItem", "defaultValue", "dataUpdate", "childrenClass", "defaultExpandAll", "defaultExpanded", "parentClickExpand", "doubleClickExpand", "dragImageSelector", "dragImageStyle", "dragSibling", "unmatch", "ignoreSetFlat", "dragHoverExpand", "active", "setActive", "disabled", "inlineNode", "highlight", "className", "onClick", "loader", "getDatum", "onDrop", "onExpand", "onChange", "onDragEnd", "onDragLeave", "onDragOver", "onDragStart", "datum", "rowsInView", "actionOnClick", "tiledData"];
54392
54394
 
54393
54395
 
54394
54396
 
@@ -54450,6 +54452,8 @@ var Tree = function Tree(props) {
54450
54452
  onDragOver = props.onDragOver,
54451
54453
  onDragStart = props.onDragStart,
54452
54454
  propsDatum = props.datum,
54455
+ _props$rowsInView = props.rowsInView,
54456
+ rowsInView = _props$rowsInView === void 0 ? 20 : _props$rowsInView,
54453
54457
  actionOnClick = props.actionOnClick,
54454
54458
  tiledData = props.tiledData,
54455
54459
  rest = objectWithoutProperties_default()(props, tree_excluded);
@@ -54609,6 +54613,7 @@ var Tree = function Tree(props) {
54609
54613
  return /*#__PURE__*/(0,jsx_runtime.jsx)(tree_virtual, objectSpread2_default()(objectSpread2_default()({}, props), {}, {
54610
54614
  data: data,
54611
54615
  line: line,
54616
+ rowsInView: rowsInView,
54612
54617
  expanded: expanded,
54613
54618
  height: realHeight,
54614
54619
  childrenKey: props.childrenKey || 'children',
@@ -69919,7 +69924,7 @@ var upload_interface = __webpack_require__(8821);
69919
69924
 
69920
69925
 
69921
69926
  /* harmony default export */ var src_0 = ({
69922
- version: '3.6.4-beta.5'
69927
+ version: '3.6.4-beta.6'
69923
69928
  });
69924
69929
  }();
69925
69930
  /******/ return __webpack_exports__;