You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bcw104, tangsj, sconfield, lolocn, 409915016 and 6 moreyeild, Estelle00, parse-code, YikaJ, yuhaoboris and 42 moresconfield and guihuxianshengkylesean, jiaokewen, 1179524780, xwLyc, wangquan1024 and 1 more
Promise does not make sense to me on this issue. This feature is reasonable that under most of the situations, we wish the modal be closed immediately after clicking the ok button. But we can add a prop autoclose to control whether the modal would be closed when trigger on-ok.
Activity
eeve commentedon Apr 6, 2017
+1 昨天正好碰到这个问题
miaosun009 commentedon Apr 6, 2017
我也遇到这个问题
icarusion commentedon Apr 7, 2017
看了一下,还是使用不当的问题。loading 要动态控制。
eeve commentedon Apr 7, 2017
awoter commentedon Apr 7, 2017
@icarusion 嗯,试了下 这种方式确实可以;不过文档上没说明,估计一般不知道用这句:
this.$nextTick(() => { this.loading = true; });
zzzplus commentedon Apr 12, 2017
菜鸟坑提醒:
我设置
loading: false
,害我调试了一下午kakanjau commentedon Apr 25, 2017
在 on-ok 里 return 一个 promise的方式来控制,是不是更合理、直观一些。
虽然通过loading和nextTick配合可以达到目的,但是太绕了,loading属性本身的目的也不是为了这个吧
leixu2txtek commentedon Jun 29, 2017
看来这个设计确实不符合大众使用的习惯,作者可以考虑优化一下吗?
Ai-010 commentedon Jul 7, 2017
modal 使用起来特别别扭 就这个阻止关闭的这个就设计不好,为什么要强行关闭呢,提供方法出来让开发者自行关闭或许更好
rijn commentedon Jul 7, 2017
Promise does not make sense to me on this issue. This feature is reasonable that under most of the situations, we wish the
modal
be closed immediately after clicking the ok button. But we can add a propautoclose
to control whether themodal
would be closed when triggeron-ok
.24 remaining items