shineout 3.6.0-beta.28 → 3.6.0-beta.29

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.0-beta.28'
517
+ version: '3.6.0-beta.29'
518
518
  };
package/dist/shineout.js CHANGED
@@ -12139,7 +12139,7 @@ var handleStyle = function handleStyle(style) {
12139
12139
  };
12140
12140
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12141
12141
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12142
- /* harmony default export */ var version = ('3.6.0-beta.28');
12142
+ /* harmony default export */ var version = ('3.6.0-beta.29');
12143
12143
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12144
12144
 
12145
12145
 
@@ -27763,6 +27763,9 @@ var treeStyle = {
27763
27763
  notTree: {
27764
27764
  '&$root > $node$leaf': {
27765
27765
  paddingLeft: 0
27766
+ },
27767
+ '& $content': {
27768
+ marginLeft: 0
27766
27769
  }
27767
27770
  },
27768
27771
  line: {
@@ -27913,14 +27916,16 @@ var treeStyle = {
27913
27916
  flex: 1,
27914
27917
  display: 'flex',
27915
27918
  alignItems: 'center',
27919
+ marginLeft: 4,
27916
27920
  // 'label&': {
27917
27921
  // cursor: 'pointer',
27918
27922
  // userSelect: 'none',
27919
27923
  // },
27920
27924
 
27921
- '$iconWrapper + &': {
27922
- marginLeft: 4
27923
- },
27925
+ // '$iconWrapper + &': {
27926
+ // marginLeft: 4,
27927
+ // },
27928
+
27924
27929
  '$contentDisabled &': {
27925
27930
  '& $text': {
27926
27931
  color: src.treeContentDisabledFontColor
@@ -54132,7 +54137,7 @@ var TreeVirtual = function TreeVirtual(props) {
54132
54137
 
54133
54138
 
54134
54139
 
54135
- 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"];
54140
+ 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"];
54136
54141
 
54137
54142
 
54138
54143
 
@@ -54195,6 +54200,7 @@ var Tree = function Tree(props) {
54195
54200
  onDragStart = props.onDragStart,
54196
54201
  propsDatum = props.datum,
54197
54202
  actionOnClick = props.actionOnClick,
54203
+ tiledData = props.tiledData,
54198
54204
  rest = objectWithoutProperties_default()(props, tree_excluded);
54199
54205
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(propActive),
54200
54206
  _useState2 = slicedToArray_default()(_useState, 2),
@@ -54362,7 +54368,6 @@ var Tree = function Tree(props) {
54362
54368
  actionOnClick: actionOnClick
54363
54369
  }));
54364
54370
  }
54365
- console.log('data', data);
54366
54371
  return /*#__PURE__*/(0,jsx_runtime.jsx)(tree_root, {
54367
54372
  rootStyle: rootStyle,
54368
54373
  isControlled: 'expanded' in props,
@@ -65459,6 +65464,10 @@ var TreeSelect = function TreeSelect(props0) {
65459
65464
  tiledData = _useTiled.data,
65460
65465
  onTiledFilter = _useTiled.onFilter,
65461
65466
  tiledExpandIcons = _useTiled.expandIcons;
65467
+ var handleExpanded = function handleExpanded(id) {
65468
+ setVirtualExpanded(id);
65469
+ onExpand === null || onExpand === void 0 || onExpand(id);
65470
+ };
65462
65471
  var _useTree = use_tree({
65463
65472
  mode: mode,
65464
65473
  value: value,
@@ -65470,14 +65479,13 @@ var TreeSelect = function TreeSelect(props0) {
65470
65479
  active: multiple ? undefined : value[0],
65471
65480
  childrenKey: childrenKey,
65472
65481
  keygen: keygen,
65473
- onExpand: onExpand,
65482
+ onExpand: handleExpanded,
65474
65483
  expanded: controlExpanded,
65475
65484
  defaultExpanded: defaultExpanded,
65476
65485
  defaultExpandAll: defaultExpandAll,
65477
65486
  isControlled: controlExpanded !== undefined
65478
65487
  }),
65479
65488
  datum = _useTree.datum,
65480
- onExpandTree = _useTree.onExpand,
65481
65489
  unControlExpanded = _useTree.expanded;
65482
65490
  var onCollapse = usePersistFn(function (collapse) {
65483
65491
  onCollapseProp === null || onCollapseProp === void 0 || onCollapseProp(collapse);
@@ -65545,10 +65553,6 @@ var TreeSelect = function TreeSelect(props0) {
65545
65553
  openPop();
65546
65554
  }
65547
65555
  });
65548
- var handleExpanded = function handleExpanded(id) {
65549
- setVirtualExpanded(id);
65550
- onExpandTree(id);
65551
- };
65552
65556
  var focusAndOpen = function focusAndOpen() {
65553
65557
  if (!focused) {
65554
65558
  var _inputRef$current2;
@@ -65686,7 +65690,6 @@ var TreeSelect = function TreeSelect(props0) {
65686
65690
  };
65687
65691
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
65688
65692
  if (virtual && expanded) {
65689
- console.log(expanded);
65690
65693
  setVirtualExpanded(expanded);
65691
65694
  }
65692
65695
  }, [expanded]);
@@ -69602,7 +69605,7 @@ var upload_interface = __webpack_require__(8821);
69602
69605
 
69603
69606
 
69604
69607
  /* harmony default export */ var src_0 = ({
69605
- version: '3.6.0-beta.28'
69608
+ version: '3.6.0-beta.29'
69606
69609
  });
69607
69610
  }();
69608
69611
  /******/ return __webpack_exports__;