-
Notifications
You must be signed in to change notification settings - Fork 363
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
用 composition-api 开发的组件按需引入都报错 #696
Comments
👋 @cong-min,感谢给 TDesign 提出了 issue。 |
|
升级到0.40+ 一下 已经fix了 |
@uyarn 不管用,看了逻辑0.40.1只解决了Vue.use(Table)的场景,没有调use依然不生效。 |
初步分析是所有使用了 composition-api 开发的组件的共性问题,直接 import 按需引入会出问题,例如 Menu |
我看看 |
已在 0.40.3 版本中修复 cong 试一下 |
这个问题解决了吗,0.47.0版本的也会出现这个问题 |
tdesign-vue 版本
0.40.1
重现链接
Table: https://codesandbox.io/s/tdesign-vue-demo-forked-udg497?file=/src/demo.vue
Menu: https://codesandbox.io/s/tdesign-vue-demo-forked-j9bypt?file=/src/demo.vue
重现步骤
不通过
Vue.use
直接按需引入组件:报错
原因初步分析
业务没有安装
@vue/composition-api
且没有执行 use 未触发 td 的自动安装,导致 setup 未执行,报错期望结果
No response
实际结果
No response
框架版本
Vue2
浏览器版本
系统版本
Node版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: