[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 |
+9 -6
View File
@@ -1,15 +1,16 @@
## Uploader 图片上传
# Uploader 图片上传
### 引入
### 使用指南
``` javascript
import { Uploader } from 'vant';
Vue.use(Uploader);
```
### 代码演示
## 代码演示
#### 基础用法
### 基础用法
```html
<van-uploader :after-read="onRead">
@@ -27,7 +28,7 @@ export default {
};
```
#### 标识名称
### 标识名称
```html
<van-uploader name="uploader" :after-read="onRead">
@@ -45,7 +46,7 @@ export default {
};
```
#### 设置 Input 属性
### 设置 Input 属性
可以直接在 Uploader 上设置 accpet、multiple 等原生属性,input 会自动继承该属性
@@ -55,6 +56,8 @@ export default {
</van-uploader>
```
## API
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |