mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[improvement] dialog表单组件:可以使用传递出的dialog实例的stopLoading()手动关闭按钮的loading状态 (#1047)
This commit is contained in:
parent
20928347e7
commit
8fc9ce3b9c
@ -95,7 +95,9 @@ VantComponent({
|
||||
this.close();
|
||||
}
|
||||
this.$emit('close', action);
|
||||
this.$emit(action);
|
||||
|
||||
//把 dialog 实例传递出去,可以通过 stopLoading() 在外部关闭按钮的 loading
|
||||
this.$emit(action, { dialog: this });
|
||||
|
||||
const callback = this.data[action === 'confirm' ? 'onConfirm' : 'onCancel'];
|
||||
if (callback) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user