landluck abeddfd09d
fix(overlay): add custom-class support (#5083)
* fix(overlay): add custom-class support

* fix(overlay): fix overlay bad test case

Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2022-11-02 17:49:57 +08:00

22 lines
504 B
Plaintext

<van-transition
wx:if="{{ lockScroll }}"
show="{{ show }}"
custom-class="van-overlay custom-class"
custom-style="z-index: {{ zIndex }}; {{ customStyle }}"
duration="{{ duration }}"
bind:tap="onClick"
catch:touchmove="noop"
>
<slot></slot>
</van-transition>
<van-transition
wx:else
show="{{ show }}"
custom-class="van-overlay custom-class"
custom-style="z-index: {{ zIndex }}; {{ customStyle }}"
duration="{{ duration }}"
bind:tap="onClick"
>
<slot></slot>
</van-transition>