UNPKG

@varlet/ui

Version:

A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.

36 lines (27 loc) 973 B
import { VNode } from 'vue' import { BasicAttributes, ListenerProp, SetPropsDefaults, VarComponent } from './varComponent' export declare const indexBarProps: Record<keyof IndexBarProps, any> export interface IndexBarScrollToOptions { event?: boolean } export interface IndexBarProps extends BasicAttributes { sticky?: boolean stickyOffsetTop?: number | string hideList?: boolean stickyCssMode?: boolean zIndex?: number | string highlightColor?: string duration?: number | string onClick?: ListenerProp<(value: string | number) => void> onChange?: ListenerProp<(value: string | number) => void> } export class IndexBar extends VarComponent { static setPropsDefaults: SetPropsDefaults<IndexBarProps> $props: IndexBarProps $slots: { default(): VNode[] 'anchor-name'(anchorName: string): VNode[] } scrollTo: (index: number | string, options?: IndexBarScrollToOptions) => void } export class _IndexBarComponent extends IndexBar {}