t-fighting-design
Version:
Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.
70 lines (69 loc) • 2.35 kB
TypeScript
import type { RendererNode, RendererElement, ComputedOptions, MethodOptions, PropType, ExtractPropTypes, VNode, Component } from 'vue';
import type { AvatarFitType, AvatarSizeType, AvatarCallBackInterface } from './interface';
export declare const Props: {
readonly src: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly errSrc: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly icon: {
readonly type: PropType<VNode<RendererNode, RendererElement, {
[key: string]: any;
}> | Component<any, any, any, ComputedOptions, MethodOptions>>;
readonly default: () => null;
};
readonly alt: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly round: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly lazy: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly fit: {
readonly type: PropType<AvatarFitType>;
readonly default: () => AvatarFitType;
readonly validator: (val: AvatarFitType) => boolean;
};
readonly size: {
readonly type: PropType<number | AvatarSizeType>;
readonly default: () => AvatarSizeType;
readonly validator: (val: AvatarSizeType | number) => boolean;
};
readonly background: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly fontSize: {
readonly type: PropType<string | number>;
readonly default: () => string;
};
readonly fontColor: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly text: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly rootMargin: {
readonly type: PropType<string | number>;
readonly default: () => string;
};
readonly load: {
readonly type: PropType<AvatarCallBackInterface>;
readonly default: () => null;
};
readonly error: {
readonly type: PropType<AvatarCallBackInterface>;
readonly default: () => null;
};
};
export declare type AvatarPropsType = ExtractPropTypes<typeof Props>;