t-fighting-design
Version:
Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.
62 lines (61 loc) • 2.22 kB
TypeScript
import type { RendererNode, RendererElement, ComputedOptions, MethodOptions, PropType, ExtractPropTypes, VNode, Component } from 'vue';
import type { LinkType, LinkTargetType, LinkHoverType } from './interface';
import type { HandleEventInterface } from '../../_interface';
export declare const Props: {
readonly type: {
readonly type: PropType<LinkType>;
readonly default: () => LinkType;
readonly validator: (val: LinkType) => boolean;
};
readonly href: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly size: {
readonly type: PropType<string | number>;
readonly default: () => string;
};
readonly state: {
readonly type: PropType<LinkHoverType>;
readonly default: () => LinkHoverType;
readonly validator: (val: LinkHoverType) => boolean;
};
readonly prohibit: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly target: {
readonly type: PropType<LinkTargetType>;
readonly default: () => LinkTargetType;
readonly validator: (val: LinkTargetType) => boolean;
};
readonly color: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly noCopy: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly noLink: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly beforeIcon: {
readonly type: PropType<VNode<RendererNode, RendererElement, {
[key: string]: any;
}> | Component<any, any, any, ComputedOptions, MethodOptions>>;
readonly default: () => null;
};
readonly afterIcon: {
readonly type: PropType<VNode<RendererNode, RendererElement, {
[key: string]: any;
}> | Component<any, any, any, ComputedOptions, MethodOptions>>;
readonly default: () => null;
};
readonly click: {
readonly type: PropType<HandleEventInterface>;
readonly default: () => null;
};
};
export declare type LinkPropsType = ExtractPropTypes<typeof Props>;