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.
@@ -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-8830a1cb"]]);
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 s } from "./PButtonGroup-C-RNjqPq.js";
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 c = _(), f = u(g.INSTANCE_ID);
18
+ const s = _(), c = u(g.INSTANCE_ID);
19
19
  function l(r) {
20
- c.destroy(f, r);
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(s, {
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(s, {
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-e79500d9"]]);
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 y, inject as v, ref as C, computed as N, createElementBlock as r, openBlock as d, createVNode as l, withCtx as a, createCommentVNode as i, createElementVNode as T, toDisplayString as u, withDirectives as c, vModelText as f, createTextVNode as p } from "vue";
2
- import { usePopup as V, POPUP_COMPONENT_INJECTS as B } from "vue-popup-plus";
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 k, a as L, b } from "./PBody-CggbeZs9.js";
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 g } from "./PButtonGroup-C-RNjqPq.js";
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"], w = ["maxLength", "placeholder"], $ = /* @__PURE__ */ y({
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 s = V(), m = v(B.INSTANCE_ID), o = C(e.defaultValue), h = N(() => e.message !== !1);
27
- function x() {
28
- s.destroy(m, o.value);
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 P() {
31
- s.destroy(m, null);
30
+ function c() {
31
+ m.destroy(s, null);
32
32
  }
33
- return (j, t) => (d(), r("div", D, [
34
- l(k, null, {
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(g, {
52
- onClick: t[2] || (t[2] = (n) => P()),
51
+ l(x, {
52
+ onClick: t[3] || (t[3] = (o) => c()),
53
53
  type: "plain"
54
54
  }, {
55
55
  default: a(() => [
56
- p(u(e.cancelText), 1)
56
+ g(u(e.cancelText), 1)
57
57
  ]),
58
58
  _: 1
59
59
  }),
60
- l(g, {
61
- onClick: t[3] || (t[3] = (n) => x())
60
+ l(x, {
61
+ onClick: t[4] || (t[4] = (o) => h())
62
62
  }, {
63
63
  default: a(() => [
64
- p(u(e.confirmText), 1)
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
- h.value ? (d(), r("div", M, u(e.message), 1)) : i("", !0),
78
+ P.value ? (r(), d("div", M, u(e.message), 1)) : i("", !0),
79
79
  T("div", O, [
80
- e.type === "input" ? c((d(), r("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[0] || (t[0] = (n) => o.value = n)
85
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => n.value = o)
86
86
  }, null, 8, U)), [
87
- [f, o.value]
87
+ [p, n.value]
88
88
  ]) : i("", !0),
89
- e.type === "textarea" ? c((d(), r("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[1] || (t[1] = (n) => o.value = n)
94
- }, null, 8, w)), [
95
- [f, o.value]
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($, [["__scopeId", "data-v-94c7c82e"]]);
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
- confirm: IConfirm;
379
+ alert: IAlert;
380
380
  }
381
381
  }
382
382
 
383
383
 
384
384
  declare module 'vue-popup-plus' {
385
385
  interface PopupCustomProperties {
386
- album: IAlbum;
386
+ loading: ILoading;
387
387
  }
388
388
  }
389
389
 
390
390
 
391
391
  declare module 'vue-popup-plus' {
392
392
  interface PopupCustomProperties {
393
- prompt: IPrompt;
393
+ dialog: IDialog;
394
394
  }
395
395
  }
396
396
 
397
397
 
398
398
  declare module 'vue-popup-plus' {
399
399
  interface PopupCustomProperties {
400
- dialog: IDialog;
400
+ confirm: IConfirm;
401
401
  }
402
402
  }
403
403
 
404
404
 
405
405
  declare module 'vue-popup-plus' {
406
406
  interface PopupCustomProperties {
407
- alert: IAlert;
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
- loading: ILoading;
421
+ prompt: IPrompt;
422
422
  }
423
423
  }