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 +15 -7
- package/dist/cleek.umd.js +1 -1
- package/package.json +1 -1
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
|
|
23988
|
-
const
|
|
23989
|
-
|
|
23990
|
-
|
|
23991
|
-
|
|
23992
|
-
|
|
23993
|
-
|
|
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({
|