vue-popup-plus-plugin-preset 1.3.0 → 1.3.2
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/{PAlbum-CNFV7xu5.js → PAlbum-LPEViiZF.js} +1 -1
- package/dist/{PConfirm-KtE6DclN.js → PConfirm-D-ug3UAJ.js} +6 -6
- package/dist/{PPrompt-By0Iy2Eh.js → PPrompt-uN5YNxdI.js} +28 -28
- package/dist/vue-popup-plus-plugin-preset.d.ts +6 -6
- package/dist/vue-popup-plus-plugin-preset.js +42 -41
- package/dist/vue-popup-plus-plugin-preset.umd.cjs +3 -3
- package/package.json +2 -2
|
@@ -380,7 +380,7 @@ const be = ["src"], he = ["poster", "src"], we = {
|
|
|
380
380
|
]))
|
|
381
381
|
], 32));
|
|
382
382
|
}
|
|
383
|
-
}), Le = /* @__PURE__ */ de(Ce, [["__scopeId", "data-v-
|
|
383
|
+
}), Le = /* @__PURE__ */ de(Ce, [["__scopeId", "data-v-9ef9f86f"]]);
|
|
384
384
|
export {
|
|
385
385
|
Le as default
|
|
386
386
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as m, inject as u, createElementBlock as p, openBlock a
|
|
|
2
2
|
import { usePopup as _, POPUP_COMPONENT_INJECTS as g } from "vue-popup-plus";
|
|
3
3
|
import { P as x, a as N, b as T } from "./PBody-CggbeZs9.js";
|
|
4
4
|
import { P as B } from "./PFooter-Cp_J7xg-.js";
|
|
5
|
-
import { P as y, a as
|
|
5
|
+
import { P as y, a as f } from "./PButtonGroup-C-RNjqPq.js";
|
|
6
6
|
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const h = { class: "p-confirm" }, v = { class: "content" }, E = /* @__PURE__ */ m({
|
|
8
8
|
name: "PConfirm",
|
|
@@ -15,9 +15,9 @@ const h = { class: "p-confirm" }, v = { class: "content" }, E = /* @__PURE__ */
|
|
|
15
15
|
draggable: { type: Boolean }
|
|
16
16
|
},
|
|
17
17
|
setup(o) {
|
|
18
|
-
const
|
|
18
|
+
const s = _(), c = u(g.INSTANCE_ID);
|
|
19
19
|
function l(r) {
|
|
20
|
-
|
|
20
|
+
s.destroy(c, r);
|
|
21
21
|
}
|
|
22
22
|
return (r, n) => (P(), p("div", h, [
|
|
23
23
|
e(x, null, {
|
|
@@ -37,7 +37,7 @@ const h = { class: "p-confirm" }, v = { class: "content" }, E = /* @__PURE__ */
|
|
|
37
37
|
theme: "primary"
|
|
38
38
|
}, {
|
|
39
39
|
default: t(() => [
|
|
40
|
-
e(
|
|
40
|
+
e(f, {
|
|
41
41
|
onClick: n[0] || (n[0] = (d) => l(!1)),
|
|
42
42
|
type: "plain"
|
|
43
43
|
}, {
|
|
@@ -46,7 +46,7 @@ const h = { class: "p-confirm" }, v = { class: "content" }, E = /* @__PURE__ */
|
|
|
46
46
|
]),
|
|
47
47
|
_: 1
|
|
48
48
|
}),
|
|
49
|
-
e(
|
|
49
|
+
e(f, {
|
|
50
50
|
onClick: n[1] || (n[1] = (d) => l(!0))
|
|
51
51
|
}, {
|
|
52
52
|
default: t(() => [
|
|
@@ -73,7 +73,7 @@ const h = { class: "p-confirm" }, v = { class: "content" }, E = /* @__PURE__ */
|
|
|
73
73
|
})
|
|
74
74
|
]));
|
|
75
75
|
}
|
|
76
|
-
}), $ = /* @__PURE__ */ b(E, [["__scopeId", "data-v-
|
|
76
|
+
}), $ = /* @__PURE__ */ b(E, [["__scopeId", "data-v-d5394afa"]]);
|
|
77
77
|
export {
|
|
78
78
|
$ as default
|
|
79
79
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { usePopup as V, POPUP_COMPONENT_INJECTS as
|
|
1
|
+
import { defineComponent as v, inject as y, ref as C, computed as N, createElementBlock as d, openBlock as r, createVNode as l, withCtx as a, createCommentVNode as i, createElementVNode as T, toDisplayString as u, withDirectives as f, vModelText as p, createTextVNode as g } from "vue";
|
|
2
|
+
import { usePopup as V, POPUP_COMPONENT_INJECTS as k } from "vue-popup-plus";
|
|
3
3
|
import "./vue-popup-plus-plugin-preset.js";
|
|
4
|
-
import { P as
|
|
4
|
+
import { P as B, a as L, b } from "./PBody-CggbeZs9.js";
|
|
5
5
|
import { P as E } from "./PFooter-Cp_J7xg-.js";
|
|
6
|
-
import { P as I, a as
|
|
6
|
+
import { P as I, a as x } from "./PButtonGroup-C-RNjqPq.js";
|
|
7
7
|
import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const D = { class: "p-prompt" }, M = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "message"
|
|
11
|
-
}, O = { class: "input" }, U = ["maxLength", "placeholder"],
|
|
11
|
+
}, O = { class: "input" }, U = ["maxLength", "placeholder"], $ = ["maxLength", "placeholder"], w = /* @__PURE__ */ v({
|
|
12
12
|
name: "PPrompt",
|
|
13
13
|
__name: "PPrompt",
|
|
14
14
|
props: {
|
|
@@ -23,20 +23,20 @@ const D = { class: "p-prompt" }, M = {
|
|
|
23
23
|
draggable: { type: Boolean }
|
|
24
24
|
},
|
|
25
25
|
setup(e) {
|
|
26
|
-
const
|
|
27
|
-
function
|
|
28
|
-
|
|
26
|
+
const m = V(), s = y(k.INSTANCE_ID), n = C(e.defaultValue), P = N(() => e.message !== !1);
|
|
27
|
+
function h() {
|
|
28
|
+
m.destroy(s, n.value);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
|
|
30
|
+
function c() {
|
|
31
|
+
m.destroy(s, null);
|
|
32
32
|
}
|
|
33
|
-
return (j, t) => (
|
|
34
|
-
l(
|
|
33
|
+
return (j, t) => (r(), d("div", D, [
|
|
34
|
+
l(B, null, {
|
|
35
35
|
header: a(() => [
|
|
36
36
|
l(b, {
|
|
37
37
|
draggable: e.draggable,
|
|
38
|
-
hasCloseButton: !1,
|
|
39
38
|
title: e.title,
|
|
39
|
+
onClose: t[0] || (t[0] = (o) => c()),
|
|
40
40
|
iconClass: "prompt"
|
|
41
41
|
}, null, 8, ["draggable", "title"])
|
|
42
42
|
]),
|
|
@@ -48,20 +48,20 @@ const D = { class: "p-prompt" }, M = {
|
|
|
48
48
|
theme: "primary"
|
|
49
49
|
}, {
|
|
50
50
|
default: a(() => [
|
|
51
|
-
l(
|
|
52
|
-
onClick: t[
|
|
51
|
+
l(x, {
|
|
52
|
+
onClick: t[3] || (t[3] = (o) => c()),
|
|
53
53
|
type: "plain"
|
|
54
54
|
}, {
|
|
55
55
|
default: a(() => [
|
|
56
|
-
|
|
56
|
+
g(u(e.cancelText), 1)
|
|
57
57
|
]),
|
|
58
58
|
_: 1
|
|
59
59
|
}),
|
|
60
|
-
l(
|
|
61
|
-
onClick: t[
|
|
60
|
+
l(x, {
|
|
61
|
+
onClick: t[4] || (t[4] = (o) => h())
|
|
62
62
|
}, {
|
|
63
63
|
default: a(() => [
|
|
64
|
-
|
|
64
|
+
g(u(e.confirmText), 1)
|
|
65
65
|
]),
|
|
66
66
|
_: 1
|
|
67
67
|
})
|
|
@@ -75,24 +75,24 @@ const D = { class: "p-prompt" }, M = {
|
|
|
75
75
|
default: a(() => [
|
|
76
76
|
l(L, null, {
|
|
77
77
|
default: a(() => [
|
|
78
|
-
|
|
78
|
+
P.value ? (r(), d("div", M, u(e.message), 1)) : i("", !0),
|
|
79
79
|
T("div", O, [
|
|
80
|
-
e.type === "input" ?
|
|
80
|
+
e.type === "input" ? f((r(), d("input", {
|
|
81
81
|
key: 0,
|
|
82
82
|
maxLength: e.maxLength,
|
|
83
83
|
placeholder: e.placeholder,
|
|
84
84
|
type: "text",
|
|
85
|
-
"onUpdate:modelValue": t[
|
|
85
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => n.value = o)
|
|
86
86
|
}, null, 8, U)), [
|
|
87
|
-
[
|
|
87
|
+
[p, n.value]
|
|
88
88
|
]) : i("", !0),
|
|
89
|
-
e.type === "textarea" ?
|
|
89
|
+
e.type === "textarea" ? f((r(), d("textarea", {
|
|
90
90
|
key: 1,
|
|
91
91
|
maxLength: e.maxLength,
|
|
92
92
|
placeholder: e.placeholder,
|
|
93
|
-
"onUpdate:modelValue": t[
|
|
94
|
-
}, null, 8,
|
|
95
|
-
[
|
|
93
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => n.value = o)
|
|
94
|
+
}, null, 8, $)), [
|
|
95
|
+
[p, n.value]
|
|
96
96
|
]) : i("", !0)
|
|
97
97
|
])
|
|
98
98
|
]),
|
|
@@ -103,7 +103,7 @@ const D = { class: "p-prompt" }, M = {
|
|
|
103
103
|
})
|
|
104
104
|
]));
|
|
105
105
|
}
|
|
106
|
-
}), z = /* @__PURE__ */ S(
|
|
106
|
+
}), z = /* @__PURE__ */ S(w, [["__scopeId", "data-v-4fd5ae58"]]);
|
|
107
107
|
export {
|
|
108
108
|
z as default
|
|
109
109
|
};
|
|
@@ -376,35 +376,35 @@ export { }
|
|
|
376
376
|
|
|
377
377
|
declare module 'vue-popup-plus' {
|
|
378
378
|
interface PopupCustomProperties {
|
|
379
|
-
|
|
379
|
+
alert: IAlert;
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
|
|
383
383
|
|
|
384
384
|
declare module 'vue-popup-plus' {
|
|
385
385
|
interface PopupCustomProperties {
|
|
386
|
-
|
|
386
|
+
loading: ILoading;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
|
|
391
391
|
declare module 'vue-popup-plus' {
|
|
392
392
|
interface PopupCustomProperties {
|
|
393
|
-
|
|
393
|
+
dialog: IDialog;
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
|
|
398
398
|
declare module 'vue-popup-plus' {
|
|
399
399
|
interface PopupCustomProperties {
|
|
400
|
-
|
|
400
|
+
confirm: IConfirm;
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
|
|
404
404
|
|
|
405
405
|
declare module 'vue-popup-plus' {
|
|
406
406
|
interface PopupCustomProperties {
|
|
407
|
-
|
|
407
|
+
album: IAlbum;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
|
|
@@ -418,6 +418,6 @@ declare module 'vue-popup-plus' {
|
|
|
418
418
|
|
|
419
419
|
declare module 'vue-popup-plus' {
|
|
420
420
|
interface PopupCustomProperties {
|
|
421
|
-
|
|
421
|
+
prompt: IPrompt;
|
|
422
422
|
}
|
|
423
423
|
}
|