index.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <wux-animation-group wux-class="{{ classes.wrap }}" in="{{ visible }}" classNames="{{ classNames }}">
  2. <view class="{{ classes.bd }}">
  3. <image src="{{ icon }}" class="{{ classes.icon }}" wx:if="{{ icon }}" />
  4. <view class="{{ classes.title }}" wx:if="{{ title }}">{{ title }}</view>
  5. <view class="{{ classes.text }}" wx:if="{{ text }}">{{ text }}</view>
  6. <view class="{{ classes.buttons }}" wx:if="{{ buttons && !!buttons.length }}">
  7. <block wx:for="{{ buttons }}" wx:for-item="button" wx:key="index">
  8. <button
  9. class="{{ classes.button[index].wrap }}"
  10. type="{{ button.type || 'default' }}"
  11. size="{{ button.size || 'default' }}"
  12. loading="{{ button.loading }}"
  13. plain="{{ button.plain }}"
  14. disabled="{{ button.disabled }}"
  15. form-type="{{ button.formType }}"
  16. open-type="{{ button.openType }}"
  17. hover-class="{{ !button.disabled ? classes.button[index].hover : 'none' }}"
  18. hover-stop-propagation="{{ button.hoverStopPropagation }}"
  19. hover-start-time="{{ button.hoverStartTime }}"
  20. hover-stay-time="{{ button.hoverStayTime }}"
  21. lang="{{ button.lang }}"
  22. bindgetuserinfo="bindgetuserinfo"
  23. session-from="{{ button.sessionFrom }}"
  24. send-message-title="{{ button.sendMessageTitle }}"
  25. send-message-path="{{ button.sendMessagePath }}"
  26. send-message-img="{{ button.sendMessageImg }}"
  27. show-message-card="{{ button.showMessageCard }}"
  28. bindcontact="bindcontact"
  29. bindgetphonenumber="bindgetphonenumber"
  30. app-parameter="{{ button.appParameter }}"
  31. binderror="onError"
  32. bindopensetting="bindopensetting"
  33. bindtap="onTap"
  34. data-index="{{ index }}"
  35. >
  36. {{ button.text }}
  37. </button>
  38. </block>
  39. </view>
  40. </view>
  41. </wux-animation-group>