mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Dialog): show not trigger close event when hidden (#5267)
This commit is contained in:
parent
70e2161e6b
commit
602d3958b8
@ -56,6 +56,11 @@ export default createComponent({
|
|||||||
handleAction(action) {
|
handleAction(action) {
|
||||||
this.$emit(action);
|
this.$emit(action);
|
||||||
|
|
||||||
|
// show not trigger close event when hidden
|
||||||
|
if (!this.value) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.beforeClose) {
|
if (this.beforeClose) {
|
||||||
this.loading[action] = true;
|
this.loading[action] = true;
|
||||||
this.beforeClose(action, state => {
|
this.beforeClose(action, state => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user