mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-27 03:46:38 +08:00
[bugfix] Popup: animation webkit prefix (#1008)
This commit is contained in:
parent
6373624b2d
commit
72ca413a45
@ -9,7 +9,7 @@
|
|||||||
<view
|
<view
|
||||||
wx:if="{{ inited }}"
|
wx:if="{{ inited }}"
|
||||||
class="custom-class van-popup {{ position ? 'van-popup--' + position : '' }}"
|
class="custom-class van-popup {{ position ? 'van-popup--' + position : '' }}"
|
||||||
style="z-index: {{ zIndex }}; animation-name: van-{{ transition || position }}-{{ type }}; animation-duration: {{ duration }}ms; {{ display ? '' : 'display: none;' }}{{ customStyle }}"
|
style="z-index: {{ zIndex }}; -webkit-animation: van-{{ transition || position }}-{{ type }} {{ duration }}ms both; animation: van-{{ transition || position }}-{{ type }} {{ duration }}ms both; {{ display ? '' : 'display: none;' }}{{ customStyle }}"
|
||||||
bind:animationend="onAnimationEnd"
|
bind:animationend="onAnimationEnd"
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<view
|
<view
|
||||||
wx:if="{{ inited }}"
|
wx:if="{{ inited }}"
|
||||||
class="van-transition custom-class"
|
class="van-transition custom-class"
|
||||||
style="animation-name: van-{{ name }}-{{ type }}; animation-duration: {{ duration }}ms; {{ display ? '' : 'display: none;' }} {{ customStyle }}"
|
style="-webkit-animation: van-{{ name }}-{{ type }} {{ duration }}ms both; animation: van-{{ name }}-{{ type }} {{ duration }}ms both; {{ display ? '' : 'display: none;' }} {{ customStyle }}"
|
||||||
bind:animationend="onAnimationEnd"
|
bind:animationend="onAnimationEnd"
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user