index.wxml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <wux-backdrop id="wux-backdrop" bind:click="cancel" />
  2. <wux-animation-group wux-class="{{ prefixCls }}" in="{{ in }}" classNames="{{ classNames }}">
  3. <view class="{{ classes.content }}">
  4. <view class="{{ classes.options }}">
  5. <view class="{{ classes.title }}" wx:if="{{ titleText }}">{{ titleText }}</view>
  6. <block wx:for="{{ buttons }}" wx:for-item="button" wx:key="index">
  7. <button
  8. class="{{ classes.button[index].wrap }}"
  9. data-index="{{ index }}"
  10. disabled="{{ button.disabled }}"
  11. open-type="{{ button.openType }}"
  12. hover-class="{{ !button.disabled ? classes.button[index].hover : 'none' }}"
  13. hover-stop-propagation="{{ button.hoverStopPropagation }}"
  14. hover-start-time="{{ button.hoverStartTime }}"
  15. hover-stay-time="{{ button.hoverStayTime }}"
  16. lang="{{ button.lang }}"
  17. bindgetuserinfo="bindgetuserinfo"
  18. session-from="{{ button.sessionFrom }}"
  19. send-message-title="{{ button.sendMessageTitle }}"
  20. send-message-path="{{ button.sendMessagePath }}"
  21. send-message-img="{{ button.sendMessageImg }}"
  22. show-message-card="{{ button.showMessageCard }}"
  23. bindcontact="bindcontact"
  24. bindgetphonenumber="bindgetphonenumber"
  25. app-parameter="{{ button.appParameter }}"
  26. binderror="onError"
  27. bindopensetting="bindopensetting"
  28. catchtap="buttonClicked"
  29. >
  30. <image class="{{ classes.icon }}" src="{{ button.icon }}" wx:if="{{ button.icon }}" />
  31. <text class="{{ classes.text }}">{{ button.text }}</text>
  32. </button>
  33. </block>
  34. <button class="{{ classes.destructive }}" wx:if="{{ destructiveText }}" catchtap="destructiveButtonClicked">{{ destructiveText }}</button>
  35. </view>
  36. <view class="{{ classes.group }}" wx:if="{{ cancelText }}">
  37. <button class="{{ classes.cancel }}" hover-class="{{ classes.hover }}" catchtap="cancel">{{ cancelText }}</button>
  38. </view>
  39. </view>
  40. </wux-animation-group>