acud 0.0.71 → 0.0.72

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,5 +1,5 @@
1
- declare const _default: () => (callback: () => void) => void;
2
1
  /**
3
2
  * Always trigger latest once when call multiple time
4
3
  */
4
+ declare const _default: () => (callback: () => void) => void;
5
5
  export default _default;
@@ -29,7 +29,7 @@ declare const SelectRef: <VT extends SelectValue = SelectValue>(props: SelectPro
29
29
  ref?: React.Ref<RefSelectProps>;
30
30
  }) => React.ReactElement;
31
31
  declare type InternalSelectType = typeof SelectRef;
32
- interface SelectInterface extends InternalSelectType {
32
+ export interface SelectInterface extends InternalSelectType {
33
33
  SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
34
34
  Option: typeof Option;
35
35
  OptGroup: typeof OptGroup;
@@ -165,7 +165,6 @@ function RawList(props, ref) {
165
165
  } // Always use virtual scroll bar in avoid shaking
166
166
 
167
167
 
168
- // Always use virtual scroll bar in avoid shaking
169
168
  if (!inVirtual) {
170
169
  return {
171
170
  scrollHeight: ((_a = fillerInnerRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0,
@@ -187,14 +186,12 @@ function RawList(props, ref) {
187
186
  var cacheHeight = heights.get(key);
188
187
  var currentItemBottom = itemTop + (cacheHeight === undefined ? itemHeight : cacheHeight); // Check item top in the range
189
188
 
190
- // Check item top in the range
191
189
  if (currentItemBottom >= scrollTop && startIndex === undefined) {
192
190
  startIndex = i;
193
191
  startOffset = itemTop;
194
192
  } // Check item bottom in the range. We will render additional one item for motion usage
195
193
 
196
194
 
197
- // Check item bottom in the range. We will render additional one item for motion usage
198
195
  if (currentItemBottom > scrollTop + height && endIndex === undefined) {
199
196
  endIndex = i;
200
197
  }
@@ -205,9 +202,6 @@ function RawList(props, ref) {
205
202
  /* istanbul ignore next */
206
203
 
207
204
 
208
- // Fallback to normal if not match. This code should never reach
209
-
210
- /* istanbul ignore next */
211
205
  if (startIndex === undefined) {
212
206
  startIndex = 0;
213
207
  startOffset = 0;
@@ -218,7 +212,6 @@ function RawList(props, ref) {
218
212
  } // Give cache to improve scroll experience
219
213
 
220
214
 
221
- // Give cache to improve scroll experience
222
215
  endIndex = Math.min(endIndex + 1, mergedData.length);
223
216
  return {
224
217
  scrollHeight: itemTop,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acud",
3
- "version": "0.0.71",
3
+ "version": "0.0.72",
4
4
  "description": "acg react 组件库",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",