vue-popup-plus-plugin-preset 1.3.3 → 1.4.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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as ee, inject as te, ref as c, computed as g, watch as ne, onBeforeMount as le, onMounted as oe, onBeforeUnmount as ae, createElementBlock as o, openBlock as a, createElementVNode as v, createCommentVNode as d, Fragment as T, renderList as se, normalizeStyle as re, createTextVNode as ie, toDisplayString as B } from "vue";
1
+ import { defineComponent as ee, inject as te, ref as c, computed as g, watch as ne, onBeforeMount as le, onMounted as oe, onBeforeUnmount as se, createElementBlock as o, openBlock as s, createElementVNode as d, createCommentVNode as v, Fragment as N, renderList as ae, normalizeStyle as re, normalizeClass as ie, toDisplayString as B } from "vue";
2
2
  import { usePopup as ue, POPUP_COMPONENT_INJECTS as ce } from "vue-popup-plus";
3
3
  import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  function ve(n) {
@@ -13,33 +13,33 @@ function pe(n, {
13
13
  }
14
14
  } = {}) {
15
15
  try {
16
- me(n) ? D() : t ? I() : window.open(n);
17
- } catch (s) {
16
+ me(n) ? P() : t ? I() : window.open(n);
17
+ } catch (a) {
18
18
  console.error(`free download error:
19
- `, s);
19
+ `, a);
20
20
  }
21
- function D() {
22
- const s = document.createElement("a");
23
- s.setAttribute("download", l), s.href = n, s.click(), h(l);
21
+ function P() {
22
+ const a = document.createElement("a");
23
+ a.setAttribute("download", l), a.href = n, a.click(), h(l);
24
24
  }
25
25
  function I() {
26
- let s;
26
+ let a;
27
27
  try {
28
- s = new XMLHttpRequest();
28
+ a = new XMLHttpRequest();
29
29
  } catch {
30
30
  throw new Error("当前浏览器不支持XMLHttpRequest,无法下载");
31
31
  }
32
- s.open("GET", n, !0), s.responseType = "blob";
32
+ a.open("GET", n, !0), a.responseType = "blob";
33
33
  for (const f in u)
34
- Object.hasOwnProperty.call(u, f) && s.setRequestHeader(f, u[f]);
35
- s.onload = function() {
36
- if (s.status === 200) {
37
- const f = window.URL.createObjectURL(s.response), m = document.createElement("a");
34
+ Object.hasOwnProperty.call(u, f) && a.setRequestHeader(f, u[f]);
35
+ a.onload = function() {
36
+ if (a.status === 200) {
37
+ const f = window.URL.createObjectURL(a.response), m = document.createElement("a");
38
38
  m.href = f, m.download = l, m.click(), h(l);
39
39
  }
40
40
  };
41
41
  try {
42
- s.send();
42
+ a.send();
43
43
  } catch {
44
44
  return;
45
45
  }
@@ -80,7 +80,7 @@ const p = {
80
80
  EXE: "exe",
81
81
  UNKNOWN: "unknown"
82
82
  /* UNKNOWN */
83
- }, z = /* @__PURE__ */ new Map([
83
+ }, X = /* @__PURE__ */ new Map([
84
84
  [p.IMAGE, ["jpg", "jpeg", "png", "gif"]],
85
85
  [
86
86
  p.VIDEO,
@@ -101,7 +101,7 @@ class x {
101
101
  // 文件类型
102
102
  static FILE_TYPES = p;
103
103
  // 文件类型后缀映射
104
- static FILE_TYPE_SUFFIX_MAP = z;
104
+ static FILE_TYPE_SUFFIX_MAP = X;
105
105
  // 文件id
106
106
  id = "";
107
107
  // 文件地址
@@ -120,7 +120,7 @@ class x {
120
120
  }
121
121
  // 类型
122
122
  get type() {
123
- for (const [t, l] of z)
123
+ for (const [t, l] of X)
124
124
  if (l.some((u) => u === this.suffix))
125
125
  return t;
126
126
  return p.UNKNOWN;
@@ -180,90 +180,90 @@ const be = ["src"], he = ["poster", "src"], we = {
180
180
  }, Ee = {
181
181
  key: 0,
182
182
  class: "info count"
183
- }, ke = { class: "current" }, xe = {
183
+ }, ke = { class: "number current" }, xe = { class: "number" }, Pe = {
184
184
  key: 1,
185
185
  class: "emyty"
186
- }, De = {
186
+ }, Ie = {
187
187
  key: 1,
188
188
  class: "tools left"
189
- }, Ie = {
189
+ }, Oe = {
190
190
  key: 2,
191
191
  class: "tools right"
192
- }, Oe = {
192
+ }, Se = {
193
193
  key: 3,
194
194
  class: "tools bottom"
195
- }, Pe = {
195
+ }, De = {
196
196
  key: 1,
197
197
  class: "emyty"
198
- }, Se = { class: "center" }, Ue = {
198
+ }, Ce = { class: "center" }, Ue = {
199
199
  key: 3,
200
200
  class: "emyty"
201
- }, Ce = /* @__PURE__ */ ee({
201
+ }, Me = /* @__PURE__ */ ee({
202
202
  name: "PAlbum",
203
203
  __name: "PAlbum",
204
204
  props: {
205
205
  sources: {},
206
206
  defaultIndex: {},
207
- countDisabled: { type: Boolean },
208
- nameDisabled: { type: Boolean },
209
- downloadDisabled: { type: Boolean },
210
- pureDisabled: { type: Boolean },
211
- scaleDisabled: { type: Boolean },
212
- dragDisabled: { type: Boolean }
207
+ disableCounter: { type: Boolean },
208
+ disableName: { type: Boolean },
209
+ disableDownload: { type: Boolean },
210
+ disablePure: { type: Boolean },
211
+ disableScale: { type: Boolean },
212
+ disableDrag: { type: Boolean }
213
213
  },
214
214
  setup(n) {
215
- const t = ue(), l = te(ce.INSTANCE_ID), u = c(n.defaultIndex), h = c(1), D = c(30), I = c(0.01), s = c(3), f = c(1.5), m = c(h.value), k = c(!1), O = c(0), P = c(0), L = c(0), N = c(0), S = c(0), U = c(0), y = c(!1), w = g(() => x.FILE_TYPES), b = g(
215
+ const t = ue(), l = te(ce.INSTANCE_ID), u = c(n.defaultIndex), h = c(1), P = c(30), I = c(0.01), a = c(3), f = c(1.5), m = c(h.value), k = c(!1), O = c(0), S = c(0), L = c(0), T = c(0), D = c(0), C = c(0), y = c(!1), w = g(() => x.FILE_TYPES), b = g(
216
216
  () => n.sources.map((i) => new x(i)).filter(
217
217
  (i) => [w.value.IMAGE, w.value.VIDEO].includes(i.type)
218
218
  )
219
219
  ), E = g(() => b.value[u.value]), A = g(() => ({
220
- transform: `translate(${S.value}px, ${U.value}px) scale(${m.value})`,
220
+ transform: `translate(${D.value}px, ${C.value}px) scale(${m.value})`,
221
221
  transitionDuration: k.value ? "0s" : void 0
222
222
  })), j = g(() => u.value !== 0), R = g(
223
223
  () => u.value !== b.value.length - 1 && b.value.length
224
- ), C = g(
224
+ ), U = g(
225
225
  () => E.value && E.value.type === w.value.IMAGE
226
226
  );
227
227
  ne(u, () => {
228
- G();
228
+ V();
229
229
  }), le(() => {
230
230
  n.defaultIndex >= 0 && n.defaultIndex < b.value.length && (u.value = n.defaultIndex);
231
231
  }), oe(() => {
232
232
  window.addEventListener("mousemove", F), window.addEventListener("mouseup", $);
233
- }), ae(() => {
233
+ }), se(() => {
234
234
  window.removeEventListener("mousemove", F), window.removeEventListener("mouseup", $);
235
235
  });
236
236
  function Y() {
237
237
  u.value--;
238
238
  }
239
- function V() {
239
+ function G() {
240
240
  u.value++;
241
241
  }
242
- function M(i, e = s.value) {
243
- C.value && (i ? m.value = Math.min(
242
+ function M(i, e = a.value) {
243
+ U.value && (i ? m.value = Math.min(
244
244
  m.value * e,
245
- D.value
245
+ P.value
246
246
  ) : m.value = Math.max(
247
247
  m.value / e,
248
248
  I.value
249
249
  ));
250
250
  }
251
- function G() {
251
+ function V() {
252
252
  m.value = h.value;
253
253
  }
254
254
  function W(i) {
255
- if (n.scaleDisabled) return;
255
+ if (n.disableScale) return;
256
256
  const e = i.wheelDelta > 0;
257
257
  M(e, f.value);
258
258
  }
259
259
  function q(i) {
260
- n.dragDisabled || (O.value = i.clientX, P.value = i.clientY, k.value = !0, i.stopPropagation(), i.preventDefault());
260
+ n.disableDrag || (O.value = i.clientX, S.value = i.clientY, k.value = !0, i.stopPropagation(), i.preventDefault());
261
261
  }
262
262
  function F(i) {
263
- k.value && (S.value = L.value + i.clientX - O.value, U.value = N.value + i.clientY - P.value);
263
+ k.value && (D.value = L.value + i.clientX - O.value, C.value = T.value + i.clientY - S.value);
264
264
  }
265
265
  function $() {
266
- O.value = 0, P.value = 0, L.value = S.value, N.value = U.value, k.value = !1;
266
+ O.value = 0, S.value = 0, L.value = D.value, T.value = C.value, k.value = !1;
267
267
  }
268
268
  function H() {
269
269
  ge(E.value.name), t.toast("复制成功");
@@ -275,31 +275,32 @@ const be = ["src"], he = ["poster", "src"], we = {
275
275
  y.value && (y.value = !1, t.toast("退出纯净模式"));
276
276
  }
277
277
  function Z() {
278
- n.downloadDisabled || pe(E.value.url, {
278
+ n.disableDownload || pe(E.value.url, {
279
279
  allowCrossOrigin: !0
280
280
  });
281
281
  }
282
282
  function Q() {
283
283
  t.destroy(l);
284
284
  }
285
- return (i, e) => (a(), o("div", {
285
+ return (i, e) => (s(), o("div", {
286
286
  class: "p-media-album",
287
287
  onDblclick: e[10] || (e[10] = (r) => K())
288
288
  }, [
289
- v("div", {
289
+ d("div", {
290
290
  class: "media",
291
291
  onWheel: e[1] || (e[1] = (r) => W(r))
292
292
  }, [
293
- (a(!0), o(T, null, se(b.value, (r, X) => (a(), o(T, null, [
294
- X === u.value ? (a(), o(T, { key: 0 }, [
295
- r.type === w.value.IMAGE ? (a(), o("img", {
296
- key: `media-${X}-${r.url}`,
293
+ (s(!0), o(N, null, ae(b.value, (r, z) => (s(), o(N, null, [
294
+ z === u.value ? (s(), o(N, { key: 0 }, [
295
+ r.type === w.value.IMAGE ? (s(), o("img", {
296
+ class: ie({ "is-draggable": !n.disableDrag }),
297
+ key: `media-${z}-${r.url}`,
297
298
  src: r.url,
298
299
  style: re(A.value),
299
300
  onMousedown: e[0] || (e[0] = (_) => q(_)),
300
301
  dragable: "false"
301
- }, null, 44, be)) : d("", !0),
302
- r.type === w.value.VIDEO ? (a(), o("video", {
302
+ }, null, 46, be)) : v("", !0),
303
+ r.type === w.value.VIDEO ? (s(), o("video", {
303
304
  key: 1,
304
305
  poster: r.poster,
305
306
  src: r.url,
@@ -307,80 +308,81 @@ const be = ["src"], he = ["poster", "src"], we = {
307
308
  controlslist: "nodownload noremoteplayback noplaybackrate",
308
309
  disablePictureInPicture: "",
309
310
  disableRemotePlayback: ""
310
- }, null, 8, he)) : d("", !0)
311
- ], 64)) : d("", !0)
311
+ }, null, 8, he)) : v("", !0)
312
+ ], 64)) : v("", !0)
312
313
  ], 64))), 256))
313
314
  ], 32),
314
- y.value ? d("", !0) : (a(), o("div", we, [
315
- n.countDisabled ? (a(), o("div", xe)) : (a(), o("div", Ee, [
316
- v("span", ke, B(`${u.value + 1} `), 1),
317
- ie("/ " + B(b.value.length), 1)
315
+ y.value ? v("", !0) : (s(), o("div", we, [
316
+ n.disableCounter ? (s(), o("div", Pe)) : (s(), o("div", Ee, [
317
+ d("span", ke, B(`${u.value + 1} `), 1),
318
+ e[11] || (e[11] = d("span", { class: "connect" }, "/", -1)),
319
+ d("span", xe, B(b.value.length), 1)
318
320
  ])),
319
- n.nameDisabled ? d("", !0) : (a(), o("div", {
321
+ n.disableName ? v("", !0) : (s(), o("div", {
320
322
  key: 2,
321
323
  class: "control name",
322
324
  onClick: e[2] || (e[2] = (r) => H())
323
325
  }, B(E.value.name), 1)),
324
- v("div", {
326
+ d("div", {
325
327
  class: "control close",
326
328
  onClick: e[3] || (e[3] = (r) => Q())
327
- }, [...e[11] || (e[11] = [
328
- v("i", { class: "iconfont-popup-plugin-preset album-close" }, null, -1)
329
+ }, [...e[12] || (e[12] = [
330
+ d("i", { class: "iconfont-popup-plugin-preset album-close" }, null, -1)
329
331
  ])])
330
332
  ])),
331
- y.value ? d("", !0) : (a(), o("div", De, [
332
- j.value ? (a(), o("div", {
333
+ y.value ? v("", !0) : (s(), o("div", Ie, [
334
+ j.value ? (s(), o("div", {
333
335
  key: 0,
334
336
  class: "control back",
335
337
  onClick: e[4] || (e[4] = (r) => Y())
336
- }, [...e[12] || (e[12] = [
337
- v("i", { class: "iconfont-popup-plugin-preset album-prev" }, null, -1)
338
- ])])) : d("", !0)
338
+ }, [...e[13] || (e[13] = [
339
+ d("i", { class: "iconfont-popup-plugin-preset album-prev" }, null, -1)
340
+ ])])) : v("", !0)
339
341
  ])),
340
- y.value ? d("", !0) : (a(), o("div", Ie, [
341
- R.value ? (a(), o("div", {
342
+ y.value ? v("", !0) : (s(), o("div", Oe, [
343
+ R.value ? (s(), o("div", {
342
344
  key: 0,
343
345
  class: "control next",
344
- onClick: e[5] || (e[5] = (r) => V())
345
- }, [...e[13] || (e[13] = [
346
- v("i", { class: "iconfont-popup-plugin-preset album-next" }, null, -1)
347
- ])])) : d("", !0)
346
+ onClick: e[5] || (e[5] = (r) => G())
347
+ }, [...e[14] || (e[14] = [
348
+ d("i", { class: "iconfont-popup-plugin-preset album-next" }, null, -1)
349
+ ])])) : v("", !0)
348
350
  ])),
349
- y.value ? d("", !0) : (a(), o("div", Oe, [
350
- n.pureDisabled ? (a(), o("div", Pe)) : (a(), o("div", {
351
+ y.value ? v("", !0) : (s(), o("div", Se, [
352
+ n.disablePure ? (s(), o("div", De)) : (s(), o("div", {
351
353
  key: 0,
352
354
  class: "control",
353
355
  onClick: e[6] || (e[6] = (r) => J())
354
- }, [...e[14] || (e[14] = [
355
- v("i", { class: "iconfont-popup-plugin-preset album-pure" }, null, -1)
356
+ }, [...e[15] || (e[15] = [
357
+ d("i", { class: "iconfont-popup-plugin-preset album-pure" }, null, -1)
356
358
  ])])),
357
- v("div", Se, [
358
- !n.scaleDisabled && C.value ? (a(), o("div", {
359
+ d("div", Ce, [
360
+ !n.disableScale && U.value ? (s(), o("div", {
359
361
  key: 0,
360
362
  class: "control",
361
- onClick: e[7] || (e[7] = (r) => M(!0, s.value))
362
- }, [...e[15] || (e[15] = [
363
- v("i", { class: "iconfont-popup-plugin-preset album-enlarge" }, null, -1)
364
- ])])) : d("", !0),
365
- !n.scaleDisabled && C.value ? (a(), o("div", {
363
+ onClick: e[7] || (e[7] = (r) => M(!0, a.value))
364
+ }, [...e[16] || (e[16] = [
365
+ d("i", { class: "iconfont-popup-plugin-preset album-enlarge" }, null, -1)
366
+ ])])) : v("", !0),
367
+ !n.disableScale && U.value ? (s(), o("div", {
366
368
  key: 1,
367
369
  class: "control",
368
- onClick: e[8] || (e[8] = (r) => M(!1, s.value))
369
- }, [...e[16] || (e[16] = [
370
- v("i", { class: "iconfont-popup-plugin-preset album-narrow" }, null, -1)
371
- ])])) : d("", !0)
370
+ onClick: e[8] || (e[8] = (r) => M(!1, a.value))
371
+ }, [...e[17] || (e[17] = [
372
+ d("i", { class: "iconfont-popup-plugin-preset album-narrow" }, null, -1)
373
+ ])])) : v("", !0)
372
374
  ]),
373
- n.downloadDisabled ? (a(), o("div", Ue)) : (a(), o("div", {
375
+ n.disableDownload ? (s(), o("div", Ue)) : (s(), o("div", {
374
376
  key: 2,
375
377
  class: "control download",
376
378
  onClick: e[9] || (e[9] = (r) => Z())
377
- }, [...e[17] || (e[17] = [
378
- v("i", { class: "iconfont-popup-plugin-preset download" }, null, -1)
379
+ }, [...e[18] || (e[18] = [
380
+ d("i", { class: "iconfont-popup-plugin-preset download" }, null, -1)
379
381
  ])]))
380
382
  ]))
381
383
  ], 32));
382
384
  }
383
- }), Le = /* @__PURE__ */ de(Ce, [["__scopeId", "data-v-9ef9f86f"]]);
385
+ }), Te = /* @__PURE__ */ de(Me, [["__scopeId", "data-v-e03b9968"]]);
384
386
  export {
385
- Le as default
387
+ Te as default
386
388
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as i, inject as c, createElementBlock as f, openBlock as m, createVNode as t, withCtx as e, createElementVNode as u, toDisplayString as l, createTextVNode as p } from "vue";
2
2
  import { usePopup as P, POPUP_COMPONENT_INJECTS as C } from "vue-popup-plus";
3
- import { P as g, a as _, b as B } from "./PBody-AzUGJHWU.js";
3
+ import { P as g, a as _, b as B } from "./PBody-dDV4yMXv.js";
4
4
  import { P as h } from "./PFooter-Cp_J7xg-.js";
5
5
  import { P as N, a as x } from "./PButtonGroup-C-RNjqPq.js";
6
6
  import { _ as y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -13,7 +13,7 @@ const V = { class: "p-scaffold" }, x = { class: "body" }, j = /* @__PURE__ */ p(
13
13
  c(a.$slots, "footer", {}, void 0, !0)
14
14
  ]));
15
15
  }
16
- }), Z = /* @__PURE__ */ g(j, [["__scopeId", "data-v-a0759a9a"]]), U = /* @__PURE__ */ p({
16
+ }), Z = /* @__PURE__ */ g(j, [["__scopeId", "data-v-001c1189"]]), U = /* @__PURE__ */ p({
17
17
  name: "PHeaderButton",
18
18
  __name: "PHeaderButton",
19
19
  props: {
@@ -64,26 +64,26 @@ const V = { class: "p-scaffold" }, x = { class: "body" }, j = /* @__PURE__ */ p(
64
64
  I((t) => ({
65
65
  v7e42c502: `${t.height}px`
66
66
  }));
67
- const l = L(), h = E(k.INSTANCE_ID), v = E(k.COMPUTED_VIEW_STYLE), C = a, i = s(0), d = s(0), P = s(0), $ = s(0), _ = s(0), B = s(0), b = s(!1), Y = w(() => !!e.iconClass);
68
- T([_, B], M);
67
+ const l = L(), h = E(k.INSTANCE_ID), v = E(k.COMPUTED_VIEW_STYLE), C = a, i = s(0), d = s(0), P = s(0), $ = s(0), _ = s(0), b = s(0), B = s(!1), Y = w(() => !!e.iconClass);
68
+ T([_, b], M);
69
69
  function D() {
70
70
  e.hasCloseButton && C("close");
71
71
  }
72
72
  function X(t) {
73
- e.draggable && (i.value = t.clientX, d.value = t.clientY, P.value = v.value.translateX, $.value = v.value.translateY, b.value = !0, t.preventDefault(), window.addEventListener("mousemove", y), window.addEventListener("mouseup", O));
73
+ e.draggable && (i.value = t.clientX, d.value = t.clientY, P.value = v.value.translateX, $.value = v.value.translateY, B.value = !0, t.preventDefault(), window.addEventListener("mousemove", y), window.addEventListener("mouseup", O));
74
74
  }
75
75
  function y(t) {
76
- if (!b.value) return;
76
+ if (!B.value) return;
77
77
  const n = t.clientX - i.value, m = t.clientY - d.value;
78
- _.value = P.value + n, B.value = $.value + m;
78
+ _.value = P.value + n, b.value = $.value + m;
79
79
  }
80
80
  function O(t) {
81
- b.value = !1, window.removeEventListener("mousemove", y), window.removeEventListener("mouseup", O);
81
+ B.value = !1, window.removeEventListener("mousemove", y), window.removeEventListener("mouseup", O);
82
82
  }
83
83
  function M() {
84
84
  l.update(h, {
85
85
  viewTranslateX: _.value,
86
- viewTranslateY: B.value
86
+ viewTranslateY: b.value
87
87
  });
88
88
  }
89
89
  return (t, n) => (o(), r("div", {
@@ -120,7 +120,7 @@ const V = { class: "p-scaffold" }, x = { class: "body" }, j = /* @__PURE__ */ p(
120
120
  c(a.$slots, "default", {}, void 0, !0)
121
121
  ], 2));
122
122
  }
123
- }), te = /* @__PURE__ */ g(G, [["__scopeId", "data-v-232de61d"]]);
123
+ }), te = /* @__PURE__ */ g(G, [["__scopeId", "data-v-109bf0c1"]]);
124
124
  export {
125
125
  Z as P,
126
126
  te as a,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as m, inject as u, createElementBlock as C, openBlock as p, createVNode as t, withCtx as e, createElementVNode as P, toDisplayString as a, createTextVNode as d } from "vue";
2
2
  import { usePopup as g, POPUP_COMPONENT_INJECTS as x } from "vue-popup-plus";
3
- import { P as B, a as y, b as N } from "./PBody-AzUGJHWU.js";
3
+ import { P as B, a as y, b as N } from "./PBody-dDV4yMXv.js";
4
4
  import { P as T } from "./PFooter-Cp_J7xg-.js";
5
5
  import { P as _, a as f } from "./PButtonGroup-C-RNjqPq.js";
6
6
  import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, inject as m, ref as h, computed as t, defineAsyncComponent as v, onMounted as B, createElementBlock as b, openBlock as a, normalizeClass as k, createVNode as l, createSlots as E, withCtx as n, createBlock as u, resolveDynamicComponent as N, mergeProps as S, createCommentVNode as D } from "vue";
2
2
  import { usePopup as I, POPUP_COMPONENT_INJECTS as c } from "vue-popup-plus";
3
- import { P as M, a as T, b as w, c as x } from "./PBody-AzUGJHWU.js";
3
+ import { P as M, a as T, b as w, c as x } from "./PBody-dDV4yMXv.js";
4
4
  import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const V = /* @__PURE__ */ y({
6
6
  name: "PDialog",
@@ -0,0 +1,73 @@
1
+ import { defineComponent as l, useCssVars as p, createElementBlock as i, openBlock as n, normalizeClass as _, createElementVNode as s, inject as f, createVNode as c, createCommentVNode as r, createBlock as P, toDisplayString as g, withCtx as d, createTextVNode as h } from "vue";
2
+ import { usePopup as C, POPUP_COMPONENT_INJECTS as x } from "vue-popup-plus";
3
+ import { _ as m } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import { P as I, a as N } from "./PButtonGroup-C-RNjqPq.js";
5
+ const v = /* @__PURE__ */ l({
6
+ name: "PLoadingIcon",
7
+ __name: "PLoadingIcon",
8
+ props: {
9
+ theme: { default: "primary" },
10
+ size: { default: 60 }
11
+ },
12
+ setup(e) {
13
+ return p((t) => ({
14
+ v35198121: `${t.size}px`
15
+ })), (t, o) => (n(), i("div", {
16
+ class: _(["p-loading-icon", `is-theme-${e.theme}`])
17
+ }, [...o[0] || (o[0] = [
18
+ s("svg", { viewBox: "25 25 50 50" }, [
19
+ s("circle", {
20
+ cx: "50",
21
+ cy: "50",
22
+ fill: "none",
23
+ r: "20"
24
+ })
25
+ ], -1)
26
+ ])], 2));
27
+ }
28
+ }), y = /* @__PURE__ */ m(v, [["__scopeId", "data-v-2c246d61"]]), z = { class: "p-loading" }, B = {
29
+ key: 0,
30
+ class: "title"
31
+ }, k = /* @__PURE__ */ l({
32
+ name: "PLoading",
33
+ __name: "PLoading",
34
+ props: {
35
+ theme: {},
36
+ title: {},
37
+ iconSize: {},
38
+ debugMode: { type: Boolean }
39
+ },
40
+ setup(e) {
41
+ const t = C(), o = f(x.INSTANCE_ID);
42
+ function u() {
43
+ t.destroy(o);
44
+ }
45
+ return (L, a) => (n(), i("div", z, [
46
+ c(y, {
47
+ size: e.iconSize,
48
+ theme: e.theme
49
+ }, null, 8, ["size", "theme"]),
50
+ e.title ? (n(), i("div", B, g(e.title), 1)) : r("", !0),
51
+ e.debugMode ? (n(), P(I, {
52
+ key: 1,
53
+ align: "center"
54
+ }, {
55
+ default: d(() => [
56
+ c(N, {
57
+ onClick: u,
58
+ theme: "primary"
59
+ }, {
60
+ default: d(() => [...a[0] || (a[0] = [
61
+ h("强制关闭遮罩(仅在调试模式下可用)", -1)
62
+ ])]),
63
+ _: 1
64
+ })
65
+ ]),
66
+ _: 1
67
+ })) : r("", !0)
68
+ ]));
69
+ }
70
+ }), M = /* @__PURE__ */ m(k, [["__scopeId", "data-v-c71a204e"]]);
71
+ export {
72
+ M as default
73
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as y, inject as C, ref as v, computed as B, createElementBlock as d, openBlock as r, createVNode as l, withCtx as a, createCommentVNode as s, createElementVNode as N, toDisplayString as i, withDirectives as f, vModelText as p, createTextVNode as g } from "vue";
2
2
  import { usePopup as T, POPUP_COMPONENT_INJECTS as V } from "vue-popup-plus";
3
3
  import "./vue-popup-plus-plugin-preset.js";
4
- import { P as k, a as L, b } from "./PBody-AzUGJHWU.js";
4
+ import { P as k, a as L, b } from "./PBody-dDV4yMXv.js";
5
5
  import { P as E } from "./PFooter-Cp_J7xg-.js";
6
6
  import { P as I, a as h } from "./PButtonGroup-C-RNjqPq.js";
7
7
  import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,8 +1,7 @@
1
1
  import { defineComponent as a, inject as i, onMounted as m, createElementBlock as r, openBlock as c, normalizeClass as d, createElementVNode as o, toDisplayString as l } from "vue";
2
2
  import { usePopup as p, POPUP_COMPONENT_INJECTS as u } from "vue-popup-plus";
3
- import "./vue-popup-plus-plugin-preset.js";
4
- import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const _ = { class: "content" }, f = /* @__PURE__ */ a({
3
+ import { _ as f } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const P = { class: "content" }, _ = /* @__PURE__ */ a({
6
5
  name: "PToast",
7
6
  __name: "PToast",
8
7
  props: {
@@ -21,10 +20,10 @@ const _ = { class: "content" }, f = /* @__PURE__ */ a({
21
20
  }, [
22
21
  t[0] || (t[0] = o("div", { class: "mask" }, null, -1)),
23
22
  t[1] || (t[1] = o("div", { class: "mask-background" }, null, -1)),
24
- o("div", _, l(e.content), 1)
23
+ o("div", P, l(e.content), 1)
25
24
  ], 2));
26
25
  }
27
- }), E = /* @__PURE__ */ P(f, [["__scopeId", "data-v-b911c797"]]);
26
+ }), C = /* @__PURE__ */ f(_, [["__scopeId", "data-v-91202cf8"]]);
28
27
  export {
29
- E as default
28
+ C as default
30
29
  };