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

[space] 在vue@2.7.16无效 #3131

Closed
RSS1102 opened this issue Apr 6, 2024 · 2 comments
Closed

[space] 在vue@2.7.16无效 #3131

RSS1102 opened this issue Apr 6, 2024 · 2 comments
Labels
invalid This doesn't seem right

Comments

@RSS1102
Copy link
Contributor

RSS1102 commented Apr 6, 2024

tdesign-vue 版本

1.9.1

重现链接

https://codesandbox.io/p/devbox/tdesign-vue-demo-forked-r9y6fy?file=%2Fpackage.json

重现步骤

"vue": "~2.6.14"正常在 "vue": "2.7.16"出现如下错误:

chunk-BRAQBOKA.js?v=583dcd3b:3719 [Vue warn]: inject() can only be used inside setup() or functional components.

found in

---> <TSpace>
       <Demo> at src/demo.vue
         <Root>
warn @ chunk-BRAQBOKA.js?v=583dcd3b:3719
显示另外 1 个框架
收起
chunk-BRAQBOKA.js?v=583dcd3b:3719 [Vue warn]: The setup binding property "COMPONENT_NAME" is already declared.

found in

---> <TSpace>
       <Demo> at src/demo.vue
         <Root>
warn @ chunk-BRAQBOKA.js?v=583dcd3b:3719
显示另外 1 个框架
收起
chunk-BRAQBOKA.js?v=583dcd3b:3719 [Vue warn]: The setup binding property "spaceClassNames" is already declared.

found in

---> <TSpace>
       <Demo> at src/demo.vue
         <Root>
warn @ chunk-BRAQBOKA.js?v=583dcd3b:3719
显示另外 1 个框架
收起
chunk-BRAQBOKA.js?v=583dcd3b:3719 [Vue warn]: The setup binding property "renderStyle" is already declared.

found in

---> <TSpace>
       <Demo> at src/demo.vue
         <Root>

期望结果

No response

实际结果

No response

框架版本

"vue": "2.7.16"

浏览器版本

版本 123.0.6312.106(正式版本) (64 位)

系统版本

win11

Node版本

18.16

补充说明

No response

Copy link
Contributor

github-actions bot commented Apr 6, 2024

👋 @RSS1102,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn uyarn added the invalid This doesn't seem right label Apr 8, 2024
@uyarn
Copy link
Collaborator

uyarn commented Apr 8, 2024

vue 2.7 用 tdesign-vue@naruto的版本
https://tdesign.tencent.com/vue/getting-started
image

@uyarn uyarn closed this as completed Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants