Skip to content
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

组件中引用的小程序原生组件,不能声明在组件的<config>元素里,而是要在页面的<config>中 #60

Open
donaldshen opened this issue Jan 9, 2019 · 0 comments

Comments

@donaldshen
Copy link

在vue组件中使用小程序原生组件,比如vant组件,根据文档是在vue组件的<config>标签中声明usingComponents字段即可。但megalo会将组件编译成template模板而不是小程序原生组件,所以也就不存在配套的json。
是否能解析组件中的<config>,将其自动合并到引用该组件的页面中?

版本:@megalo/target: 0.4.10
操作系统:Windows 10

@fengzilong fengzilong transferred this issue from kaola-fed/megalo Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants