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.
- package/dist/acud.css +54 -2
- package/dist/acud.css.map +1 -1
- package/dist/acud.js +1331 -1188
- 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 +9 -6
- package/dist/acud.min.js.map +1 -1
- package/es/date-picker/src/PickerPanel.js +0 -1
- package/es/date-picker/src/RangePicker.js +0 -1
- package/es/input/AutoComplete.d.ts +12 -0
- package/es/input/AutoComplete.js +53 -0
- package/es/input/TextArea.d.ts +1 -1
- package/es/input/TextArea.js +4 -4
- package/es/input/index.d.ts +2 -0
- package/es/input/index.js +2 -0
- package/es/input/style/index.css +53 -1
- package/es/input/style/index.less +63 -1
- package/es/input-number/src/hooks/useFrame.d.ts +1 -1
- package/es/select/index.d.ts +1 -1
- package/es/virtual-list/List.js +0 -7
- package/lib/date-picker/src/PickerPanel.js +0 -1
- package/lib/date-picker/src/RangePicker.js +0 -1
- package/lib/input/AutoComplete.d.ts +12 -0
- package/lib/input/AutoComplete.js +72 -0
- package/lib/input/TextArea.d.ts +1 -1
- package/lib/input/TextArea.js +4 -2
- package/lib/input/index.d.ts +2 -0
- package/lib/input/index.js +3 -0
- package/lib/input/style/index.css +53 -1
- package/lib/input/style/index.less +63 -1
- package/lib/input-number/src/hooks/useFrame.d.ts +1 -1
- package/lib/select/index.d.ts +1 -1
- package/lib/virtual-list/List.js +0 -7
- package/package.json +1 -1
package/lib/select/index.d.ts
CHANGED
|
@@ -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;
|
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,
|