UNPKG

naive-ui

Version:

A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast

147 lines (146 loc) 5.8 kB
import { type CSSProperties, type PropType } from 'vue'; import { type VirtualListItemData, type VirtualListScrollToOptions } from 'vueuc'; import type { ExtractPublicPropTypes } from '../../_utils'; import type { ScrollbarProps } from '../../scrollbar/src/Scrollbar'; export { type VirtualListInst } from 'vueuc'; export declare const virtualListProps: { readonly scrollbarProps: PropType<ScrollbarProps>; readonly items: { readonly type: PropType<VirtualListItemData[]>; readonly default: () => never[]; }; readonly itemSize: { readonly type: NumberConstructor; readonly required: true; }; readonly itemResizable: BooleanConstructor; readonly itemsStyle: PropType<string | CSSProperties>; readonly visibleItemsTag: { readonly type: PropType<string | object>; readonly default: "div"; }; readonly visibleItemsProps: ObjectConstructor; readonly ignoreItemResize: BooleanConstructor; readonly onScroll: PropType<(event: Event) => void>; readonly onWheel: PropType<(event: WheelEvent) => void>; readonly onResize: PropType<(entry: ResizeObserverEntry) => void>; readonly defaultScrollKey: PropType<number | string>; readonly defaultScrollIndex: NumberConstructor; readonly keyField: { readonly type: StringConstructor; readonly default: "key"; }; readonly paddingTop: { readonly type: PropType<number | string>; readonly default: 0; }; readonly paddingBottom: { readonly type: PropType<number | string>; readonly default: 0; }; }; export type VirtualListProps = ExtractPublicPropTypes<typeof virtualListProps>; declare const _default: import("vue").DefineComponent<{ readonly scrollbarProps: PropType<ScrollbarProps>; readonly items: { readonly type: PropType<VirtualListItemData[]>; readonly default: () => never[]; }; readonly itemSize: { readonly type: NumberConstructor; readonly required: true; }; readonly itemResizable: BooleanConstructor; readonly itemsStyle: PropType<string | CSSProperties>; readonly visibleItemsTag: { readonly type: PropType<string | object>; readonly default: "div"; }; readonly visibleItemsProps: ObjectConstructor; readonly ignoreItemResize: BooleanConstructor; readonly onScroll: PropType<(event: Event) => void>; readonly onWheel: PropType<(event: WheelEvent) => void>; readonly onResize: PropType<(entry: ResizeObserverEntry) => void>; readonly defaultScrollKey: PropType<number | string>; readonly defaultScrollIndex: NumberConstructor; readonly keyField: { readonly type: StringConstructor; readonly default: "key"; }; readonly paddingTop: { readonly type: PropType<number | string>; readonly default: 0; }; readonly paddingBottom: { readonly type: PropType<number | string>; readonly default: 0; }; }, { scrollTo: (options: VirtualListScrollToOptions | number, y?: number) => void; scrollbarInstRef: import("vue").Ref<{ $el: HTMLElement; containerRef: HTMLElement | null; contentRef: HTMLElement | null; containerScrollTop: number; syncUnifiedContainer: () => void; scrollTo: import("../../_internal/scrollbar/src/Scrollbar").ScrollTo; scrollBy: import("../../_internal/scrollbar/src/Scrollbar").ScrollBy; sync: () => void; handleMouseEnterWrapper: () => void; handleMouseLeaveWrapper: () => void; } | null>; virtualListInstRef: import("vue").Ref<{ listElRef: HTMLElement; itemsElRef: HTMLElement | null; scrollTo: import("vueuc").VVirtualListScrollTo; } | null>; getScrollContainer: () => HTMLElement | null | undefined; getScrollContent: () => HTMLElement | null | undefined; handleScroll: (e: Event) => void; handleResize: (e: ResizeObserverEntry) => void; handleWheel: (e: WheelEvent) => void; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ readonly scrollbarProps: PropType<ScrollbarProps>; readonly items: { readonly type: PropType<VirtualListItemData[]>; readonly default: () => never[]; }; readonly itemSize: { readonly type: NumberConstructor; readonly required: true; }; readonly itemResizable: BooleanConstructor; readonly itemsStyle: PropType<string | CSSProperties>; readonly visibleItemsTag: { readonly type: PropType<string | object>; readonly default: "div"; }; readonly visibleItemsProps: ObjectConstructor; readonly ignoreItemResize: BooleanConstructor; readonly onScroll: PropType<(event: Event) => void>; readonly onWheel: PropType<(event: WheelEvent) => void>; readonly onResize: PropType<(entry: ResizeObserverEntry) => void>; readonly defaultScrollKey: PropType<number | string>; readonly defaultScrollIndex: NumberConstructor; readonly keyField: { readonly type: StringConstructor; readonly default: "key"; }; readonly paddingTop: { readonly type: PropType<number | string>; readonly default: 0; }; readonly paddingBottom: { readonly type: PropType<number | string>; readonly default: 0; }; }>>, { readonly paddingBottom: string | number; readonly paddingTop: string | number; readonly items: VirtualListItemData[]; readonly itemResizable: boolean; readonly visibleItemsTag: string | object; readonly ignoreItemResize: boolean; readonly keyField: string; }, {}>; export default _default;