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

控制模态框的显示与隐藏我看是调用的tango.openModal(id),但是框架里并没有实现tango.openModal() 函数,想问下通过模态框id控制模态框显示与隐藏的逻辑是什么 #208

Open
zhanghaosysu opened this issue Sep 10, 2024 · 1 comment

Comments

@zhanghaosysu
Copy link

控制模态框的显示与隐藏我看是调用的tang.openModal(id),但是框架里并没有实现tang.openModal() 函数,想问下通过模态框id控制模态框显示与隐藏的逻辑是什么

@zhanghaosysu zhanghaosysu changed the title 通过tang.openModal(id)实现模态框显示与隐藏的逻辑是什么 控制模态框的显示与隐藏我看是调用的tang.openModal(id),但是框架里并没有实现tang.openModal() 函数,想问下通过模态框id控制模态框显示与隐藏的逻辑是什么 Sep 10, 2024
@zhanghaosysu zhanghaosysu changed the title 控制模态框的显示与隐藏我看是调用的tang.openModal(id),但是框架里并没有实现tang.openModal() 函数,想问下通过模态框id控制模态框显示与隐藏的逻辑是什么 控制模态框的显示与隐藏我看是调用的tango.openModal(id),但是框架里并没有实现tango.openModal() 函数,想问下通过模态框id控制模态框显示与隐藏的逻辑是什么 Sep 10, 2024
@wwsun
Copy link
Contributor

wwsun commented Sep 10, 2024

  1. 方法1:可以在 Modal 实现里支持通过事件唤起关闭
  2. 方案2: 可以通过 Modal 的实例方法进行控制

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants