20 lines
1.3 KiB
Plaintext
20 lines
1.3 KiB
Plaintext
![]() |
<van-popup bind:close="onClose" closeOnClickOverlay="{{closeOnClickOverlay}}" customClass="van-action-sheet" overlay="{{overlay}}" position="bottom" safeAreaInsetBottom="{{safeAreaInsetBottom}}" show="{{show}}" zIndex="{{zIndex}}">
|
||
|
<view class="van-hairline--bottom van-action-sheet__header" wx:if="{{title}}">
|
||
|
{{title}}
|
||
|
<van-icon bind:click="onClose" customClass="van-action-sheet__close" name="close"></van-icon>
|
||
|
</view>
|
||
|
<view wx:if="{{actions&&actions.length}}">
|
||
|
<button bind:tap="onSelect" class="{{utils.bem( 'action-sheet__item',{disabled:item.disabled||item.loading} )}} van-hairline--top {{item.className||''}}" data-index="{{index}}" hoverClass="van-action-sheet__item--hover" openType="{{item.openType}}" wx:for="{{actions}}" wx:key="index">
|
||
|
<block wx:if="{{!item.loading}}">
|
||
|
{{item.name}}
|
||
|
<text class="van-action-sheet__subname" wx:if="{{item.subname}}">{{item.subname}}</text>
|
||
|
</block>
|
||
|
<van-loading size="20px" wx:else></van-loading>
|
||
|
</button>
|
||
|
</view>
|
||
|
<slot></slot>
|
||
|
<view bind:tap="onCancel" class="van-action-sheet__cancel" hoverClass="van-action-sheet__cancel--hover" hoverStayTime="70" wx:if="{{cancelText}}">
|
||
|
{{cancelText}}
|
||
|
</view>
|
||
|
</van-popup>
|
||
|
<wxs module="utils" src="../wxs/utils.wxs" />
|