cleek 2.4.50 → 2.4.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cleek.es.js CHANGED
@@ -23984,13 +23984,21 @@ var ckNotify = {
23984
23984
  }
23985
23985
  }) {
23986
23986
  const tempDiv = document.createElement("div");
23987
- const instance = createApp(CkConfirmComponent);
23988
- const instanceMounted = instance.mount(tempDiv);
23989
- instanceMounted.title = title;
23990
- instanceMounted.msg = msg;
23991
- instanceMounted.acceptText = acceptText;
23992
- instanceMounted.cancelText = cancelText;
23993
- document.body.appendChild(instanceMounted.$el);
23987
+ const app = createApp(CkConfirmComponent);
23988
+ const instance = app.mount(tempDiv);
23989
+ instance.title = title;
23990
+ instance.msg = msg;
23991
+ instance.acceptText = acceptText;
23992
+ instance.cancelText = cancelText;
23993
+ instance.responseSuccess = () => {
23994
+ app.unmount();
23995
+ success();
23996
+ };
23997
+ instance.responseFailure = () => {
23998
+ app.unmount();
23999
+ failure();
24000
+ };
24001
+ document.body.appendChild(instance.$el);
23994
24002
  },
23995
24003
  confirm(msg, success, failure) {
23996
24004
  this.confirmOptions({