mirror of
https://github.com/youzan/vant.git
synced 2025-12-18 02:06:02 +08:00
[new feature] Uploader: support multiple files (#480)
This commit is contained in:
@@ -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>
|
||||
```
|
||||
|
||||
@@ -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>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user