UNPKG

vue-select-avatar-base

Version:

基于vue选择头像的包

27 lines (23 loc) 674 B
import { Config } from './type'; type MyPick<T, K extends keyof T> = T & Required<Pick<T, Exclude<keyof T, K>>>; export type _Config = MyPick<Config, 'backgroundColor' | 'cropperColor' | 'cropperOpaqueColor' | 'edgeLineColor'>; /** * 默认配置 */ export const defaultConfig: _Config = { width: '100%', height: '100%', viewfinderSize: 300, gridBackground: true, cropperLongPressOpaque: true, edgeLine: false, maxZoomRatio: 6, limitImageMaxSize: 0, limitImageMinSize: 0, defaultFilename: 'avatar', imageFormat: 'png', loading: true, immediateLoading: false, loadingText: '加载中...', loadingErrorText: '加载失败!', };