composition-api
0 人感兴趣 · 2 次引用
- 最新
- 推荐

Vue3 - $attrs 的几种用法(1 个或多个根元素、Options API 和 Composition API)
使用$attrs透传属性。我将分别从单一根元素、多个根元素、Options API、Composition API 3.0 和 3.2 语法 这5个角度讲解如何使用 $attrs

Vue3 Composition API 如何替换 Vue Mixins
想在您的Vue组件之间共享代码?如果您熟悉Vue 2,则可能已为此目的使用了mixin。但是新的Composition API(现在可以作为Vue 2的插件和Vue 3的即将发布的功能使用)提供了更好的解决方案。