@sheinx/base 3.6.7-beta.1 → 3.6.7-beta.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["tree.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAA4B,MAAM,eAAe,CAAC;AAEvE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQxC,QAAA,MAAM,IAAI,wHAqTT,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["tree.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAA4B,MAAM,eAAe,CAAC;AAEvE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQxC,QAAA,MAAM,IAAI,wHAwST,CAAC;AAEF,eAAe,IAAI,CAAC"}
package/cjs/tree/tree.js CHANGED
@@ -144,16 +144,6 @@ var Tree = function Tree(props) {
144
144
  }
145
145
  return props.height || styleHeight;
146
146
  };
147
- var handleUpdateExpanded = function handleUpdateExpanded(expanded) {
148
- var tempExpandMap = new Set(expanded);
149
- if (!expanded) return;
150
- if (virtual) {
151
- datum.expandedFlat(expanded);
152
- }
153
- datum.updateMap.forEach(function (update, id) {
154
- update('expanded', tempExpandMap.has(id));
155
- });
156
- };
157
147
  var handleUpdateActive = function handleUpdateActive(active, item) {
158
148
  setActive(active);
159
149
  if (active !== props.active) {
@@ -302,7 +292,7 @@ var Tree = function Tree(props) {
302
292
  return;
303
293
  }
304
294
  if (!props.expanded) return;
305
- handleUpdateExpanded(expanded);
295
+ datum.updateExpanded(expanded);
306
296
  }, [expanded]);
307
297
  (0, _react.useEffect)(function () {
308
298
  // if (!active) return;
@@ -1 +1 @@
1
- {"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["tree.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAA4B,MAAM,eAAe,CAAC;AAEvE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQxC,QAAA,MAAM,IAAI,wHAqTT,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["tree.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAA4B,MAAM,eAAe,CAAC;AAEvE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQxC,QAAA,MAAM,IAAI,wHAwST,CAAC;AAEF,eAAe,IAAI,CAAC"}
package/esm/tree/tree.js CHANGED
@@ -137,16 +137,6 @@ var Tree = function Tree(props) {
137
137
  }
138
138
  return props.height || styleHeight;
139
139
  };
140
- var handleUpdateExpanded = function handleUpdateExpanded(expanded) {
141
- var tempExpandMap = new Set(expanded);
142
- if (!expanded) return;
143
- if (virtual) {
144
- datum.expandedFlat(expanded);
145
- }
146
- datum.updateMap.forEach(function (update, id) {
147
- update('expanded', tempExpandMap.has(id));
148
- });
149
- };
150
140
  var handleUpdateActive = function handleUpdateActive(active, item) {
151
141
  setActive(active);
152
142
  if (active !== props.active) {
@@ -295,7 +285,7 @@ var Tree = function Tree(props) {
295
285
  return;
296
286
  }
297
287
  if (!props.expanded) return;
298
- handleUpdateExpanded(expanded);
288
+ datum.updateExpanded(expanded);
299
289
  }, [expanded]);
300
290
  useEffect(function () {
301
291
  // if (!active) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.6.7-beta.1",
3
+ "version": "3.6.7-beta.3",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "module": "./esm/index.js",
11
11
  "typings": "./cjs/index.d.ts",
12
12
  "dependencies": {
13
- "@sheinx/hooks": "3.6.7-beta.1",
13
+ "@sheinx/hooks": "3.6.7-beta.3",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.1.3-alpha.0"