[Doc] new theme

This commit is contained in:
陈嘉涵
2019-05-15 20:53:04 +08:00
parent 3cae4288f2
commit d0f4169c86
130 changed files with 1460 additions and 1147 deletions
+8 -5
View File
@@ -1,15 +1,16 @@
## Uploader
# Uploader
### Install
``` javascript
import { Uploader } from 'vant';
Vue.use(Uploader);
```
### Usage
## Usage
#### Basic Usage
### Basic Usage
```html
<div class="uploader-container">
@@ -29,7 +30,7 @@ export default {
};
```
#### Name
### Name
```html
<van-uploader name="uploader" :after-read="onRead">
@@ -47,7 +48,7 @@ export default {
};
```
#### Set input attrs
### Set input attrs
You can set native properties such as `accpet`、`multiple` on Uploader, and the input will automatically inherits the attribute.
@@ -57,6 +58,8 @@ You can set native properties such as `accpet`、`multiple` on Uploader, and the
</van-uploader>
```
## API
### Props
| Attribute | Description | Type | Default |