[new feature] Uploader: support multiple files (#480)

This commit is contained in:
neverland
2017-12-25 16:06:27 +08:00
committed by GitHub
parent 30f22b28ed
commit 4b0f4ac426
5 changed files with 84 additions and 66 deletions

View File

@@ -30,10 +30,10 @@ export default {
```
#### Set input attr
You can set native properties such as `accpet` on Uploader, and the input will automatically inherits the attribute.
You can set native properties such as `accpet`、`multiple` on Uploader, and the input will automatically inherits the attribute.
```html
<van-uploader :afterRead="logContent" accept="image/gif, image/jpeg">
<van-uploader :afterRead="logContent" accept="image/gif, image/jpeg" multiple>
<van-icon name="photograph" />
</van-uploader>
```

View File

@@ -28,10 +28,10 @@ export default {
```
#### 设置 Input 属性
可以直接在 Uploader 上设置 accpet 等原生属性input 会自动继承该属性
可以直接在 Uploader 上设置 accpet、multiple 等原生属性input 会自动继承该属性
```html
<van-uploader :afterRead="logContent" accept="image/gif, image/jpeg">
<van-uploader :afterRead="logContent" accept="image/gif, image/jpeg" multiple>
<van-icon name="photograph" />
</van-uploader>
```