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

不能通过单击按钮显示弹窗 #455

Closed
lianglinux5 opened this issue May 8, 2022 · 6 comments
Closed

不能通过单击按钮显示弹窗 #455

lianglinux5 opened this issue May 8, 2022 · 6 comments
Labels
invalid This doesn't seem right / 看起来不是问题啊

Comments

@lianglinux5
Copy link

lianglinux5 commented May 8, 2022

不能通过单击按钮显示弹窗

页面定义一个按钮和弹窗,单击按钮设置弹窗为显示状态。弹窗显示不出来

这个Dialog本身有个state属性visible不知道在哪里控制的

@lianglinux5
Copy link
Author

image

@liujuping
Copy link
Collaborator

liujuping commented May 9, 2022

可能情况1:弹窗显示方式设置错误,用 this.$(refid).open() 打开

可能情况2:因为 visible 的原因,弹窗在预览态没有展示(看截图不是这种情况),如果是,可以看看这个issue #446

@liujuping liujuping added the invalid This doesn't seem right / 看起来不是问题啊 label May 9, 2022
@lianglinux5
Copy link
Author

image

image

image

@lianglinux5
Copy link
Author

在组件state里定义 isShowDialog来控制弹窗是否显示,不起作用。看渲染出来的弹窗组件是本身有自己的state.这个父组件不知道怎么控制了

@liujuping
Copy link
Collaborator

refid 目前还不支持查看,不是图片中的那个。

需要从 schema 里面查看,找到组件,找到 ref 参数。

image

@lianglinux5
Copy link
Author

可以了。多谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right / 看起来不是问题啊
Projects
None yet
Development

No branches or pull requests

2 participants