index.wxml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <label for="{{name}}" bindtap="handleTap">
  2. <block wx:if="{{special}}">
  3. <view class="special-container l-class">
  4. <slot/>
  5. </view>
  6. </block>
  7. <block wx:else>
  8. <view class="l-btn {{ 'l-btn-' + size }} {{ 'l-btn-' + type }} {{ 'l-btn-' + shape }} {{plain?'l-btn-plain':''}} {{ disabled ? 'l-btn-disabled' : ''}} l-class "
  9. hover-class="btn-hover l-hover-class"
  10. hover-stop-propagation="{{hoverStopPropagation}}"
  11. hover-start-time="{{hoverStartTime}}"
  12. hover-stay-time="{{hoverStayTime}}"
  13. style="{{width?'min-width:'+width+'rpx;':''}} {{height?'height:'+height+'rpx;'+'line-height:'+height+'rpx;':''}} {{size=='long'?'border-radius:0;':''}} {{'background-color:'+bgColor}}">
  14. <view wx:if="{{loading}}" class="l-btn-loading {{'margin-' + size}} {{ plain ?'l-btn-loading-' + type : '' }}"></view>
  15. <l-icon l-class="l-icon-class" class="{{'margin-' + size}}" wx:if="{{icon}}" name="{{icon}}" color="{{iconColor}}" size="{{iconSize}}" />
  16. <slot/>
  17. </view>
  18. </block>
  19. </label>
  20. <button style="position: absolute;top: -999px;left: -999px;"
  21. wx:if="{{openType}}"
  22. id="{{name}}"
  23. lang="{{lang}}"
  24. form-type="{{formType}}"
  25. open-type="{{openType}}"
  26. app-parameter="{{ appParameter }}"
  27. hover-stop-propagation="{{ hoverStopPropagation }}"
  28. hover-start-time="{{ hoverStartTime }}"
  29. hover-stay-time="{{ hoverStayTime }}"
  30. session-from="{{ sessionFrom }}"
  31. send-message-title="{{ sendMessageTitle }}"
  32. send-message-path="{{ sendMessagePath }}"
  33. send-message-img="{{ sendMessageImg }}"
  34. show-message-card="{{ showMessageCard }}"
  35. bindcontact="openTypeEvent"
  36. bindgetuserinfo="openTypeEvent"
  37. bindgetphonenumber="openTypeEvent"
  38. bindopensetting="openTypeEvent">
  39. </button>