shineout 3.6.0-beta.13 → 3.6.0-beta.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.
Files changed (165) hide show
  1. package/cjs/alert/alert.d.ts +1 -2
  2. package/cjs/avatar/avatar.d.ts +1 -2
  3. package/cjs/avatar/group.d.ts +1 -2
  4. package/cjs/badge/badge.d.ts +1 -2
  5. package/cjs/breadcrumb/breadcrumb.d.ts +1 -2
  6. package/cjs/button/button.d.ts +1 -2
  7. package/cjs/button/group.d.ts +1 -2
  8. package/cjs/card/accordion.d.ts +1 -2
  9. package/cjs/card/body.d.ts +1 -2
  10. package/cjs/card/card.d.ts +1 -2
  11. package/cjs/card/footer.d.ts +1 -2
  12. package/cjs/card/header.d.ts +1 -2
  13. package/cjs/card/index.d.ts +5 -6
  14. package/cjs/card-group/card-group.d.ts +1 -2
  15. package/cjs/card-group/index.d.ts +1 -2
  16. package/cjs/card-group/item.d.ts +1 -2
  17. package/cjs/carousel/carousel.d.ts +1 -2
  18. package/cjs/cascader/cascader.d.ts +1 -2
  19. package/cjs/checkbox/checkbox.d.ts +1 -2
  20. package/cjs/checkbox/group.d.ts +1 -2
  21. package/cjs/collapse/collapse-item.d.ts +1 -2
  22. package/cjs/collapse/collapse.d.ts +1 -2
  23. package/cjs/date-picker/date-picker.d.ts +1 -2
  24. package/cjs/descriptions/descriptions.d.ts +1 -2
  25. package/cjs/divider/divider.d.ts +1 -2
  26. package/cjs/drawer/drawer.d.ts +1 -2
  27. package/cjs/dropdown/dropdown.d.ts +1 -2
  28. package/cjs/editable-area/editable-area.d.ts +1 -2
  29. package/cjs/empty/empty.d.ts +1 -2
  30. package/cjs/form/form-button.d.ts +3 -4
  31. package/cjs/form/form-field.d.ts +1 -2
  32. package/cjs/form/form-fieldset.d.ts +1 -2
  33. package/cjs/form/form-item.d.ts +1 -2
  34. package/cjs/form/form.d.ts +1 -2
  35. package/cjs/form/index.d.ts +6 -6
  36. package/cjs/gap/gap.d.ts +1 -2
  37. package/cjs/hooks/use-field-common.d.ts +1 -1
  38. package/cjs/icon/icon.d.ts +1 -2
  39. package/cjs/image/group.d.ts +1 -2
  40. package/cjs/image/image.d.ts +1 -2
  41. package/cjs/index.js +1 -1
  42. package/cjs/input/group.d.ts +1 -2
  43. package/cjs/input/input.d.ts +1 -1
  44. package/cjs/input/number.d.ts +1 -2
  45. package/cjs/input/password.d.ts +1 -2
  46. package/cjs/link/link.d.ts +1 -2
  47. package/cjs/list/base-item.d.ts +1 -2
  48. package/cjs/list/list.d.ts +1 -2
  49. package/cjs/menu/menu.d.ts +1 -2
  50. package/cjs/menu/search.d.ts +1 -2
  51. package/cjs/modal/modal.d.ts +1 -2
  52. package/cjs/modal/submit.d.ts +1 -2
  53. package/cjs/pagination/pagination.d.ts +1 -2
  54. package/cjs/popover/confirm.d.ts +1 -2
  55. package/cjs/popover/popover.d.ts +2 -3
  56. package/cjs/progress/progress.d.ts +1 -2
  57. package/cjs/radio/group.d.ts +1 -2
  58. package/cjs/radio/radio.d.ts +1 -2
  59. package/cjs/rate/rate.d.ts +1 -2
  60. package/cjs/slider/slider.d.ts +1 -2
  61. package/cjs/spin/spin.d.ts +1 -2
  62. package/cjs/steps/step.d.ts +1 -2
  63. package/cjs/steps/steps.d.ts +1 -2
  64. package/cjs/sticky/sticky.d.ts +1 -2
  65. package/cjs/switch/switch.d.ts +1 -2
  66. package/cjs/table/table.d.ts +1 -2
  67. package/cjs/tabs/tabs-panel.d.ts +1 -2
  68. package/cjs/tabs/tabs.d.ts +1 -2
  69. package/cjs/tag/tag-input.d.ts +1 -2
  70. package/cjs/tag/tag.d.ts +1 -2
  71. package/cjs/tests/t-01-tabs-link.d.ts +1 -2
  72. package/cjs/textarea/textarea.d.ts +1 -2
  73. package/cjs/tooltip/tooltip.d.ts +1 -2
  74. package/cjs/transfer/transfer.d.ts +1 -2
  75. package/cjs/tree/tree.d.ts +1 -2
  76. package/cjs/tree-select/tree-select.d.ts +1 -2
  77. package/cjs/upload/button.d.ts +1 -2
  78. package/cjs/upload/image.d.ts +1 -2
  79. package/cjs/upload/upload.d.ts +1 -2
  80. package/cjs/utils/dom/detect.d.ts +1 -1
  81. package/dist/shineout.js +59 -15
  82. package/dist/shineout.js.map +1 -1
  83. package/dist/shineout.min.js +1 -1
  84. package/dist/shineout.min.js.map +1 -1
  85. package/esm/alert/alert.d.ts +1 -2
  86. package/esm/avatar/avatar.d.ts +1 -2
  87. package/esm/avatar/group.d.ts +1 -2
  88. package/esm/badge/badge.d.ts +1 -2
  89. package/esm/breadcrumb/breadcrumb.d.ts +1 -2
  90. package/esm/button/button.d.ts +1 -2
  91. package/esm/button/group.d.ts +1 -2
  92. package/esm/card/accordion.d.ts +1 -2
  93. package/esm/card/body.d.ts +1 -2
  94. package/esm/card/card.d.ts +1 -2
  95. package/esm/card/footer.d.ts +1 -2
  96. package/esm/card/header.d.ts +1 -2
  97. package/esm/card/index.d.ts +5 -6
  98. package/esm/card-group/card-group.d.ts +1 -2
  99. package/esm/card-group/index.d.ts +1 -2
  100. package/esm/card-group/item.d.ts +1 -2
  101. package/esm/carousel/carousel.d.ts +1 -2
  102. package/esm/cascader/cascader.d.ts +1 -2
  103. package/esm/checkbox/checkbox.d.ts +1 -2
  104. package/esm/checkbox/group.d.ts +1 -2
  105. package/esm/collapse/collapse-item.d.ts +1 -2
  106. package/esm/collapse/collapse.d.ts +1 -2
  107. package/esm/date-picker/date-picker.d.ts +1 -2
  108. package/esm/descriptions/descriptions.d.ts +1 -2
  109. package/esm/divider/divider.d.ts +1 -2
  110. package/esm/drawer/drawer.d.ts +1 -2
  111. package/esm/dropdown/dropdown.d.ts +1 -2
  112. package/esm/editable-area/editable-area.d.ts +1 -2
  113. package/esm/empty/empty.d.ts +1 -2
  114. package/esm/form/form-button.d.ts +3 -4
  115. package/esm/form/form-field.d.ts +1 -2
  116. package/esm/form/form-fieldset.d.ts +1 -2
  117. package/esm/form/form-item.d.ts +1 -2
  118. package/esm/form/form.d.ts +1 -2
  119. package/esm/form/index.d.ts +6 -6
  120. package/esm/gap/gap.d.ts +1 -2
  121. package/esm/hooks/use-field-common.d.ts +1 -1
  122. package/esm/icon/icon.d.ts +1 -2
  123. package/esm/image/group.d.ts +1 -2
  124. package/esm/image/image.d.ts +1 -2
  125. package/esm/index.js +1 -1
  126. package/esm/input/group.d.ts +1 -2
  127. package/esm/input/input.d.ts +1 -1
  128. package/esm/input/number.d.ts +1 -2
  129. package/esm/input/password.d.ts +1 -2
  130. package/esm/link/link.d.ts +1 -2
  131. package/esm/list/base-item.d.ts +1 -2
  132. package/esm/list/list.d.ts +1 -2
  133. package/esm/menu/menu.d.ts +1 -2
  134. package/esm/menu/search.d.ts +1 -2
  135. package/esm/modal/modal.d.ts +1 -2
  136. package/esm/modal/submit.d.ts +1 -2
  137. package/esm/pagination/pagination.d.ts +1 -2
  138. package/esm/popover/confirm.d.ts +1 -2
  139. package/esm/popover/popover.d.ts +2 -3
  140. package/esm/progress/progress.d.ts +1 -2
  141. package/esm/radio/group.d.ts +1 -2
  142. package/esm/radio/radio.d.ts +1 -2
  143. package/esm/rate/rate.d.ts +1 -2
  144. package/esm/slider/slider.d.ts +1 -2
  145. package/esm/spin/spin.d.ts +1 -2
  146. package/esm/steps/step.d.ts +1 -2
  147. package/esm/steps/steps.d.ts +1 -2
  148. package/esm/sticky/sticky.d.ts +1 -2
  149. package/esm/switch/switch.d.ts +1 -2
  150. package/esm/table/table.d.ts +1 -2
  151. package/esm/tabs/tabs-panel.d.ts +1 -2
  152. package/esm/tabs/tabs.d.ts +1 -2
  153. package/esm/tag/tag-input.d.ts +1 -2
  154. package/esm/tag/tag.d.ts +1 -2
  155. package/esm/tests/t-01-tabs-link.d.ts +1 -2
  156. package/esm/textarea/textarea.d.ts +1 -2
  157. package/esm/tooltip/tooltip.d.ts +1 -2
  158. package/esm/transfer/transfer.d.ts +1 -2
  159. package/esm/tree/tree.d.ts +1 -2
  160. package/esm/tree-select/tree-select.d.ts +1 -2
  161. package/esm/upload/button.d.ts +1 -2
  162. package/esm/upload/image.d.ts +1 -2
  163. package/esm/upload/upload.d.ts +1 -2
  164. package/esm/utils/dom/detect.d.ts +1 -1
  165. package/package.json +5 -5
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TextareaProps } from './textarea.type';
3
- declare const _default: (props: TextareaProps) => JSX.Element;
2
+ declare const _default: (props: TextareaProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TooltipProps } from './tooltip.type';
3
- declare const _default: (props: TooltipProps) => JSX.Element;
2
+ declare const _default: (props: TooltipProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default _default;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  import { KeygenResult } from '@sheinx/hooks';
3
2
  import { TransferProps } from './transfer.type';
4
- declare const _default: <DataItem, Value extends KeygenResult[]>(props: TransferProps<DataItem, Value>) => JSX.Element;
3
+ declare const _default: <DataItem, Value extends KeygenResult[]>(props: TransferProps<DataItem, Value>) => import("react/jsx-runtime").JSX.Element;
5
4
  export default _default;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { TreeProps } from './tree.type';
3
2
  declare const Tree: {
4
- <DataItem, Value extends any[]>(props: TreeProps<DataItem, Value>): JSX.Element;
3
+ <DataItem, Value extends any[]>(props: TreeProps<DataItem, Value>): import("react/jsx-runtime").JSX.Element;
5
4
  displayName: string;
6
5
  };
7
6
  export default Tree;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  import { TreeSelectValueType } from '@sheinx/base';
3
2
  import { TreeSelectProps } from './tree-select.type';
4
- declare const _default: <DataItem, Value extends TreeSelectValueType>(props: TreeSelectProps<DataItem, Value>) => JSX.Element;
3
+ declare const _default: <DataItem, Value extends TreeSelectValueType>(props: TreeSelectProps<DataItem, Value>) => import("react/jsx-runtime").JSX.Element;
5
4
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UploadButtonProps } from './button.type';
3
- declare const _default: <T>(props: UploadButtonProps<T>) => JSX.Element;
2
+ declare const _default: <T>(props: UploadButtonProps<T>) => import("react/jsx-runtime").JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UploadImageProps } from './image.type';
3
- declare const _default: <T>(props: UploadImageProps<T>) => JSX.Element;
2
+ declare const _default: <T>(props: UploadImageProps<T>) => import("react/jsx-runtime").JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UploadProps } from './upload.type';
3
- declare const _default: <T>(props: UploadProps<T>) => JSX.Element;
2
+ declare const _default: <T>(props: UploadProps<T>) => import("react/jsx-runtime").JSX.Element;
4
3
  export default _default;
