@sheinx/hooks 3.1.21 → 3.1.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"use-transform.d.ts","sourceRoot":"","sources":["use-transform.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,QAAA,MAAM,YAAY,aAAc,iBAAiB;;;;;;;;8BAwBd,MAAM;;;CAqFxC,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"use-transform.d.ts","sourceRoot":"","sources":["use-transform.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,QAAA,MAAM,YAAY,aAAc,iBAAiB;;;;;;;;8BAwBd,MAAM;;;CAsFxC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -103,6 +103,7 @@ var useTransform = function useTransform(props) {
103
103
  if (!containerDimension || !targetDimension) return;
104
104
  if (targetDimension <= containerDimension) {
105
105
  setShouldScroll(false);
106
+ setDelta(0);
106
107
  } else {
107
108
  setShouldScroll(true);
108
109
  }
@@ -80,7 +80,6 @@ var useTree = function useTree(props) {
80
80
  valueMap: new Map(),
81
81
  updateMap: new Map(),
82
82
  unmatchedValueMap: new Map(),
83
- disabled: false,
84
83
  value: undefined,
85
84
  data: [],
86
85
  cachedValue: [],
@@ -170,14 +169,14 @@ var useTree = function useTree(props) {
170
169
  var getPath = function getPath(id) {
171
170
  return context.pathMap.get(id);
172
171
  };
173
- var getDisabled = function getDisabled() {
172
+ var getDisabled = (0, _usePersistFn.usePersistFn)(function () {
174
173
  if ((0, _is.isFunc)(disabledProps)) {
175
174
  return disabledProps;
176
175
  }
177
176
  return function () {
178
- return !!disabledProps;
177
+ return false;
179
178
  };
180
- };
179
+ });
181
180
  var getChecked = function getChecked(id) {
182
181
  var value = get(id);
183
182
  var checked = value === 1;
@@ -232,8 +231,8 @@ var useTree = function useTree(props) {
232
231
  // 制作 data mapping
233
232
  context.dataMap.set(id, item);
234
233
  var _isDisabled = !!disabled;
235
- if (_isDisabled === false && (0, _is.isFunc)(context.disabled)) {
236
- _isDisabled = context.disabled(item);
234
+ if (_isDisabled === false) {
235
+ _isDisabled = getDisabled()(item);
237
236
  }
238
237
  var indexPath = [].concat(_toConsumableArray(index), [i]);
239
238
  ids.push(id);
@@ -315,9 +314,12 @@ var useTree = function useTree(props) {
315
314
  setUnmatedValue();
316
315
  };
317
316
  var isDisabled = function isDisabled(id) {
318
- var node = context.pathMap.get(id);
319
- if (node) return node.isDisabled;
320
- return false;
317
+ if ((0, _is.isFunc)(disabledProps)) {
318
+ var node = context.pathMap.get(id);
319
+ if (node) return node.isDisabled;
320
+ return false;
321
+ }
322
+ return !!disabledProps;
321
323
  };
322
324
  var checkStatusStack = function checkStatusStack(stack, defaultStatus) {
323
325
  if (!stack || stack.length <= 0) return defaultStatus;
@@ -337,7 +339,6 @@ var useTree = function useTree(props) {
337
339
  context.dataMap = new Map();
338
340
  context.valueMap = new Map();
339
341
  context.unmatchedValueMap = new Map();
340
- context.disabled = getDisabled();
341
342
  context.data = toArray(data);
342
343
  if (!data) return;
343
344
  initData(context.data, []);
@@ -9,7 +9,6 @@ export interface TreeContext<DataItem> {
9
9
  unmatchedValueMap: Map<any, any>;
10
10
  updateMap: Map<KeygenResult, UpdateFunc>;
11
11
  forceUpdateMap: Map<KeygenResult, () => void>;
12
- disabled: boolean | ((item: DataItem) => boolean);
13
12
  value?: KeygenResult[];
14
13
  cachedValue: KeygenResult[];
15
14
  data?: DataItem[];
@@ -1 +1 @@
1
- {"version":3,"file":"use-tree.type.d.ts","sourceRoot":"","sources":["use-tree.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEpF,MAAM,MAAM,iBAAiB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE1C,MAAM,MAAM,YAAY,GAAG,CAAC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IAAI,CAAC;IACzC,WAAW,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC;IACpC,SAAS,EAAE,GAAG,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,OAAO,EAAE,GAAG,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;IACzC,OAAO,EAAE,GAAG,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IACrC,QAAQ,EAAE,GAAG,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC;CAChD"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-transform.d.ts","sourceRoot":"","sources":["use-transform.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,QAAA,MAAM,YAAY,aAAc,iBAAiB;;;;;;;;8BAwBd,MAAM;;;CAqFxC,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"use-transform.d.ts","sourceRoot":"","sources":["use-transform.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,QAAA,MAAM,YAAY,aAAc,iBAAiB;;;;;;;;8BAwBd,MAAM;;;CAsFxC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -97,6 +97,7 @@ var useTransform = function useTransform(props) {
97
97
  if (!containerDimension || !targetDimension) return;
98
98
  if (targetDimension <= containerDimension) {
99
99
  setShouldScroll(false);
100
+ setDelta(0);
100
101
  } else {
101
102
  setShouldScroll(true);
102
103
  }
@@ -73,7 +73,6 @@ var useTree = function useTree(props) {
73
73
  valueMap: new Map(),
74
74
  updateMap: new Map(),
75
75
  unmatchedValueMap: new Map(),
76
- disabled: false,
77
76
  value: undefined,
78
77
  data: [],
79
78
  cachedValue: [],
@@ -163,14 +162,14 @@ var useTree = function useTree(props) {
163
162
  var getPath = function getPath(id) {
164
163
  return context.pathMap.get(id);
165
164
  };
166
- var getDisabled = function getDisabled() {
165
+ var getDisabled = usePersistFn(function () {
167
166
  if (isFunc(disabledProps)) {
168
167
  return disabledProps;
169
168
  }
170
169
  return function () {
171
- return !!disabledProps;
170
+ return false;
172
171
  };
173
- };
172
+ });
174
173
  var getChecked = function getChecked(id) {
175
174
  var value = get(id);
176
175
  var checked = value === 1;
@@ -225,8 +224,8 @@ var useTree = function useTree(props) {
225
224
  // 制作 data mapping
226
225
  context.dataMap.set(id, item);
227
226
  var _isDisabled = !!disabled;
228
- if (_isDisabled === false && isFunc(context.disabled)) {
229
- _isDisabled = context.disabled(item);
227
+ if (_isDisabled === false) {
228
+ _isDisabled = getDisabled()(item);
230
229
  }
231
230
  var indexPath = [].concat(_toConsumableArray(index), [i]);
232
231
  ids.push(id);
@@ -308,9 +307,12 @@ var useTree = function useTree(props) {
308
307
  setUnmatedValue();
309
308
  };
310
309
  var isDisabled = function isDisabled(id) {
311
- var node = context.pathMap.get(id);
312
- if (node) return node.isDisabled;
313
- return false;
310
+ if (isFunc(disabledProps)) {
311
+ var node = context.pathMap.get(id);
312
+ if (node) return node.isDisabled;
313
+ return false;
314
+ }
315
+ return !!disabledProps;
314
316
  };
315
317
  var checkStatusStack = function checkStatusStack(stack, defaultStatus) {
316
318
  if (!stack || stack.length <= 0) return defaultStatus;
@@ -330,7 +332,6 @@ var useTree = function useTree(props) {
330
332
  context.dataMap = new Map();
331
333
  context.valueMap = new Map();
332
334
  context.unmatchedValueMap = new Map();
333
- context.disabled = getDisabled();
334
335
  context.data = toArray(data);
335
336
  if (!data) return;
336
337
  initData(context.data, []);
@@ -9,7 +9,6 @@ export interface TreeContext<DataItem> {
9
9
  unmatchedValueMap: Map<any, any>;
10
10
  updateMap: Map<KeygenResult, UpdateFunc>;
11
11
  forceUpdateMap: Map<KeygenResult, () => void>;
12
- disabled: boolean | ((item: DataItem) => boolean);
13
12
  value?: KeygenResult[];
14
13
  cachedValue: K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