UNPKG

naive-ui

Version:

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

93 lines (92 loc) 3.05 kB
import { type PropType } from 'vue'; import type { OffsetTarget } from './utils'; export interface BaseAnchorInst { setActiveHref: (href: string) => void; } export declare const baseAnchorProps: { readonly type: { readonly type: PropType<"block" | "rail">; readonly default: "rail"; }; readonly showRail: { readonly type: BooleanConstructor; readonly default: true; }; readonly showBackground: { readonly type: BooleanConstructor; readonly default: true; }; readonly bound: { readonly type: NumberConstructor; readonly default: 12; }; readonly internalScrollable: BooleanConstructor; readonly ignoreGap: BooleanConstructor; readonly offsetTarget: PropType<string | OffsetTarget | (() => HTMLElement)>; }; export declare const baseAnchorPropKeys: ("type" | "bound" | "showRail" | "showBackground" | "internalScrollable" | "ignoreGap" | "offsetTarget")[]; declare const _default: import("vue").DefineComponent<{ mergedClsPrefix: { type: StringConstructor; required: true; }; type: { readonly type: PropType<"block" | "rail">; readonly default: "rail"; }; showRail: { readonly type: BooleanConstructor; readonly default: true; }; showBackground: { readonly type: BooleanConstructor; readonly default: true; }; bound: { readonly type: NumberConstructor; readonly default: 12; }; internalScrollable: BooleanConstructor; ignoreGap: BooleanConstructor; offsetTarget: PropType<string | OffsetTarget | (() => HTMLElement)>; }, { selfRef: import("vue").Ref<HTMLElement | null>; barRef: import("vue").Ref<HTMLElement | null>; slotRef: import("vue").Ref<HTMLElement | null>; setActiveHref: (href: string, transition?: boolean) => void; activeHref: import("vue").Ref<string | null>; isBlockType: import("vue").ComputedRef<boolean>; mergedShowRail: import("vue").ComputedRef<boolean>; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ mergedClsPrefix: { type: StringConstructor; required: true; }; type: { readonly type: PropType<"block" | "rail">; readonly default: "rail"; }; showRail: { readonly type: BooleanConstructor; readonly default: true; }; showBackground: { readonly type: BooleanConstructor; readonly default: true; }; bound: { readonly type: NumberConstructor; readonly default: 12; }; internalScrollable: BooleanConstructor; ignoreGap: BooleanConstructor; offsetTarget: PropType<string | OffsetTarget | (() => HTMLElement)>; }>>, { type: "block" | "rail"; bound: number; showRail: boolean; showBackground: boolean; internalScrollable: boolean; ignoreGap: boolean; }, {}>; export default _default;