index.wxml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <button
  2. class="wux-class {{ classes.wrap }}"
  3. disabled="{{ disabled }}"
  4. open-type="{{ openType }}"
  5. hover-class="{{ !disabled ? classes.hover : 'none' }}"
  6. hover-stop-propagation="{{ hoverStopPropagation }}"
  7. hover-start-time="{{ hoverStartTime }}"
  8. hover-stay-time="{{ hoverStayTime }}"
  9. lang="{{ lang }}"
  10. bindgetuserinfo="bindgetuserinfo"
  11. session-from="{{ sessionFrom }}"
  12. send-message-title="{{ sendMessageTitle }}"
  13. send-message-path="{{ sendMessagePath }}"
  14. send-message-img="{{ sendMessageImg }}"
  15. show-message-card="{{ showMessageCard }}"
  16. bindcontact="bindcontact"
  17. bindgetphonenumber="bindgetphonenumber"
  18. app-parameter="{{ appParameter }}"
  19. binderror="onError"
  20. bindopensetting="bindopensetting"
  21. bindtap="onTap"
  22. >
  23. <view class="{{ classes.hd }}">
  24. <block wx:if="{{ thumb }}">
  25. <image class="{{ classes.thumb }}" src="{{ thumb }}" />
  26. </block>
  27. <block wx:else>
  28. <slot name="header"></slot>
  29. </block>
  30. </view>
  31. <view class="{{ classes.bd }}">
  32. <view wx:if="{{ title }}" class="{{ classes.text }}">{{ title }}</view>
  33. <view wx:if="{{ label }}" class="{{ classes.desc }}">{{ label }}</view>
  34. <slot></slot>
  35. </view>
  36. <view class="{{ classes.ft }}">
  37. <block wx:if="{{ extra }}">{{ extra }}</block>
  38. <block wx:else>
  39. <slot name="footer"></slot>
  40. </block>
  41. </view>
  42. </button>