acud 1.0.7 → 1.0.8

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 (52) hide show
  1. package/CHANGELOG.md +371 -0
  2. package/dist/acud.css +2 -31
  3. package/dist/acud.css.map +1 -1
  4. package/dist/acud.js +699 -218
  5. package/dist/acud.js.map +1 -1
  6. package/dist/acud.min.css +1 -1
  7. package/dist/acud.min.css.map +1 -1
  8. package/dist/acud.min.js +8 -6
  9. package/dist/acud.min.js.map +1 -1
  10. package/es/card/style/index.css +0 -1
  11. package/es/date-picker/src/PickerPanel.js +0 -1
  12. package/es/date-picker/src/RangePicker.js +0 -1
  13. package/es/dialog-box/style/index.css +0 -1
  14. package/es/form/style/index.css +1 -2
  15. package/es/input-number/src/hooks/useFrame.d.ts +1 -1
  16. package/es/input-number/style/index.css +0 -7
  17. package/es/modal/style/index.css +0 -1
  18. package/es/pagination/pagination.js +3 -3
  19. package/es/pagination/style/index.css +0 -2
  20. package/es/popover/style/index.css +0 -1
  21. package/es/rate/style/index.css +0 -1
  22. package/es/select/style/index.css +0 -2
  23. package/es/slider/style/index.css +0 -1
  24. package/es/switch/style/index.css +0 -1
  25. package/es/tabs/style/index.css +0 -1
  26. package/es/tag/style/index.css +0 -1
  27. package/es/timeline/style/index.css +0 -2
  28. package/es/tree/style/index.css +0 -3
  29. package/es/tree-select/style/index.css +0 -3
  30. package/es/virtual-list/List.js +0 -7
  31. package/lib/card/style/index.css +0 -1
  32. package/lib/date-picker/src/PickerPanel.js +0 -1
  33. package/lib/date-picker/src/RangePicker.js +0 -1
  34. package/lib/dialog-box/style/index.css +0 -1
  35. package/lib/form/style/index.css +1 -2
  36. package/lib/input-number/src/hooks/useFrame.d.ts +1 -1
  37. package/lib/input-number/style/index.css +0 -7
  38. package/lib/modal/style/index.css +0 -1
  39. package/lib/pagination/pagination.js +3 -3
  40. package/lib/pagination/style/index.css +0 -2
  41. package/lib/popover/style/index.css +0 -1
  42. package/lib/rate/style/index.css +0 -1
  43. package/lib/select/style/index.css +0 -2
  44. package/lib/slider/style/index.css +0 -1
  45. package/lib/switch/style/index.css +0 -1
  46. package/lib/tabs/style/index.css +0 -1
  47. package/lib/tag/style/index.css +0 -1
  48. package/lib/timeline/style/index.css +0 -2
  49. package/lib/tree/style/index.css +0 -3
  50. package/lib/tree-select/style/index.css +0 -3
  51. package/lib/virtual-list/List.js +0 -7
  52. package/package.json +1 -1
@@ -869,7 +869,6 @@
869
869
  .acud-card-loading .acud-card-body {
870
870
  -webkit-user-select: none;
871
871
  -moz-user-select: none;
872
- -ms-user-select: none;
873
872
  user-select: none;
874
873
  }
875
874
  .acud-card-loading-content p {
@@ -122,7 +122,6 @@ function PickerPanel(props) {
122
122
  var now = generateConfig.getNow();
123
123
  if (!date) return now; // When value is null and set showTime
124
124
 
125
- // When value is null and set showTime
126
125
  if (!mergedValue && showTime) {
127
126
  if (_typeof(showTime) === 'object') {
128
127
  return setDateTime(generateConfig, date, showTime.defaultValue || now);
@@ -172,7 +172,6 @@ function InnerRangePicker(props) {
172
172
  } // Fill disabled unit
173
173
 
174
174
 
175
- // Fill disabled unit
176
175
  for (var i = 0; i < 2; i += 1) {
177
176
  if (mergedDisabled[i] && !getValue(postValues, i) && !getValue(allowEmpty, i)) {
178
177
  postValues = updateValues(postValues, generateConfig.getNow(), i);
@@ -26,7 +26,6 @@
26
26
  animation-duration: 0.3s;
27
27
  -webkit-user-select: none;
28
28
  -moz-user-select: none;
29
- -ms-user-select: none;
30
29
  user-select: none;
31
30
  }
32
31
  .acud-dialogbox-mask {
@@ -742,8 +742,7 @@
742
742
  .acud-form-item-label > label .acud-form-item-tooltip {
743
743
  color: #B8BABF;
744
744
  cursor: help;
745
- -ms-writing-mode: lr-tb;
746
- writing-mode: horizontal-tb;
745
+ writing-mode: horizontal-tb;
747
746
  -webkit-margin-start: 4px;
748
747
  margin-inline-start: 4px;
749
748
  }
@@ -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;
@@ -249,7 +249,6 @@
249
249
  transition: all 0.1s linear;
250
250
  -webkit-user-select: none;
251
251
  -moz-user-select: none;
252
- -ms-user-select: none;
253
252
  user-select: none;
254
253
  }
255
254
  .acud-input-number-handler-up-inner > *,
@@ -314,18 +313,12 @@
314
313
  .acud-input-number-input::-moz-placeholder {
315
314
  opacity: 1;
316
315
  }
317
- .acud-input-number-input:-ms-input-placeholder {
318
- color: #D4D6D9;
319
- }
320
316
  .acud-input-number-input::placeholder {
321
317
  color: #D4D6D9;
322
318
  }
323
319
  .acud-input-number-input:-moz-placeholder-shown {
324
320
  text-overflow: ellipsis;
325
321
  }
326
- .acud-input-number-input:-ms-input-placeholder {
327
- text-overflow: ellipsis;
328
- }
329
322
  .acud-input-number-input:placeholder-shown {
330
323
  text-overflow: ellipsis;
331
324
  }
@@ -28,7 +28,6 @@
28
28
  animation-duration: 0.3s;
29
29
  -webkit-user-select: none;
30
30
  -moz-user-select: none;
31
- -ms-user-select: none;
32
31
  user-select: none;
33
32
  }
34
33
  .acud-modal-mask {
@@ -87,7 +87,8 @@ var Pagination = function Pagination(_a) {
87
87
  mini: isSmall
88
88
  }, 'rtl', direction === 'rtl'), className);
89
89
  return /*#__PURE__*/React.createElement(RcPagination, _extends({
90
- showSizeChanger: showSizeChanger
90
+ showSizeChanger: showSizeChanger,
91
+ locale: LOCALE
91
92
  }, restProps, {
92
93
  prefixCls: prefixCls,
93
94
  selectPrefixCls: selectPrefixCls
@@ -95,8 +96,7 @@ var Pagination = function Pagination(_a) {
95
96
  className: extendedClassName,
96
97
  selectComponentClass: showSizeChanger ? Select : undefined,
97
98
  Option: Option,
98
- showQuickJumper: showQuickJumper,
99
- locale: LOCALE
99
+ showQuickJumper: showQuickJumper
100
100
  }));
101
101
  };
102
102
 
@@ -67,7 +67,6 @@
67
67
  cursor: pointer;
68
68
  -webkit-user-select: none;
69
69
  -moz-user-select: none;
70
- -ms-user-select: none;
71
70
  user-select: none;
72
71
  box-sizing: border-box;
73
72
  font-weight: 400;
@@ -251,7 +250,6 @@
251
250
  cursor: pointer;
252
251
  -webkit-user-select: none;
253
252
  -moz-user-select: none;
254
- -ms-user-select: none;
255
253
  user-select: none;
256
254
  }
257
255
  .acud-pagination-prev.acud-pagination-disabled button,
@@ -22,7 +22,6 @@
22
22
  cursor: auto;
23
23
  -webkit-user-select: text;
24
24
  -moz-user-select: text;
25
- -ms-user-select: text;
26
25
  user-select: text;
27
26
  }
28
27
  .acud-popover::after {
@@ -130,7 +130,6 @@
130
130
  margin-bottom: 4px;
131
131
  -webkit-user-select: none;
132
132
  -moz-user-select: none;
133
- -ms-user-select: none;
134
133
  user-select: none;
135
134
  transition: all 0.3s;
136
135
  cursor: pointer;
@@ -38,7 +38,6 @@
38
38
  position: relative;
39
39
  -webkit-user-select: none;
40
40
  -moz-user-select: none;
41
- -ms-user-select: none;
42
41
  user-select: none;
43
42
  color: #151B26;
44
43
  }
@@ -191,7 +190,6 @@
191
190
  transition: font-size 0.3s, line-height 0.3s, height 0.3s;
192
191
  -webkit-user-select: none;
193
192
  -moz-user-select: none;
194
- -ms-user-select: none;
195
193
  user-select: none;
196
194
  -webkit-margin-end: 5px;
197
195
  margin-inline-end: 5px;
@@ -253,7 +253,6 @@
253
253
  cursor: pointer;
254
254
  -webkit-user-select: none;
255
255
  -moz-user-select: none;
256
- -ms-user-select: none;
257
256
  user-select: none;
258
257
  }
259
258
  .acud-slider-mark-text:first-child {
@@ -202,7 +202,6 @@
202
202
  vertical-align: middle;
203
203
  -webkit-user-select: text;
204
204
  -moz-user-select: text;
205
- -ms-user-select: text;
206
205
  user-select: text;
207
206
  pointer-events: none;
208
207
  }
@@ -537,7 +537,6 @@
537
537
  cursor: pointer;
538
538
  -webkit-user-select: none;
539
539
  -moz-user-select: none;
540
- -ms-user-select: none;
541
540
  user-select: none;
542
541
  color: #151B26;
543
542
  }
@@ -312,7 +312,6 @@
312
312
  .acud-tag-type-edit {
313
313
  -webkit-user-select: none;
314
314
  -moz-user-select: none;
315
- -ms-user-select: none;
316
315
  user-select: none;
317
316
  padding-right: 4px;
318
317
  line-height: 24px;
@@ -166,7 +166,6 @@
166
166
  cursor: pointer;
167
167
  -webkit-user-select: none;
168
168
  -moz-user-select: none;
169
- -ms-user-select: none;
170
169
  user-select: none;
171
170
  }
172
171
  .common-content-link {
@@ -579,7 +578,6 @@
579
578
  cursor: pointer;
580
579
  -webkit-user-select: none;
581
580
  -moz-user-select: none;
582
- -ms-user-select: none;
583
581
  user-select: none;
584
582
  }
585
583
  .acud-timeline-item-content-link {
@@ -277,7 +277,6 @@
277
277
  white-space: nowrap;
278
278
  -webkit-user-select: none;
279
279
  -moz-user-select: none;
280
- -ms-user-select: none;
281
280
  user-select: none;
282
281
  }
283
282
  .acud-tree-indent-unit {
@@ -295,7 +294,6 @@
295
294
  cursor: pointer;
296
295
  -webkit-user-select: none;
297
296
  -moz-user-select: none;
298
- -ms-user-select: none;
299
297
  user-select: none;
300
298
  }
301
299
  .acud-tree-switcher .acud-tree-switcher-icon,
@@ -437,7 +435,6 @@
437
435
  line-height: 24px;
438
436
  -webkit-user-select: none;
439
437
  -moz-user-select: none;
440
- -ms-user-select: none;
441
438
  user-select: none;
442
439
  }
443
440
  .acud-tree-node-content-wrapper .acud-tree-drop-indicator {
@@ -292,7 +292,6 @@
292
292
  white-space: nowrap;
293
293
  -webkit-user-select: none;
294
294
  -moz-user-select: none;
295
- -ms-user-select: none;
296
295
  user-select: none;
297
296
  }
298
297
  .acud-select-tree-indent-unit {
@@ -310,7 +309,6 @@
310
309
  cursor: pointer;
311
310
  -webkit-user-select: none;
312
311
  -moz-user-select: none;
313
- -ms-user-select: none;
314
312
  user-select: none;
315
313
  }
