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

ui-modal 中的_cancel方法有问题 #26

Open
CN-HM opened this issue May 19, 2022 · 1 comment
Open

ui-modal 中的_cancel方法有问题 #26

CN-HM opened this issue May 19, 2022 · 1 comment
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@CN-HM
Copy link

CN-HM commented May 19, 2022

_cancel() {
this.hide();
if (typeof this.successBack == 'function') this.successBack({
'cancel': true,
'confirm': false
})
this.triggerEvent("success", {
'cancel': true,
'confirm': false
});
},

这里的triggerEvent不应该调用success方法,建议改为fail或者其他合适的命名。
_confirm方法中triggerEvent才应该调用success

@iZaiZaiA
Copy link
Member

好的

@iZaiZaiA iZaiZaiA added documentation Improvements or additions to documentation bug Something isn't working labels May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants