[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
+10 -5
View File
@@ -1,15 +1,17 @@
## Progress
# Progress
### Install
``` javascript
import { Progress } from 'vant';
Vue.use(Progress);
```
### Usage
## Usage
### Basic Usage
#### Basic Usage
Use 'percentage' prop to set current progress
```html
@@ -17,14 +19,15 @@ Use 'percentage' prop to set current progress
```
#### Inactive
### Inactive
```html
<van-progress inactive :percentage="50" />
```
#### Custom Style
### Custom Style
Use `pivot-text` to custom textuse `color` to custom bar color
```html
@@ -48,6 +51,8 @@ Use `pivot-text` to custom textuse `color` to custom bar color
/>
```
## API
### Props
| Attribute | Description | Type | Default |
+9 -8
View File
@@ -1,15 +1,16 @@
## Progress 进度条
# Progress 进度条
### 引入
### 使用指南
``` javascript
import { Progress } from 'vant';
Vue.use(Progress);
```
### 代码演示
## 代码演示
#### 基础用法
### 基础用法
进度条默认为蓝色,使用`percentage`属性来设置当前进度
@@ -17,15 +18,13 @@ Vue.use(Progress);
<van-progress :percentage="50" />
```
#### 置灰
### 置灰
```html
<van-progress inactive :percentage="50" />
```
#### 样式定制
### 样式定制
可以使用`pivot-text`属性自定义文字,`color`属性自定义进度条颜色
@@ -50,6 +49,8 @@ Vue.use(Progress);
/>
```
## API
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |