@aplus-frontend/ui
Version:
53 lines (52 loc) • 1.88 kB
TypeScript
import { ApImageProps } from './interface';
import { ImgInfo } from '@aplus-frontend/antdv/es/vc-image/src/Preview';
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
toolbarRender?(_: {
originalNodes: import("vue/jsx-runtime").JSX.Element[];
actions: {
onFlipX: () => void;
onFlipY: () => void;
onRotateLeft: () => void;
onRotateRight: () => void;
onZoomIn: () => void;
onZoomOut: () => void;
};
transform: {
x: number;
y: number;
scale: number;
rotate: number;
flip: {
x: number;
y: number;
};
};
image: ImgInfo;
current?: number;
total?: number;
}): any;
};
refs: {};
rootEl: any;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: DefineComponent<ApImageProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApImageProps> & Readonly<{}>, {
preview: boolean | {
visible?: boolean;
onVisibleChange?: (visible: boolean, prevVisible: boolean) => void;
getContainer: string | HTMLElement | (() => HTMLElement);
src?: string;
maskClassName?: string;
current?: number;
};
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};