modal.wxml
850 Bytes
<!-- components/show-modal/index.wxml -->
<view wx:if="{{ _show }}" class="popV" catchtouchmove="move">
<view class="popV-mask" bindtap="selectMask" animation="{{ maskAnimate }}" />
<!-- 动态修改top -->
<view class="popV-content" animation="{{ frameAnimate }}">
<view class="tap_title" wx:if="{{ tabTitleShow }}">{{tapTitle}}</view>
<view class="popV-title" wx:if="{{ title }}">{{title}}</view>
<slot wx:if="{{ custom }}" />
<view wx:if="{{ btns&&btns.length }}" class="popV-content-btm {{ btnBorder?'border':'' }}">
<!-- style="color:{{btnTextColor[index]?btnTextColor[index]:''}};" -->
<!-- <block > -->
<view
wx:for="{{ btns }}"
wx:key="index"
data-index="{{ index }}"
class="popV-item"
hover-class="popV-hover"
bindtap="selectBtn"
>{{item}}</view>
<!-- </block> -->
</view>
</view>
</view>