Vue3 改变

1、全局api

Vue.config.xxx app.config.xxx
Vue.component app.component
Vue.directive app.directive
Vue.mixin app.mixin
Vue.use app.use
Vue.prototype app.config.globalProperties

2、过度类名

.v-enter-from,
.v-leave-to{
   opacity:0;
}

.v-leave-from,
.v-enter-to{
 opacity:1;
}

3、父组件绑定事件

<my-component
   :close="test"
/>

子组件声明自定义事件

export default{
   emits:['close']   
}

4、移除过滤器

posted @ 2025-01-10 19:22  市丸银  阅读(11)  评论(0)    收藏  举报