[improvement] Overlay: render performance (#869)

This commit is contained in:
neverland 2018-11-06 21:24:27 +08:00 committed by GitHub
parent a1e8616e15
commit dcc7396b06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
<van-overlay
wx:if="{{ inited && overlay }}"
mask
show="{{ overlay && show }}"
show="{{ show }}"
z-index="{{ zIndex }}"
custom-style="{{ overlayStyle }}"
bind:click="onClickOverlay"

View File

@ -1,5 +1,6 @@
<van-overlay
show="{{ show && (mask || forbidClick) }}"
wx:if="{{ mask || forbidClick }}"
show="{{ show }}"
mask="{{ mask }}"
z-index="{{ zIndex }}"
/>