Skip to content

Commit

Permalink
feat(Steps): desc properties add custom style (#2630)
Browse files Browse the repository at this point in the history
* feat(Steps): steps add custom style

* feat(Steps): steps add custom style
  • Loading branch information
Lindysen authored and rex-zsd committed Jan 3, 2020
1 parent 773d733 commit 478dbd1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/steps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,4 @@ Page({
| 类名 | 说明 |
|-----------|-----------|
| custom-class | 根节点样式类 |
| desc-class | 描述信息样式类 |
2 changes: 2 additions & 0 deletions packages/steps/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { VantComponent } from '../common/component';
import { GREEN, GRAY_DARK } from '../common/color';

VantComponent({
classes: ['desc-class'],

props: {
icon: String,
steps: Array,
Expand Down
2 changes: 1 addition & 1 deletion packages/steps/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
>
<view class="van-step__title" style="{{ index === active ? 'color: ' + activeColor : '' }}">
<view>{{ item.text }}</view>
<view>{{ item.desc }}</view>
<view class="desc-class">{{ item.desc }}</view>
</view>
<view class="van-step__circle-container">
<block wx:if="{{ index !== active }}">
Expand Down

0 comments on commit 478dbd1

Please sign in to comment.