@@ -5,7 +5,7 @@ export declare const TRANSFORMS: {
5
5
  MozTransform: string;
6
6
  transform: string;
7
7
  };
8
- export declare function getTransformName(): "transform" | "webkitTransform" | "msTransform" | "OTransform" | "MozTransform";
8
+ export declare function getTransformName(): "transform" | "webkitTransform" | "msTransform" | "MozTransform" | "OTransform";
9
9
  export declare function has3d(): boolean;
10
10
  export declare const eventPassive: boolean | {
11
11
  passive: boolean;
package/dist/shineout.js CHANGED
@@ -12130,7 +12130,7 @@ var handleStyle = function handleStyle(style) {
12130
12130
  };
12131
12131
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12132
12132
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12133
- /* harmony default export */ var version = ('3.6.0-beta.13');
12133
+ /* harmony default export */ var version = ('3.6.0-beta.15');
12134
12134
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12135
12135
 
12136
12136
 
@@ -37919,6 +37919,34 @@ var useTree = function useTree(props) {
37919
37919
  }
37920
37920
  return ids;
37921
37921
  };
37922
+ var initFlatData = function initFlatData(data, path) {
37923
+ var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
37924
+ var pid = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
37925
+ var result = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];
37926
+ for (var i = 0; i < data.length; i++) {
37927
+ var item = data[i];
37928
+ var id = getKey(item, path[path.length - 1], i);
37929
+ var node = {
37930
+ id: id,
37931
+ level: level,
37932
+ data: item,
37933
+ pid: pid
37934
+ };
37935
+ if (defaultExpandAll) {
37936
+ result.push(node);
37937
+ } else {
37938
+ if (level === 1) {
37939
+ result.push(node);
37940
+ } else if (expanded && pid !== null && expanded.indexOf(pid) >= 0) {
37941
+ result.push(node);
37942
+ }
37943
+ }
37944
+ if (Array.isArray(item[childrenKey])) {
37945
+ initFlatData(item[childrenKey], [].concat(toConsumableArray_default()(path), [id]), level + 1, id, result);
37946
+ }
37947
+ }
37948
+ return result;
37949
+ };
37922
37950
  var initValue = function initValue(ids_outer, forceCheck) {
37923
37951
  var ids = ids_outer;
37924
37952
  if (!context.data || !context.value) {
@@ -38166,7 +38194,7 @@ var useTree = function useTree(props) {
38166
38194
  expanded: true
38167
38195
  }));
