fix(GoodsAction): add block for slot (#5496)

This commit is contained in:
johnsonwong666 2023-07-24 10:00:02 +08:00 committed by GitHub
parent 9ead748d91
commit 78c518bae8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,8 @@
custom-class="icon-class"
info-class="info-class"
/>
<slot wx:else name="icon" />
<view wx:else>
<slot name="icon" />
</view>
<text class="text-class">{{ text }}</text>
</van-button>