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

[ImageViewer] 按需加载组件报错 #3166

Closed
hy212 opened this issue May 8, 2024 · 2 comments
Closed

[ImageViewer] 按需加载组件报错 #3166

hy212 opened this issue May 8, 2024 · 2 comments
Labels
invalid This doesn't seem right usage the issue is about usage

Comments

@hy212
Copy link
Contributor

hy212 commented May 8, 2024

tdesign-vue 版本

1.9.3

重现链接

https://stackblitz.com/edit/utbvev?file=src%2Fmain.js,package.json,src%2Fdemo.vue,.eslintrc.js

重现步骤

npm i
npm run serve
页面报错,点击预览无反应。
image

ImageViewer组件trigger slot抛出的open()方法不存在。

期望结果

期望能够按需加载使用

实际结果

No response

框架版本

Vue(2.6.14)

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

github-actions bot commented May 8, 2024

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

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

uyarn commented May 16, 2024

由于使用了@vue/composition-api开发组件,按需引入的场景需要手动引入一次@vue/composition-api并注册使用
https://tdesign.tencent.com/vue/getting-started#faq
image

@uyarn uyarn added the usage the issue is about usage label May 16, 2024
@uyarn uyarn closed this as completed May 16, 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 usage the issue is about usage
Projects
None yet
Development

No branches or pull requests

2 participants