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.
- package/CHANGELOG.md +371 -0
- package/dist/acud.css +2 -31
- package/dist/acud.css.map +1 -1
- package/dist/acud.js +699 -218
- package/dist/acud.js.map +1 -1
- package/dist/acud.min.css +1 -1
- package/dist/acud.min.css.map +1 -1
- package/dist/acud.min.js +8 -6
- package/dist/acud.min.js.map +1 -1
- package/es/card/style/index.css +0 -1
- package/es/date-picker/src/PickerPanel.js +0 -1
- package/es/date-picker/src/RangePicker.js +0 -1
- package/es/dialog-box/style/index.css +0 -1
- package/es/form/style/index.css +1 -2
- package/es/input-number/src/hooks/useFrame.d.ts +1 -1
- package/es/input-number/style/index.css +0 -7
- package/es/modal/style/index.css +0 -1
- package/es/pagination/pagination.js +3 -3
- package/es/pagination/style/index.css +0 -2
- package/es/popover/style/index.css +0 -1
- package/es/rate/style/index.css +0 -1
- package/es/select/style/index.css +0 -2
- package/es/slider/style/index.css +0 -1
- package/es/switch/style/index.css +0 -1
- package/es/tabs/style/index.css +0 -1
- package/es/tag/style/index.css +0 -1
- package/es/timeline/style/index.css +0 -2
- package/es/tree/style/index.css +0 -3
- package/es/tree-select/style/index.css +0 -3
- package/es/virtual-list/List.js +0 -7
- package/lib/card/style/index.css +0 -1
- package/lib/date-picker/src/PickerPanel.js +0 -1
- package/lib/date-picker/src/RangePicker.js +0 -1
- package/lib/dialog-box/style/index.css +0 -1
- package/lib/form/style/index.css +1 -2
- package/lib/input-number/src/hooks/useFrame.d.ts +1 -1
- package/lib/input-number/style/index.css +0 -7
- package/lib/modal/style/index.css +0 -1
- package/lib/pagination/pagination.js +3 -3
- package/lib/pagination/style/index.css +0 -2
- package/lib/popover/style/index.css +0 -1
- package/lib/rate/style/index.css +0 -1
- package/lib/select/style/index.css +0 -2
- package/lib/slider/style/index.css +0 -1
- package/lib/switch/style/index.css +0 -1
- package/lib/tabs/style/index.css +0 -1
- package/lib/tag/style/index.css +0 -1
- package/lib/timeline/style/index.css +0 -2
- package/lib/tree/style/index.css +0 -3
- package/lib/tree-select/style/index.css +0 -3
- package/lib/virtual-list/List.js +0 -7
- package/package.json +1 -1
package/es/card/style/index.css
CHANGED
|
@@ -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);
|
package/es/form/style/index.css
CHANGED
|
@@ -742,8 +742,7 @@
|
|
|
742
742
|
.acud-form-item-label > label .acud-form-item-tooltip {
|
|
743
743
|
color: #B8BABF;
|
|
744
744
|
cursor: help;
|
|
745
|
-
|
|
746
|
-
writing-mode: horizontal-tb;
|
|
745
|
+
writing-mode: horizontal-tb;
|
|
747
746
|
-webkit-margin-start: 4px;
|
|
748
747
|
margin-inline-start: 4px;
|
|
749
748
|
}
|
|
@@ -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
|
}
|
package/es/modal/style/index.css
CHANGED
|
@@ -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,
|
package/es/rate/style/index.css
CHANGED
|
@@ -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;
|
package/es/tabs/style/index.css
CHANGED
package/es/tag/style/index.css
CHANGED
|
@@ -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 {
|
package/es/tree/style/index.css
CHANGED
|
@@ -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 {
|
package/es/virtual-list/List.js
CHANGED
|
@@ -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,
|
package/lib/card/style/index.css
CHANGED
|
@@ -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);
|
package/lib/form/style/index.css
CHANGED
|
@@ -742,8 +742,7 @@
|
|
|
742
742
|
.acud-form-item-label > label .acud-form-item-tooltip {
|
|
743
743
|
color: #B8BABF;
|
|
744
744
|
cursor: help;
|
|
745
|
-
|
|
746
|
-
writing-mode: horizontal-tb;
|
|
745
|
+
writing-mode: horizontal-tb;
|
|
747
746
|
-webkit-margin-start: 4px;
|
|
748
747
|
margin-inline-start: 4px;
|
|
749
748
|
}
|
|
@@ -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
|
}
|
|
@@ -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,
|
package/lib/rate/style/index.css
CHANGED
|
@@ -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;
|
package/lib/tabs/style/index.css
CHANGED
package/lib/tag/style/index.css
CHANGED
|
@@ -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 {
|
package/lib/tree/style/index.css
CHANGED
|
@@ -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 {
|
package/lib/virtual-list/List.js
CHANGED
|
@@ -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,
|