vue-popup-plus-plugin-preset 1.1.0 → 1.2.0
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-BKExygsA.js → PAlbum-b5jZRPv8.js} +101 -101
- package/dist/PAlert-DUSrfEz4.js +67 -0
- package/dist/PBody-Ch7KaMyj.js +129 -0
- package/dist/PButtonGroup-DOwvv6ZF.js +80 -0
- package/dist/PConfirm-CoxIDGcj.js +79 -0
- package/dist/PDialog-Cmtvq1_n.js +72 -0
- package/dist/PLoadingMask-DNDEFOXq.js +61 -0
- package/dist/{PPrompt-D0wfhr75.js → PPrompt-DkI219wu.js} +35 -35
- package/dist/PToast-CTys_Qhv.js +24 -0
- package/dist/vue-popup-plus-plugin-preset.d.ts +10 -3
- package/dist/vue-popup-plus-plugin-preset.js +8 -8
- package/dist/vue-popup-plus-plugin-preset.umd.cjs +3 -3
- package/package.json +66 -67
- package/dist/PAlert-U35iHW1d.js +0 -67
- package/dist/PBody-B8SE3ACJ.js +0 -129
- package/dist/PButtonGroup-CfAPVmCi.js +0 -80
- package/dist/PConfirm-C7fPAwiu.js +0 -79
- package/dist/PDialog-Ch6TTWxG.js +0 -72
- package/dist/PLoadingMask-D37Mt0Yw.js +0 -61
- package/dist/PToast-WfcchnMz.js +0 -24
package/dist/PAlert-U35iHW1d.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, inject as p, createElementBlock as m, openBlock as f, createVNode as t, withCtx as e, createElementVNode as u, toDisplayString as a, createTextVNode as c } from "vue";
|
|
2
|
-
import { usePopup as P, POPUP_COMPONENT_INJECTS as _ } from "vue-popup-plus";
|
|
3
|
-
import { P as g, a as C, b as N } from "./PBody-B8SE3ACJ.js";
|
|
4
|
-
import { P as B } from "./PFooter-Dd8fzezl.js";
|
|
5
|
-
import { P as T, a as b } from "./PButtonGroup-CfAPVmCi.js";
|
|
6
|
-
import { _ as v } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
const y = { class: "p-alert" }, E = { class: "content" }, I = /* @__PURE__ */ d({
|
|
8
|
-
name: "PAlert",
|
|
9
|
-
__name: "PAlert",
|
|
10
|
-
props: {
|
|
11
|
-
title: {},
|
|
12
|
-
content: {},
|
|
13
|
-
confirmText: {},
|
|
14
|
-
draggable: { type: Boolean }
|
|
15
|
-
},
|
|
16
|
-
setup(h) {
|
|
17
|
-
const l = P(), s = p(_.INSTANCE_ID);
|
|
18
|
-
function r() {
|
|
19
|
-
l.destroy(s);
|
|
20
|
-
}
|
|
21
|
-
return (o, n) => (f(), m("div", y, [
|
|
22
|
-
t(g, null, {
|
|
23
|
-
header: e(() => [
|
|
24
|
-
t(N, {
|
|
25
|
-
draggable: o.draggable,
|
|
26
|
-
title: o.title,
|
|
27
|
-
onClose: n[0] || (n[0] = (i) => r()),
|
|
28
|
-
iconClass: "alert"
|
|
29
|
-
}, null, 8, ["draggable", "title"])
|
|
30
|
-
]),
|
|
31
|
-
footer: e(() => [
|
|
32
|
-
t(B, null, {
|
|
33
|
-
default: e(() => [
|
|
34
|
-
t(T, { align: "right" }, {
|
|
35
|
-
default: e(() => [
|
|
36
|
-
t(b, {
|
|
37
|
-
onClick: n[1] || (n[1] = (i) => r()),
|
|
38
|
-
theme: "primary"
|
|
39
|
-
}, {
|
|
40
|
-
default: e(() => [
|
|
41
|
-
c(a(o.confirmText), 1)
|
|
42
|
-
]),
|
|
43
|
-
_: 1
|
|
44
|
-
})
|
|
45
|
-
]),
|
|
46
|
-
_: 1
|
|
47
|
-
})
|
|
48
|
-
]),
|
|
49
|
-
_: 1
|
|
50
|
-
})
|
|
51
|
-
]),
|
|
52
|
-
default: e(() => [
|
|
53
|
-
t(C, null, {
|
|
54
|
-
default: e(() => [
|
|
55
|
-
u("div", E, a(o.content), 1)
|
|
56
|
-
]),
|
|
57
|
-
_: 1
|
|
58
|
-
})
|
|
59
|
-
]),
|
|
60
|
-
_: 1
|
|
61
|
-
})
|
|
62
|
-
]));
|
|
63
|
-
}
|
|
64
|
-
}), D = /* @__PURE__ */ v(I, [["__scopeId", "data-v-1501446e"]]);
|
|
65
|
-
export {
|
|
66
|
-
D as default
|
|
67
|
-
};
|
package/dist/PBody-B8SE3ACJ.js
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, createElementBlock as u, openBlock as l, renderSlot as c, createElementVNode as r, useCssVars as I, computed as w, withModifiers as N, normalizeClass as f, inject as E, ref as s, watch as T, createCommentVNode as S, toDisplayString as H, createBlock as z } from "vue";
|
|
2
|
-
import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { usePopup as L, POPUP_COMPONENT_INJECTS as k } from "vue-popup-plus";
|
|
4
|
-
const V = { class: "p-scaffold" }, j = { class: "body" }, U = /* @__PURE__ */ m({
|
|
5
|
-
name: "PScaffold",
|
|
6
|
-
__name: "PScaffold",
|
|
7
|
-
setup(t) {
|
|
8
|
-
return (a, i) => (l(), u("div", V, [
|
|
9
|
-
c(a.$slots, "header", {}, void 0, !0),
|
|
10
|
-
r("div", j, [
|
|
11
|
-
c(a.$slots, "default", {}, void 0, !0)
|
|
12
|
-
]),
|
|
13
|
-
c(a.$slots, "footer", {}, void 0, !0)
|
|
14
|
-
]));
|
|
15
|
-
}
|
|
16
|
-
}), x = /* @__PURE__ */ g(U, [["__scopeId", "data-v-04880725"]]), A = /* @__PURE__ */ m({
|
|
17
|
-
name: "PHeaderButton",
|
|
18
|
-
__name: "PHeaderButton",
|
|
19
|
-
props: {
|
|
20
|
-
iconClass: { default: "" },
|
|
21
|
-
theme: { default: "primary" },
|
|
22
|
-
size: { default: 40 },
|
|
23
|
-
disabled: { type: Boolean, default: !1 },
|
|
24
|
-
actived: { type: Boolean, default: !1 }
|
|
25
|
-
},
|
|
26
|
-
emits: ["click"],
|
|
27
|
-
setup(t, { emit: a }) {
|
|
28
|
-
I((n) => ({
|
|
29
|
-
"2f05293a": `${n.size}px`,
|
|
30
|
-
"45c9dc5a": `${v.value}px`
|
|
31
|
-
}));
|
|
32
|
-
const i = a, h = w(() => ({
|
|
33
|
-
[`is-theme-${t.theme}`]: !0,
|
|
34
|
-
"is-disabled": t.disabled,
|
|
35
|
-
"is-active": t.actived
|
|
36
|
-
})), v = w(() => t.size * 0.4);
|
|
37
|
-
function _() {
|
|
38
|
-
t.disabled || i("click");
|
|
39
|
-
}
|
|
40
|
-
return (n, d) => (l(), u("div", {
|
|
41
|
-
class: f(["p-header-button", h.value]),
|
|
42
|
-
onClick: d[0] || (d[0] = N((C) => _(), ["stop"]))
|
|
43
|
-
}, [
|
|
44
|
-
r("i", {
|
|
45
|
-
class: f(["iconfont-popup-plugin-preset", n.iconClass])
|
|
46
|
-
}, null, 2)
|
|
47
|
-
], 2));
|
|
48
|
-
}
|
|
49
|
-
}), J = /* @__PURE__ */ g(A, [["__scopeId", "data-v-1eaab056"]]), W = {
|
|
50
|
-
key: 0,
|
|
51
|
-
class: "icon"
|
|
52
|
-
}, q = { class: "title" }, F = { class: "btn-ctn" }, G = /* @__PURE__ */ m({
|
|
53
|
-
name: "PHeader",
|
|
54
|
-
__name: "PHeader",
|
|
55
|
-
props: {
|
|
56
|
-
title: { default: "" },
|
|
57
|
-
height: { default: 40 },
|
|
58
|
-
iconClass: { default: "" },
|
|
59
|
-
hasCloseButton: { type: Boolean, default: !0 },
|
|
60
|
-
draggable: { type: Boolean, default: !1 }
|
|
61
|
-
},
|
|
62
|
-
emits: ["close"],
|
|
63
|
-
setup(t, { emit: a }) {
|
|
64
|
-
I((e) => ({
|
|
65
|
-
"3b2e1e40": `${e.height}px`
|
|
66
|
-
}));
|
|
67
|
-
const i = L(), h = E(k.INSTANCE_ID), v = E(k.COMPUTED_VIEW_STYLE), _ = a, n = s(0), d = s(0), C = s(0), $ = s(0), P = s(0), b = s(0), B = s(!1), Y = w(() => !!t.iconClass);
|
|
68
|
-
T([P, b], M);
|
|
69
|
-
function D() {
|
|
70
|
-
t.hasCloseButton && _("close");
|
|
71
|
-
}
|
|
72
|
-
function X(e) {
|
|
73
|
-
t.draggable && (n.value = e.clientX, d.value = e.clientY, C.value = v.value.translateX, $.value = v.value.translateY, B.value = !0, e.preventDefault(), window.addEventListener("mousemove", y), window.addEventListener("mouseup", O));
|
|
74
|
-
}
|
|
75
|
-
function y(e) {
|
|
76
|
-
if (!B.value) return;
|
|
77
|
-
const o = e.clientX - n.value, p = e.clientY - d.value;
|
|
78
|
-
P.value = C.value + o, b.value = $.value + p;
|
|
79
|
-
}
|
|
80
|
-
function O(e) {
|
|
81
|
-
B.value = !1, window.removeEventListener("mousemove", y), window.removeEventListener("mouseup", O);
|
|
82
|
-
}
|
|
83
|
-
function M() {
|
|
84
|
-
i.update(h, {
|
|
85
|
-
viewTranslateX: P.value,
|
|
86
|
-
viewTranslateY: b.value
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
return (e, o) => (l(), u("div", {
|
|
90
|
-
class: f(["p-header", { "is-draggable": e.draggable }]),
|
|
91
|
-
onMousedown: o[1] || (o[1] = (p) => X(p))
|
|
92
|
-
}, [
|
|
93
|
-
Y.value ? (l(), u("div", W, [
|
|
94
|
-
r("i", {
|
|
95
|
-
class: f(["iconfont-popup-plugin-preset", e.iconClass])
|
|
96
|
-
}, null, 2)
|
|
97
|
-
])) : S("", !0),
|
|
98
|
-
r("div", q, H(e.title), 1),
|
|
99
|
-
r("div", F, [
|
|
100
|
-
c(e.$slots, "buttons", {}, void 0, !0),
|
|
101
|
-
e.hasCloseButton ? (l(), z(J, {
|
|
102
|
-
key: 0,
|
|
103
|
-
onClick: o[0] || (o[0] = (p) => D()),
|
|
104
|
-
iconClass: "close",
|
|
105
|
-
theme: "danger"
|
|
106
|
-
})) : S("", !0)
|
|
107
|
-
])
|
|
108
|
-
], 34));
|
|
109
|
-
}
|
|
110
|
-
}), ee = /* @__PURE__ */ g(G, [["__scopeId", "data-v-fcc3fa94"]]), K = /* @__PURE__ */ m({
|
|
111
|
-
name: "PBody",
|
|
112
|
-
__name: "PBody",
|
|
113
|
-
props: {
|
|
114
|
-
withPadding: { type: Boolean, default: !0 }
|
|
115
|
-
},
|
|
116
|
-
setup(t) {
|
|
117
|
-
return (a, i) => (l(), u("div", {
|
|
118
|
-
class: f(["p-body", { "has-padding": a.withPadding }])
|
|
119
|
-
}, [
|
|
120
|
-
c(a.$slots, "default", {}, void 0, !0)
|
|
121
|
-
], 2));
|
|
122
|
-
}
|
|
123
|
-
}), te = /* @__PURE__ */ g(K, [["__scopeId", "data-v-a8f5570e"]]);
|
|
124
|
-
export {
|
|
125
|
-
x as P,
|
|
126
|
-
te as a,
|
|
127
|
-
ee as b,
|
|
128
|
-
J as c
|
|
129
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { defineComponent as B, inject as c, useTemplateRef as G, computed as p, createElementBlock as n, openBlock as o, normalizeClass as v, renderSlot as S, useSlots as P, provide as d, onMounted as $, Fragment as b, renderList as C, unref as h, createBlock as j, createCommentVNode as w, resolveDynamicComponent as I } from "vue";
|
|
2
|
-
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
const M = ["disabled"], O = /* @__PURE__ */ B({
|
|
4
|
-
name: "PButton",
|
|
5
|
-
__name: "PButton",
|
|
6
|
-
props: {
|
|
7
|
-
type: {},
|
|
8
|
-
theme: {},
|
|
9
|
-
size: {},
|
|
10
|
-
disabled: { type: Boolean, default: !1 }
|
|
11
|
-
},
|
|
12
|
-
emits: ["click"],
|
|
13
|
-
setup(e, { emit: u }) {
|
|
14
|
-
c(t.inButtonGroup, !1);
|
|
15
|
-
const l = c(t.groupType, "default"), f = c(t.groupTheme, "default"), m = c(t.groupSize, "default"), s = G("button"), a = u, g = p(() => window.innerWidth <= 600), i = p(() => ({
|
|
16
|
-
[`is-type-${e.type || l}`]: !0,
|
|
17
|
-
[`is-theme-${e.theme || f}`]: !0,
|
|
18
|
-
[`is-size-${e.size || m}`]: !0,
|
|
19
|
-
"is-mobile": g.value
|
|
20
|
-
}));
|
|
21
|
-
function z(r) {
|
|
22
|
-
a("click", r), s.value?.blur();
|
|
23
|
-
}
|
|
24
|
-
return (r, y) => (o(), n("button", {
|
|
25
|
-
class: v(["p-button", i.value]),
|
|
26
|
-
disabled: r.disabled,
|
|
27
|
-
onClick: y[0] || (y[0] = (T) => z(T)),
|
|
28
|
-
ref: "button"
|
|
29
|
-
}, [
|
|
30
|
-
S(r.$slots, "default", {}, void 0, !0)
|
|
31
|
-
], 10, M));
|
|
32
|
-
}
|
|
33
|
-
}), R = /* @__PURE__ */ k(O, [["__scopeId", "data-v-8d9ceb49"]]), _ = {
|
|
34
|
-
key: 0,
|
|
35
|
-
class: "cutline"
|
|
36
|
-
}, t = {
|
|
37
|
-
inButtonGroup: Symbol("inButtonGroup"),
|
|
38
|
-
groupType: Symbol("groupType"),
|
|
39
|
-
groupTheme: Symbol("groupTheme"),
|
|
40
|
-
groupSize: Symbol("groupSize")
|
|
41
|
-
}, D = /* @__PURE__ */ B({
|
|
42
|
-
name: "PButtonGroup",
|
|
43
|
-
__name: "PButtonGroup",
|
|
44
|
-
props: {
|
|
45
|
-
type: { default: "default" },
|
|
46
|
-
theme: { default: "default" },
|
|
47
|
-
size: { default: "default" },
|
|
48
|
-
align: { default: "left" },
|
|
49
|
-
tight: { type: Boolean, default: !1 },
|
|
50
|
-
cutline: { type: Boolean, default: !1 }
|
|
51
|
-
},
|
|
52
|
-
setup(e) {
|
|
53
|
-
const u = P(), l = p(() => e.cutline && !e.tight), f = p(() => ({
|
|
54
|
-
[`align-${e.align}`]: !0,
|
|
55
|
-
"is-tight": e.tight,
|
|
56
|
-
"has-cutline": l.value
|
|
57
|
-
}));
|
|
58
|
-
d(t.inButtonGroup, !0), d(t.groupType, e.type), d(t.groupTheme, e.theme), d(t.groupSize, e.size), $(() => {
|
|
59
|
-
m();
|
|
60
|
-
});
|
|
61
|
-
function m() {
|
|
62
|
-
u.default?.()?.some((a) => {
|
|
63
|
-
a.type;
|
|
64
|
-
}) && console.warn("PButtonGroup 只能包含 PButton 组件");
|
|
65
|
-
}
|
|
66
|
-
return (s, a) => (o(), n("div", {
|
|
67
|
-
class: v(["p-button-group", f.value]),
|
|
68
|
-
ref: "group"
|
|
69
|
-
}, [
|
|
70
|
-
l.value ? (o(!0), n(b, { key: 0 }, C(h(u).default?.(), (g, i) => (o(), n(b, { key: i }, [
|
|
71
|
-
(o(), j(I(g))),
|
|
72
|
-
i < (h(u).default?.() || []).length - 1 ? (o(), n("div", _)) : w("", !0)
|
|
73
|
-
], 64))), 128)) : S(s.$slots, "default", { key: 1 }, void 0, !0)
|
|
74
|
-
], 2));
|
|
75
|
-
}
|
|
76
|
-
}), L = /* @__PURE__ */ k(D, [["__scopeId", "data-v-7850ba6f"]]);
|
|
77
|
-
export {
|
|
78
|
-
L as P,
|
|
79
|
-
R as a
|
|
80
|
-
};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, inject as p, createElementBlock as c, openBlock as u, createVNode as o, withCtx as e, createElementVNode as P, toDisplayString as a, createTextVNode as l } from "vue";
|
|
2
|
-
import { usePopup as _, POPUP_COMPONENT_INJECTS as C } from "vue-popup-plus";
|
|
3
|
-
import { P as g, a as N, b as T } from "./PBody-B8SE3ACJ.js";
|
|
4
|
-
import { P as B } from "./PFooter-Dd8fzezl.js";
|
|
5
|
-
import { P as y, a as i } from "./PButtonGroup-CfAPVmCi.js";
|
|
6
|
-
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
const h = { class: "p-confirm" }, v = { class: "content" }, E = /* @__PURE__ */ m({
|
|
8
|
-
name: "PConfirm",
|
|
9
|
-
__name: "PConfirm",
|
|
10
|
-
props: {
|
|
11
|
-
title: {},
|
|
12
|
-
content: {},
|
|
13
|
-
confirmText: {},
|
|
14
|
-
cancelText: {},
|
|
15
|
-
draggable: { type: Boolean }
|
|
16
|
-
},
|
|
17
|
-
setup(I) {
|
|
18
|
-
const s = _(), f = p(C.INSTANCE_ID);
|
|
19
|
-
function r(t) {
|
|
20
|
-
s.destroy(f, t);
|
|
21
|
-
}
|
|
22
|
-
return (t, n) => (u(), c("div", h, [
|
|
23
|
-
o(g, null, {
|
|
24
|
-
header: e(() => [
|
|
25
|
-
o(T, {
|
|
26
|
-
draggable: t.draggable,
|
|
27
|
-
hasCloseButton: !1,
|
|
28
|
-
title: t.title,
|
|
29
|
-
iconClass: "confirm"
|
|
30
|
-
}, null, 8, ["draggable", "title"])
|
|
31
|
-
]),
|
|
32
|
-
footer: e(() => [
|
|
33
|
-
o(B, null, {
|
|
34
|
-
default: e(() => [
|
|
35
|
-
o(y, {
|
|
36
|
-
align: "right",
|
|
37
|
-
theme: "primary"
|
|
38
|
-
}, {
|
|
39
|
-
default: e(() => [
|
|
40
|
-
o(i, {
|
|
41
|
-
onClick: n[0] || (n[0] = (d) => r(!1)),
|
|
42
|
-
type: "plain"
|
|
43
|
-
}, {
|
|
44
|
-
default: e(() => [
|
|
45
|
-
l(a(t.cancelText), 1)
|
|
46
|
-
]),
|
|
47
|
-
_: 1
|
|
48
|
-
}),
|
|
49
|
-
o(i, {
|
|
50
|
-
onClick: n[1] || (n[1] = (d) => r(!0))
|
|
51
|
-
}, {
|
|
52
|
-
default: e(() => [
|
|
53
|
-
l(a(t.confirmText), 1)
|
|
54
|
-
]),
|
|
55
|
-
_: 1
|
|
56
|
-
})
|
|
57
|
-
]),
|
|
58
|
-
_: 1
|
|
59
|
-
})
|
|
60
|
-
]),
|
|
61
|
-
_: 1
|
|
62
|
-
})
|
|
63
|
-
]),
|
|
64
|
-
default: e(() => [
|
|
65
|
-
o(N, null, {
|
|
66
|
-
default: e(() => [
|
|
67
|
-
P("div", v, a(t.content), 1)
|
|
68
|
-
]),
|
|
69
|
-
_: 1
|
|
70
|
-
})
|
|
71
|
-
]),
|
|
72
|
-
_: 1
|
|
73
|
-
})
|
|
74
|
-
]));
|
|
75
|
-
}
|
|
76
|
-
}), $ = /* @__PURE__ */ b(E, [["__scopeId", "data-v-e79500d9"]]);
|
|
77
|
-
export {
|
|
78
|
-
$ as default
|
|
79
|
-
};
|
package/dist/PDialog-Ch6TTWxG.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { defineComponent as P, inject as g, ref as y, computed as d, defineAsyncComponent as B, onMounted as h, createElementBlock as v, openBlock as a, normalizeClass as b, createVNode as s, createSlots as k, withCtx as n, createBlock as r, resolveDynamicComponent as N, mergeProps as D, createCommentVNode as I } from "vue";
|
|
2
|
-
import { usePopup as S, POPUP_COMPONENT_INJECTS as E } from "vue-popup-plus";
|
|
3
|
-
import { P as M, a as $, b as O, c as T } from "./PBody-B8SE3ACJ.js";
|
|
4
|
-
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
const A = /* @__PURE__ */ P({
|
|
6
|
-
name: "PDialog",
|
|
7
|
-
__name: "PDialog",
|
|
8
|
-
props: {
|
|
9
|
-
id: {},
|
|
10
|
-
title: {},
|
|
11
|
-
customComponent: {},
|
|
12
|
-
customComponentProps: {},
|
|
13
|
-
header: { type: Boolean },
|
|
14
|
-
headerCloseButton: { type: Boolean },
|
|
15
|
-
draggable: { type: Boolean },
|
|
16
|
-
debugMode: { type: Boolean }
|
|
17
|
-
},
|
|
18
|
-
setup(o) {
|
|
19
|
-
const m = S(), u = g(E.INSTANCE_ID), l = y(1), i = d(
|
|
20
|
-
() => `${o.id}-${l.value}`
|
|
21
|
-
), p = d(() => typeof o.customComponent == "function" ? B(o.customComponent) : o.customComponent);
|
|
22
|
-
h(() => {
|
|
23
|
-
});
|
|
24
|
-
function c() {
|
|
25
|
-
l.value++;
|
|
26
|
-
}
|
|
27
|
-
function C() {
|
|
28
|
-
m.destroy(u);
|
|
29
|
-
}
|
|
30
|
-
return (e, t) => (a(), v("div", {
|
|
31
|
-
class: b(["p-dialog", { "no-header": !e.header }])
|
|
32
|
-
}, [
|
|
33
|
-
s(M, null, k({
|
|
34
|
-
default: n(() => [
|
|
35
|
-
s($, { withPadding: !1 }, {
|
|
36
|
-
default: n(() => [
|
|
37
|
-
(a(), r(N(p.value), D({ key: i.value }, e.customComponentProps), null, 16))
|
|
38
|
-
]),
|
|
39
|
-
_: 1
|
|
40
|
-
})
|
|
41
|
-
]),
|
|
42
|
-
_: 2
|
|
43
|
-
}, [
|
|
44
|
-
e.header ? {
|
|
45
|
-
name: "header",
|
|
46
|
-
fn: n(() => [
|
|
47
|
-
s(O, {
|
|
48
|
-
draggable: e.draggable,
|
|
49
|
-
hasCloseButton: e.headerCloseButton,
|
|
50
|
-
title: e.title,
|
|
51
|
-
onClose: t[1] || (t[1] = (f) => C())
|
|
52
|
-
}, {
|
|
53
|
-
buttons: n(() => [
|
|
54
|
-
e.debugMode ? (a(), r(T, {
|
|
55
|
-
key: 0,
|
|
56
|
-
onClick: t[0] || (t[0] = (f) => c()),
|
|
57
|
-
iconClass: "reload",
|
|
58
|
-
theme: "success"
|
|
59
|
-
})) : I("", !0)
|
|
60
|
-
]),
|
|
61
|
-
_: 1
|
|
62
|
-
}, 8, ["draggable", "hasCloseButton", "title"])
|
|
63
|
-
]),
|
|
64
|
-
key: "0"
|
|
65
|
-
} : void 0
|
|
66
|
-
]), 1024)
|
|
67
|
-
], 2));
|
|
68
|
-
}
|
|
69
|
-
}), z = /* @__PURE__ */ w(A, [["__scopeId", "data-v-eaf6b748"]]);
|
|
70
|
-
export {
|
|
71
|
-
z as default
|
|
72
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, useCssVars as u, createElementBlock as c, openBlock as t, createElementVNode as a, inject as m, createVNode as i, createBlock as f, createCommentVNode as P, withCtx as r, createTextVNode as g } from "vue";
|
|
2
|
-
import { usePopup as C, POPUP_COMPONENT_INJECTS as N } from "vue-popup-plus";
|
|
3
|
-
import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import { P as k, a as x } from "./PButtonGroup-CfAPVmCi.js";
|
|
5
|
-
const B = { class: "p-loading" }, v = /* @__PURE__ */ d({
|
|
6
|
-
name: "PLoading",
|
|
7
|
-
__name: "PLoading",
|
|
8
|
-
props: {
|
|
9
|
-
size: { default: 60 }
|
|
10
|
-
},
|
|
11
|
-
setup(_) {
|
|
12
|
-
return u((e) => ({
|
|
13
|
-
"3d51c802": `${e.size}px`
|
|
14
|
-
})), (e, o) => (t(), c("div", B, [...o[0] || (o[0] = [
|
|
15
|
-
a("svg", { viewBox: "25 25 50 50" }, [
|
|
16
|
-
a("circle", {
|
|
17
|
-
cx: "50",
|
|
18
|
-
cy: "50",
|
|
19
|
-
fill: "none",
|
|
20
|
-
r: "20"
|
|
21
|
-
})
|
|
22
|
-
], -1)
|
|
23
|
-
])]));
|
|
24
|
-
}
|
|
25
|
-
}), z = /* @__PURE__ */ p(v, [["__scopeId", "data-v-279e128a"]]), I = { class: "p-loading-mask" }, L = /* @__PURE__ */ d({
|
|
26
|
-
name: "PLoading",
|
|
27
|
-
__name: "PLoadingMask",
|
|
28
|
-
props: {
|
|
29
|
-
debugMode: { type: Boolean },
|
|
30
|
-
iconSize: { default: 60 }
|
|
31
|
-
},
|
|
32
|
-
setup(_) {
|
|
33
|
-
const e = C(), o = m(N.INSTANCE_ID);
|
|
34
|
-
function l() {
|
|
35
|
-
e.destroy(o);
|
|
36
|
-
}
|
|
37
|
-
return (n, s) => (t(), c("div", I, [
|
|
38
|
-
i(z, { size: n.iconSize }, null, 8, ["size"]),
|
|
39
|
-
n.debugMode ? (t(), f(k, {
|
|
40
|
-
key: 0,
|
|
41
|
-
align: "center"
|
|
42
|
-
}, {
|
|
43
|
-
default: r(() => [
|
|
44
|
-
i(x, {
|
|
45
|
-
onClick: l,
|
|
46
|
-
theme: "primary"
|
|
47
|
-
}, {
|
|
48
|
-
default: r(() => [...s[0] || (s[0] = [
|
|
49
|
-
g("强制关闭遮罩(仅在调试模式下可用)", -1)
|
|
50
|
-
])]),
|
|
51
|
-
_: 1
|
|
52
|
-
})
|
|
53
|
-
]),
|
|
54
|
-
_: 1
|
|
55
|
-
})) : P("", !0)
|
|
56
|
-
]));
|
|
57
|
-
}
|
|
58
|
-
}), b = /* @__PURE__ */ p(L, [["__scopeId", "data-v-19c7bbd7"]]);
|
|
59
|
-
export {
|
|
60
|
-
b as default
|
|
61
|
-
};
|
package/dist/PToast-WfcchnMz.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, inject as c, onMounted as a, createElementBlock as r, openBlock as p, createElementVNode as i, toDisplayString as _ } from "vue";
|
|
2
|
-
import { usePopup as d, POPUP_COMPONENT_INJECTS as m } from "vue-popup-plus";
|
|
3
|
-
import { _ as u } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
const l = { class: "p-message" }, P = { class: "content" }, f = /* @__PURE__ */ s({
|
|
5
|
-
name: "PToast",
|
|
6
|
-
__name: "PToast",
|
|
7
|
-
props: {
|
|
8
|
-
content: {},
|
|
9
|
-
duration: {}
|
|
10
|
-
},
|
|
11
|
-
setup(t) {
|
|
12
|
-
const o = d(), e = c(m.INSTANCE_ID);
|
|
13
|
-
return a(() => {
|
|
14
|
-
window.setTimeout(() => {
|
|
15
|
-
o.destroy(e);
|
|
16
|
-
}, t.duration);
|
|
17
|
-
}), (n, T) => (p(), r("div", l, [
|
|
18
|
-
i("div", P, _(n.content), 1)
|
|
19
|
-
]));
|
|
20
|
-
}
|
|
21
|
-
}), C = /* @__PURE__ */ u(f, [["__scopeId", "data-v-b7038c7b"]]);
|
|
22
|
-
export {
|
|
23
|
-
C as default
|
|
24
|
-
};
|