UNPKG

@wfrog/vc

Version:

`自用` 的基于 `element-plus` 二次封装的 `vue3` 组件库。追求在业务场景中,尽可能使用更少的代码量来实现需求。 因此在组件封装上,以 `方便` 为主,打包仅 `esm` 模式。

57 lines (56 loc) 1.45 kB
import type { PropType } from 'vue'; import type { ButtonProps } from 'element-plus/es/components/button/src/button'; import type ICropper from 'cropperjs'; export interface IImageOptions { width: string; height: string; src: string; fit: IGlobal.ImageFit; icon: string; iconSize: number; } export declare const imageOptions: IImageOptions; export interface IButtonOptions { icon: string; type: ButtonProps['type']; size: string; text: string; } export declare const buttonOptions: IButtonOptions; declare const _default: { accept: { type: StringConstructor; default: string; }; type: { type: PropType<"button" | "image">; default: string; }; imageOptions: { type: PropType<Partial<IImageOptions>>; default: () => IImageOptions; }; buttonOptions: { type: PropType<Partial<IButtonOptions>>; default: () => IButtonOptions; }; maxSize: { type: NumberConstructor; default: number; }; httpRequest: { type: PropType<(file: File, done: () => void, localUrl: string) => void>; }; beforeUpload: { type: PropType<(file: File) => boolean>; }; cropper: { type: BooleanConstructor; default: boolean; }; cropperOption: { type: PropType<ICropper.Options<EventTarget>>; default: () => void; }; }; export default _default;