mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
* fix(overlay): add custom-class support * fix(overlay): fix overlay bad test case Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
22 lines
504 B
Plaintext
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>
|