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

[Bug Report] alert弹窗需提供单独的点击事件,而非on-hide事件 #2795

Closed
Camellia55 opened this Issue May 24, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@Camellia55
Copy link

Camellia55 commented May 24, 2018

VUX version

2.9.1

OS/Browsers version

2.7.7

Vue version

2.5.17-beta.0

Code

<alert v-on:hide="doSomething()"></alert>

Steps to reproduce

如果不点击alert组件的确认键,直接点击回退,也会执行doSomething()方法。。主要是我的doSomething是跳转另一个页面的,所以一回退就跳转。

What is Expected?

alert组件增加on-alert事件,跟on-hide区分开

What is actually happening?

alert只提供了on-hide事件

@wangshantao

This comment has been minimized.

Copy link
Contributor

wangshantao commented May 25, 2018

从你的需求来看,用comfirm组件会不会好些

@Camellia55

This comment has been minimized.

Copy link
Author

Camellia55 commented May 28, 2018

但是从业务逻辑来看,我只能用alert组件,用户只有一个选择。有解决方法吗?

@unclay

This comment has been minimized.

Copy link
Collaborator

unclay commented May 30, 2018

我也觉得comfirm好点,让comfirm支持隐藏取消按钮即可

@unclay

This comment has been minimized.

Copy link
Collaborator

unclay commented Jun 2, 2018

下版本confirm支持showCancelButton和showConfirmButton

@unclay unclay closed this Jun 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.