mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-24 10:22:36 +08:00
[improvement] Overlay: render performance (#869)
This commit is contained in:
parent
a1e8616e15
commit
dcc7396b06
@ -1,6 +1,7 @@
|
|||||||
<van-overlay
|
<van-overlay
|
||||||
|
wx:if="{{ inited && overlay }}"
|
||||||
mask
|
mask
|
||||||
show="{{ overlay && show }}"
|
show="{{ show }}"
|
||||||
z-index="{{ zIndex }}"
|
z-index="{{ zIndex }}"
|
||||||
custom-style="{{ overlayStyle }}"
|
custom-style="{{ overlayStyle }}"
|
||||||
bind:click="onClickOverlay"
|
bind:click="onClickOverlay"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<van-overlay
|
<van-overlay
|
||||||
show="{{ show && (mask || forbidClick) }}"
|
wx:if="{{ mask || forbidClick }}"
|
||||||
|
show="{{ show }}"
|
||||||
mask="{{ mask }}"
|
mask="{{ mask }}"
|
||||||
z-index="{{ zIndex }}"
|
z-index="{{ zIndex }}"
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user