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

[Dialog] inject方式导入在按需引入中无效 #1387

Closed
anlyyao opened this issue May 7, 2024 · 3 comments
Closed

[Dialog] inject方式导入在按需引入中无效 #1387

anlyyao opened this issue May 7, 2024 · 3 comments
Labels
question Further information is requested

Comments

@anlyyao
Copy link
Collaborator

anlyyao commented May 7, 2024

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

Copy link
Contributor

github-actions bot commented May 7, 2024

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

@anlyyao anlyyao added the enhancement New feature or request label May 11, 2024
@anlyyao anlyyao added question Further information is requested and removed enhancement New feature or request labels Jun 21, 2024
@anlyyao
Copy link
Collaborator Author

anlyyao commented Jun 21, 2024

本地测试了官网给出的三种按需引入方式,inject 都能正常使用,未能复现该问题。 如果后续有用户出现类似问题,欢迎重新开贴讨论~

@anlyyao anlyyao closed this as completed Jun 21, 2024
@GAtomis
Copy link

GAtomis commented Jul 15, 2024

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

别用按需插件引用,直接手动引入
image

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