index.wxml 478B

12345678910111213141516171819202122
  1. <van-transition
  2. wx:if="{{ lockScroll }}"
  3. show="{{ show }}"
  4. custom-class="van-overlay"
  5. custom-style="z-index: {{ zIndex }}; {{ customStyle }}"
  6. duration="{{ duration }}"
  7. bind:tap="onClick"
  8. catch:touchmove="noop"
  9. >
  10. <slot></slot>
  11. </van-transition>
  12. <van-transition
  13. wx:else
  14. show="{{ show }}"
  15. custom-class="van-overlay"
  16. custom-style="z-index: {{ zIndex }}; {{ customStyle }}"
  17. duration="{{ duration }}"
  18. bind:tap="onClick"
  19. >
  20. <slot></slot>
  21. </van-transition>