Skip to content

vue 0.11.8 子组件中第一个component不会编译bug #805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
niluanxy opened this issue Apr 24, 2015 · 4 comments
Closed

vue 0.11.8 子组件中第一个component不会编译bug #805

niluanxy opened this issue Apr 24, 2015 · 4 comments
Labels

Comments

@niluanxy
Copy link

我用 Vue.component 方法生成了一个 mg-header 的组件,然后我动态的生成了一个 vue 对象,这个对象有用到这个指令,直接使用的 <"mg-header"></"mg-header"> 的方式,然后我用 $mount 动态编译以后,发现动态生成的对象中的第一个 component 永远不会被编译

@niluanxy niluanxy changed the title 全局注册的 component 在动态生成的vue对象中无法编译 vue 0.11.8 子组件中第一个component不会编译bug Apr 24, 2015
@yyx990803
Copy link
Member

自定义标签里面不需要引号,如果不是这个问题请提供代码...

@niluanxy
Copy link
Author

代码已经上传,将下面的图片下载下来,后缀改为 zip 解压即可(不知道你在国内还是国外,所以不知道用哪个网盘,我就直接压缩了下,但是这里不能上传文件,只能上传图片,所以只能这么处理了)。整个项目是用的 gulp + webpack 工作的,加上自己写的框架部分,文件较多,所以我只把需要的部分打包进去了,SRC文件夹中是最主要的三个源代码,或者你可以在生成的最终文件中直接搜索下关键词 mg-header 就能找到出问题的组件的源码。

vbug zip

@yyx990803 yyx990803 added the bug label Apr 24, 2015
@yyx990803
Copy link
Member

确认是 bug,正在着手修复

@yyx990803
Copy link
Member

Fixed in dev branch. 在新版本发布前你可能需要手动 build 一下 dev 版本的 vue。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants