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、移除过滤器
标签:opacity,use,Vue,directive,app,改变,Vue3,config From: https://www.cnblogs.com/wt7018/p/18664573