guide.wxml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <import src="./content.wxml" />
  2. <t-overlay
  3. wx:if="{{modeType === 'popover'}}"
  4. visible="{{visible}}"
  5. using-custom-navbar="{{usingCustomNavbar}}"
  6. background-color="transparent"
  7. z-index="{{zIndex}}"
  8. >
  9. <view class="class {{prefix}}-class {{classPrefix}}">
  10. <view
  11. class="{{prefix}}-class-reference {{classPrefix}}__reference {{nonOverlay ? classPrefix + '__reference--nonoverlay' : ''}}"
  12. style="{{referenceStyle}}"
  13. />
  14. <view
  15. class="{{prefix}}-class-popover {{classPrefix}}__container {{title || body ? classPrefix + '__container--' + modeType : ''}}"
  16. style="{{popoverStyle}}"
  17. >
  18. <template
  19. is="content"
  20. data="{{ prefix, classPrefix, title, body, steps, current, modeType, hideSkip, hideBack, ...buttonProps }}"
  21. />
  22. </view>
  23. </view>
  24. </t-overlay>
  25. <t-popup
  26. wx:elif="{{modeType === 'dialog'}}"
  27. visible="{{visible}}"
  28. show-overlay="{{!nonOverlay}}"
  29. using-custom-navbar="{{usingCustomNavbar}}"
  30. z-index="{{zIndex}}"
  31. placement="center"
  32. >
  33. <view class="class {{prefix}}-class {{classPrefix}}">
  34. <view
  35. class="{{prefix}}-class-popover {{classPrefix}}__container {{title || body ? classPrefix + '__container--' + modeType : ''}}"
  36. >
  37. <template
  38. is="content"
  39. data="{{ prefix, classPrefix, title, body, steps, current, modeType, hideSkip, ...buttonProps }}"
  40. />
  41. </view>
  42. </view>
  43. </t-popup>