javascript - vue2函数化组件的问题

查看:71
本文介绍了javascript - vue2函数化组件的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

版本

2.1.6

例子

https://jsfiddle.net/xzhwbb1o/2/

期望

I want to get the component item up component choice, but when functional , the parent is the #app, remove the functional is choice, is the default of this? I have read the document render, but did not find the relevant tips.

解决方案

是的,你可以把它想像成單純的渲染用組件,伴隨著父組件建立,依附於父組件,具體原因與細節可以看這個:

https://github.com/vuejs/vue/issues/4550

这篇关于javascript - vue2函数化组件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