vant-weapp/dist/dialog/index.wxml
2018-05-21 22:02:47 +08:00

37 lines
1.0 KiB
Plaintext

<pop-manager
show="{{ show }}"
type="center"
>
<view class="zan-dialog--container">
<view
wx:if="{{ title }}"
class="zan-dialog__header"
>{{ title }}</view>
<view
class="zan-dialog__content {{ title ? 'zan-dialog__content--title' : '' }}"
>
<text>{{ message }}</text>
</view>
<view
class="zan-dialog__footer {{ buttonsShowVertical ? 'zan-dialog__footer--vertical' : 'zan-dialog__footer--horizon' }}"
>
<block
wx:for="{{ buttons }}"
wx:key="{{ item.text }}-{{ item.type }}"
>
<zan-button
class="zan-dialog__button"
custom-class="{{ index === 0 ? 'zan-dialog__button-inside--first' : 'zan-dialog__button-inside' }}"
data-type="{{ item.type }}"
open-type="{{ item.openType }}"
bind:btnclick="handleButtonClick"
>
<view
style="color: {{ item.color || '#333' }}"
>{{ item.text }}</view>
</zan-button>
</block>
</view>
</view>
</pop-manager>