@vuecs/link
Version:
A package containing a link component.
103 lines • 2.7 kB
TypeScript
import type { DefineComponent, ExtractPublicPropTypes, PropType } from 'vue';
import type { LinkQuery } from './types';
declare const linkProps: {
active: {
type: BooleanConstructor;
default: boolean;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
href: {
type: StringConstructor;
default: undefined;
};
prefetch: {
type: BooleanConstructor;
default: boolean;
};
target: {
type: StringConstructor;
default: string;
};
to: {
type: PropType<string | Record<string, any>>;
default: undefined;
};
query: {
type: PropType<LinkQuery>;
};
};
export type LinkProps = ExtractPublicPropTypes<typeof linkProps>;
export declare const VCLink: DefineComponent<import("vue").ExtractPropTypes<{
active: {
type: BooleanConstructor;
default: boolean;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
href: {
type: StringConstructor;
default: undefined;
};
prefetch: {
type: BooleanConstructor;
default: boolean;
};
target: {
type: StringConstructor;
default: string;
};
to: {
type: PropType<string | Record<string, any>>;
default: undefined;
};
query: {
type: PropType<LinkQuery>;
};
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "clicked")[], "click" | "clicked", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
active: {
type: BooleanConstructor;
default: boolean;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
href: {
type: StringConstructor;
default: undefined;
};
prefetch: {
type: BooleanConstructor;
default: boolean;
};
target: {
type: StringConstructor;
default: string;
};
to: {
type: PropType<string | Record<string, any>>;
default: undefined;
};
query: {
type: PropType<LinkQuery>;
};
}>> & Readonly<{
onClick?: ((...args: any[]) => any) | undefined;
onClicked?: ((...args: any[]) => any) | undefined;
}>, {
active: boolean;
disabled: boolean;
href: string;
prefetch: boolean;
target: string;
to: string | Record<string, any>;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export {};
//# sourceMappingURL=component.d.ts.map