t-fighting-design
Version:
Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.
146 lines (145 loc) • 4.6 kB
TypeScript
import type { TextType, TextDecorationType } from './src/interface.d';
import type { DefineComponent, PropType, ComputedRef, CSSProperties, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
import type { InstallType, ClassListInterface } from '../_interface';
import Text from "./src/text";
export declare const FText: InstallType<DefineComponent<{
readonly type: {
readonly type: PropType<TextType>;
readonly default: () => TextType;
readonly validator: (val: TextType) => boolean;
};
readonly size: {
readonly type: PropType<string | number>;
readonly default: () => string;
};
readonly color: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly background: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly block: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly spacing: {
readonly type: PropType<string | number>;
readonly default: () => string;
};
readonly lineHeight: {
readonly type: PropType<string | number>;
readonly default: () => string;
};
readonly indent: {
readonly type: PropType<string | number>;
readonly default: () => string;
};
readonly bold: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly decoration: {
readonly type: PropType<TextDecorationType>;
readonly default: () => string;
};
readonly padding: {
readonly type: PropType<string | number>;
readonly default: () => string;
};
readonly width: {
readonly type: PropType<string | number>;
readonly default: () => string;
};
readonly ellipsis: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly center: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
}, {
prop: {
readonly type?: unknown;
readonly size?: unknown;
readonly color?: unknown;
readonly background?: unknown;
readonly block?: unknown;
readonly spacing?: unknown;
readonly lineHeight?: unknown;
readonly indent?: unknown;
readonly bold?: unknown;
readonly decoration?: unknown;
readonly padding?: unknown;
readonly width?: unknown;
readonly ellipsis?: unknown;
readonly center?: unknown;
} & {
bold: boolean;
type: TextType;
center: boolean;
background: string;
color: string;
size: string | number;
width: string | number;
padding: string | number;
block: boolean;
spacing: string | number;
lineHeight: string | number;
indent: string | number;
decoration: TextDecorationType;
ellipsis: boolean;
} & {};
classList: ComputedRef<ClassListInterface>;
styleList: ComputedRef<CSSProperties>;
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
readonly type?: unknown;
readonly size?: unknown;
readonly color?: unknown;
readonly background?: unknown;
readonly block?: unknown;
readonly spacing?: unknown;
readonly lineHeight?: unknown;
readonly indent?: unknown;
readonly bold?: unknown;
readonly decoration?: unknown;
readonly padding?: unknown;
readonly width?: unknown;
readonly ellipsis?: unknown;
readonly center?: unknown;
} & {
bold: boolean;
type: TextType;
center: boolean;
background: string;
color: string;
size: string | number;
width: string | number;
padding: string | number;
block: boolean;
spacing: string | number;
lineHeight: string | number;
indent: string | number;
decoration: TextDecorationType;
ellipsis: boolean;
} & {}>, {
bold: boolean;
type: TextType;
center: boolean;
background: string;
color: string;
size: string | number;
width: string | number;
padding: string | number;
block: boolean;
spacing: string | number;
lineHeight: string | number;
indent: string | number;
decoration: TextDecorationType;
ellipsis: boolean;
}>>;
export declare type TextInstance = InstanceType<typeof Text>;
export * from './src/interface.d';
export default Text;