mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[bugfix] ActionSheet:修复actions动态变化时,渲染后button被打散的问题 (#1070)
This commit is contained in:
parent
721cd6d6ad
commit
7a84f7b1bc
@ -16,6 +16,8 @@
|
||||
bind:click="onClose"
|
||||
/>
|
||||
</view>
|
||||
<view wx:if="{{ actions && actions.length }}">
|
||||
<!-- button外包一层view,防止actions动态变化,导致渲染时button被打散 -->
|
||||
<button
|
||||
wx:for="{{ actions }}"
|
||||
wx:key="index"
|
||||
@ -30,6 +32,7 @@
|
||||
</block>
|
||||
<van-loading wx:else size="20px" />
|
||||
</button>
|
||||
</view>
|
||||
<view
|
||||
wx:if="{{ cancelText }}"
|
||||
class="van-action-sheet__cancel"
|
||||
|
Loading…
x
Reference in New Issue
Block a user