UNPKG

@wfrog/vc

Version:

vue3 组件库 vc

40 lines (39 loc) 1.2 kB
import { default as ICropper } from 'cropperjs'; import { ButtonProps } from 'element-plus/es/components/button/src/button'; import { IElIconProps } from '../el-icon/el-icon'; export interface IImageOptions { width: string; height: string; src: string; fit: IGlobal.ImageFit; icon: IElIconProps['name']; iconSize: number; } export declare const imageOptions: IImageOptions; export interface IButtonOptions { icon: IElIconProps['name']; type: ButtonProps['type']; size: string; text: string; } export declare const buttonOptions: IButtonOptions; export interface IUploadFileProps { accept?: string; type?: 'image' | 'button'; imageOptions?: Partial<IImageOptions>; buttonOptions?: Partial<IButtonOptions>; maxSize?: number; httpRequest: (file: File, done: () => void, localUrl: string) => void; beforeUpload?: (file: File) => boolean; cropper?: boolean; cropperOption?: ICropper.Options; } export declare const defaultProps: { accept: string; type: string; imageOptions: () => IImageOptions; buttonOptions: () => IButtonOptions; maxSize: number; cropper: boolean; cropperOption: () => {}; };