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

[Button] 通过 浏览器引入 安装后点击报错 #1031

Closed
akssmaw opened this issue Aug 15, 2023 · 4 comments
Closed

[Button] 通过 浏览器引入 安装后点击报错 #1031

akssmaw opened this issue Aug 15, 2023 · 4 comments
Labels
question Further information is requested

Comments

@akssmaw
Copy link

akssmaw commented Aug 15, 2023

tdesign-mobile-vue 版本

最新

重现链接

https://codepen.io/mesuper/pen/wvQVVZp

重现步骤

F12 修改成 手机端分辨率 点击button控制台报错
Uncaught TypeError: Cannot read properties of undefined (reading 'ctx')
at HTMLButtonElement. (hover.ts:18:23)

修改成电脑端点击正常

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

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

@akssmaw
Copy link
Author

akssmaw commented Aug 15, 2023

<script src="https://unpkg.com/vue@next"></script> <script src="https://unpkg.com/tdesign-mobile-vue/dist/tdesign.min.js"></script> 引入包都是最新版

@anlyyao
Copy link
Collaborator

anlyyao commented Aug 15, 2023

@akssmaw 你的vue版本是多少?应该只有button组件有问题吧? rc.4及以后对vue版本较高,可以升级vue版本再试试。

<script src="https://unpkg.com/vue@latest"></script>

@anlyyao anlyyao added the question Further information is requested label Aug 15, 2023
@akssmaw
Copy link
Author

akssmaw commented Aug 16, 2023

我使用的是vue@3.2.36 改成vue@3.3.4 正常了 感谢

@akssmaw akssmaw closed this as completed Aug 17, 2023
@akssmaw akssmaw reopened this Aug 17, 2023
@akssmaw akssmaw closed this as completed Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants