t-fighting-design
Version:
Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.
84 lines (83 loc) • 2.6 kB
TypeScript
import type { BadgeType } from './src/interface.d';
import type { DefineComponent, PropType, ComputedRef, CSSProperties, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
import type { InstallType, ClassListInterface } from '../_interface';
import Badge from "./src/badge";
export declare const FBadge: InstallType<DefineComponent<{
readonly value: {
readonly type: PropType<string | number>;
readonly default: () => string;
};
readonly max: {
readonly type: NumberConstructor;
readonly default: () => number;
};
readonly dot: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly show: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly type: {
readonly type: PropType<BadgeType>;
readonly default: () => BadgeType;
readonly validator: (val: BadgeType) => boolean;
};
readonly color: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly textColor: {
readonly type: StringConstructor;
readonly default: () => string;
};
}, {
prop: {
readonly value?: unknown;
readonly max?: unknown;
readonly dot?: unknown;
readonly show?: unknown;
readonly type?: unknown;
readonly color?: unknown;
readonly textColor?: unknown;
} & {
type: BadgeType;
color: string;
value: string | number;
max: number;
dot: boolean;
show: boolean;
textColor: string;
} & {};
classList: ComputedRef<ClassListInterface>;
content: ComputedRef<string>;
styleList: ComputedRef<CSSProperties>;
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
readonly value?: unknown;
readonly max?: unknown;
readonly dot?: unknown;
readonly show?: unknown;
readonly type?: unknown;
readonly color?: unknown;
readonly textColor?: unknown;
} & {
type: BadgeType;
color: string;
value: string | number;
max: number;
dot: boolean;
show: boolean;
textColor: string;
} & {}>, {
type: BadgeType;
color: string;
value: string | number;
max: number;
dot: boolean;
show: boolean;
textColor: string;
}>>;
export declare type BadgeInstance = InstanceType<typeof Badge>;
export * from './src/interface.d';
export default Badge;