2018-05-02留
搜来搜去还是自己以前发的, 以前想写一个select的, 现在不清楚那时候的构思逻辑了,目前完成了select的写法,也运用在项目中,还有一点需要优化以后再贴过来。据目前的理解函数组建可以运用到无状态的上下文,举几个列子:右键菜单,radio,checkbox等。
--------------以下原帖内容---------------
版本
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