316
314
  .acud-select-tree-switcher .acud-tree-switcher-icon,
@@ -452,7 +450,6 @@
452
450
  line-height: 24px;
453
451
  -webkit-user-select: none;
454
452
  -moz-user-select: none;
455
- -ms-user-select: none;
456
453
  user-select: none;
457
454
  }
458
455
  .acud-select-tree-node-content-wrapper .acud-tree-drop-indicator {
@@ -135,7 +135,6 @@ export function RawList(props, ref) {
135
135
  } // Always use virtual scroll bar in avoid shaking
136
136
 
137
137
 
138
- // Always use virtual scroll bar in avoid shaking
139
138
  if (!inVirtual) {
140
139
  return {
141
140
  scrollHeight: ((_a = fillerInnerRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0,
@@ -157,14 +156,12 @@ export function RawList(props, ref) {
157
156
  var cacheHeight = heights.get(key);
158
157
  var currentItemBottom = itemTop + (cacheHeight === undefined ? itemHeight : cacheHeight); // Check item top in the range
159
158
 
160
- // Check item top in the range
161
159
  if (currentItemBottom >= scrollTop && startIndex === undefined) {
162
160
  startIndex = i;
163
161
  startOffset = itemTop;
164
162
  } // Check item bottom in the range. We will render additional one item for motion usage
165
163
 
166
164
 
167
- // Check item bottom in the range. We will render additional one item for motion usage
168
165
  if (currentItemBottom > scrollTop + height && endIndex === undefined) {
169
166
  endIndex = i;
170
167
  }
@@ -175,9 +172,6 @@ export function RawList(props, ref) {
175
172
  /* istanbul ignore next */
176
173
 
177
174
 
178
- // Fallback to normal if not match. This code should never reach
179
-
180
- /* istanbul ignore next */
181
175
  if (startIndex === undefined) {
182
176
  startIndex = 0;
183
177
  startOffset = 0;
@@ -188,7 +182,6 @@ export function RawList(props, ref) {
188
182
  } // Give cache to improve scroll experience
189
183
 
190
184
 
191
- // Give cache to improve scroll experience
192
185
  endIndex = Math.min(endIndex + 1, mergedData.length);
193
186
  return {
194
187
  scrollHeight: itemTop,
@@ -869,7 +869,6 @@
869
869
  .acud-card-loading .acud-card-body {
870
870
  -webkit-user-select: none;
871
871
  -moz-user-select: none;
872
- -ms-user-select: none;
873
872
  user-select: none;
874
873
  }
875
874
  .acud-card-loading-content p {
@@ -159,7 +159,6 @@ function PickerPanel(props) {
159
159
  var now = generateConfig.getNow();
160
160
  if (!date) return now; // When value is null and set showTime
161
161
 
162
- // When value is null and set showTime
163
162
  if (!mergedValue && showTime) {
164
163
  if ((0, _typeof2["default"])(showTime) === 'object') {
165
164
  return (0, _timeUtil.setDateTime)(generateConfig, date, showTime.defaultValue || now);
@@ -212,7 +212,6 @@ function InnerRangePicker(props) {
212
212
  } // Fill disabled unit
213
213
 
214
214
 
215
- // Fill disabled unit
216
215
  for (var i = 0; i < 2; i += 1) {
217
216
  if (mergedDisabled[i] && !(0, _miscUtil.getValue)(postValues, i) && !(0, _miscUtil.getValue)(allowEmpty, i)) {
218
217
  postValues = (0, _miscUtil.updateValues)(postValues, generateConfig.getNow(), i);
@@ -26,7 +26,6 @@
26
26
  animation-duration: 0.3s;
27
27
  -webkit-user-select: none;
28
28
  -moz-user-select: none;
29
- -ms-user-select: none;
30
29
  user-select: none;
31
30
  }
32
31
  .acud-dialogbox-mask {
@@ -742,8 +742,7 @@
742
742
  .acud-form-item-label > label .acud-form-item-tooltip {
743
743
  color: #B8BABF;
744
744
  cursor: help;
745
- -ms-writing-mode: lr-tb;
746
- writing-mode: horizontal-tb;
745
+ writing-mode: horizontal-tb;
747
746
  -webkit-margin-start: 4px;
748
747
  margin-inline-start: 4px;
749
748
  }
@@ -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;
@@ -249,7 +249,6 @@
249
249
  transition: all 0.1s linear;
250
250
  -webkit-user-select: none;
251
251
  -moz-user-select: none;
252
- -ms-user-select: none;
253
252
  user-select: none;
254
253
  }
255
254
  .acud-input-number-handler-up-inner > *,
@@ -314,18 +313,12 @@
314
313
  .acud-input-number-input::-moz-placeholder {
315
314
  opacity: 1;
316
315
  }
317
- .acud-input-number-input:-ms-input-placeholder {
318
- color: #D4D6D9;
319
- }
320
316
  .acud-input-number-input::placeholder {
321
317
  color: #D4D6D9;
322
318
  }
323
319
  .acud-input-number-input:-moz-placeholder-shown {
324
320
  text-overflow: ellipsis;
325
321
  }
326
- .acud-input-number-input:-ms-input-placeholder {
327
- text-overflow: ellipsis;
328
- }
329
322
  .acud-input-number-input:placeholder-shown {
330
323
  text-overflow: ellipsis;
331
324
  }
@@ -28,7 +28,6 @@
28
28
  animation-duration: 0.3s;
29
29
  -webkit-user-select: none;
30
30
  -moz-user-select: none;
31
- -ms-user-select: none;
32
31
  user-select: none;
33
32
  }
34
33
  .acud-modal-mask {
@@ -111,7 +111,8 @@ var Pagination = function Pagination(_a) {
111
111
  mini: isSmall
112
112
  }, 'rtl', direction === 'rtl'), className);
113
113
  return /*#__PURE__*/React.createElement(_rcPagination["default"], (0, _extends2["default"])({
114
- showSizeChanger: showSizeChanger
114
+ showSizeChanger: showSizeChanger,
115
+ locale: _zh_CN["default"]
115
116
  }, restProps, {
116
117
  prefixCls: prefixCls,
117
118
  selectPrefixCls: selectPrefixCls
@@ -119,8 +120,7 @@ var Pagination = function Pagination(_a) {
119
120
  className: extendedClassName,
120
121
  selectComponentClass: showSizeChanger ? _select["default"] : undefined,
121
122
  Option: Option,
122
- showQuickJumper: showQuickJumper,
123
- locale: _zh_CN["default"]
123
+ showQuickJumper: showQuickJumper
124
124
  }));
125
125
  };
126
126
 
@@ -67,7 +67,6 @@
67
67
  cursor: pointer;
68
68
  -webkit-user-select: none;
69
69
  -moz-user-select: none;
70
- -ms-user-select: none;
71
70
  user-select: none;
72
71
  box-sizing: border-box;
73
72
  font-weight: 400;
@@ -251,7 +250,6 @@
251
250
  cursor: pointer;
252
251
  -webkit-user-select: none;
253
252
  -moz-user-select: none;
254
- -ms-user-select: none;
255
253
  user-select: none;
256
254
  }
257
255
  .acud-pagination-prev.acud-pagination-disabled button,
@@ -22,7 +22,6 @@
22
22
  cursor: auto;
23
23
  -webkit-user-select: text;
24
24
  -moz-user-select: text;
25
- -ms-user-select: text;
26
25
  user-select: text;
27
26
  }
28
27
  .acud-popover::after {
@@ -130,7 +130,6 @@
130
130
  margin-bottom: 4px;
131
131
  -webkit-user-select: none;
132
132
  -moz-user-select: none;
133
- -ms-user-select: none;
134
133
  user-select: none;
135
134
  transition: all 0.3s;
136
135
  cursor: pointer;
@@ -38,7 +38,6 @@
38
38
  position: relative;
39
39
  -webkit-user-select: none;
40
40
  -moz-user-select: none;
41
- -ms-user-select: none;
42
41
  user-select: none;
43
42
  color: #151B26;
44
43
  }
@@ -191,7 +190,6 @@
191
190
  transition: font-size 0.3s, line-height 0.3s, height 0.3s;
192
191
  -webkit-user-select: none;
193
192
  -moz-user-select: none;
194
- -ms-user-select: none;
195
193
  user-select: none;
196
194
  -webkit-margin-end: 5px;
197
195
  margin-inline-end: 5px;
@@ -253,7 +253,6 @@
253
253
  cursor: pointer;
254
254
  -webkit-user-select: none;
255
255
  -moz-user-select: none;
256
- -ms-user-select: none;
257
256
  user-select: none;
258
257
  }
259
258
  .acud-slider-mark-text:first-child {
@@ -202,7 +202,6 @@
202
202
  vertical-align: middle;
203
203
  -webkit-user-select: text;
204
204
  -moz-user-select: text;
205
- -ms-user-select: text;
206
205
  user-select: text;
207
206
  pointer-events: none;
208
207
  }
@@ -537,7 +537,6 @@
537
537
  cursor: pointer;
538
538
  -webkit-user-select: none;
539
539
  -moz-user-select: none;
540
- -ms-user-select: none;
541
540
  user-select: none;
542
541
  color: #151B26;
543
542
  }
@@ -312,7 +312,6 @@
312
312
  .acud-tag-type-edit {
313
313
  -webkit-user-select: none;
314
314
  -moz-user-select: none;
315
- -ms-user-select: none;
316
315
  user-select: none;
317
316
  padding-right: 4px;
318
317
  line-height: 24px;
@@ -166,7 +166,6 @@
166
166
  cursor: pointer;
167
167
  -webkit-user-select: none;
168
168
  -moz-user-select: none;
169
- -ms-user-select: none;
170
169
  user-select: none;
171
170
  }
172
171
  .common-content-link {
@@ -579,7 +578,6 @@
579
578
  cursor: pointer;
580
579
  -webkit-user-select: none;
581
580
  -moz-user-select: none;
582
- -ms-user-select: none;
583
581
  user-select: none;
584
582
  }
585
583
  .acud-timeline-item-content-link {
@@ -277,7 +277,6 @@
277
277
  white-space: nowrap;
278
278
  -webkit-user-select: none;
279
279
  -moz-user-select: none;
280
- -ms-user-select: none;
281
280
  user-select: none;
282
281
  }
283
282
  .acud-tree-indent-unit {
@@ -295,7 +294,6 @@
295
294
  cursor: pointer;
296
295
  -webkit-user-select: none;
297
296
  -moz-user-select: none;
298
- -ms-user-select: none;
299
297
  user-select: none;
300
298
  }
301
299
  .acud-tree-switcher .acud-tree-switcher-icon,
@@ -437,7 +435,6 @@
437
435
  line-height: 24px;
438
436
  -webkit-user-select: none;
439
437
  -moz-user-select: none;
440
- -ms-user-select: none;
441
438
  user-select: none;
442
439
  }
443
440
  .acud-tree-node-content-wrapper .acud-tree-drop-indicator {
@@ -292,7 +292,6 @@
292
292
  white-space: nowrap;
293
293
  -webkit-user-select: none;
294
294
  -moz-user-select: none;
295
- -ms-user-select: none;
296
295
  user-select: none;
297
296
  }
298
297
  .acud-select-tree-indent-unit {
@@ -310,7 +309,6 @@
310
309
  cursor: pointer;
311
310
  -webkit-user-select: none;
312
311
  -moz-user-select: none;
313
- -ms-user-select: none;
314
312
  user-select: none;
315
313
  }
316
314
  .acud-select-tree-switcher .acud-tree-switcher-icon,
@@ -452,7 +450,6 @@
452
450
  line-height: 24px;
453
451
  -webkit-user-select: none;
454
452
  -moz-user-select: none;
455
- -ms-user-select: none;
456
453
  user-select: none;
457
454
  }
458
455
  .acud-select-tree-node-content-wrapper .acud-tree-drop-indicator {
@@ -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": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "acg react 组件库",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",