摘要: 使用 this.$parent查找当前组件的父组件。使用 this.$children查找当前组件的直接子组件,可以遍历全部子组件, 需要注意 $children 并不保证顺序,也不是响应式的。使用 this.$root查找根组件,并可以配合$children遍历全部组件。使用 this.$refs 阅读全文
posted @ 2018-12-07 14:19 phptree 阅读(7671) 评论(0) 推荐(0) 编辑