mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-05-22 06:31:46 +08:00
feat(Steps): desc properties add custom style (#2630)
* feat(Steps): steps add custom style * feat(Steps): steps add custom style
This commit is contained in:
parent
773d733283
commit
478dbd1c18
@ -88,3 +88,4 @@ Page({
|
||||
| 类名 | 说明 |
|
||||
|-----------|-----------|
|
||||
| custom-class | 根节点样式类 |
|
||||
| desc-class | 描述信息样式类 |
|
||||
|
@ -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,
|
||||
|
@ -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 }}">
|
||||
|
Loading…
x
Reference in New Issue
Block a user