@minto-ai/mt-ui
Version:
UI组件库
93 lines (92 loc) • 3.1 kB
TypeScript
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: Readonly<{
error: any;
}> & {
error: any;
};
refs: {
imageRef: HTMLDivElement;
};
rootEl: HTMLDivElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
readonly src: {
readonly type: StringConstructor;
readonly default: "";
};
readonly width: {
readonly type: import('vue').PropType<number | string>;
readonly validator: (value: number | string) => boolean;
readonly default: "100%";
};
readonly height: {
readonly type: import('vue').PropType<number | string>;
readonly validator: (value: number | string) => boolean;
readonly default: "100%";
};
readonly fit: {
readonly type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
readonly validator: (value: string) => boolean;
readonly default: "cover";
};
readonly draggable: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly lazy: {
readonly type: BooleanConstructor;
readonly default: false;
};
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
load: () => any;
error: () => any;
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
readonly src: {
readonly type: StringConstructor;
readonly default: "";
};
readonly width: {
readonly type: import('vue').PropType<number | string>;
readonly validator: (value: number | string) => boolean;
readonly default: "100%";
};
readonly height: {
readonly type: import('vue').PropType<number | string>;
readonly validator: (value: number | string) => boolean;
readonly default: "100%";
};
readonly fit: {
readonly type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
readonly validator: (value: string) => boolean;
readonly default: "cover";
};
readonly draggable: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly lazy: {
readonly type: BooleanConstructor;
readonly default: false;
};
}>> & Readonly<{
onLoad?: (() => any) | undefined;
onError?: (() => any) | undefined;
}>, {
readonly src: string;
readonly width: string | number;
readonly height: string | number;
readonly fit: "none" | "fill" | "contain" | "cover" | "scale-down";
readonly draggable: boolean;
readonly lazy: boolean;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
imageRef: HTMLDivElement;
}, HTMLDivElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};