[Doc] new theme
This commit is contained in:
@@ -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 text,use `color` to custom bar color
|
||||
|
||||
```html
|
||||
@@ -48,6 +51,8 @@ Use `pivot-text` to custom text,use `color` to custom bar color
|
||||
/>
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### Props
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|
||||
@@ -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
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|
||||
Reference in New Issue
Block a user