Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Toast.setDefaultOptions() is not a function #730

Open
2 tasks
crise1993 opened this issue Dec 6, 2024 · 2 comments
Open
2 tasks

Toast.setDefaultOptions() is not a function #730

crise1993 opened this issue Dec 6, 2024 · 2 comments
Labels
taro@v4 taro@v4不支持

Comments

@crise1993
Copy link

这个 Issue 涉及以下平台:

  • Web 平台(H5)
  • 微信小程序

BUG 描述
"@antmjs/vantui": "^3.5.4",版本中,Toast组件定义了setDefaultOptions方法,但实际上获取不到。

复现步骤
1、安装@antmjs/vantui 3.5.4版本,然后调用或打印Toast. setDefaultOptions方法,发现setDefaultOptions这个方法是undefined
期望结果
能够像dialog.setDefaultOptions方法一样,达到预期效果。

实际结果
Toast.setDefaultOptions() is not a function

截图
image
image

环境
web端
附加信息

@zuolung zuolung added the taro@v4 taro@v4不支持 label Dec 6, 2024
@zuolung
Copy link
Contributor

zuolung commented Dec 6, 2024

暂时不支持tarov4

@crise1993
Copy link
Author

暂时不支持tarov4
我用的是taro 3.6.30版本

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
taro@v4 taro@v4不支持
Projects
None yet
Development

No branches or pull requests

2 participants