0.0.8 • Published 2 years ago

nbugs-image-upload-oss v0.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

该组件基于 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}
        />
    );
}
参数描述是否必填
platformmobile/pc 默认 mobile
imageList图片初始值 { url: '' }
handleChange图片修改后的回调返回图片数组 { url: '' }
imageProps用来覆盖 antd-mobile ImagePicker 的配置