-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
请问如何引入小程序自定义组件? #288
Labels
enhancement
New feature or request
Comments
遗憾的是我们现在还不支持从 NPM 引入自定义组件,计划专门做一个命令打包发布到 NPM 组件。 |
不需要从npm包,我拷文件进去也可以接受。就是微信小程序的自定义组件,是否支持在taro中直接引用呢? |
@TooBug 目前来说还不行,组件化这块正在用微信的自定义组件来重构~ 重构完成后就可以,预计本周有重构的 beta 版本~ |
好的,期待…… |
战略性关注 |
最新的 beta 版本,已经支持了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
小程序已经支持了自定义组件,taro是否支持引入已经写好的自定义组件?如果支持的话要如何引入。
我尝试在页面中使用import引入,会报错误
尝试使用小程序的页面配置
usingComponents
,发现taro并不会将组件代码复制到dist
目录。The text was updated successfully, but these errors were encountered: