We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
最新版
const $dialog: any = inject('$dialog') $dialog.confirm({ title: '标题', content: '内容', confirmBtn: '确认' })
控制台报错:TypeError: Cannot read properties of undefined (reading 'confirm') No response
No response
The text was updated successfully, but these errors were encountered:
👋 @anlyyao,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
本地测试了官网给出的三种按需引入方式,inject 都能正常使用,未能复现该问题。 如果后续有用户出现类似问题,欢迎重新开贴讨论~
tdesign-mobile-vue 版本 最新版 重现链接 const $dialog: any = inject('$dialog') $dialog.confirm({ title: '标题', content: '内容', confirmBtn: '确认' }) 控制台报错:TypeError: Cannot read properties of undefined (reading 'confirm') No response 重现步骤 No response 期望结果 No response 实际结果 No response 框架版本 No response 浏览器版本 No response 系统版本 No response Node版本 No response 补充说明 No response
别用按需插件引用,直接手动引入
No branches or pull requests
tdesign-mobile-vue 版本
最新版
重现链接
const $dialog: any = inject('$dialog')
$dialog.confirm({
title: '标题',
content: '内容',
confirmBtn: '确认'
})
控制台报错:TypeError: Cannot read properties of undefined (reading 'confirm')
No response
重现步骤
No response
期望结果
No response
实际结果
No response
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: