@uzum-tech/ui 2.4.4 → 2.4.6
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/index.js +118 -43
- package/dist/index.mjs +118 -43
- package/dist/index.prod.js +3 -3
- package/dist/index.prod.mjs +3 -3
- package/es/_internal/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +21 -0
- package/es/_internal/safe-top-scrollbar/src/SafeTopScrollbar.mjs +14 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +21 -0
- package/es/_internal/scrollbar/src/Scrollbar.mjs +14 -1
- package/es/_internal/select-menu/src/SelectMenuParts/List.d.ts +2 -0
- package/es/_utils/composable/use-scroll-edge-detector.d.ts +9 -0
- package/es/_utils/composable/use-scroll-edge-detector.mjs +44 -0
- package/es/button/src/Button.d.ts +4 -0
- package/es/button/src/Button.mjs +4 -2
- package/es/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/es/chat/src/Chat.d.ts +12 -24
- package/es/chat/src/ChatMainArea.d.ts +4 -7
- package/es/chat/src/ChatMainArea.mjs +12 -37
- package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +1 -1
- package/es/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +1 -1
- package/es/chat/src/interface.d.ts +2 -0
- package/es/components.d.ts +92 -32
- package/es/data-table/src/DataTable.d.ts +14 -0
- package/es/data-table/src/DataTable.mjs +2 -0
- package/es/data-table/src/TableParts/Body.d.ts +2 -0
- package/es/data-table/src/interface.d.ts +7 -0
- package/es/data-table/src/interface.mjs +6 -0
- package/es/data-table/src/use-scroll.d.ts +1 -0
- package/es/data-table/src/use-scroll.mjs +8 -1
- package/es/date-picker/src/DatePicker.d.ts +11 -0
- package/es/date-picker/src/DatePicker.mjs +8 -4
- package/es/date-picker-v2/src/DatePickerV2.d.ts +1 -0
- package/es/date-picker-v2/src/DatePickerV2.mjs +6 -2
- package/es/date-picker-v2/src/composables/useCalendarScroll.d.ts +96 -0
- package/es/date-picker-v2/src/panel/CalendarPanel.d.ts +96 -0
- package/es/date-picker-v2/src/panel/CalendarRangePanel.d.ts +96 -0
- package/es/dialog/src/DialogProvider.d.ts +1 -1579
- package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +2 -0
- package/es/infinite-scroll/src/InfiniteScroll.d.ts +2 -0
- package/es/input/src/Input.d.ts +2 -0
- package/es/kanban/src/Kanban.d.ts +1 -1
- package/es/layout/src/Layout.d.ts +4 -0
- package/es/layout/src/LayoutContent.d.ts +2 -0
- package/es/layout/src/LayoutSider.d.ts +2 -0
- package/es/legacy-transfer/src/TransferList.d.ts +2 -0
- package/es/log/src/Log.d.ts +2 -0
- package/es/modal/src/BodyWrapper.d.ts +2 -0
- package/es/modal-fullscreen/src/ModalFull.d.ts +2 -0
- package/es/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +13 -0
- package/es/safe-top-scrollbar/src/SafeTopScrollbar.mjs +7 -0
- package/es/scrollbar/src/Scrollbar.d.ts +13 -0
- package/es/scrollbar/src/Scrollbar.mjs +7 -0
- package/es/time-picker/src/TimePicker.d.ts +8 -0
- package/es/transfer/src/TransferList.d.ts +2 -0
- package/es/tree/src/Tree.d.ts +2 -0
- package/es/typography/src/text.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/virtual-list/src/VirtualList.d.ts +2 -0
- package/lib/_internal/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +21 -0
- package/lib/_internal/safe-top-scrollbar/src/SafeTopScrollbar.js +9 -2
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +21 -0
- package/lib/_internal/scrollbar/src/Scrollbar.js +9 -2
- package/lib/_internal/select-menu/src/SelectMenuParts/List.d.ts +2 -0
- package/lib/_utils/composable/use-scroll-edge-detector.d.ts +9 -0
- package/lib/_utils/composable/use-scroll-edge-detector.js +42 -0
- package/lib/button/src/Button.d.ts +4 -0
- package/lib/button/src/Button.js +8 -3
- package/lib/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/lib/chat/src/Chat.d.ts +12 -24
- package/lib/chat/src/ChatMainArea.d.ts +4 -7
- package/lib/chat/src/ChatMainArea.js +6 -36
- package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +1 -1
- package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +1 -1
- package/lib/chat/src/interface.d.ts +2 -0
- package/lib/components.d.ts +92 -32
- package/lib/data-table/src/DataTable.d.ts +14 -0
- package/lib/data-table/src/DataTable.js +2 -1
- package/lib/data-table/src/TableParts/Body.d.ts +2 -0
- package/lib/data-table/src/interface.d.ts +7 -0
- package/lib/data-table/src/interface.js +4 -1
- package/lib/data-table/src/use-scroll.d.ts +1 -0
- package/lib/data-table/src/use-scroll.js +5 -1
- package/lib/date-picker/src/DatePicker.d.ts +11 -0
- package/lib/date-picker/src/DatePicker.js +6 -2
- package/lib/date-picker-v2/src/DatePickerV2.d.ts +1 -0
- package/lib/date-picker-v2/src/DatePickerV2.js +6 -2
- package/lib/date-picker-v2/src/composables/useCalendarScroll.d.ts +96 -0
- package/lib/date-picker-v2/src/panel/CalendarPanel.d.ts +96 -0
- package/lib/date-picker-v2/src/panel/CalendarRangePanel.d.ts +96 -0
- package/lib/dialog/src/DialogProvider.d.ts +1 -1579
- package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +2 -0
- package/lib/infinite-scroll/src/InfiniteScroll.d.ts +2 -0
- package/lib/input/src/Input.d.ts +2 -0
- package/lib/kanban/src/Kanban.d.ts +1 -1
- package/lib/layout/src/Layout.d.ts +4 -0
- package/lib/layout/src/LayoutContent.d.ts +2 -0
- package/lib/layout/src/LayoutSider.d.ts +2 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +2 -0
- package/lib/log/src/Log.d.ts +2 -0
- package/lib/modal/src/BodyWrapper.d.ts +2 -0
- package/lib/modal-fullscreen/src/ModalFull.d.ts +2 -0
- package/lib/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +13 -0
- package/lib/safe-top-scrollbar/src/SafeTopScrollbar.js +5 -1
- package/lib/scrollbar/src/Scrollbar.d.ts +13 -0
- package/lib/scrollbar/src/Scrollbar.js +5 -1
- package/lib/time-picker/src/TimePicker.d.ts +8 -0
- package/lib/transfer/src/TransferList.d.ts +2 -0
- package/lib/tree/src/Tree.d.ts +2 -0
- package/lib/typography/src/text.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/src/VirtualList.d.ts +2 -0
- package/package.json +1 -1
- package/web-types.json +72 -2
|
@@ -2168,6 +2168,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2168
2168
|
sync: () => void;
|
|
2169
2169
|
handleMouseEnterWrapper: () => void;
|
|
2170
2170
|
handleMouseLeaveWrapper: () => void;
|
|
2171
|
+
resetScrollEdgeState: () => void;
|
|
2171
2172
|
} | null, ScrollbarInst | {
|
|
2172
2173
|
$el: HTMLElement;
|
|
2173
2174
|
containerRef: HTMLElement | null;
|
|
@@ -2179,6 +2180,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2179
2180
|
sync: () => void;
|
|
2180
2181
|
handleMouseEnterWrapper: () => void;
|
|
2181
2182
|
handleMouseLeaveWrapper: () => void;
|
|
2183
|
+
resetScrollEdgeState: () => void;
|
|
2182
2184
|
} | null>;
|
|
2183
2185
|
contentInstRef: import("vue").Ref<{
|
|
2184
2186
|
$el: HTMLElement;
|
|
@@ -40,6 +40,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
40
40
|
sync: () => void;
|
|
41
41
|
handleMouseEnterWrapper: () => void;
|
|
42
42
|
handleMouseLeaveWrapper: () => void;
|
|
43
|
+
resetScrollEdgeState: () => void;
|
|
43
44
|
} | null, ScrollbarInst | {
|
|
44
45
|
$el: HTMLElement;
|
|
45
46
|
containerRef: HTMLElement | null;
|
|
@@ -51,6 +52,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
51
52
|
sync: () => void;
|
|
52
53
|
handleMouseEnterWrapper: () => void;
|
|
53
54
|
handleMouseLeaveWrapper: () => void;
|
|
55
|
+
resetScrollEdgeState: () => void;
|
|
54
56
|
} | null>;
|
|
55
57
|
handleScroll: () => void;
|
|
56
58
|
handleWheel: (e: WheelEvent) => void;
|
package/es/input/src/Input.d.ts
CHANGED
|
@@ -673,6 +673,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
673
673
|
sync: () => void;
|
|
674
674
|
handleMouseEnterWrapper: () => void;
|
|
675
675
|
handleMouseLeaveWrapper: () => void;
|
|
676
|
+
resetScrollEdgeState: () => void;
|
|
676
677
|
} | null, ScrollbarInst | {
|
|
677
678
|
$el: HTMLElement;
|
|
678
679
|
containerRef: HTMLElement | null;
|
|
@@ -684,6 +685,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
684
685
|
sync: () => void;
|
|
685
686
|
handleMouseEnterWrapper: () => void;
|
|
686
687
|
handleMouseLeaveWrapper: () => void;
|
|
688
|
+
resetScrollEdgeState: () => void;
|
|
687
689
|
} | null>;
|
|
688
690
|
rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined, import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
689
691
|
uncontrolledValue: import("vue").Ref<string | [string, string] | null, string | [string, string] | null>;
|
|
@@ -556,6 +556,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
556
556
|
"onScroll-bottom"?: ((...args: any[]) => any) | undefined;
|
|
557
557
|
}>, {
|
|
558
558
|
loading: boolean;
|
|
559
|
+
scrollThreshold: number;
|
|
559
560
|
disabled: boolean;
|
|
560
561
|
data: KanbanItem[];
|
|
561
562
|
columns: KanbanColumn[];
|
|
@@ -565,6 +566,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
565
566
|
draggable: boolean;
|
|
566
567
|
columnsDraggable: boolean;
|
|
567
568
|
scrollMode: import("./interface").KanbanScrollMode;
|
|
568
|
-
scrollThreshold: number;
|
|
569
569
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
570
570
|
export default _default;
|
|
@@ -205,6 +205,7 @@ export declare function createLayoutComponent(isContent: boolean): import("vue")
|
|
|
205
205
|
sync: () => void;
|
|
206
206
|
handleMouseEnterWrapper: () => void;
|
|
207
207
|
handleMouseLeaveWrapper: () => void;
|
|
208
|
+
resetScrollEdgeState: () => void;
|
|
208
209
|
} | null, ScrollbarInst | {
|
|
209
210
|
$el: HTMLElement;
|
|
210
211
|
containerRef: HTMLElement | null;
|
|
@@ -216,6 +217,7 @@ export declare function createLayoutComponent(isContent: boolean): import("vue")
|
|
|
216
217
|
sync: () => void;
|
|
217
218
|
handleMouseEnterWrapper: () => void;
|
|
218
219
|
handleMouseLeaveWrapper: () => void;
|
|
220
|
+
resetScrollEdgeState: () => void;
|
|
219
221
|
} | null>;
|
|
220
222
|
hasSiderStyle: CSSProperties;
|
|
221
223
|
mergedTheme: import("vue").ComputedRef<{
|
|
@@ -584,6 +586,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
584
586
|
sync: () => void;
|
|
585
587
|
handleMouseEnterWrapper: () => void;
|
|
586
588
|
handleMouseLeaveWrapper: () => void;
|
|
589
|
+
resetScrollEdgeState: () => void;
|
|
587
590
|
} | null, ScrollbarInst | {
|
|
588
591
|
$el: HTMLElement;
|
|
589
592
|
containerRef: HTMLElement | null;
|
|
@@ -595,6 +598,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
595
598
|
sync: () => void;
|
|
596
599
|
handleMouseEnterWrapper: () => void;
|
|
597
600
|
handleMouseLeaveWrapper: () => void;
|
|
601
|
+
resetScrollEdgeState: () => void;
|
|
598
602
|
} | null>;
|
|
599
603
|
hasSiderStyle: CSSProperties;
|
|
600
604
|
mergedTheme: import("vue").ComputedRef<{
|
|
@@ -155,6 +155,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
155
155
|
sync: () => void;
|
|
156
156
|
handleMouseEnterWrapper: () => void;
|
|
157
157
|
handleMouseLeaveWrapper: () => void;
|
|
158
|
+
resetScrollEdgeState: () => void;
|
|
158
159
|
} | null, import("../../_internal").ScrollbarInst | {
|
|
159
160
|
$el: HTMLElement;
|
|
160
161
|
containerRef: HTMLElement | null;
|
|
@@ -166,6 +167,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
166
167
|
sync: () => void;
|
|
167
168
|
handleMouseEnterWrapper: () => void;
|
|
168
169
|
handleMouseLeaveWrapper: () => void;
|
|
170
|
+
resetScrollEdgeState: () => void;
|
|
169
171
|
} | null>;
|
|
170
172
|
hasSiderStyle: import("vue").CSSProperties;
|
|
171
173
|
mergedTheme: import("vue").ComputedRef<{
|
|
@@ -247,6 +247,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
247
247
|
sync: () => void;
|
|
248
248
|
handleMouseEnterWrapper: () => void;
|
|
249
249
|
handleMouseLeaveWrapper: () => void;
|
|
250
|
+
resetScrollEdgeState: () => void;
|
|
250
251
|
} | null, ScrollbarInst | {
|
|
251
252
|
$el: HTMLElement;
|
|
252
253
|
containerRef: HTMLElement | null;
|
|
@@ -258,6 +259,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
258
259
|
sync: () => void;
|
|
259
260
|
handleMouseEnterWrapper: () => void;
|
|
260
261
|
handleMouseLeaveWrapper: () => void;
|
|
262
|
+
resetScrollEdgeState: () => void;
|
|
261
263
|
} | null>;
|
|
262
264
|
mergedClsPrefix: import("vue").Ref<string, string>;
|
|
263
265
|
mergedTheme: import("vue").ComputedRef<{
|
|
@@ -901,6 +901,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
901
901
|
sync: () => void;
|
|
902
902
|
handleMouseEnterWrapper: () => void;
|
|
903
903
|
handleMouseLeaveWrapper: () => void;
|
|
904
|
+
resetScrollEdgeState: () => void;
|
|
904
905
|
} | null, ScrollbarInst | {
|
|
905
906
|
$el: HTMLElement;
|
|
906
907
|
containerRef: HTMLElement | null;
|
|
@@ -912,6 +913,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
912
913
|
sync: () => void;
|
|
913
914
|
handleMouseEnterWrapper: () => void;
|
|
914
915
|
handleMouseLeaveWrapper: () => void;
|
|
916
|
+
resetScrollEdgeState: () => void;
|
|
915
917
|
} | null>;
|
|
916
918
|
vlInstRef: import("vue").Ref<{
|
|
917
919
|
listElRef: HTMLElement;
|
package/es/log/src/Log.d.ts
CHANGED
|
@@ -311,6 +311,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
311
311
|
sync: () => void;
|
|
312
312
|
handleMouseEnterWrapper: () => void;
|
|
313
313
|
handleMouseLeaveWrapper: () => void;
|
|
314
|
+
resetScrollEdgeState: () => void;
|
|
314
315
|
} | null, ScrollbarInst | {
|
|
315
316
|
$el: HTMLElement;
|
|
316
317
|
containerRef: HTMLElement | null;
|
|
@@ -322,6 +323,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
322
323
|
sync: () => void;
|
|
323
324
|
handleMouseEnterWrapper: () => void;
|
|
324
325
|
handleMouseLeaveWrapper: () => void;
|
|
326
|
+
resetScrollEdgeState: () => void;
|
|
325
327
|
} | null>;
|
|
326
328
|
mergedTheme: import("vue").ComputedRef<{
|
|
327
329
|
common: import("../..").ThemeCommonVars;
|
|
@@ -1221,6 +1221,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1221
1221
|
sync: () => void;
|
|
1222
1222
|
handleMouseEnterWrapper: () => void;
|
|
1223
1223
|
handleMouseLeaveWrapper: () => void;
|
|
1224
|
+
resetScrollEdgeState: () => void;
|
|
1224
1225
|
} | null, ScrollbarInst | {
|
|
1225
1226
|
$el: HTMLElement;
|
|
1226
1227
|
containerRef: HTMLElement | null;
|
|
@@ -1232,6 +1233,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1232
1233
|
sync: () => void;
|
|
1233
1234
|
handleMouseEnterWrapper: () => void;
|
|
1234
1235
|
handleMouseLeaveWrapper: () => void;
|
|
1236
|
+
resetScrollEdgeState: () => void;
|
|
1235
1237
|
} | null>;
|
|
1236
1238
|
draggableClass: import("vue").ComputedRef<"" | "u-draggable">;
|
|
1237
1239
|
displayed: import("vue").Ref<boolean, boolean>;
|
|
@@ -550,6 +550,7 @@ declare const ModalFullscreen: import("vue").DefineComponent<import("vue").Extra
|
|
|
550
550
|
sync: () => void;
|
|
551
551
|
handleMouseEnterWrapper: () => void;
|
|
552
552
|
handleMouseLeaveWrapper: () => void;
|
|
553
|
+
resetScrollEdgeState: () => void;
|
|
553
554
|
} | null, ScrollbarInst | {
|
|
554
555
|
$el: HTMLElement;
|
|
555
556
|
containerRef: HTMLElement | null;
|
|
@@ -561,6 +562,7 @@ declare const ModalFullscreen: import("vue").DefineComponent<import("vue").Extra
|
|
|
561
562
|
sync: () => void;
|
|
562
563
|
handleMouseEnterWrapper: () => void;
|
|
563
564
|
handleMouseLeaveWrapper: () => void;
|
|
565
|
+
resetScrollEdgeState: () => void;
|
|
564
566
|
} | null>;
|
|
565
567
|
mergedClsPrefix: import("vue").Ref<string, string>;
|
|
566
568
|
namespace: import("vue").ComputedRef<string | undefined>;
|
|
@@ -19,11 +19,15 @@ export interface SafeTopScrollbarInst {
|
|
|
19
19
|
clientHeight: number;
|
|
20
20
|
};
|
|
21
21
|
adjustScrollTop: (heightDiff: number) => void;
|
|
22
|
+
resetScrollEdgeState: () => void;
|
|
22
23
|
}
|
|
23
24
|
export declare const safeTopScrollbarProps: {
|
|
24
25
|
readonly trigger: PropType<"none" | "hover">;
|
|
25
26
|
readonly xScrollable: BooleanConstructor;
|
|
26
27
|
readonly onScroll: PropType<(e: Event) => void>;
|
|
28
|
+
readonly onScrollToTop: PropType<() => void>;
|
|
29
|
+
readonly onScrollToBottom: PropType<() => void>;
|
|
30
|
+
readonly scrollThreshold: NumberConstructor;
|
|
27
31
|
readonly size: NumberConstructor;
|
|
28
32
|
readonly theme: PropType<import("../../_mixins").Theme<"SafeTopScrollbar", {
|
|
29
33
|
height: string;
|
|
@@ -67,6 +71,9 @@ declare const SafeTopScrollbar: import("vue").DefineComponent<import("vue").Extr
|
|
|
67
71
|
readonly trigger: PropType<"none" | "hover">;
|
|
68
72
|
readonly xScrollable: BooleanConstructor;
|
|
69
73
|
readonly onScroll: PropType<(e: Event) => void>;
|
|
74
|
+
readonly onScrollToTop: PropType<() => void>;
|
|
75
|
+
readonly onScrollToBottom: PropType<() => void>;
|
|
76
|
+
readonly scrollThreshold: NumberConstructor;
|
|
70
77
|
readonly size: NumberConstructor;
|
|
71
78
|
readonly theme: PropType<import("../../_mixins").Theme<"SafeTopScrollbar", {
|
|
72
79
|
height: string;
|
|
@@ -122,6 +129,7 @@ declare const SafeTopScrollbar: import("vue").DefineComponent<import("vue").Extr
|
|
|
122
129
|
clientHeight: number;
|
|
123
130
|
};
|
|
124
131
|
adjustScrollTop: (heightDiff: number) => void;
|
|
132
|
+
resetScrollEdgeState: () => void;
|
|
125
133
|
} | null, InternalSafeTopScrollbarInst | {
|
|
126
134
|
$el: HTMLElement;
|
|
127
135
|
containerRef: HTMLElement | null;
|
|
@@ -139,6 +147,7 @@ declare const SafeTopScrollbar: import("vue").DefineComponent<import("vue").Extr
|
|
|
139
147
|
clientHeight: number;
|
|
140
148
|
};
|
|
141
149
|
adjustScrollTop: (heightDiff: number) => void;
|
|
150
|
+
resetScrollEdgeState: () => void;
|
|
142
151
|
} | null>;
|
|
143
152
|
scrollTo: ScrollTo;
|
|
144
153
|
scrollBy: ScrollBy;
|
|
@@ -148,10 +157,14 @@ declare const SafeTopScrollbar: import("vue").DefineComponent<import("vue").Extr
|
|
|
148
157
|
clientHeight: number;
|
|
149
158
|
};
|
|
150
159
|
adjustScrollTop: (heightDiff: number) => void;
|
|
160
|
+
resetScrollEdgeState: () => void;
|
|
151
161
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
152
162
|
readonly trigger: PropType<"none" | "hover">;
|
|
153
163
|
readonly xScrollable: BooleanConstructor;
|
|
154
164
|
readonly onScroll: PropType<(e: Event) => void>;
|
|
165
|
+
readonly onScrollToTop: PropType<() => void>;
|
|
166
|
+
readonly onScrollToBottom: PropType<() => void>;
|
|
167
|
+
readonly scrollThreshold: NumberConstructor;
|
|
155
168
|
readonly size: NumberConstructor;
|
|
156
169
|
readonly theme: PropType<import("../../_mixins").Theme<"SafeTopScrollbar", {
|
|
157
170
|
height: string;
|
|
@@ -5,6 +5,9 @@ export const safeTopScrollbarProps = Object.assign(Object.assign({}, useTheme.pr
|
|
|
5
5
|
trigger: String,
|
|
6
6
|
xScrollable: Boolean,
|
|
7
7
|
onScroll: Function,
|
|
8
|
+
onScrollToTop: Function,
|
|
9
|
+
onScrollToBottom: Function,
|
|
10
|
+
scrollThreshold: Number,
|
|
8
11
|
size: Number
|
|
9
12
|
});
|
|
10
13
|
const SafeTopScrollbar = defineComponent({
|
|
@@ -32,6 +35,10 @@ const SafeTopScrollbar = defineComponent({
|
|
|
32
35
|
adjustScrollTop: heightDiff => {
|
|
33
36
|
var _a;
|
|
34
37
|
(_a = scrollbarInstRef.value) === null || _a === void 0 ? void 0 : _a.adjustScrollTop(heightDiff);
|
|
38
|
+
},
|
|
39
|
+
resetScrollEdgeState: () => {
|
|
40
|
+
var _a;
|
|
41
|
+
(_a = scrollbarInstRef.value) === null || _a === void 0 ? void 0 : _a.resetScrollEdgeState();
|
|
35
42
|
}
|
|
36
43
|
};
|
|
37
44
|
return Object.assign(Object.assign({}, exposedMethods), {
|
|
@@ -13,11 +13,15 @@ export type ScrollBy = ScrollTo;
|
|
|
13
13
|
export interface ScrollbarInst {
|
|
14
14
|
scrollTo: ScrollTo;
|
|
15
15
|
scrollBy: ScrollBy;
|
|
16
|
+
resetScrollEdgeState: () => void;
|
|
16
17
|
}
|
|
17
18
|
export declare const scrollbarProps: {
|
|
18
19
|
readonly trigger: PropType<"none" | "hover">;
|
|
19
20
|
readonly xScrollable: BooleanConstructor;
|
|
20
21
|
readonly onScroll: PropType<(e: Event) => void>;
|
|
22
|
+
readonly onScrollToTop: PropType<() => void>;
|
|
23
|
+
readonly onScrollToBottom: PropType<() => void>;
|
|
24
|
+
readonly scrollThreshold: NumberConstructor;
|
|
21
25
|
readonly contentClass: StringConstructor;
|
|
22
26
|
readonly contentStyle: PropType<string | Record<string, any>>;
|
|
23
27
|
readonly size: NumberConstructor;
|
|
@@ -71,6 +75,9 @@ declare const Scrollbar: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
71
75
|
readonly trigger: PropType<"none" | "hover">;
|
|
72
76
|
readonly xScrollable: BooleanConstructor;
|
|
73
77
|
readonly onScroll: PropType<(e: Event) => void>;
|
|
78
|
+
readonly onScrollToTop: PropType<() => void>;
|
|
79
|
+
readonly onScrollToBottom: PropType<() => void>;
|
|
80
|
+
readonly scrollThreshold: NumberConstructor;
|
|
74
81
|
readonly contentClass: StringConstructor;
|
|
75
82
|
readonly contentStyle: PropType<string | Record<string, any>>;
|
|
76
83
|
readonly size: NumberConstructor;
|
|
@@ -130,6 +137,7 @@ declare const Scrollbar: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
130
137
|
sync: () => void;
|
|
131
138
|
handleMouseEnterWrapper: () => void;
|
|
132
139
|
handleMouseLeaveWrapper: () => void;
|
|
140
|
+
resetScrollEdgeState: () => void;
|
|
133
141
|
} | null, InternalScrollbarInst | {
|
|
134
142
|
$el: HTMLElement;
|
|
135
143
|
containerRef: HTMLElement | null;
|
|
@@ -141,13 +149,18 @@ declare const Scrollbar: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
141
149
|
sync: () => void;
|
|
142
150
|
handleMouseEnterWrapper: () => void;
|
|
143
151
|
handleMouseLeaveWrapper: () => void;
|
|
152
|
+
resetScrollEdgeState: () => void;
|
|
144
153
|
} | null>;
|
|
145
154
|
scrollTo: ScrollTo;
|
|
146
155
|
scrollBy: ScrollBy;
|
|
156
|
+
resetScrollEdgeState: () => void;
|
|
147
157
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
148
158
|
readonly trigger: PropType<"none" | "hover">;
|
|
149
159
|
readonly xScrollable: BooleanConstructor;
|
|
150
160
|
readonly onScroll: PropType<(e: Event) => void>;
|
|
161
|
+
readonly onScrollToTop: PropType<() => void>;
|
|
162
|
+
readonly onScrollToBottom: PropType<() => void>;
|
|
163
|
+
readonly scrollThreshold: NumberConstructor;
|
|
151
164
|
readonly contentClass: StringConstructor;
|
|
152
165
|
readonly contentStyle: PropType<string | Record<string, any>>;
|
|
153
166
|
readonly size: NumberConstructor;
|
|
@@ -5,6 +5,9 @@ export const scrollbarProps = Object.assign(Object.assign({}, useTheme.props), {
|
|
|
5
5
|
trigger: String,
|
|
6
6
|
xScrollable: Boolean,
|
|
7
7
|
onScroll: Function,
|
|
8
|
+
onScrollToTop: Function,
|
|
9
|
+
onScrollToBottom: Function,
|
|
10
|
+
scrollThreshold: Number,
|
|
8
11
|
contentClass: String,
|
|
9
12
|
contentStyle: [Object, String],
|
|
10
13
|
size: Number,
|
|
@@ -30,6 +33,10 @@ const Scrollbar = defineComponent({
|
|
|
30
33
|
scrollBy: (...args) => {
|
|
31
34
|
var _a;
|
|
32
35
|
(_a = scrollbarInstRef.value) === null || _a === void 0 ? void 0 : _a.scrollBy(args[0], args[1]);
|
|
36
|
+
},
|
|
37
|
+
resetScrollEdgeState: () => {
|
|
38
|
+
var _a;
|
|
39
|
+
(_a = scrollbarInstRef.value) === null || _a === void 0 ? void 0 : _a.resetScrollEdgeState();
|
|
33
40
|
}
|
|
34
41
|
};
|
|
35
42
|
return Object.assign(Object.assign({}, exposedMethods), {
|
|
@@ -2146,6 +2146,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2146
2146
|
sync: () => void;
|
|
2147
2147
|
handleMouseEnterWrapper: () => void;
|
|
2148
2148
|
handleMouseLeaveWrapper: () => void;
|
|
2149
|
+
resetScrollEdgeState: () => void;
|
|
2149
2150
|
} | undefined;
|
|
2150
2151
|
minuteScrollRef?: {
|
|
2151
2152
|
$el: HTMLElement;
|
|
@@ -2158,6 +2159,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2158
2159
|
sync: () => void;
|
|
2159
2160
|
handleMouseEnterWrapper: () => void;
|
|
2160
2161
|
handleMouseLeaveWrapper: () => void;
|
|
2162
|
+
resetScrollEdgeState: () => void;
|
|
2161
2163
|
} | undefined;
|
|
2162
2164
|
secondScrollRef?: {
|
|
2163
2165
|
$el: HTMLElement;
|
|
@@ -2170,6 +2172,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2170
2172
|
sync: () => void;
|
|
2171
2173
|
handleMouseEnterWrapper: () => void;
|
|
2172
2174
|
handleMouseLeaveWrapper: () => void;
|
|
2175
|
+
resetScrollEdgeState: () => void;
|
|
2173
2176
|
} | undefined;
|
|
2174
2177
|
amPmScrollRef?: {
|
|
2175
2178
|
$el: HTMLElement;
|
|
@@ -2182,6 +2185,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2182
2185
|
sync: () => void;
|
|
2183
2186
|
handleMouseEnterWrapper: () => void;
|
|
2184
2187
|
handleMouseLeaveWrapper: () => void;
|
|
2188
|
+
resetScrollEdgeState: () => void;
|
|
2185
2189
|
} | undefined;
|
|
2186
2190
|
} | null, PanelRef | {
|
|
2187
2191
|
$el: HTMLElement;
|
|
@@ -2196,6 +2200,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2196
2200
|
sync: () => void;
|
|
2197
2201
|
handleMouseEnterWrapper: () => void;
|
|
2198
2202
|
handleMouseLeaveWrapper: () => void;
|
|
2203
|
+
resetScrollEdgeState: () => void;
|
|
2199
2204
|
} | undefined;
|
|
2200
2205
|
minuteScrollRef?: {
|
|
2201
2206
|
$el: HTMLElement;
|
|
@@ -2208,6 +2213,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2208
2213
|
sync: () => void;
|
|
2209
2214
|
handleMouseEnterWrapper: () => void;
|
|
2210
2215
|
handleMouseLeaveWrapper: () => void;
|
|
2216
|
+
resetScrollEdgeState: () => void;
|
|
2211
2217
|
} | undefined;
|
|
2212
2218
|
secondScrollRef?: {
|
|
2213
2219
|
$el: HTMLElement;
|
|
@@ -2220,6 +2226,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2220
2226
|
sync: () => void;
|
|
2221
2227
|
handleMouseEnterWrapper: () => void;
|
|
2222
2228
|
handleMouseLeaveWrapper: () => void;
|
|
2229
|
+
resetScrollEdgeState: () => void;
|
|
2223
2230
|
} | undefined;
|
|
2224
2231
|
amPmScrollRef?: {
|
|
2225
2232
|
$el: HTMLElement;
|
|
@@ -2232,6 +2239,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2232
2239
|
sync: () => void;
|
|
2233
2240
|
handleMouseEnterWrapper: () => void;
|
|
2234
2241
|
handleMouseLeaveWrapper: () => void;
|
|
2242
|
+
resetScrollEdgeState: () => void;
|
|
2235
2243
|
} | undefined;
|
|
2236
2244
|
} | null>;
|
|
2237
2245
|
adjustedTo: import("vue").ComputedRef<string | HTMLElement>;
|
|
@@ -916,6 +916,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
916
916
|
sync: () => void;
|
|
917
917
|
handleMouseEnterWrapper: () => void;
|
|
918
918
|
handleMouseLeaveWrapper: () => void;
|
|
919
|
+
resetScrollEdgeState: () => void;
|
|
919
920
|
} | null, ScrollbarInst | {
|
|
920
921
|
$el: HTMLElement;
|
|
921
922
|
containerRef: HTMLElement | null;
|
|
@@ -927,6 +928,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
927
928
|
sync: () => void;
|
|
928
929
|
handleMouseEnterWrapper: () => void;
|
|
929
930
|
handleMouseLeaveWrapper: () => void;
|
|
931
|
+
resetScrollEdgeState: () => void;
|
|
930
932
|
} | null>;
|
|
931
933
|
vlInstRef: import("vue").Ref<{
|
|
932
934
|
listElRef: HTMLElement;
|
package/es/tree/src/Tree.d.ts
CHANGED
|
@@ -1366,6 +1366,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1366
1366
|
sync: () => void;
|
|
1367
1367
|
handleMouseEnterWrapper: () => void;
|
|
1368
1368
|
handleMouseLeaveWrapper: () => void;
|
|
1369
|
+
resetScrollEdgeState: () => void;
|
|
1369
1370
|
} | null, ScrollbarInst | {
|
|
1370
1371
|
$el: HTMLElement;
|
|
1371
1372
|
containerRef: HTMLElement | null;
|
|
@@ -1377,6 +1378,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1377
1378
|
sync: () => void;
|
|
1378
1379
|
handleMouseEnterWrapper: () => void;
|
|
1379
1380
|
handleMouseLeaveWrapper: () => void;
|
|
1381
|
+
resetScrollEdgeState: () => void;
|
|
1380
1382
|
} | null>;
|
|
1381
1383
|
handleFocusout: (event: FocusEvent) => void;
|
|
1382
1384
|
handleDragLeaveTree: (event: DragEvent) => void;
|
|
@@ -305,8 +305,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
305
305
|
color: string;
|
|
306
306
|
code: boolean;
|
|
307
307
|
strong: boolean;
|
|
308
|
-
text: string;
|
|
309
308
|
delete: boolean;
|
|
309
|
+
text: string;
|
|
310
310
|
variant: import("..").TypographyVariant;
|
|
311
311
|
italic: boolean;
|
|
312
312
|
variantOptions: import("..").TypographyVariantOptions;
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.4.
|
|
1
|
+
declare const _default: "2.4.6";
|
|
2
2
|
export default _default;
|
package/es/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '2.4.
|
|
1
|
+
export default '2.4.6';
|
|
@@ -89,6 +89,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
89
89
|
sync: () => void;
|
|
90
90
|
handleMouseEnterWrapper: () => void;
|
|
91
91
|
handleMouseLeaveWrapper: () => void;
|
|
92
|
+
resetScrollEdgeState: () => void;
|
|
92
93
|
} | null, ScrollbarInst | {
|
|
93
94
|
$el: HTMLElement;
|
|
94
95
|
containerRef: HTMLElement | null;
|
|
@@ -100,6 +101,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
100
101
|
sync: () => void;
|
|
101
102
|
handleMouseEnterWrapper: () => void;
|
|
102
103
|
handleMouseLeaveWrapper: () => void;
|
|
104
|
+
resetScrollEdgeState: () => void;
|
|
103
105
|
} | null>;
|
|
104
106
|
virtualListInstRef: import("vue").Ref<{
|
|
105
107
|
listElRef: HTMLElement;
|
|
@@ -46,6 +46,7 @@ export interface SafeTopScrollbarInstMethods {
|
|
|
46
46
|
clientHeight: number;
|
|
47
47
|
};
|
|
48
48
|
adjustScrollTop: (heightDiff: number) => void;
|
|
49
|
+
resetScrollEdgeState: () => void;
|
|
49
50
|
}
|
|
50
51
|
export interface SafeTopScrollbarInst extends SafeTopScrollbarInstMethods {
|
|
51
52
|
$el: HTMLElement;
|
|
@@ -80,6 +81,12 @@ declare const safeTopscrollbarProps: {
|
|
|
80
81
|
readonly onScroll: PropType<(e: Event) => void>;
|
|
81
82
|
readonly onWheel: PropType<(e: WheelEvent) => void>;
|
|
82
83
|
readonly onResize: PropType<(e: ResizeObserverEntry) => void>;
|
|
84
|
+
readonly onScrollToTop: PropType<() => void>;
|
|
85
|
+
readonly onScrollToBottom: PropType<() => void>;
|
|
86
|
+
readonly scrollThreshold: {
|
|
87
|
+
readonly type: NumberConstructor;
|
|
88
|
+
readonly default: 5;
|
|
89
|
+
};
|
|
83
90
|
readonly internalOnUpdateScrollLeft: PropType<(scrollLeft: number) => void>;
|
|
84
91
|
readonly internalHoistYRail: BooleanConstructor;
|
|
85
92
|
readonly yPlacement: {
|
|
@@ -156,6 +163,12 @@ declare const SafeTopScrollbar: import("vue").DefineComponent<import("vue").Extr
|
|
|
156
163
|
readonly onScroll: PropType<(e: Event) => void>;
|
|
157
164
|
readonly onWheel: PropType<(e: WheelEvent) => void>;
|
|
158
165
|
readonly onResize: PropType<(e: ResizeObserverEntry) => void>;
|
|
166
|
+
readonly onScrollToTop: PropType<() => void>;
|
|
167
|
+
readonly onScrollToBottom: PropType<() => void>;
|
|
168
|
+
readonly scrollThreshold: {
|
|
169
|
+
readonly type: NumberConstructor;
|
|
170
|
+
readonly default: 5;
|
|
171
|
+
};
|
|
159
172
|
readonly internalOnUpdateScrollLeft: PropType<(scrollLeft: number) => void>;
|
|
160
173
|
readonly internalHoistYRail: BooleanConstructor;
|
|
161
174
|
readonly yPlacement: {
|
|
@@ -264,6 +277,7 @@ declare const SafeTopScrollbar: import("vue").DefineComponent<import("vue").Extr
|
|
|
264
277
|
clientHeight: number;
|
|
265
278
|
};
|
|
266
279
|
adjustScrollTop: (heightDiff: number) => void;
|
|
280
|
+
resetScrollEdgeState: () => void;
|
|
267
281
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
268
282
|
readonly duration: {
|
|
269
283
|
readonly type: NumberConstructor;
|
|
@@ -291,6 +305,12 @@ declare const SafeTopScrollbar: import("vue").DefineComponent<import("vue").Extr
|
|
|
291
305
|
readonly onScroll: PropType<(e: Event) => void>;
|
|
292
306
|
readonly onWheel: PropType<(e: WheelEvent) => void>;
|
|
293
307
|
readonly onResize: PropType<(e: ResizeObserverEntry) => void>;
|
|
308
|
+
readonly onScrollToTop: PropType<() => void>;
|
|
309
|
+
readonly onScrollToBottom: PropType<() => void>;
|
|
310
|
+
readonly scrollThreshold: {
|
|
311
|
+
readonly type: NumberConstructor;
|
|
312
|
+
readonly default: 5;
|
|
313
|
+
};
|
|
294
314
|
readonly internalOnUpdateScrollLeft: PropType<(scrollLeft: number) => void>;
|
|
295
315
|
readonly internalHoistYRail: BooleanConstructor;
|
|
296
316
|
readonly yPlacement: {
|
|
@@ -344,6 +364,7 @@ declare const SafeTopScrollbar: import("vue").DefineComponent<import("vue").Extr
|
|
|
344
364
|
readonly trigger: "none" | "hover";
|
|
345
365
|
readonly useUnifiedContainer: boolean;
|
|
346
366
|
readonly triggerDisplayManually: boolean;
|
|
367
|
+
readonly scrollThreshold: number;
|
|
347
368
|
readonly internalHoistYRail: boolean;
|
|
348
369
|
readonly yPlacement: "left" | "right";
|
|
349
370
|
readonly xPlacement: "top" | "bottom";
|
|
@@ -11,6 +11,7 @@ const vue_1 = require("vue");
|
|
|
11
11
|
const vueuc_1 = require("vueuc");
|
|
12
12
|
const _mixins_1 = require("../../../_mixins");
|
|
13
13
|
const _utils_1 = require("../../../_utils");
|
|
14
|
+
const use_scroll_edge_detector_1 = require("../../../_utils/composable/use-scroll-edge-detector");
|
|
14
15
|
const styles_1 = require("../styles");
|
|
15
16
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
16
17
|
const safeTopscrollbarProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { duration: {
|
|
@@ -24,7 +25,10 @@ const safeTopscrollbarProps = Object.assign(Object.assign({}, _mixins_1.useTheme
|
|
|
24
25
|
default: 'hover'
|
|
25
26
|
}, useUnifiedContainer: Boolean, triggerDisplayManually: Boolean,
|
|
26
27
|
// If container is set, resize observer won't not attached
|
|
27
|
-
container: Function, content: Function, containerClass: String, containerStyle: [String, Object], contentClass: [String, Array], contentStyle: [String, Object], horizontalRailStyle: [String, Object], verticalRailStyle: [String, Object], onScroll: Function, onWheel: Function, onResize: Function,
|
|
28
|
+
container: Function, content: Function, containerClass: String, containerStyle: [String, Object], contentClass: [String, Array], contentStyle: [String, Object], horizontalRailStyle: [String, Object], verticalRailStyle: [String, Object], onScroll: Function, onWheel: Function, onResize: Function, onScrollToTop: Function, onScrollToBottom: Function, scrollThreshold: {
|
|
29
|
+
type: Number,
|
|
30
|
+
default: 5
|
|
31
|
+
}, internalOnUpdateScrollLeft: Function, internalHoistYRail: Boolean, yPlacement: {
|
|
28
32
|
type: String,
|
|
29
33
|
default: 'right'
|
|
30
34
|
}, xPlacement: {
|
|
@@ -65,6 +69,7 @@ const SafeTopScrollbar = (0, vue_1.defineComponent)({
|
|
|
65
69
|
let memoMouseY = 0;
|
|
66
70
|
let previousScrollHeight = 0;
|
|
67
71
|
let previousScrollTop = 0;
|
|
72
|
+
const { detectScrollEdges, resetScrollEdgeState } = (0, use_scroll_edge_detector_1.useScrollEdgeDetector)(() => props);
|
|
68
73
|
const isIos = (0, vooks_1.useIsIos)();
|
|
69
74
|
const themeRef = (0, _mixins_1.useTheme)('SafeTopScrollbar', '-safe-top-scrollbar', index_cssr_1.default, styles_1.scrollbarLight, props, mergedClsPrefixRef);
|
|
70
75
|
const yBarSizeRef = (0, vue_1.computed)(() => {
|
|
@@ -327,6 +332,7 @@ const SafeTopScrollbar = (0, vue_1.defineComponent)({
|
|
|
327
332
|
previousScrollTop = container.scrollTop;
|
|
328
333
|
}
|
|
329
334
|
syncScrollState();
|
|
335
|
+
detectScrollEdges(e);
|
|
330
336
|
}
|
|
331
337
|
function syncScrollState() {
|
|
332
338
|
// only collect scroll state, do not trigger any dom event
|
|
@@ -617,7 +623,8 @@ const SafeTopScrollbar = (0, vue_1.defineComponent)({
|
|
|
617
623
|
handleMouseEnterWrapper,
|
|
618
624
|
handleMouseLeaveWrapper,
|
|
619
625
|
getScrollState,
|
|
620
|
-
adjustScrollTop
|
|
626
|
+
adjustScrollTop,
|
|
627
|
+
resetScrollEdgeState
|
|
621
628
|
};
|
|
622
629
|
return Object.assign(Object.assign({}, exposedMethods), { mergedClsPrefix: mergedClsPrefixRef, rtlEnabled: rtlEnabledRef, containerScrollTop: containerScrollTopRef, wrapperRef,
|
|
623
630
|
containerRef,
|
|
@@ -40,6 +40,7 @@ export interface ScrollbarInstMethods {
|
|
|
40
40
|
sync: () => void;
|
|
41
41
|
handleMouseEnterWrapper: () => void;
|
|
42
42
|
handleMouseLeaveWrapper: () => void;
|
|
43
|
+
resetScrollEdgeState: () => void;
|
|
43
44
|
}
|
|
44
45
|
export interface ScrollbarInst extends ScrollbarInstMethods {
|
|
45
46
|
$el: HTMLElement;
|
|
@@ -74,6 +75,12 @@ declare const scrollbarProps: {
|
|
|
74
75
|
readonly onScroll: PropType<(e: Event) => void>;
|
|
75
76
|
readonly onWheel: PropType<(e: WheelEvent) => void>;
|
|
76
77
|
readonly onResize: PropType<(e: ResizeObserverEntry) => void>;
|
|
78
|
+
readonly onScrollToTop: PropType<() => void>;
|
|
79
|
+
readonly onScrollToBottom: PropType<() => void>;
|
|
80
|
+
readonly scrollThreshold: {
|
|
81
|
+
readonly type: NumberConstructor;
|
|
82
|
+
readonly default: 5;
|
|
83
|
+
};
|
|
77
84
|
readonly internalOnUpdateScrollLeft: PropType<(scrollLeft: number) => void>;
|
|
78
85
|
readonly internalHoistYRail: BooleanConstructor;
|
|
79
86
|
readonly yPlacement: {
|
|
@@ -150,6 +157,12 @@ declare const Scrollbar: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
150
157
|
readonly onScroll: PropType<(e: Event) => void>;
|
|
151
158
|
readonly onWheel: PropType<(e: WheelEvent) => void>;
|
|
152
159
|
readonly onResize: PropType<(e: ResizeObserverEntry) => void>;
|
|
160
|
+
readonly onScrollToTop: PropType<() => void>;
|
|
161
|
+
readonly onScrollToBottom: PropType<() => void>;
|
|
162
|
+
readonly scrollThreshold: {
|
|
163
|
+
readonly type: NumberConstructor;
|
|
164
|
+
readonly default: 5;
|
|
165
|
+
};
|
|
153
166
|
readonly internalOnUpdateScrollLeft: PropType<(scrollLeft: number) => void>;
|
|
154
167
|
readonly internalHoistYRail: BooleanConstructor;
|
|
155
168
|
readonly yPlacement: {
|
|
@@ -252,6 +265,7 @@ declare const Scrollbar: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
252
265
|
sync: () => void;
|
|
253
266
|
handleMouseEnterWrapper: () => void;
|
|
254
267
|
handleMouseLeaveWrapper: () => void;
|
|
268
|
+
resetScrollEdgeState: () => void;
|
|
255
269
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
256
270
|
readonly duration: {
|
|
257
271
|
readonly type: NumberConstructor;
|
|
@@ -279,6 +293,12 @@ declare const Scrollbar: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
279
293
|
readonly onScroll: PropType<(e: Event) => void>;
|
|
280
294
|
readonly onWheel: PropType<(e: WheelEvent) => void>;
|
|
281
295
|
readonly onResize: PropType<(e: ResizeObserverEntry) => void>;
|
|
296
|
+
readonly onScrollToTop: PropType<() => void>;
|
|
297
|
+
readonly onScrollToBottom: PropType<() => void>;
|
|
298
|
+
readonly scrollThreshold: {
|
|
299
|
+
readonly type: NumberConstructor;
|
|
300
|
+
readonly default: 5;
|
|
301
|
+
};
|
|
282
302
|
readonly internalOnUpdateScrollLeft: PropType<(scrollLeft: number) => void>;
|
|
283
303
|
readonly internalHoistYRail: BooleanConstructor;
|
|
284
304
|
readonly yPlacement: {
|
|
@@ -332,6 +352,7 @@ declare const Scrollbar: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
332
352
|
readonly trigger: "none" | "hover";
|
|
333
353
|
readonly useUnifiedContainer: boolean;
|
|
334
354
|
readonly triggerDisplayManually: boolean;
|
|
355
|
+
readonly scrollThreshold: number;
|
|
335
356
|
readonly internalHoistYRail: boolean;
|
|
336
357
|
readonly yPlacement: "left" | "right";
|
|
337
358
|
readonly xPlacement: "top" | "bottom";
|