@uzum-tech/ui 1.8.1 → 1.9.0
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 +847 -249
- package/dist/index.prod.js +3 -3
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +119 -17
- package/es/_internal/scrollbar/src/Scrollbar.js +121 -68
- package/es/_internal/scrollbar/src/styles/index.cssr.js +32 -15
- package/es/_internal/scrollbar/styles/common.d.ts +7 -0
- package/es/_internal/scrollbar/styles/common.js +7 -0
- package/es/_internal/scrollbar/styles/light.d.ts +8 -0
- package/es/_internal/scrollbar/styles/light.js +3 -5
- package/es/_internal/select-menu/src/SelectMenu.d.ts +57 -1
- package/es/_internal/select-menu/styles/light.d.ts +8 -0
- package/es/_internal/selection/src/Selection.d.ts +3 -1
- package/es/_internal/selection/src/Selection.js +3 -1
- package/es/_utils/css/index.d.ts +1 -0
- package/es/_utils/css/index.js +1 -0
- package/es/_utils/css/rtl-inset.d.ts +1 -0
- package/es/_utils/css/rtl-inset.js +5 -0
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.js +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +88 -0
- package/es/auto-complete/styles/light.d.ts +8 -0
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/button/src/Button.d.ts +72 -0
- package/es/button/src/Button.js +13 -7
- package/es/button/src/styles/index.cssr.js +1 -2
- package/es/button/styles/light.d.ts +8 -0
- package/es/button/styles/light.js +7 -7
- package/es/calendar/src/Calendar.d.ts +80 -0
- package/es/calendar/styles/light.d.ts +8 -0
- package/es/cascader/src/Cascader.d.ts +168 -0
- package/es/cascader/src/CascaderMenu.d.ts +24 -0
- package/es/cascader/src/CascaderOption.d.ts +24 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +24 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +25 -1
- package/es/cascader/styles/light.d.ts +16 -0
- package/es/chat/src/Chat.d.ts +175 -7
- package/es/chat/src/Chat.js +11 -12
- package/es/chat/src/ChatListItems.d.ts +192 -0
- package/es/chat/src/ChatListItems.js +4 -1
- package/es/chat/src/ChatMessages.d.ts +192 -0
- package/es/chat/src/styles/index.cssr.js +1 -3
- package/es/chat/styles/dark.d.ts +16 -0
- package/es/chat/styles/light.d.ts +16 -0
- package/es/color-picker/src/ColorInputUnit.d.ts +8 -0
- package/es/color-picker/src/ColorPicker.d.ts +72 -0
- package/es/color-picker/styles/light.d.ts +8 -0
- package/es/components.d.ts +2 -0
- package/es/components.js +2 -0
- package/es/data-table/src/DataTable.d.ts +240 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +48 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +48 -0
- package/es/data-table/src/TableParts/Body.d.ts +49 -1
- package/es/data-table/src/TableParts/Header.d.ts +48 -0
- package/es/data-table/src/interface.d.ts +96 -0
- package/es/data-table/styles/light.d.ts +32 -0
- package/es/date-picker/src/DatePicker.d.ts +339 -3
- package/es/date-picker/src/panel/date.d.ts +49 -1
- package/es/date-picker/src/panel/daterange.d.ts +50 -2
- package/es/date-picker/src/panel/datetime.d.ts +49 -1
- package/es/date-picker/src/panel/datetimerange.d.ts +50 -2
- package/es/date-picker/src/panel/panelMonth.d.ts +98 -2
- package/es/date-picker/src/panel/panelMonthContent.d.ts +49 -1
- package/es/date-picker/src/panel/panelYear.d.ts +98 -2
- package/es/date-picker/src/panel/panelYearContent.d.ts +49 -1
- package/es/date-picker/src/panel/use-calendar.d.ts +48 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +48 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +48 -0
- package/es/date-picker/styles/light.d.ts +32 -0
- package/es/dialog/src/Dialog.d.ts +56 -0
- package/es/dialog/src/DialogProvider.d.ts +18 -2
- package/es/dialog/styles/light.d.ts +8 -0
- package/es/drawer/src/Drawer.d.ts +81 -1
- package/es/drawer/src/DrawerBodyWrapper.d.ts +9 -1
- package/es/drawer/src/DrawerContent.d.ts +8 -0
- package/es/drawer/styles/light.d.ts +8 -0
- package/es/dropdown/src/Dropdown.d.ts +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +80 -0
- package/es/dynamic-input/src/InputPreset.d.ts +8 -0
- package/es/dynamic-input/src/PairPreset.d.ts +8 -0
- package/es/dynamic-input/styles/light.d.ts +8 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +80 -0
- package/es/dynamic-tags/styles/light.d.ts +8 -0
- package/es/infinite-scroll/index.d.ts +2 -0
- package/es/infinite-scroll/index.js +1 -0
- package/es/infinite-scroll/src/InfiniteScroll.d.ts +45 -0
- package/es/infinite-scroll/src/InfiniteScroll.js +78 -0
- package/es/input-number/src/InputNumber.d.ts +80 -0
- package/es/input-number/styles/light.d.ts +8 -0
- package/es/layout/src/Layout.d.ts +112 -0
- package/es/layout/src/LayoutContent.d.ts +56 -0
- package/es/layout/src/LayoutFooter.d.ts +72 -0
- package/es/layout/src/LayoutHeader.d.ts +48 -0
- package/es/layout/src/LayoutSider.d.ts +56 -0
- package/es/layout/styles/light.d.ts +8 -0
- package/es/legacy-transfer/src/Transfer.d.ts +160 -0
- package/es/legacy-transfer/src/TransferFilter.d.ts +16 -0
- package/es/legacy-transfer/src/TransferList.d.ts +17 -1
- package/es/legacy-transfer/src/TransferListItem.d.ts +16 -0
- package/es/legacy-transfer/styles/light.d.ts +16 -0
- package/es/log/src/Log.d.ts +80 -0
- package/es/log/styles/light.d.ts +8 -0
- package/es/mention/src/Mention.d.ts +88 -0
- package/es/mention/styles/light.d.ts +8 -0
- package/es/menu/src/Menu.d.ts +1 -1
- package/es/modal/src/BodyWrapper.d.ts +25 -1
- package/es/modal/src/Modal.d.ts +145 -1
- package/es/modal/styles/light.d.ts +16 -0
- package/es/notification/src/Notification.d.ts +5 -0
- package/es/notification/src/Notification.js +16 -6
- package/es/notification/src/NotificationContainer.d.ts +20 -0
- package/es/notification/src/NotificationProvider.d.ts +180 -0
- package/es/notification/src/styles/index.cssr.js +12 -8
- package/es/notification/styles/light.d.ts +32 -0
- package/es/notification/styles/light.js +9 -8
- package/es/pagination/src/Pagination.d.ts +176 -0
- package/es/pagination/styles/light.d.ts +16 -0
- package/es/popconfirm/src/Popconfirm.d.ts +80 -0
- package/es/popconfirm/styles/light.d.ts +8 -0
- package/es/popselect/src/Popselect.d.ts +88 -0
- package/es/popselect/src/PopselectPanel.d.ts +16 -0
- package/es/popselect/styles/light.d.ts +8 -0
- package/es/scrollbar/src/Scrollbar.d.ts +72 -0
- package/es/select/src/Select.d.ts +88 -0
- package/es/select/styles/light.d.ts +8 -0
- package/es/time-picker/src/Panel.d.ts +16 -0
- package/es/time-picker/src/TimePicker.d.ts +160 -0
- package/es/time-picker/styles/light.d.ts +16 -0
- package/es/transfer/src/Transfer.d.ts +160 -0
- package/es/transfer/src/TransferFilter.d.ts +16 -0
- package/es/transfer/src/TransferList.d.ts +17 -1
- package/es/transfer/src/TransferListItem.d.ts +16 -0
- package/es/transfer/styles/light.d.ts +16 -0
- package/es/tree/src/Tree.d.ts +82 -2
- package/es/tree/src/TreeNodeCheckbox.d.ts +8 -0
- package/es/tree/styles/light.d.ts +8 -0
- package/es/tree-select/src/TreeSelect.d.ts +89 -1
- package/es/tree-select/styles/light.d.ts +8 -0
- package/es/upload/src/Upload.d.ts +90 -0
- package/es/upload/src/Upload.js +2 -1
- package/es/upload/src/UploadFile.d.ts +9 -0
- package/es/upload/src/UploadProgress.d.ts +9 -0
- package/es/upload/src/styles/index.cssr.js +1 -0
- package/es/upload/src/useUploadActionsRender.js +5 -1
- package/es/upload/styles/light.d.ts +10 -0
- package/es/upload/styles/light.js +6 -5
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/virtual-list/index.d.ts +2 -0
- package/es/virtual-list/index.js +1 -0
- package/es/virtual-list/src/VirtualList.d.ts +146 -0
- package/es/virtual-list/src/VirtualList.js +103 -0
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +119 -17
- package/lib/_internal/scrollbar/src/Scrollbar.js +118 -65
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +32 -15
- package/lib/_internal/scrollbar/styles/common.d.ts +7 -0
- package/lib/_internal/scrollbar/styles/common.js +10 -0
- package/lib/_internal/scrollbar/styles/light.d.ts +8 -0
- package/lib/_internal/scrollbar/styles/light.js +3 -5
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +57 -1
- package/lib/_internal/select-menu/styles/light.d.ts +8 -0
- package/lib/_internal/selection/src/Selection.d.ts +3 -1
- package/lib/_internal/selection/src/Selection.js +3 -1
- package/lib/_utils/css/index.d.ts +1 -0
- package/lib/_utils/css/index.js +3 -1
- package/lib/_utils/css/rtl-inset.d.ts +1 -0
- package/lib/_utils/css/rtl-inset.js +8 -0
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +2 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +88 -0
- package/lib/auto-complete/styles/light.d.ts +8 -0
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/button/src/Button.d.ts +72 -0
- package/lib/button/src/Button.js +13 -7
- package/lib/button/src/styles/index.cssr.js +1 -2
- package/lib/button/styles/light.d.ts +8 -0
- package/lib/button/styles/light.js +7 -7
- package/lib/calendar/src/Calendar.d.ts +80 -0
- package/lib/calendar/styles/light.d.ts +8 -0
- package/lib/cascader/src/Cascader.d.ts +168 -0
- package/lib/cascader/src/CascaderMenu.d.ts +24 -0
- package/lib/cascader/src/CascaderOption.d.ts +24 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +24 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +25 -1
- package/lib/cascader/styles/light.d.ts +16 -0
- package/lib/chat/src/Chat.d.ts +175 -7
- package/lib/chat/src/Chat.js +11 -12
- package/lib/chat/src/ChatListItems.d.ts +192 -0
- package/lib/chat/src/ChatListItems.js +4 -1
- package/lib/chat/src/ChatMessages.d.ts +192 -0
- package/lib/chat/src/styles/index.cssr.js +1 -3
- package/lib/chat/styles/dark.d.ts +16 -0
- package/lib/chat/styles/light.d.ts +16 -0
- package/lib/color-picker/src/ColorInputUnit.d.ts +8 -0
- package/lib/color-picker/src/ColorPicker.d.ts +72 -0
- package/lib/color-picker/styles/light.d.ts +8 -0
- package/lib/components.d.ts +2 -0
- package/lib/components.js +2 -0
- package/lib/data-table/src/DataTable.d.ts +240 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +48 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +48 -0
- package/lib/data-table/src/TableParts/Body.d.ts +49 -1
- package/lib/data-table/src/TableParts/Header.d.ts +48 -0
- package/lib/data-table/src/interface.d.ts +96 -0
- package/lib/data-table/styles/light.d.ts +32 -0
- package/lib/date-picker/src/DatePicker.d.ts +339 -3
- package/lib/date-picker/src/panel/date.d.ts +49 -1
- package/lib/date-picker/src/panel/daterange.d.ts +50 -2
- package/lib/date-picker/src/panel/datetime.d.ts +49 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +50 -2
- package/lib/date-picker/src/panel/panelMonth.d.ts +98 -2
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +49 -1
- package/lib/date-picker/src/panel/panelYear.d.ts +98 -2
- package/lib/date-picker/src/panel/panelYearContent.d.ts +49 -1
- package/lib/date-picker/src/panel/use-calendar.d.ts +48 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +48 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +48 -0
- package/lib/date-picker/styles/light.d.ts +32 -0
- package/lib/dialog/src/Dialog.d.ts +56 -0
- package/lib/dialog/src/DialogProvider.d.ts +18 -2
- package/lib/dialog/styles/light.d.ts +8 -0
- package/lib/drawer/src/Drawer.d.ts +81 -1
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +9 -1
- package/lib/drawer/src/DrawerContent.d.ts +8 -0
- package/lib/drawer/styles/light.d.ts +8 -0
- package/lib/dropdown/src/Dropdown.d.ts +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +80 -0
- package/lib/dynamic-input/src/InputPreset.d.ts +8 -0
- package/lib/dynamic-input/src/PairPreset.d.ts +8 -0
- package/lib/dynamic-input/styles/light.d.ts +8 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +80 -0
- package/lib/dynamic-tags/styles/light.d.ts +8 -0
- package/lib/infinite-scroll/index.d.ts +2 -0
- package/lib/infinite-scroll/index.js +9 -0
- package/lib/infinite-scroll/src/InfiniteScroll.d.ts +45 -0
- package/lib/infinite-scroll/src/InfiniteScroll.js +81 -0
- package/lib/input-number/src/InputNumber.d.ts +80 -0
- package/lib/input-number/styles/light.d.ts +8 -0
- package/lib/layout/src/Layout.d.ts +112 -0
- package/lib/layout/src/LayoutContent.d.ts +56 -0
- package/lib/layout/src/LayoutFooter.d.ts +72 -0
- package/lib/layout/src/LayoutHeader.d.ts +48 -0
- package/lib/layout/src/LayoutSider.d.ts +56 -0
- package/lib/layout/styles/light.d.ts +8 -0
- package/lib/legacy-transfer/src/Transfer.d.ts +160 -0
- package/lib/legacy-transfer/src/TransferFilter.d.ts +16 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +17 -1
- package/lib/legacy-transfer/src/TransferListItem.d.ts +16 -0
- package/lib/legacy-transfer/styles/light.d.ts +16 -0
- package/lib/log/src/Log.d.ts +80 -0
- package/lib/log/styles/light.d.ts +8 -0
- package/lib/mention/src/Mention.d.ts +88 -0
- package/lib/mention/styles/light.d.ts +8 -0
- package/lib/menu/src/Menu.d.ts +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +25 -1
- package/lib/modal/src/Modal.d.ts +145 -1
- package/lib/modal/styles/light.d.ts +16 -0
- package/lib/notification/src/Notification.d.ts +5 -0
- package/lib/notification/src/Notification.js +14 -4
- package/lib/notification/src/NotificationContainer.d.ts +20 -0
- package/lib/notification/src/NotificationProvider.d.ts +180 -0
- package/lib/notification/src/styles/index.cssr.js +12 -8
- package/lib/notification/styles/light.d.ts +32 -0
- package/lib/notification/styles/light.js +9 -8
- package/lib/pagination/src/Pagination.d.ts +176 -0
- package/lib/pagination/styles/light.d.ts +16 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +80 -0
- package/lib/popconfirm/styles/light.d.ts +8 -0
- package/lib/popselect/src/Popselect.d.ts +88 -0
- package/lib/popselect/src/PopselectPanel.d.ts +16 -0
- package/lib/popselect/styles/light.d.ts +8 -0
- package/lib/scrollbar/src/Scrollbar.d.ts +72 -0
- package/lib/select/src/Select.d.ts +88 -0
- package/lib/select/styles/light.d.ts +8 -0
- package/lib/time-picker/src/Panel.d.ts +16 -0
- package/lib/time-picker/src/TimePicker.d.ts +160 -0
- package/lib/time-picker/styles/light.d.ts +16 -0
- package/lib/transfer/src/Transfer.d.ts +160 -0
- package/lib/transfer/src/TransferFilter.d.ts +16 -0
- package/lib/transfer/src/TransferList.d.ts +17 -1
- package/lib/transfer/src/TransferListItem.d.ts +16 -0
- package/lib/transfer/styles/light.d.ts +16 -0
- package/lib/tree/src/Tree.d.ts +82 -2
- package/lib/tree/src/TreeNodeCheckbox.d.ts +8 -0
- package/lib/tree/styles/light.d.ts +8 -0
- package/lib/tree-select/src/TreeSelect.d.ts +89 -1
- package/lib/tree-select/styles/light.d.ts +8 -0
- package/lib/upload/src/Upload.d.ts +90 -0
- package/lib/upload/src/Upload.js +2 -1
- package/lib/upload/src/UploadFile.d.ts +9 -0
- package/lib/upload/src/UploadProgress.d.ts +9 -0
- package/lib/upload/src/styles/index.cssr.js +1 -0
- package/lib/upload/src/useUploadActionsRender.js +5 -1
- package/lib/upload/styles/light.d.ts +10 -0
- package/lib/upload/styles/light.js +6 -5
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/index.d.ts +2 -0
- package/lib/virtual-list/index.js +9 -0
- package/lib/virtual-list/src/VirtualList.d.ts +146 -0
- package/lib/virtual-list/src/VirtualList.js +106 -0
- package/package.json +2 -2
- package/volar.d.ts +1 -0
- package/web-types.json +33 -4
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { defineComponent, h, ref } from 'vue';
|
|
2
|
+
import { VVirtualList } from 'vueuc';
|
|
3
|
+
import { UxScrollbar } from '../../_internal';
|
|
4
|
+
export const virtualListProps = {
|
|
5
|
+
scrollbarProps: Object,
|
|
6
|
+
items: {
|
|
7
|
+
type: Array,
|
|
8
|
+
default: () => []
|
|
9
|
+
},
|
|
10
|
+
itemSize: {
|
|
11
|
+
type: Number,
|
|
12
|
+
required: true
|
|
13
|
+
},
|
|
14
|
+
itemResizable: Boolean,
|
|
15
|
+
itemsStyle: [String, Object],
|
|
16
|
+
visibleItemsTag: {
|
|
17
|
+
type: [String, Object],
|
|
18
|
+
default: 'div'
|
|
19
|
+
},
|
|
20
|
+
visibleItemsProps: Object,
|
|
21
|
+
ignoreItemResize: Boolean,
|
|
22
|
+
onScroll: Function,
|
|
23
|
+
onWheel: Function,
|
|
24
|
+
onResize: Function,
|
|
25
|
+
defaultScrollKey: [Number, String],
|
|
26
|
+
defaultScrollIndex: Number,
|
|
27
|
+
keyField: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: 'key'
|
|
30
|
+
},
|
|
31
|
+
paddingTop: {
|
|
32
|
+
type: [Number, String],
|
|
33
|
+
default: 0
|
|
34
|
+
},
|
|
35
|
+
paddingBottom: {
|
|
36
|
+
type: [Number, String],
|
|
37
|
+
default: 0
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
export default defineComponent({
|
|
41
|
+
name: 'VirtualList',
|
|
42
|
+
props: virtualListProps,
|
|
43
|
+
setup(props) {
|
|
44
|
+
const scrollbarInstRef = ref(null);
|
|
45
|
+
const virtualListInstRef = ref(null);
|
|
46
|
+
function syncScrollbar() {
|
|
47
|
+
const { value: scrollbarInst } = scrollbarInstRef;
|
|
48
|
+
if (scrollbarInst) {
|
|
49
|
+
scrollbarInst.sync();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function handleScroll(e) {
|
|
53
|
+
var _a;
|
|
54
|
+
syncScrollbar();
|
|
55
|
+
(_a = props.onScroll) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
56
|
+
}
|
|
57
|
+
function handleResize(e) {
|
|
58
|
+
var _a;
|
|
59
|
+
syncScrollbar();
|
|
60
|
+
(_a = props.onResize) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
61
|
+
}
|
|
62
|
+
function handleWheel(e) {
|
|
63
|
+
var _a;
|
|
64
|
+
(_a = props.onWheel) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
65
|
+
}
|
|
66
|
+
function scrollTo(options, y) {
|
|
67
|
+
var _a, _b;
|
|
68
|
+
if (typeof options === 'number') {
|
|
69
|
+
(_a = virtualListInstRef.value) === null || _a === void 0 ? void 0 : _a.scrollTo(options, y !== null && y !== void 0 ? y : 0);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
(_b = virtualListInstRef.value) === null || _b === void 0 ? void 0 : _b.scrollTo(options);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
function getScrollContainer() {
|
|
76
|
+
var _a;
|
|
77
|
+
return (_a = virtualListInstRef.value) === null || _a === void 0 ? void 0 : _a.listElRef;
|
|
78
|
+
}
|
|
79
|
+
function getScrollContent() {
|
|
80
|
+
var _a;
|
|
81
|
+
return (_a = virtualListInstRef.value) === null || _a === void 0 ? void 0 : _a.itemsElRef;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
scrollTo,
|
|
85
|
+
scrollbarInstRef,
|
|
86
|
+
virtualListInstRef,
|
|
87
|
+
getScrollContainer,
|
|
88
|
+
getScrollContent,
|
|
89
|
+
handleScroll,
|
|
90
|
+
handleResize,
|
|
91
|
+
handleWheel
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
render() {
|
|
95
|
+
return (h(UxScrollbar, Object.assign({}, this.scrollbarProps, { ref: "scrollbarInstRef", container: this.getScrollContainer, content: this.getScrollContent }), {
|
|
96
|
+
default: () => {
|
|
97
|
+
return (h(VVirtualList, { ref: "virtualListInstRef", showScrollbar: false, items: this.items, itemSize: this.itemSize, itemResizable: this.itemResizable, itemsStyle: this.itemsStyle, visibleItemsTag: this.visibleItemsTag, visibleItemsProps: this.visibleItemsProps, ignoreItemResize: this.ignoreItemResize, keyField: this.keyField, defaultScrollKey: this.defaultScrollKey, defaultScrollIndex: this.defaultScrollIndex, paddingTop: this.paddingTop, paddingBottom: this.paddingBottom, onScroll: this.handleScroll, onResize: this.handleResize, onWheel: this.handleWheel }, {
|
|
98
|
+
default: ({ item, index }) => { var _a, _b; return (_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a, { item, index }); }
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
101
|
+
}));
|
|
102
|
+
}
|
|
103
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CSSProperties, HTMLAttributes, PropType } from 'vue';
|
|
2
2
|
import type { ExtractInternalPropTypes, ExtractPublicPropTypes } from '../../../_utils';
|
|
3
3
|
export interface ScrollTo {
|
|
4
4
|
(x: number, y: number): void;
|
|
@@ -48,10 +48,6 @@ export interface ScrollbarInst extends ScrollbarInstMethods {
|
|
|
48
48
|
containerScrollTop: number;
|
|
49
49
|
}
|
|
50
50
|
declare const scrollbarProps: {
|
|
51
|
-
readonly size: {
|
|
52
|
-
readonly type: NumberConstructor;
|
|
53
|
-
readonly default: 5;
|
|
54
|
-
};
|
|
55
51
|
readonly duration: {
|
|
56
52
|
readonly type: NumberConstructor;
|
|
57
53
|
readonly default: 0;
|
|
@@ -71,7 +67,7 @@ declare const scrollbarProps: {
|
|
|
71
67
|
readonly content: PropType<() => HTMLElement | null | undefined>;
|
|
72
68
|
readonly containerClass: StringConstructor;
|
|
73
69
|
readonly containerStyle: PropType<string | CSSProperties>;
|
|
74
|
-
readonly contentClass:
|
|
70
|
+
readonly contentClass: PropType<string | Array<string | undefined>>;
|
|
75
71
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
76
72
|
readonly horizontalRailStyle: PropType<string | CSSProperties>;
|
|
77
73
|
readonly verticalRailStyle: PropType<string | CSSProperties>;
|
|
@@ -80,26 +76,54 @@ declare const scrollbarProps: {
|
|
|
80
76
|
readonly onResize: PropType<(e: ResizeObserverEntry) => void>;
|
|
81
77
|
readonly internalOnUpdateScrollLeft: PropType<(scrollLeft: number) => void>;
|
|
82
78
|
readonly internalHoistYRail: BooleanConstructor;
|
|
79
|
+
readonly yPlacement: {
|
|
80
|
+
readonly type: PropType<"left" | "right">;
|
|
81
|
+
readonly default: "right";
|
|
82
|
+
};
|
|
83
|
+
readonly xPlacement: {
|
|
84
|
+
readonly type: PropType<"top" | "bottom">;
|
|
85
|
+
readonly default: "bottom";
|
|
86
|
+
};
|
|
83
87
|
readonly theme: PropType<import("../../../_mixins").Theme<"Scrollbar", {
|
|
88
|
+
height: string;
|
|
89
|
+
width: string;
|
|
90
|
+
borderRadius: string;
|
|
84
91
|
color: string;
|
|
85
92
|
colorHover: string;
|
|
93
|
+
railInsetHorizontalBottom: string;
|
|
94
|
+
railInsetHorizontalTop: string;
|
|
95
|
+
railInsetVerticalRight: string;
|
|
96
|
+
railInsetVerticalLeft: string;
|
|
97
|
+
railColor: string;
|
|
86
98
|
}, any>>;
|
|
87
99
|
readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Scrollbar", {
|
|
100
|
+
height: string;
|
|
101
|
+
width: string;
|
|
102
|
+
borderRadius: string;
|
|
88
103
|
color: string;
|
|
89
104
|
colorHover: string;
|
|
105
|
+
railInsetHorizontalBottom: string;
|
|
106
|
+
railInsetHorizontalTop: string;
|
|
107
|
+
railInsetVerticalRight: string;
|
|
108
|
+
railInsetVerticalLeft: string;
|
|
109
|
+
railColor: string;
|
|
90
110
|
}, any>>>;
|
|
91
111
|
readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Scrollbar", {
|
|
112
|
+
height: string;
|
|
113
|
+
width: string;
|
|
114
|
+
borderRadius: string;
|
|
92
115
|
color: string;
|
|
93
116
|
colorHover: string;
|
|
117
|
+
railInsetHorizontalBottom: string;
|
|
118
|
+
railInsetHorizontalTop: string;
|
|
119
|
+
railInsetVerticalRight: string;
|
|
120
|
+
railInsetVerticalLeft: string;
|
|
121
|
+
railColor: string;
|
|
94
122
|
}, any>>>;
|
|
95
123
|
};
|
|
96
124
|
export type ScrollbarProps = ExtractPublicPropTypes<typeof scrollbarProps>;
|
|
97
125
|
export type ScrollbarInternalProps = ExtractInternalPropTypes<typeof scrollbarProps>;
|
|
98
126
|
declare const Scrollbar: import("vue").DefineComponent<{
|
|
99
|
-
readonly size: {
|
|
100
|
-
readonly type: NumberConstructor;
|
|
101
|
-
readonly default: 5;
|
|
102
|
-
};
|
|
103
127
|
readonly duration: {
|
|
104
128
|
readonly type: NumberConstructor;
|
|
105
129
|
readonly default: 0;
|
|
@@ -119,7 +143,7 @@ declare const Scrollbar: import("vue").DefineComponent<{
|
|
|
119
143
|
readonly content: PropType<() => HTMLElement | null | undefined>;
|
|
120
144
|
readonly containerClass: StringConstructor;
|
|
121
145
|
readonly containerStyle: PropType<string | CSSProperties>;
|
|
122
|
-
readonly contentClass:
|
|
146
|
+
readonly contentClass: PropType<string | Array<string | undefined>>;
|
|
123
147
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
124
148
|
readonly horizontalRailStyle: PropType<string | CSSProperties>;
|
|
125
149
|
readonly verticalRailStyle: PropType<string | CSSProperties>;
|
|
@@ -128,17 +152,49 @@ declare const Scrollbar: import("vue").DefineComponent<{
|
|
|
128
152
|
readonly onResize: PropType<(e: ResizeObserverEntry) => void>;
|
|
129
153
|
readonly internalOnUpdateScrollLeft: PropType<(scrollLeft: number) => void>;
|
|
130
154
|
readonly internalHoistYRail: BooleanConstructor;
|
|
155
|
+
readonly yPlacement: {
|
|
156
|
+
readonly type: PropType<"left" | "right">;
|
|
157
|
+
readonly default: "right";
|
|
158
|
+
};
|
|
159
|
+
readonly xPlacement: {
|
|
160
|
+
readonly type: PropType<"top" | "bottom">;
|
|
161
|
+
readonly default: "bottom";
|
|
162
|
+
};
|
|
131
163
|
readonly theme: PropType<import("../../../_mixins").Theme<"Scrollbar", {
|
|
164
|
+
height: string;
|
|
165
|
+
width: string;
|
|
166
|
+
borderRadius: string;
|
|
132
167
|
color: string;
|
|
133
168
|
colorHover: string;
|
|
169
|
+
railInsetHorizontalBottom: string;
|
|
170
|
+
railInsetHorizontalTop: string;
|
|
171
|
+
railInsetVerticalRight: string;
|
|
172
|
+
railInsetVerticalLeft: string;
|
|
173
|
+
railColor: string;
|
|
134
174
|
}, any>>;
|
|
135
175
|
readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Scrollbar", {
|
|
176
|
+
height: string;
|
|
177
|
+
width: string;
|
|
178
|
+
borderRadius: string;
|
|
136
179
|
color: string;
|
|
137
180
|
colorHover: string;
|
|
181
|
+
railInsetHorizontalBottom: string;
|
|
182
|
+
railInsetHorizontalTop: string;
|
|
183
|
+
railInsetVerticalRight: string;
|
|
184
|
+
railInsetVerticalLeft: string;
|
|
185
|
+
railColor: string;
|
|
138
186
|
}, any>>>;
|
|
139
187
|
readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Scrollbar", {
|
|
188
|
+
height: string;
|
|
189
|
+
width: string;
|
|
190
|
+
borderRadius: string;
|
|
140
191
|
color: string;
|
|
141
192
|
colorHover: string;
|
|
193
|
+
railInsetHorizontalBottom: string;
|
|
194
|
+
railInsetHorizontalTop: string;
|
|
195
|
+
railInsetVerticalRight: string;
|
|
196
|
+
railInsetVerticalLeft: string;
|
|
197
|
+
railColor: string;
|
|
142
198
|
}, any>>>;
|
|
143
199
|
}, {
|
|
144
200
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
@@ -170,6 +226,23 @@ declare const Scrollbar: import("vue").DefineComponent<{
|
|
|
170
226
|
'--u-scrollbar-border-radius': string;
|
|
171
227
|
'--u-scrollbar-width': string;
|
|
172
228
|
'--u-scrollbar-height': string;
|
|
229
|
+
'--u-scrollbar-rail-top-horizontal-top': string;
|
|
230
|
+
'--u-scrollbar-rail-right-horizontal-top': string;
|
|
231
|
+
'--u-scrollbar-rail-bottom-horizontal-top': string;
|
|
232
|
+
'--u-scrollbar-rail-left-horizontal-top': string;
|
|
233
|
+
'--u-scrollbar-rail-top-horizontal-bottom': string;
|
|
234
|
+
'--u-scrollbar-rail-right-horizontal-bottom': string;
|
|
235
|
+
'--u-scrollbar-rail-bottom-horizontal-bottom': string;
|
|
236
|
+
'--u-scrollbar-rail-left-horizontal-bottom': string;
|
|
237
|
+
'--u-scrollbar-rail-top-vertical-right': string;
|
|
238
|
+
'--u-scrollbar-rail-right-vertical-right': string;
|
|
239
|
+
'--u-scrollbar-rail-bottom-vertical-right': string;
|
|
240
|
+
'--u-scrollbar-rail-left-vertical-right': string;
|
|
241
|
+
'--u-scrollbar-rail-top-vertical-left': string;
|
|
242
|
+
'--u-scrollbar-rail-right-vertical-left': string;
|
|
243
|
+
'--u-scrollbar-rail-bottom-vertical-left': string;
|
|
244
|
+
'--u-scrollbar-rail-left-vertical-left': string;
|
|
245
|
+
'--u-scrollbar-rail-color': string;
|
|
173
246
|
}> | undefined;
|
|
174
247
|
themeClass: import("vue").Ref<string> | undefined;
|
|
175
248
|
onRender: (() => void) | undefined;
|
|
@@ -180,10 +253,6 @@ declare const Scrollbar: import("vue").DefineComponent<{
|
|
|
180
253
|
handleMouseEnterWrapper: () => void;
|
|
181
254
|
handleMouseLeaveWrapper: () => void;
|
|
182
255
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
183
|
-
readonly size: {
|
|
184
|
-
readonly type: NumberConstructor;
|
|
185
|
-
readonly default: 5;
|
|
186
|
-
};
|
|
187
256
|
readonly duration: {
|
|
188
257
|
readonly type: NumberConstructor;
|
|
189
258
|
readonly default: 0;
|
|
@@ -203,7 +272,7 @@ declare const Scrollbar: import("vue").DefineComponent<{
|
|
|
203
272
|
readonly content: PropType<() => HTMLElement | null | undefined>;
|
|
204
273
|
readonly containerClass: StringConstructor;
|
|
205
274
|
readonly containerStyle: PropType<string | CSSProperties>;
|
|
206
|
-
readonly contentClass:
|
|
275
|
+
readonly contentClass: PropType<string | Array<string | undefined>>;
|
|
207
276
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
208
277
|
readonly horizontalRailStyle: PropType<string | CSSProperties>;
|
|
209
278
|
readonly verticalRailStyle: PropType<string | CSSProperties>;
|
|
@@ -212,20 +281,51 @@ declare const Scrollbar: import("vue").DefineComponent<{
|
|
|
212
281
|
readonly onResize: PropType<(e: ResizeObserverEntry) => void>;
|
|
213
282
|
readonly internalOnUpdateScrollLeft: PropType<(scrollLeft: number) => void>;
|
|
214
283
|
readonly internalHoistYRail: BooleanConstructor;
|
|
284
|
+
readonly yPlacement: {
|
|
285
|
+
readonly type: PropType<"left" | "right">;
|
|
286
|
+
readonly default: "right";
|
|
287
|
+
};
|
|
288
|
+
readonly xPlacement: {
|
|
289
|
+
readonly type: PropType<"top" | "bottom">;
|
|
290
|
+
readonly default: "bottom";
|
|
291
|
+
};
|
|
215
292
|
readonly theme: PropType<import("../../../_mixins").Theme<"Scrollbar", {
|
|
293
|
+
height: string;
|
|
294
|
+
width: string;
|
|
295
|
+
borderRadius: string;
|
|
216
296
|
color: string;
|
|
217
297
|
colorHover: string;
|
|
298
|
+
railInsetHorizontalBottom: string;
|
|
299
|
+
railInsetHorizontalTop: string;
|
|
300
|
+
railInsetVerticalRight: string;
|
|
301
|
+
railInsetVerticalLeft: string;
|
|
302
|
+
railColor: string;
|
|
218
303
|
}, any>>;
|
|
219
304
|
readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Scrollbar", {
|
|
305
|
+
height: string;
|
|
306
|
+
width: string;
|
|
307
|
+
borderRadius: string;
|
|
220
308
|
color: string;
|
|
221
309
|
colorHover: string;
|
|
310
|
+
railInsetHorizontalBottom: string;
|
|
311
|
+
railInsetHorizontalTop: string;
|
|
312
|
+
railInsetVerticalRight: string;
|
|
313
|
+
railInsetVerticalLeft: string;
|
|
314
|
+
railColor: string;
|
|
222
315
|
}, any>>>;
|
|
223
316
|
readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Scrollbar", {
|
|
317
|
+
height: string;
|
|
318
|
+
width: string;
|
|
319
|
+
borderRadius: string;
|
|
224
320
|
color: string;
|
|
225
321
|
colorHover: string;
|
|
322
|
+
railInsetHorizontalBottom: string;
|
|
323
|
+
railInsetHorizontalTop: string;
|
|
324
|
+
railInsetVerticalRight: string;
|
|
325
|
+
railInsetVerticalLeft: string;
|
|
326
|
+
railColor: string;
|
|
226
327
|
}, any>>>;
|
|
227
328
|
}>>, {
|
|
228
|
-
readonly size: number;
|
|
229
329
|
readonly duration: number;
|
|
230
330
|
readonly scrollable: boolean;
|
|
231
331
|
readonly xScrollable: boolean;
|
|
@@ -233,6 +333,8 @@ declare const Scrollbar: import("vue").DefineComponent<{
|
|
|
233
333
|
readonly useUnifiedContainer: boolean;
|
|
234
334
|
readonly triggerDisplayManually: boolean;
|
|
235
335
|
readonly internalHoistYRail: boolean;
|
|
336
|
+
readonly yPlacement: "left" | "right";
|
|
337
|
+
readonly xPlacement: "top" | "bottom";
|
|
236
338
|
}, {}>;
|
|
237
339
|
type NativeScrollbarProps = Omit<HTMLAttributes, keyof ScrollbarInternalProps>;
|
|
238
340
|
type MergedProps = Partial<ScrollbarInternalProps & NativeScrollbarProps>;
|