yu-img-upload
Advanced tools
Comparing version 1.0.24 to 1.0.25
{ | ||
"name": "yu-img-upload", | ||
"version": "1.0.24", | ||
"version": "1.0.25", | ||
"description": "a simple images upload plugin with preview", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,17 +0,15 @@ | ||
## Introduce | ||
## Introduce | ||
this script is just for image upload,it support pc ios and android. in pc & ios you can clear what you picked and repick the pictures;in android you should pick and delete the picture only one by one. | ||
## Quick to start | ||
Using npm: | ||
```shell | ||
$ npm install --save yu-img-upload | ||
$ import YuImgUpload from 'yu-img-upload' | ||
``` | ||
install: | ||
`npm install --save yu-img-upload ` | ||
import: | ||
`import YuImgUpload from 'yu-img-upload' ` | ||
## Example | ||
>You can use `npm run dev` to check the example file in node package | ||
new imgUpload({ | ||
You can use `npm run dev` to check the example file in node package | ||
```js | ||
new imgUpload({ | ||
popup:true, | ||
@@ -26,7 +24,8 @@ multiple:true, | ||
}); | ||
``` | ||
## JSDoc | ||
```jsdoc | ||
* @param {object[]} option | ||
* @param {boolean} [option[].popup = true] - should it use yu-popup or alert | ||
* @param {boolean} [option[].popup = true] - should it use yu-popup or alert | ||
* @param {boolean} [option[].multiple = true] - should it accept multiple files | ||
@@ -39,8 +38,6 @@ * @param {string} [option[].name = file] - the name of input | ||
* @param {string} [option[].hint = icon] - how button shows | ||
``` | ||
## Links | ||
##### github | ||
see https://github.com/watanabeyu0709/yu-img-upload | ||
##### npm | ||
see https://www.npmjs.com/package/yu-img-upload | ||
[![github](http://p0kpwl4c8.bkt.clouddn.com/icon/github_c.png!icon_sm "https://github.com/watanabeyu0709/yu-img-upload")](https://github.com/watanabeyu0709/yu-img-upload) | ||
[![npm](http://p0kpwl4c8.bkt.clouddn.com/icon/npm_c.png!icon_sm "https://www.npmjs.com/package/yu-img-upload")](https://www.npmjs.com/package/yu-img-upload) |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
7
32267
12
488
42
1