Yao fbbf539662
[breaking change] Dialog Popup 重构 (#69)
* 重新更改 popup

* 更丰富的popup 功能

* 文档补充

* rebuild dialog

* dialog 文档补充

* 增加 icon 文档
2017-12-03 17:40:42 +08:00

23 lines
978 B
Plaintext

<template name="zan-dialog">
<view class="zan-dialog {{ zanDialog.show ? 'zan-dialog--show' : '' }}">
<view class="zan-dialog--mask"></view>
<view class="zan-dialog--container">
<view
wx:if="{{ zanDialog.title }}"
class="zan-dialog__header">{{ zanDialog.title }}</view>
<view
class="zan-dialog__content {{ zanDialog.title ? 'zan-dialog__content--title' : '' }}">{{ zanDialog.content }}</view>
<view
class="zan-dialog__footer {{ zanDialog.buttonsShowVertical ? 'zan-dialog__footer--vertical' : 'zan-dialog__footer--horizon' }}">
<block wx:for="{{ zanDialog.buttons }}" wx:key="{{ item.text }}-{{ item.type }}">
<button
class="zan-dialog__button zan-btn"
data-type="{{ item.type }}"
catchtap="_handleZanDialogButtonClick"
style="color: {{ item.color || '#333' }}">{{ item.text }}</button>
</block>
</view>
</view>
</view>
</template>