38168
38196
  });
38169
- var _getExpandVirtualData = getExpandVirtualData(context.data, expanded, getKey, childrenKey),
38197
+ var _getExpandVirtualData = getExpandVirtualData(props.tiledData || context.data, expanded, getKey, childrenKey),
38170
38198
  treeDataInfo = _getExpandVirtualData.treeDataInfo;
38171
38199
  if (!treeDataInfo) {
38172
38200
  return;
@@ -38196,6 +38224,12 @@ var useTree = function useTree(props) {
38196
38224
  if (props.datum) return;
38197
38225
  setValue(value);
38198
38226
  }, [value]);
38227
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
38228
+ if (!virtual) return;
38229
+ if (!props.tiledData) return;
38230
+ var tiledFlatData = initFlatData(props.tiledData, [], 1);
38231
+ setDataFlat(tiledFlatData);
38232
+ }, [props.tiledData]);
38199
38233
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
38200
38234
  setInited(true);
38201
38235
  }, []);
@@ -41473,7 +41507,6 @@ function useFormControl(props) {
41473
41507
  var formValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
41474
41508
  var errors = arguments.length > 1 ? arguments[1] : undefined;
41475
41509
  var severErrors = arguments.length > 2 ? arguments[2] : undefined;
41476
- var names = arguments.length > 3 ? arguments[3] : undefined;
41477
41510
  if (!name) return;
41478
41511
  if (isArray(name)) {
41479
41512
  var _value = getValue(name, formValue);
@@ -41485,7 +41518,7 @@ function useFormControl(props) {
41485
41518
  var dv = isArray(defaultValue) ? defaultValue : [];
41486
41519
  var nextValue = [];
41487
41520
  name.forEach(function (n, index) {
41488
- if (!names.has(n) && _value[index] === undefined && dv[index] !== undefined) {
41521
+ if (_value[index] === undefined && dv[index] !== undefined) {
41489
41522
  nextValue[index] = dv[index];
41490
41523
  } else {
41491
41524
  nextValue[index] = _value[index];
@@ -41499,7 +41532,7 @@ function useFormControl(props) {
41499
41532
  setErrorState(_error2);
41500
41533
  }
41501
41534
  if (!shallowEqual(_value2, latestInfo.valueState)) {
41502
- if (!names.has(name) && _value2 === undefined && defaultValue !== undefined) {
41535
+ if (_value2 === undefined && defaultValue !== undefined) {
41503
41536
  setValueState(defaultValue);
41504
41537
  } else {
41505
41538
  setValueState(_value2);
@@ -48842,7 +48875,7 @@ var useForm = function useForm(props) {
48842
48875
  Object.keys(context.updateMap).forEach(function (key) {
48843
48876
  var _context$updateMap$ke;
48844
48877
  (_context$updateMap$ke = context.updateMap[key]) === null || _context$updateMap$ke === void 0 || _context$updateMap$ke.forEach(function (update) {
48845
- update(context.value, context.errors, context.serverErrors, context.names);
48878
+ update(context.value, context.errors, context.serverErrors);
48846
48879
  });
48847
48880
  });
48848
48881
  Object.keys(context.flowMap).forEach(function (key) {
@@ -48860,12 +48893,12 @@ var useForm = function useForm(props) {
48860
48893
  var _context$updateMap$pa;
48861
48894
  var parentKey = key.split('.')[0];
48862
48895
  (_context$updateMap$pa = context.updateMap[parentKey]) === null || _context$updateMap$pa === void 0 || _context$updateMap$pa.forEach(function (update) {
48863
- update(context.value, context.errors, context.serverErrors, context.names);
48896
+ update(context.value, context.errors, context.serverErrors);
48864
48897
  });
48865
48898
  } else {
48866
48899
  var _context$updateMap$ke2;
48867
48900
  (_context$updateMap$ke2 = context.updateMap[key]) === null || _context$updateMap$ke2 === void 0 || _context$updateMap$ke2.forEach(function (update) {
48868
- update(context.value, context.errors, context.serverErrors, context.names);
48901
+ update(context.value, context.errors, context.serverErrors);
48869
48902
  });
48870
48903
  }
48871
48904
  (_context$flowMap$key = context.flowMap[key]) === null || _context$flowMap$key === void 0 || _context$flowMap$key.forEach(function (update) {
@@ -53931,7 +53964,7 @@ var TreeVirtual = function TreeVirtual(props) {
53931
53964
 
53932
53965
 
53933
53966
 
53934
- 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", "dragHoverExpand", "active", "setActive", "disabled", "inlineNode", "highlight", "className", "onClick", "loader", "getDatum", "onDrop", "onExpand", "onChange", "onDragEnd", "onDragLeave", "onDragOver", "onDragStart", "datum"];
53967
+ 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"];
53935
53968
 
53936
53969
 
53937
53970
 
@@ -53973,6 +54006,8 @@ var Tree = function Tree(props) {
53973
54006
  dragImageStyle = props.dragImageStyle,
53974
54007
  dragSibling = props.dragSibling,
53975
54008
  unmatch = props.unmatch,
54009
+ _props$ignoreSetFlat = props.ignoreSetFlat,
54010
+ ignoreSetFlat = _props$ignoreSetFlat === void 0 ? false : _props$ignoreSetFlat,
53976
54011
  dragHoverExpand = props.dragHoverExpand,
53977
54012
  propActive = props.active,
53978
54013
  propSetActive = props.setActive,
@@ -54082,10 +54117,10 @@ var Tree = function Tree(props) {
54082
54117
  newExpanded = expandedArr.filter(function (e) {
54083
54118
  return e !== id;
54084
54119
  });
54085
- if (virtual) datum.removeFlat(id);
54120
+ if (virtual && !ignoreSetFlat) datum.removeFlat(id);
54086
54121
  } else {
54087
54122
  newExpanded = [].concat(toConsumableArray_default()(expandedArr), [id]);
54088
- if (virtual) datum.insertFlat(id);
54123
+ if (virtual && !ignoreSetFlat) datum.insertFlat(id);
54089
54124
  }
54090
54125
  if (onExpand) onExpand(newExpanded);
54091
54126
  };
@@ -54157,6 +54192,7 @@ var Tree = function Tree(props) {
54157
54192
  onToggle: handleToggle
54158
54193
  }));
54159
54194
  }
54195
+ console.log('data', data);
54160
54196
  return /*#__PURE__*/(0,jsx_runtime.jsx)(tree_root, {
54161
54197
  rootStyle: rootStyle,
54162
54198
  isControlled: 'expanded' in props,
@@ -64855,8 +64891,9 @@ var TreeSelect = function TreeSelect(props0) {
64855
64891
  var _useTree = use_tree({
64856
64892
  mode: mode,
64857
64893
  value: value,
64858
- data: tiledData,
64894
+ data: data,
64859
64895
  unmatch: unmatch,
64896
+ tiledData: tiledData,
64860
64897
  virtual: virtual,
64861
64898
  disabled: disabled,
64862
64899
  active: multiple ? undefined : value[0],
@@ -65074,9 +65111,14 @@ var TreeSelect = function TreeSelect(props0) {
65074
65111
  if (from !== 'blur') {
65075
65112
  focusAndOpen();
65076
65113
  }
65077
- setVirtualExpanded([]);
65078
65114
  onTiledFilter === null || onTiledFilter === void 0 || onTiledFilter(trim ? text.trim() : text);
65079
65115
  };
65116
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
65117
+ if (virtual && expanded) {
65118
+ console.log(expanded);
65119
+ setVirtualExpanded(expanded);
65120
+ }
65121
+ }, [expanded]);
65080
65122
  var handleChange = function handleChange(item, id) {
65081
65123
  if (disabled === true || datum !== null && datum !== void 0 && datum.isDisabled(id)) return;
65082
65124
  var currentData = datum.getDataById(id);
@@ -65250,16 +65292,18 @@ var TreeSelect = function TreeSelect(props0) {
65250
65292
  virtual: virtual,
65251
65293
  childrenKey: props.childrenKey,
65252
65294
  line: line,
65295
+ ignoreSetFlat: true,
65253
65296
  mode: mode,
65254
65297
  height: height,
65255
65298
  data: tiledData,
65299
+ tiledData: tiledData,
65256
65300
  keygen: keygen,
65257
65301
  unmatch: unmatch,
65258
65302
  value: value,
65259
65303
  highlight: !multiple,
65260
65304
  loader: loader,
65261
65305
  onExpand: handleExpanded,
65262
- expanded: virtualExpanded.length > 0 ? virtualExpanded : controlExpanded || unControlExpanded,
65306
+ expanded: virtual ? virtualExpanded : controlExpanded || unControlExpanded,
65263
65307
  defaultExpandAll: defaultExpandAll,
65264
65308
  expandIcons: tiledExpandIcons,
65265
65309
  disabled: disabled,
@@ -68929,7 +68973,7 @@ var upload_interface = __webpack_require__(8821);
68929
68973
 
68930
68974
 
68931
68975
  /* harmony default export */ var src_0 = ({
68932
- version: '3.6.0-beta.13'
68976
+ version: '3.6.0-beta.15'
68933
68977
  });
68934
68978
  }();
68935
68979
  /******/ return __webpack_exports__;