Skip to content

Commit 5f91540

Browse files
committed
fix(t-step-item): 修复content插槽显示 (#3516)
1 parent e2de9d3 commit 5f91540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/step-item/step-item.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<slot wx:if="{{layout === 'vertical'}}" name="title-right" />
3636
</view>
3737
<view class="{{_.cls(classPrefix + '__description', [layout])}} {{prefix}}-class-description">
38-
{{ content }}
38+
<block wx:if="{{content}}">{{ content }}></block>
3939
<slot name="content" />
4040
</view>
4141
<view class="{{_.cls(classPrefix + '__extra', [layout])}} {{prefix}}-class-extra">

0 commit comments

Comments
 (0)