/** * 多图片上传 */ import { FileListItem, UploadProps } from '@wakeadmin/element-adapter'; import { DefineAtomicProps } from '../../atomic'; import { CommonUploadProps } from '../files/useUpload'; /** * 值由用户自定定义,默认为 string 类型 */ export type AImagesValue = any[]; export type ImageObjectFit = 'fill' | 'contain' | 'cover' | 'scale-down' | 'none'; export type AImagesProps = DefineAtomicProps & CommonUploadProps, { /** * 图片尺寸, 默认 86px * TODO: 支持指定宽高 */ size?: number | string; /** * 图片如何适应容器框 * * 默认为 `cover` */ fit?: ImageObjectFit; /** * 自定义渲染 */ renderPreview?: (list: FileListItem[]) => any; /** * 默认图片 */ defaultImage?: string; tip?: any; /** * 是否隐藏默认文案提示 */ hideTip?: boolean; /** * 未定义时的占位符 */ undefinedPlaceholder?: any; }>; declare global { interface AtomicProps { images: AImagesProps; } } export declare const AImagesComponent: import("../../atomic").AtomicComponent; export declare const AImages: import("../../atomic").Atomic; //# sourceMappingURL=index.d.ts.map