index.wxml 978 B

12345678910111213141516171819202122
  1. <template name="zan-dialog">
  2. <view class="zan-dialog {{ zanDialog.show ? 'zan-dialog--show' : '' }}">
  3. <view class="zan-dialog--mask"></view>
  4. <view class="zan-dialog--container">
  5. <view
  6. wx:if="{{ zanDialog.title }}"
  7. class="zan-dialog__header">{{ zanDialog.title }}</view>
  8. <view
  9. class="zan-dialog__content {{ zanDialog.title ? 'zan-dialog__content--title' : '' }}">{{ zanDialog.content }}</view>
  10. <view
  11. class="zan-dialog__footer {{ zanDialog.buttonsShowVertical ? 'zan-dialog__footer--vertical' : 'zan-dialog__footer--horizon' }}">
  12. <block wx:for="{{ zanDialog.buttons }}" wx:key="{{ item.text }}-{{ item.type }}">
  13. <button
  14. class="zan-dialog__button zan-btn"
  15. data-type="{{ item.type }}"
  16. catchtap="_handleZanDialogButtonClick"
  17. style="color: {{ item.color || '#333' }}">{{ item.text }}</button>
  18. </block>
  19. </view>
  20. </view>
  21. </view>
  22. </template>