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

Dialog 弹出框中Dialog.stopLoading无效 #1021

Closed
1429880240 opened this issue Dec 6, 2018 · 8 comments
Closed

Dialog 弹出框中Dialog.stopLoading无效 #1021

1429880240 opened this issue Dec 6, 2018 · 8 comments
Milestone

Comments

@1429880240
Copy link

注意:请按照下面的模板来新建 issue,不规范的 issue 会被立即关闭.

描述一下问题
Dialog 弹出框中Dialog.stopLoading无效,不能停止按钮加载动作
描述一下你遇到的问题,包括复现方式、导致结果

截图
如果是 UI 问题,请提供具体截图

环境

  • 设备: 微信开发者工具
  • 基础库版本: 2.4.1
  • Vant Weapp 版本:0.4.8
@rex-zsd
Copy link
Collaborator

rex-zsd commented Dec 6, 2018

提供一下代码片段或者贴下代码截图?

@1429880240
Copy link
Author

g essp 6v 8c_o56 8 cv

712d6qq r qhm_rdiwo9p1

@1429880240
Copy link
Author

@rex-zsd

@yoage
Copy link

yoage commented Dec 13, 2018

同样遇到这个问题

@rex-zsd
Copy link
Collaborator

rex-zsd commented Dec 14, 2018

#1047 已经有pr增加了在事件中返回dialog实例,可以通过调用实例方法关闭,下版本发布。

@rex-zsd rex-zsd added this to the 0.4.10 milestone Dec 14, 2018
@1429880240
Copy link
Author

经测试在dist/dialog/index.js中第92行左右将
this.$emit(action); 改成 this.$emit(action, {dialog: this});
在绑定cancel和confirm方法中使用 e.detail.dialog.stopLoading(); 或者
e.mp.detail.dialog.stopLoading();【mpvue写法】关闭loading的状态

@rex-zsd rex-zsd closed this as completed Dec 20, 2018
@dpgirl
Copy link

dpgirl commented Apr 6, 2019

#1047已经有PR增加了在事件中返回对话框实例,可以通过调用实例方法关闭,下版本发布。

请问这个有加了吗?我现在也没办法阻止加载

@1429880240
Copy link
Author

1429880240 commented Apr 9, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants