tdesign-vue
Version:
53 lines (52 loc) • 1.82 kB
TypeScript
import Vue from 'vue';
import { ScopedSlotReturnValue } from 'vue/types/vnode';
import { ANCHOR_CONTAINER } from './utils';
export interface Anchor extends Vue {
scrollContainer: ANCHOR_CONTAINER;
handleScrollLock: boolean;
}
declare const _default: import("vue/types/vue").ExtendedVue<{
classPrefix: string;
componentName: string;
commonSizeClassName: Record<string, string>;
commonStatusClassName: Record<string, string>;
} & Record<never, any> & import("../config-provider/config-receiver").ConfigComponent & Vue & Anchor, {
links: string[];
active: string;
activeLineStyle: boolean | {
top: string;
height: string;
opacity: number;
};
}, {
getScrollContainer(): void;
getAnchorTarget(link: string): HTMLElement;
registerLink(link: string): void;
unregisterLink(link: string): void;
setCurrentActiveLink(link: string): Promise<void>;
updateActiveLine(): void;
emitChange(currentLink: string, prevLink: string): void;
handleLinkClick(link: {
href: string;
title: string;
e: MouseEvent;
}): void;
handleScrollTo(link: string): Promise<void>;
handleScroll(): void;
renderCursor(): string | true | import("vue").VNode | import("vue/types/vnode").ScopedSlotReturnArray;
}, unknown, {
affixProps: import("../affix").TdAffixProps;
bounds: number;
container: import("..").ScrollContainer;
cursor: (h: import("vue").CreateElement) => ScopedSlotReturnValue;
getCurrentAnchor: (activeLink: string) => string;
size: "small" | "medium" | "large";
targetOffset: number;
onChange: (currentLink: string, prevLink: string) => void;
onClick: (link: {
href: string;
title: string;
e: MouseEvent;
}) => void;
}>;
export default _default;