You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`v-enter-active` and `v-leave-active` 可以控制 enter/leave 过渡的不同阶段,下一节,
112
+
`v-enter-active` and `v-leave-active` give you the ability to specify different easing curves for enter/leave transitions, which you'll see an example of in the following section.
113
+
114
+
### CSS 过渡
115
+
116
+
常用的过渡都是使用 CSS 过渡。
117
+
118
+
下面是一个简单例子:
119
+
120
+
```html
121
+
<divid="example-1">
122
+
<button@click="show = !show">
123
+
Toggle render
124
+
</button>
125
+
<transitionname="slide-fade">
126
+
<pv-if="show">hello</p>
127
+
</transition>
128
+
</div>
129
+
```
130
+
131
+
```js
132
+
newVue({
133
+
el:'#example-1',
134
+
data: {
135
+
show:true
136
+
}
137
+
})
138
+
```
139
+
140
+
```css
141
+
/* Enter and leave animations can use different */
0 commit comments