MP-CU icon indicating copy to clipboard operation
MP-CU copied to clipboard

ui-modal 中的_cancel方法有问题

Open CN-HM opened this issue 2 years ago • 1 comments

_cancel() { this.hide(); if (typeof this.successBack == 'function') this.successBack({ 'cancel': true, 'confirm': false }) this.triggerEvent("success", { 'cancel': true, 'confirm': false }); },

这里的triggerEvent不应该调用success方法,建议改为fail或者其他合适的命名。 _confirm方法中triggerEvent才应该调用success

CN-HM avatar May 19 '22 09:05 CN-HM

好的

iZaiZaiA avatar May 21 '22 06:05 iZaiZaiA