vue-launchers
Version:
25 lines (24 loc) • 838 B
TypeScript
import { PickCreateComponentType } from '../../packages/index.d';
type AttrType = PickCreateComponentType<'attr'>;
type StatusType = PickCreateComponentType<'status'>;
type PreviewConfig = PickCreateComponentType<'preview'>;
export declare const getComponentAttrStyle: (attr: AttrType, index: number) => {
zIndex: number;
left: string;
top: string;
};
export declare const getSizeStyle: (attr: AttrType, scale?: number) => {
width: string;
height: string;
};
export declare const getStatusStyle: (attr: StatusType) => {
display: string;
};
export declare const getPreviewConfigStyle: (previewConfig: PreviewConfig) => Partial<CSSStyleDeclaration>;
export declare const getEditCanvasConfigStyle: (canvas: any) => {
background: any;
position: "relative";
width: string;
height: string;
};
export {};