Merge branch 'dev' into next
This commit is contained in:
@@ -14,7 +14,7 @@ app.use(Progress);
|
||||
|
||||
### Basic Usage
|
||||
|
||||
Use 'percentage' prop to set current progress
|
||||
Use `percentage` prop to set current progress.
|
||||
|
||||
```html
|
||||
<van-progress :percentage="50" />
|
||||
@@ -34,7 +34,7 @@ Use 'percentage' prop to set current progress
|
||||
|
||||
### Custom Style
|
||||
|
||||
Use `pivot-text` to custom text,use `color` to custom bar color
|
||||
Use `pivot-text` to custom text,use `color` to custom bar color.
|
||||
|
||||
```html
|
||||
<van-progress pivot-text="Orange" color="#f2826a" :percentage="25" />
|
||||
|
||||
@@ -14,7 +14,7 @@ app.use(Progress);
|
||||
|
||||
### 基础用法
|
||||
|
||||
进度条默认为蓝色,使用`percentage`属性来设置当前进度
|
||||
进度条默认为蓝色,使用 `percentage` 属性来设置当前进度。
|
||||
|
||||
```html
|
||||
<van-progress :percentage="50" />
|
||||
@@ -22,7 +22,7 @@ app.use(Progress);
|
||||
|
||||
### 线条粗细
|
||||
|
||||
通过`stroke-width`可以设置进度条的粗细
|
||||
通过 `stroke-width` 可以设置进度条的粗细。
|
||||
|
||||
```html
|
||||
<van-progress :percentage="50" stroke-width="8" />
|
||||
@@ -30,7 +30,7 @@ app.use(Progress);
|
||||
|
||||
### 置灰
|
||||
|
||||
设置`inactive`属性后进度条将置灰
|
||||
设置 `inactive` 属性后进度条将置灰。
|
||||
|
||||
```html
|
||||
<van-progress inactive :percentage="50" />
|
||||
@@ -38,7 +38,7 @@ app.use(Progress);
|
||||
|
||||
### 样式定制
|
||||
|
||||
可以使用`pivot-text`属性自定义文字,`color`属性自定义进度条颜色
|
||||
可以使用 `pivot-text` 属性自定义文字,`color` 属性自定义进度条颜色。
|
||||
|
||||
```html
|
||||
<van-progress pivot-text="橙色" color="#f2826a" :percentage="25" />
|
||||
|
||||
Reference in New Issue
Block a user