t-fighting-design
Version:
Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.
133 lines (132 loc) • 4.27 kB
TypeScript
import type { ProgressType, ProgressTIsShowPercentageInterface } from './src/interface.d';
import type { DefineComponent, PropType, Ref, ComputedRef, CSSProperties, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
import type { InstallType, UtilsSizeChangeInterface } from '../_interface';
import Progress from "./src/progress";
export declare const FProgress: InstallType<DefineComponent<{
readonly percentage: {
readonly type: NumberConstructor;
readonly default: () => number;
readonly validator: (val: number) => boolean;
};
readonly type: {
readonly type: PropType<ProgressType>;
readonly default: () => ProgressType;
readonly validator: (val: ProgressType) => boolean;
};
readonly square: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly linear: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly showText: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly textColor: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly color: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly background: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly width: {
readonly type: PropType<string | number>;
readonly default: () => string;
};
readonly height: {
readonly type: PropType<string | number>;
readonly default: () => string;
};
readonly stripe: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly textInside: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
}, {
prop: {
readonly percentage?: unknown;
readonly type?: unknown;
readonly square?: unknown;
readonly linear?: unknown;
readonly showText?: unknown;
readonly textColor?: unknown;
readonly color?: unknown;
readonly background?: unknown;
readonly width?: unknown;
readonly height?: unknown;
readonly stripe?: unknown;
readonly textInside?: unknown;
} & {
type: ProgressType;
background: string;
color: string;
width: string | number;
textColor: string;
height: string | number;
percentage: number;
square: boolean;
linear: boolean;
showText: boolean;
stripe: boolean;
textInside: boolean;
} & {};
isShow: Ref<boolean>;
fillRef: Ref<HTMLDivElement>;
progressStyle: ComputedRef<CSSProperties>;
progressFillStyle: ComputedRef<CSSProperties>;
isShowPercentage: ProgressTIsShowPercentageInterface;
sizeChange: UtilsSizeChangeInterface;
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
readonly percentage?: unknown;
readonly type?: unknown;
readonly square?: unknown;
readonly linear?: unknown;
readonly showText?: unknown;
readonly textColor?: unknown;
readonly color?: unknown;
readonly background?: unknown;
readonly width?: unknown;
readonly height?: unknown;
readonly stripe?: unknown;
readonly textInside?: unknown;
} & {
type: ProgressType;
background: string;
color: string;
width: string | number;
textColor: string;
height: string | number;
percentage: number;
square: boolean;
linear: boolean;
showText: boolean;
stripe: boolean;
textInside: boolean;
} & {}>, {
type: ProgressType;
background: string;
color: string;
width: string | number;
textColor: string;
height: string | number;
percentage: number;
square: boolean;
linear: boolean;
showText: boolean;
stripe: boolean;
textInside: boolean;
}>>;
export declare type ProgressInstance = InstanceType<typeof Progress>;
export * from './src/interface.d';
export default Progress;