tipwrap-qm

0.0.2 • Public • Published

cnpm install upload-img-qm --save-dev

My github @qmpans

if you want to use,do it;

uploadUrl [MUST] --上传图片的地址,必须要有

editImgs [NOT MUST] --是否为编辑图片,如果不传则为上传图片,传值则为编辑图片 ---编辑图片的格式为 array|[] 数组形式传入

action [MUST] --选择图片后改变redux的stroe的action方法,详见redux-act插件的使用方法

maxnum [NOT MUST] --最多可以上传多少张图片,不填默认为5张图片

const editimg=['http://google.com.hk/2.jpg','http://google.com.hk/2.jpg']

uploadimg is a function to dispath one action to change redux stroe,then you can get changedata from redux

<UploadImg action={this.props.actions.uploadimg} uploadUrl="http://192.168.5.2:9002/noa/image/resource/upload" editImgs={editimg} maxnum={5}/>

LICENSE

MIT

Readme

Keywords

Package Sidebar

Install

npm i tipwrap-qm

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • qmpans