0.0.8 • Published 2 years ago
nbugs-image-upload-oss v0.0.8
该组件基于 antd-mobile 2.3 版本 和 阿里云 oss 服务实现
1. 安装
通过 yarn/npm 安装 nbugs-image-upload-oss
yarn add nbugs-image-upload-oss -S
npm install nbugs-image-upload-oss -S
2. 使用
import OssImageUploader from 'nbugs-image-upload-oss';
render() {
...
return (
<OssImageUploader
imageList={imageList}
handleChange={handleChange}
/>
);
}
参数 | 描述 | 是否必填 |
---|---|---|
platform | mobile/pc 默认 mobile | 否 |
imageList | 图片初始值 { url: '' } | 否 |
handleChange | 图片修改后的回调返回图片数组 { url: '' } | 否 |
imageProps | 用来覆盖 antd-mobile ImagePicker 的配置 | 否 |