mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
[bugfix] Dialog: action event (#2571)
This commit is contained in:
@@ -42,6 +42,7 @@ export default sfc({
|
||||
|
||||
methods: {
|
||||
handleAction(action) {
|
||||
this.$emit(action);
|
||||
if (this.beforeClose) {
|
||||
this.loading[action] = true;
|
||||
this.beforeClose(action, state => {
|
||||
@@ -57,7 +58,6 @@ export default sfc({
|
||||
|
||||
onClose(action) {
|
||||
this.$emit('input', false);
|
||||
this.$emit(action);
|
||||
this.callback && this.callback(action);
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user