![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
温故而知新
文章平均质量分 92
coder__wang
脚踏实地行,海阔天空飞
展开
-
vue函数式组件在项目中的使用
本篇将详细介绍vue组件化之函数式组件,会用到以下api:Vue.component()、Vue.extend()、$createElement、patch()。从事vue开发的小伙伴,平时组件化的过程中大多都采用的vue文件+模块化系统的方式吧。例如:import ComponentA from './ComponentA.vue'export default { components: { ComponentA }, // ...}如果你看过官方文档,了解过v原创 2021-07-31 16:18:32 · 2332 阅读 · 0 评论 -
vue组件之间通信总结(超详细)
组件通信在我们平时开发过程中,特别是在vue和在react中,有着举足轻重的地位。本篇将总结在vue中,组件之间通信的几种方式:props、$emit $parent、$children $attrs、$listeners provide、inject eventBus vuex 本地存储一、props、$emit单向数据流father.vue:<template> <div> <div>我是父亲:<input type=原创 2021-07-26 23:58:26 · 628 阅读 · 0 评论