@squirrel-cloud/ui-vue 0.4.18 → 0.4.20
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,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as R, computed as b, createBlock as C, openBlock as m, unref as u, normalizeClass as U, withCtx as E, createCommentVNode as L, createTextVNode as Se, resolveDynamicComponent as
|
|
2
|
-
import { WarningFilled as Je, CloseFilled as Qe, InfoFilled as Ve, CheckFilled as et, JumpTo as
|
|
3
|
-
import
|
|
4
|
-
import { RouterLink as
|
|
5
|
-
import { autoUpdate as
|
|
1
|
+
import { defineComponent as R, computed as b, createBlock as C, openBlock as m, unref as u, normalizeClass as U, withCtx as E, createCommentVNode as L, createTextVNode as Se, resolveDynamicComponent as re, toDisplayString as K, h as Me, ref as z, watch as ue, createElementBlock as $, normalizeStyle as X, onMounted as ce, onBeforeUnmount as ge, Transition as he, withDirectives as oe, createElementVNode as I, renderSlot as N, vShow as ve, useSlots as Be, createVNode as S, inject as fe, provide as ke, toRef as se, mergeModels as Z, useModel as le, vModelCheckbox as Ke, toRaw as _e, Fragment as ne, renderList as de, useAttrs as Ae, Teleport as Ge, mergeProps as pe, shallowRef as ie, withModifiers as me, nextTick as ze, vModelDynamic as vt, vModelText as mt, render as Ue, cloneVNode as ht, Text as gt, Comment as bt, vModelRadio as Ze } from "vue";
|
|
2
|
+
import { WarningFilled as Je, CloseFilled as Qe, InfoFilled as Ve, CheckFilled as et, JumpTo as yt, CaretUp as xt, Loading as Re, Check as _t, Close as De, Bold as $t, Italic as kt, Underline as wt, Strikethrough as qt, Hide as tt, ListUl as Ct, ListOl as St, View as st, ArrowLeft as nt, ArrowRight as ot, ZoomIn as Bt, ZoomOut as zt, FlipHorizontal as Rt, FlipVertical as Tt, Clockwise as Lt, Couterclockwise as It, FitSize as Mt, Fullscreen as Et, Ellipsis as At } from "@squirrel-cloud/icons-vue";
|
|
3
|
+
import Dt from "markdown-it";
|
|
4
|
+
import { RouterLink as Ot } from "vue-router";
|
|
5
|
+
import { autoUpdate as Pt, computePosition as Nt, offset as Ft, flip as Ut, shift as Vt } from "@floating-ui/dom";
|
|
6
6
|
const Oe = {
|
|
7
7
|
primary: Ve,
|
|
8
8
|
success: et,
|
|
9
9
|
info: Ve,
|
|
10
10
|
error: Qe,
|
|
11
11
|
warn: Je
|
|
12
|
-
},
|
|
13
|
-
name:
|
|
12
|
+
}, Ht = "sq-alert", Xo = /* @__PURE__ */ R({
|
|
13
|
+
name: Ht,
|
|
14
14
|
__name: "alert",
|
|
15
15
|
props: {
|
|
16
16
|
type: { default: "info" },
|
|
@@ -27,7 +27,7 @@ const Oe = {
|
|
|
27
27
|
class: U(["sq-alert", n.value])
|
|
28
28
|
}, {
|
|
29
29
|
default: E(() => [
|
|
30
|
-
t.value ? (m(), C(
|
|
30
|
+
t.value ? (m(), C(re(t.value), { key: 0 })) : L("", !0),
|
|
31
31
|
Se(" " + K(o.text), 1)
|
|
32
32
|
]),
|
|
33
33
|
_: 1
|
|
@@ -48,13 +48,13 @@ function Pe() {
|
|
|
48
48
|
return getComputedStyle(t).getPropertyValue(n).trim();
|
|
49
49
|
}
|
|
50
50
|
function o(n) {
|
|
51
|
-
return typeof n == "
|
|
51
|
+
return typeof n == "number" ? `${n}px` : n;
|
|
52
52
|
}
|
|
53
53
|
return { getCssVar: d, getCssUnit: o };
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Wt() {
|
|
56
56
|
function d(o = [0.3, 0.8], n = [0.1, 0.3], t = [0, 360]) {
|
|
57
|
-
const { getRandomNum: s } =
|
|
57
|
+
const { getRandomNum: s } = jt(), e = s(o, 4), r = s(n, 4), c = s(t, 4);
|
|
58
58
|
return `oklch(${e} ${r} ${c})`;
|
|
59
59
|
}
|
|
60
60
|
return {
|
|
@@ -84,7 +84,7 @@ function we() {
|
|
|
84
84
|
getOption: d
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function jt() {
|
|
88
88
|
function d(o, n = 2) {
|
|
89
89
|
const t = Math.random(), s = Math.abs(o[1] - o[0]), e = Math.min(...o) + t * s;
|
|
90
90
|
return Number(e.toFixed(n));
|
|
@@ -135,7 +135,7 @@ qe.prototype.attrJoin = function(o, n) {
|
|
|
135
135
|
const t = this.attrIndex(o);
|
|
136
136
|
t < 0 ? this.attrPush([o, n]) : this.attrs[t][1] = this.attrs[t][1] + " " + n;
|
|
137
137
|
};
|
|
138
|
-
function
|
|
138
|
+
function Xt(d) {
|
|
139
139
|
d.core.ruler.push("task-lists", (o) => {
|
|
140
140
|
var t, s;
|
|
141
141
|
const { tokens: n } = o;
|
|
@@ -163,13 +163,13 @@ function Yt(d) {
|
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
let je = 1;
|
|
166
|
-
function
|
|
166
|
+
function Yt() {
|
|
167
167
|
function d(s, e) {
|
|
168
|
-
const r = new
|
|
168
|
+
const r = new Dt({
|
|
169
169
|
html: !0,
|
|
170
170
|
typographer: !0
|
|
171
171
|
});
|
|
172
|
-
return r.use(
|
|
172
|
+
return r.use(Xt), e && e.forEach((c) => r.use(c)), r.parse(s, "");
|
|
173
173
|
}
|
|
174
174
|
function o(s, e) {
|
|
175
175
|
const r = t(s, e) ?? [];
|
|
@@ -222,7 +222,7 @@ function Kt() {
|
|
|
222
222
|
};
|
|
223
223
|
if (i === "link_open") {
|
|
224
224
|
const y = l.attrGet("href") ?? "", x = document.location.origin;
|
|
225
|
-
y != null && y.startsWith("http") && !y.includes(x) && (v.attrs.target = "_blank", v.attrs.rel = "noopener noreferrer", v.attrs.dataOuter = "", (B = v.children) == null || B.push({ tag:
|
|
225
|
+
y != null && y.startsWith("http") && !y.includes(x) && (v.attrs.target = "_blank", v.attrs.rel = "noopener noreferrer", v.attrs.dataOuter = "", (B = v.children) == null || B.push({ tag: yt }));
|
|
226
226
|
}
|
|
227
227
|
if (i === "table_open") {
|
|
228
228
|
const y = {
|
|
@@ -328,7 +328,7 @@ function Kt() {
|
|
|
328
328
|
tokens2vueh: o
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Kt() {
|
|
332
332
|
function d(o, n = 100) {
|
|
333
333
|
let t;
|
|
334
334
|
return function(...s) {
|
|
@@ -347,8 +347,8 @@ function Gt() {
|
|
|
347
347
|
throttle: d
|
|
348
348
|
};
|
|
349
349
|
}
|
|
350
|
-
const { md2tokens:
|
|
351
|
-
name:
|
|
350
|
+
const { md2tokens: Gt, tokens2vueh: Zt } = Yt(), Jt = "sq-article", Qt = R({
|
|
351
|
+
name: Jt,
|
|
352
352
|
props: {
|
|
353
353
|
text: {
|
|
354
354
|
type: String,
|
|
@@ -368,8 +368,8 @@ const { md2tokens: Zt, tokens2vueh: Jt } = Kt(), Qt = "sq-article", es = R({
|
|
|
368
368
|
setup(d) {
|
|
369
369
|
const o = b(() => ({
|
|
370
370
|
hr: $e,
|
|
371
|
-
blur:
|
|
372
|
-
img:
|
|
371
|
+
blur: rs,
|
|
372
|
+
img: vn,
|
|
373
373
|
"input-checkbox": lt,
|
|
374
374
|
...d.customNodeMap
|
|
375
375
|
}));
|
|
@@ -379,12 +379,12 @@ const { md2tokens: Zt, tokens2vueh: Jt } = Kt(), Qt = "sq-article", es = R({
|
|
|
379
379
|
class: "sq-article",
|
|
380
380
|
innerHTML: d.text
|
|
381
381
|
});
|
|
382
|
-
const n =
|
|
383
|
-
return
|
|
382
|
+
const n = Gt(d.text, d.plugins);
|
|
383
|
+
return Zt(n, o.value);
|
|
384
384
|
};
|
|
385
385
|
}
|
|
386
|
-
}),
|
|
387
|
-
name:
|
|
386
|
+
}), es = ["src", "alt"], ts = ["textContent"], ss = "sq-avatar", Yo = /* @__PURE__ */ R({
|
|
387
|
+
name: ss,
|
|
388
388
|
__name: "avatar",
|
|
389
389
|
props: {
|
|
390
390
|
img: {},
|
|
@@ -399,12 +399,12 @@ const { md2tokens: Zt, tokens2vueh: Jt } = Kt(), Qt = "sq-article", es = R({
|
|
|
399
399
|
return o.size !== "md" && c.push(`sq-avatar--${o.size}`), o.round && c.push("is-round"), c;
|
|
400
400
|
}), s = b(() => {
|
|
401
401
|
if (!o.randomColor) return;
|
|
402
|
-
const { getRandomColor: c } =
|
|
402
|
+
const { getRandomColor: c } = Wt();
|
|
403
403
|
return {
|
|
404
404
|
"--avatar-bg-color": c()
|
|
405
405
|
};
|
|
406
406
|
}), e = b(() => o.alt.charAt(0).toUpperCase());
|
|
407
|
-
|
|
407
|
+
ue(
|
|
408
408
|
() => o.img,
|
|
409
409
|
() => {
|
|
410
410
|
n.value = !0;
|
|
@@ -422,26 +422,26 @@ const { md2tokens: Zt, tokens2vueh: Jt } = Kt(), Qt = "sq-article", es = R({
|
|
|
422
422
|
src: o.img,
|
|
423
423
|
alt: o.alt,
|
|
424
424
|
onError: r
|
|
425
|
-
}, null, 40,
|
|
425
|
+
}, null, 40, es)) : (m(), $("span", {
|
|
426
426
|
key: 1,
|
|
427
427
|
textContent: K(e.value)
|
|
428
|
-
}, null, 8,
|
|
428
|
+
}, null, 8, ts))
|
|
429
429
|
], 6));
|
|
430
430
|
}
|
|
431
|
-
}),
|
|
432
|
-
name:
|
|
431
|
+
}), ns = { class: "sq-backtop" }, os = "sq-backtop", Ko = /* @__PURE__ */ R({
|
|
432
|
+
name: os,
|
|
433
433
|
__name: "backtop",
|
|
434
434
|
props: {
|
|
435
435
|
progress: { type: Boolean, default: !0 },
|
|
436
|
-
icon: { default:
|
|
436
|
+
icon: { default: xt },
|
|
437
437
|
transition: { default: "sq-rotate-in-left" },
|
|
438
438
|
visibilityHeight: { default: 100 },
|
|
439
439
|
target: { default: "#app" },
|
|
440
440
|
progressProps: {}
|
|
441
441
|
},
|
|
442
442
|
setup(d) {
|
|
443
|
-
const { throttle: o } =
|
|
444
|
-
|
|
443
|
+
const { throttle: o } = Kt(), n = o(a), t = new ResizeObserver(l), s = d, e = z(100), r = z(0), c = b(() => r.value > s.visibilityHeight);
|
|
444
|
+
ce(() => {
|
|
445
445
|
var g;
|
|
446
446
|
l(), n(), window.addEventListener("scroll", n);
|
|
447
447
|
const p = document.querySelector(s.target) ?? document.body;
|
|
@@ -466,12 +466,12 @@ const { md2tokens: Zt, tokens2vueh: Jt } = Kt(), Qt = "sq-article", es = R({
|
|
|
466
466
|
default: E(() => {
|
|
467
467
|
var h, f, w;
|
|
468
468
|
return [
|
|
469
|
-
|
|
469
|
+
oe(I("div", ns, [
|
|
470
470
|
I("div", {
|
|
471
471
|
class: "sq-backtop-wrap",
|
|
472
472
|
onClick: i
|
|
473
473
|
}, [
|
|
474
|
-
s.progress ? (m(), C(u(
|
|
474
|
+
s.progress ? (m(), C(u(eo), {
|
|
475
475
|
key: 0,
|
|
476
476
|
variant: "circle",
|
|
477
477
|
label: !1,
|
|
@@ -482,7 +482,7 @@ const { md2tokens: Zt, tokens2vueh: Jt } = Kt(), Qt = "sq-article", es = R({
|
|
|
482
482
|
color: (w = s.progressProps) == null ? void 0 : w.color
|
|
483
483
|
}, null, 8, ["value", "max", "type", "stroke", "color"])) : L("", !0),
|
|
484
484
|
N(p.$slots, "default", {}, () => [
|
|
485
|
-
(m(), C(
|
|
485
|
+
(m(), C(re(s.icon)))
|
|
486
486
|
])
|
|
487
487
|
])
|
|
488
488
|
], 512), [
|
|
@@ -493,8 +493,8 @@ const { md2tokens: Zt, tokens2vueh: Jt } = Kt(), Qt = "sq-article", es = R({
|
|
|
493
493
|
_: 3
|
|
494
494
|
}, 8, ["name"]));
|
|
495
495
|
}
|
|
496
|
-
}),
|
|
497
|
-
name:
|
|
496
|
+
}), as = ["textContent"], ls = "sq-badge", Xe = /* @__PURE__ */ R({
|
|
497
|
+
name: ls,
|
|
498
498
|
__name: "badge",
|
|
499
499
|
props: {
|
|
500
500
|
type: { default: "error" },
|
|
@@ -518,7 +518,7 @@ const { md2tokens: Zt, tokens2vueh: Jt } = Kt(), Qt = "sq-article", es = R({
|
|
|
518
518
|
style: X({ "--badge-color": n.color })
|
|
519
519
|
}, [
|
|
520
520
|
N(c.$slots, "default"),
|
|
521
|
-
(m(), C(
|
|
521
|
+
(m(), C(re(s.value), { class: "sq-badge-label" }, {
|
|
522
522
|
default: E(() => [
|
|
523
523
|
S(he, {
|
|
524
524
|
name: u(o).default ? "sq-zoom" : ""
|
|
@@ -528,7 +528,7 @@ const { md2tokens: Zt, tokens2vueh: Jt } = Kt(), Qt = "sq-article", es = R({
|
|
|
528
528
|
key: 0,
|
|
529
529
|
class: "sq-badge-label-inner",
|
|
530
530
|
textContent: K(r.value)
|
|
531
|
-
}, null, 8,
|
|
531
|
+
}, null, 8, as)) : L("", !0)
|
|
532
532
|
]),
|
|
533
533
|
_: 1
|
|
534
534
|
}, 8, ["name"])
|
|
@@ -540,8 +540,8 @@ const { md2tokens: Zt, tokens2vueh: Jt } = Kt(), Qt = "sq-article", es = R({
|
|
|
540
540
|
_: 3
|
|
541
541
|
}));
|
|
542
542
|
}
|
|
543
|
-
}),
|
|
544
|
-
name:
|
|
543
|
+
}), is = "sq-blur", rs = /* @__PURE__ */ R({
|
|
544
|
+
name: is,
|
|
545
545
|
__name: "blur",
|
|
546
546
|
setup(d) {
|
|
547
547
|
return (o, n) => (m(), C(u(be), { class: "sq-blur" }, {
|
|
@@ -552,7 +552,7 @@ const { md2tokens: Zt, tokens2vueh: Jt } = Kt(), Qt = "sq-article", es = R({
|
|
|
552
552
|
}));
|
|
553
553
|
}
|
|
554
554
|
});
|
|
555
|
-
function
|
|
555
|
+
function us(d) {
|
|
556
556
|
const { getOption: o } = we(), n = fe(Ce, void 0), t = fe(at, void 0), s = b(
|
|
557
557
|
() => u(t) ? void 0 : d.text
|
|
558
558
|
), e = b(
|
|
@@ -592,7 +592,7 @@ function cs(d) {
|
|
|
592
592
|
);
|
|
593
593
|
return { btnTextType: s, btnSize: e, btnType: r, btnRound: c, btnDisabled: a };
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function cs(d) {
|
|
596
596
|
const { getOption: o } = we(), n = fe(Ce, void 0), t = fe(it, void 0), s = b(
|
|
597
597
|
() => {
|
|
598
598
|
var l, i;
|
|
@@ -638,7 +638,7 @@ function ds(d) {
|
|
|
638
638
|
groupContext: t
|
|
639
639
|
};
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function ds(d) {
|
|
642
642
|
const { getOption: o } = we(), n = fe(Ce, void 0), t = fe(Fe, void 0), s = b(
|
|
643
643
|
() => {
|
|
644
644
|
var a;
|
|
@@ -662,7 +662,7 @@ function fs(d) {
|
|
|
662
662
|
);
|
|
663
663
|
return { inputSize: s, inputRound: e, inputDisabled: r, inputReadonly: c, id: t };
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function fs(d) {
|
|
666
666
|
const { getOption: o } = we(), n = fe(Ce, void 0), t = fe(dt, void 0), s = b(
|
|
667
667
|
() => {
|
|
668
668
|
var l, i;
|
|
@@ -708,7 +708,7 @@ function ps(d) {
|
|
|
708
708
|
groupContext: t
|
|
709
709
|
};
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function ps(d) {
|
|
712
712
|
const { getOption: o } = we(), n = fe(ft, void 0);
|
|
713
713
|
return {
|
|
714
714
|
segmentedDisabled: b(
|
|
@@ -720,7 +720,7 @@ function vs(d) {
|
|
|
720
720
|
parentContext: n
|
|
721
721
|
};
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function vs(d) {
|
|
724
724
|
const { getOption: o } = we(), n = fe(Ce, void 0), t = fe(Fe, void 0), s = b(
|
|
725
725
|
() => {
|
|
726
726
|
var r;
|
|
@@ -738,8 +738,8 @@ function ms(d) {
|
|
|
738
738
|
);
|
|
739
739
|
return { switchSize: s, switchDisabled: e, id: t };
|
|
740
740
|
}
|
|
741
|
-
const
|
|
742
|
-
name:
|
|
741
|
+
const ms = ["disabled", "form", "type"], hs = "sq-button", j = /* @__PURE__ */ R({
|
|
742
|
+
name: hs,
|
|
743
743
|
__name: "button",
|
|
744
744
|
props: {
|
|
745
745
|
type: {},
|
|
@@ -755,7 +755,7 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
755
755
|
},
|
|
756
756
|
emits: ["click"],
|
|
757
757
|
setup(d, { emit: o }) {
|
|
758
|
-
const n = o, t = d, { btnTextType: s, btnSize: e, btnType: r, btnRound: c, btnDisabled: a } =
|
|
758
|
+
const n = o, t = d, { btnTextType: s, btnSize: e, btnType: r, btnRound: c, btnDisabled: a } = us(t), l = b(() => {
|
|
759
759
|
const g = [], h = u(e), f = u(r), w = u(c), B = u(s);
|
|
760
760
|
return h !== "md" && g.push(`sq-button--${h}`), f && g.push(`is-${f}`), w && g.push("is-round"), B && g.push("is-text"), B && t.bg && g.push("has-bg"), g;
|
|
761
761
|
}), i = b(() => t.loading ? Re : t.icon), p = b(() => t.loading || u(a));
|
|
@@ -770,15 +770,15 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
770
770
|
size: u(e) === "lg" ? "md" : u(e)
|
|
771
771
|
}, {
|
|
772
772
|
default: E(() => [
|
|
773
|
-
i.value ? (m(), C(
|
|
773
|
+
i.value ? (m(), C(re(i.value), { key: 0 })) : L("", !0),
|
|
774
774
|
N(g.$slots, "default")
|
|
775
775
|
]),
|
|
776
776
|
_: 3
|
|
777
777
|
}, 8, ["size"])
|
|
778
|
-
], 10,
|
|
778
|
+
], 10, ms));
|
|
779
779
|
}
|
|
780
|
-
}),
|
|
781
|
-
name:
|
|
780
|
+
}), gs = { class: "sq-button-group" }, bs = "sq-button-group", Go = /* @__PURE__ */ R({
|
|
781
|
+
name: bs,
|
|
782
782
|
__name: "button-group",
|
|
783
783
|
props: {
|
|
784
784
|
size: {},
|
|
@@ -796,18 +796,18 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
796
796
|
round: se(o, "round"),
|
|
797
797
|
disabled: se(o, "disabled")
|
|
798
798
|
})
|
|
799
|
-
), (n, t) => (m(), $("div",
|
|
799
|
+
), (n, t) => (m(), $("div", gs, [
|
|
800
800
|
N(n.$slots, "default")
|
|
801
801
|
]));
|
|
802
802
|
}
|
|
803
|
-
}), at = Symbol("button-group-context-keys"),
|
|
803
|
+
}), at = Symbol("button-group-context-keys"), ys = { class: "sq-card" }, xs = {
|
|
804
804
|
key: 0,
|
|
805
805
|
class: "sq-card-header"
|
|
806
|
-
},
|
|
806
|
+
}, _s = ["textContent"], $s = {
|
|
807
807
|
key: 1,
|
|
808
808
|
class: "sq-card-footer"
|
|
809
|
-
},
|
|
810
|
-
name:
|
|
809
|
+
}, ks = "sq-card", Zo = /* @__PURE__ */ R({
|
|
810
|
+
name: ks,
|
|
811
811
|
__name: "card",
|
|
812
812
|
props: {
|
|
813
813
|
title: {},
|
|
@@ -815,22 +815,22 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
815
815
|
},
|
|
816
816
|
setup(d) {
|
|
817
817
|
const o = Be(), n = d;
|
|
818
|
-
return (t, s) => (m(), $("section",
|
|
819
|
-
n.title || u(o).title ? (m(), $("div",
|
|
818
|
+
return (t, s) => (m(), $("section", ys, [
|
|
819
|
+
n.title || u(o).title ? (m(), $("div", xs, [
|
|
820
820
|
I("h2", {
|
|
821
821
|
class: U({ "has-decorative": n.decorative }),
|
|
822
822
|
textContent: K(n.title)
|
|
823
|
-
}, null, 10,
|
|
823
|
+
}, null, 10, _s),
|
|
824
824
|
N(t.$slots, "title")
|
|
825
825
|
])) : L("", !0),
|
|
826
826
|
N(t.$slots, "default"),
|
|
827
|
-
u(o).footer ? (m(), $("div",
|
|
827
|
+
u(o).footer ? (m(), $("div", $s, [
|
|
828
828
|
N(t.$slots, "footer")
|
|
829
829
|
])) : L("", !0)
|
|
830
830
|
]));
|
|
831
831
|
}
|
|
832
|
-
}),
|
|
833
|
-
name:
|
|
832
|
+
}), ws = ["autofocus", "name", "form", "value", "disabled"], qs = ["textContent"], Cs = "sq-checkbox", lt = /* @__PURE__ */ R({
|
|
833
|
+
name: Cs,
|
|
834
834
|
__name: "checkbox",
|
|
835
835
|
props: /* @__PURE__ */ Z({
|
|
836
836
|
form: {},
|
|
@@ -855,23 +855,23 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
855
855
|
checkboxName: c,
|
|
856
856
|
checkboxVariant: a,
|
|
857
857
|
groupContext: l
|
|
858
|
-
} =
|
|
858
|
+
} = cs(t), i = le(d, "checked"), p = b(() => {
|
|
859
859
|
const h = [], f = u(s), w = u(e), B = u(a);
|
|
860
860
|
return f !== "md" && h.push(`sq-selection--${f}`), g.value && h.push("is-checked"), w && h.push("is-disabled"), B && h.push(`is-${B}`), h;
|
|
861
861
|
}), g = b(() => l ? u(l).list.includes(t.value) : i.value);
|
|
862
|
-
return
|
|
862
|
+
return ue(g, (h) => {
|
|
863
863
|
if (i.value !== h) {
|
|
864
864
|
i.value = h;
|
|
865
865
|
return;
|
|
866
866
|
}
|
|
867
|
-
}),
|
|
867
|
+
}), ue(i, (h) => {
|
|
868
868
|
g.value !== h && l && l.value.toggleItem(t.value);
|
|
869
|
-
}),
|
|
869
|
+
}), ce(() => {
|
|
870
870
|
i.value = g.value;
|
|
871
871
|
}), (h, f) => (m(), $("label", {
|
|
872
872
|
class: U(["sq-selection sq-checkbox", p.value])
|
|
873
873
|
}, [
|
|
874
|
-
|
|
874
|
+
oe(I("input", {
|
|
875
875
|
type: "checkbox",
|
|
876
876
|
autofocus: t.autofocus,
|
|
877
877
|
name: u(c),
|
|
@@ -880,14 +880,14 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
880
880
|
disabled: u(e),
|
|
881
881
|
"onUpdate:modelValue": f[0] || (f[0] = (w) => i.value = w),
|
|
882
882
|
onChange: f[1] || (f[1] = (w) => n("change", i.value))
|
|
883
|
-
}, null, 40,
|
|
883
|
+
}, null, 40, ws), [
|
|
884
884
|
[Ke, i.value]
|
|
885
885
|
]),
|
|
886
886
|
u(a) !== "solid" ? (m(), $("span", {
|
|
887
887
|
key: 0,
|
|
888
888
|
class: U(["sq-checkbox-box", { "is-indeterminate": t.indeterminate && !g.value }])
|
|
889
889
|
}, [
|
|
890
|
-
g.value ? (m(), C(u(
|
|
890
|
+
g.value ? (m(), C(u(_t), {
|
|
891
891
|
key: 0,
|
|
892
892
|
class: "sq-checkbox-inner"
|
|
893
893
|
})) : L("", !0)
|
|
@@ -896,11 +896,11 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
896
896
|
key: 1,
|
|
897
897
|
class: "sq-selection-label",
|
|
898
898
|
textContent: K(t.label)
|
|
899
|
-
}, null, 8,
|
|
899
|
+
}, null, 8, qs)) : L("", !0)
|
|
900
900
|
], 2));
|
|
901
901
|
}
|
|
902
|
-
}),
|
|
903
|
-
name:
|
|
902
|
+
}), Ss = { class: "sq-checkbox-group sq-selection-group" }, Bs = "sq-checkbox-group", zs = /* @__PURE__ */ R({
|
|
903
|
+
name: Bs,
|
|
904
904
|
__name: "checkbox-group",
|
|
905
905
|
props: {
|
|
906
906
|
items: { default: () => [] },
|
|
@@ -925,7 +925,7 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
925
925
|
list: e,
|
|
926
926
|
toggleItem: c
|
|
927
927
|
})
|
|
928
|
-
),
|
|
928
|
+
), ue(
|
|
929
929
|
() => s.value,
|
|
930
930
|
(a) => {
|
|
931
931
|
const l = a || [], i = [.../* @__PURE__ */ new Set([...l, e.value])];
|
|
@@ -935,7 +935,7 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
935
935
|
function c(a) {
|
|
936
936
|
e.value.includes(a) ? e.value = e.value.filter((l) => l !== a) : e.value.push(a), t("change", _e(e.value)), t("update:value", _e(e.value));
|
|
937
937
|
}
|
|
938
|
-
return (a, l) => (m(), $("div",
|
|
938
|
+
return (a, l) => (m(), $("div", Ss, [
|
|
939
939
|
N(a.$slots, "default", {}, () => [
|
|
940
940
|
(m(!0), $(ne, null, de(s.items, (i, p) => (m(), C(u(lt), {
|
|
941
941
|
key: p,
|
|
@@ -945,8 +945,8 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
945
945
|
])
|
|
946
946
|
]));
|
|
947
947
|
}
|
|
948
|
-
}), it = Symbol("checkbox-group-context-keys"),
|
|
949
|
-
name:
|
|
948
|
+
}), it = Symbol("checkbox-group-context-keys"), Rs = "sq-mask", rt = /* @__PURE__ */ R({
|
|
949
|
+
name: Rs,
|
|
950
950
|
inheritAttrs: !1,
|
|
951
951
|
__name: "mask",
|
|
952
952
|
props: /* @__PURE__ */ Z({
|
|
@@ -962,7 +962,7 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
962
962
|
const { nextZIndex: n } = Ne(), t = Ae();
|
|
963
963
|
let s;
|
|
964
964
|
const e = o, r = d, c = z(0), a = z(!1), l = le(d, "visible");
|
|
965
|
-
a.value = l.value,
|
|
965
|
+
a.value = l.value, ue(l, (h) => {
|
|
966
966
|
const f = document.scrollingElement;
|
|
967
967
|
h ? (s = f.style.overflow, f.style.overflow = "hidden", c.value = n(), a.value = !0, document.addEventListener("keydown", i)) : (f.style.overflow = s, document.removeEventListener("keydown", i));
|
|
968
968
|
}), ge(() => {
|
|
@@ -994,7 +994,7 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
994
994
|
onAfterLeave: f[3] || (f[3] = (w) => e("closed"))
|
|
995
995
|
}, {
|
|
996
996
|
default: E(() => [
|
|
997
|
-
a.value ?
|
|
997
|
+
a.value ? oe((m(), $("div", pe({
|
|
998
998
|
key: 0,
|
|
999
999
|
class: "sq-mask",
|
|
1000
1000
|
style: { zIndex: c.value }
|
|
@@ -1008,14 +1008,14 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1008
1008
|
})
|
|
1009
1009
|
]));
|
|
1010
1010
|
}
|
|
1011
|
-
}),
|
|
1011
|
+
}), Ts = {
|
|
1012
1012
|
key: 0,
|
|
1013
1013
|
class: "sq-dialog-header"
|
|
1014
|
-
},
|
|
1014
|
+
}, Ls = ["textContent"], Is = { class: "sq-dialog-body" }, Ms = {
|
|
1015
1015
|
key: 1,
|
|
1016
1016
|
class: "sq-dialog-footer"
|
|
1017
|
-
},
|
|
1018
|
-
name:
|
|
1017
|
+
}, Es = "sq-dialog", Jo = /* @__PURE__ */ R({
|
|
1018
|
+
name: Es,
|
|
1019
1019
|
inheritAttrs: !1,
|
|
1020
1020
|
__name: "dialog",
|
|
1021
1021
|
props: /* @__PURE__ */ Z({
|
|
@@ -1083,8 +1083,8 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1083
1083
|
class: U(["sq-dialog", i.value]),
|
|
1084
1084
|
style: X(u(t).style)
|
|
1085
1085
|
}, [
|
|
1086
|
-
l.value ? (m(), $("div",
|
|
1087
|
-
p.value ? (m(), C(
|
|
1086
|
+
l.value ? (m(), $("div", Ts, [
|
|
1087
|
+
p.value ? (m(), C(re(p.value), {
|
|
1088
1088
|
key: 0,
|
|
1089
1089
|
class: "sq-dialog-header-icon"
|
|
1090
1090
|
})) : L("", !0),
|
|
@@ -1092,17 +1092,17 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1092
1092
|
I("span", {
|
|
1093
1093
|
class: "sq-dialog-header-title",
|
|
1094
1094
|
textContent: K(e.title)
|
|
1095
|
-
}, null, 8,
|
|
1095
|
+
}, null, 8, Ls)
|
|
1096
1096
|
]),
|
|
1097
1097
|
S(u(De), {
|
|
1098
1098
|
class: "sq-dialog-close",
|
|
1099
1099
|
onClick: B
|
|
1100
1100
|
})
|
|
1101
1101
|
])) : L("", !0),
|
|
1102
|
-
I("div",
|
|
1102
|
+
I("div", Is, [
|
|
1103
1103
|
N(P.$slots, "default")
|
|
1104
1104
|
]),
|
|
1105
|
-
e.footer ? (m(), $("div",
|
|
1105
|
+
e.footer ? (m(), $("div", Ms, [
|
|
1106
1106
|
N(P.$slots, "footer", {}, () => [
|
|
1107
1107
|
S(u(j), pe(h.value, { onClick: B }), {
|
|
1108
1108
|
default: E(() => [
|
|
@@ -1123,8 +1123,8 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1123
1123
|
_: 3
|
|
1124
1124
|
}, 8, ["visible", "before-close"]));
|
|
1125
1125
|
}
|
|
1126
|
-
}),
|
|
1127
|
-
name:
|
|
1126
|
+
}), As = "sq-divider", $e = /* @__PURE__ */ R({
|
|
1127
|
+
name: As,
|
|
1128
1128
|
__name: "divider",
|
|
1129
1129
|
props: {
|
|
1130
1130
|
direction: { default: "horizontal" },
|
|
@@ -1154,8 +1154,8 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1154
1154
|
}, 8, ["ellipsis", "size"])) : L("", !0)
|
|
1155
1155
|
], 6));
|
|
1156
1156
|
}
|
|
1157
|
-
}),
|
|
1158
|
-
name:
|
|
1157
|
+
}), Ds = "sq-editor-bold", Os = /* @__PURE__ */ R({
|
|
1158
|
+
name: Ds,
|
|
1159
1159
|
__name: "editor-bold",
|
|
1160
1160
|
props: {
|
|
1161
1161
|
disabled: { type: Boolean },
|
|
@@ -1181,14 +1181,14 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1181
1181
|
}
|
|
1182
1182
|
i = `**${i}**`, r[s.selectedRow] = `${a}${i}${l}`, t("updateText", r, 0, 4);
|
|
1183
1183
|
}
|
|
1184
|
-
return o({ setBold: e }), (r, c) => (m(), C(u(
|
|
1184
|
+
return o({ setBold: e }), (r, c) => (m(), C(u(ae), {
|
|
1185
1185
|
tip: "加粗 ( Ctrl + B )",
|
|
1186
1186
|
disabled: s.disabled
|
|
1187
1187
|
}, {
|
|
1188
1188
|
default: E(() => [
|
|
1189
1189
|
S(u(j), {
|
|
1190
1190
|
text: "",
|
|
1191
|
-
icon: u(
|
|
1191
|
+
icon: u($t),
|
|
1192
1192
|
disabled: s.disabled,
|
|
1193
1193
|
onClick: e
|
|
1194
1194
|
}, null, 8, ["icon", "disabled"])
|
|
@@ -1196,8 +1196,8 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1196
1196
|
_: 1
|
|
1197
1197
|
}, 8, ["disabled"]));
|
|
1198
1198
|
}
|
|
1199
|
-
}),
|
|
1200
|
-
name:
|
|
1199
|
+
}), Ps = "sq-editor-italic", Ns = /* @__PURE__ */ R({
|
|
1200
|
+
name: Ps,
|
|
1201
1201
|
__name: "editor-italic",
|
|
1202
1202
|
props: {
|
|
1203
1203
|
disabled: { type: Boolean },
|
|
@@ -1231,14 +1231,14 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1231
1231
|
}
|
|
1232
1232
|
i = `*${i}*`, r[s.selectedRow] = `${a}${i}${l}`, t("updateText", r, 0, 2);
|
|
1233
1233
|
}
|
|
1234
|
-
return o({ setItalic: e }), (r, c) => (m(), C(u(
|
|
1234
|
+
return o({ setItalic: e }), (r, c) => (m(), C(u(ae), {
|
|
1235
1235
|
tip: "斜体 ( Ctrl + I )",
|
|
1236
1236
|
disabled: s.disabled
|
|
1237
1237
|
}, {
|
|
1238
1238
|
default: E(() => [
|
|
1239
1239
|
S(u(j), {
|
|
1240
1240
|
text: "",
|
|
1241
|
-
icon: u(
|
|
1241
|
+
icon: u(kt),
|
|
1242
1242
|
disabled: s.disabled,
|
|
1243
1243
|
onClick: e
|
|
1244
1244
|
}, null, 8, ["icon", "disabled"])
|
|
@@ -1246,8 +1246,8 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1246
1246
|
_: 1
|
|
1247
1247
|
}, 8, ["disabled"]));
|
|
1248
1248
|
}
|
|
1249
|
-
}),
|
|
1250
|
-
name:
|
|
1249
|
+
}), Fs = "sq-editor-underline", Us = /* @__PURE__ */ R({
|
|
1250
|
+
name: Fs,
|
|
1251
1251
|
__name: "editor-underline",
|
|
1252
1252
|
props: {
|
|
1253
1253
|
disabled: { type: Boolean },
|
|
@@ -1273,14 +1273,14 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1273
1273
|
}
|
|
1274
1274
|
p = `<u>${p}</u>`, r[s.selectedRow] = `${a}${p}${l}`, t("updateText", r, 0, 7);
|
|
1275
1275
|
}
|
|
1276
|
-
return o({ setUnderline: e }), (r, c) => (m(), C(u(
|
|
1276
|
+
return o({ setUnderline: e }), (r, c) => (m(), C(u(ae), {
|
|
1277
1277
|
tip: "下划线 ( Ctrl + U )",
|
|
1278
1278
|
disabled: s.disabled
|
|
1279
1279
|
}, {
|
|
1280
1280
|
default: E(() => [
|
|
1281
1281
|
S(u(j), {
|
|
1282
1282
|
text: "",
|
|
1283
|
-
icon: u(
|
|
1283
|
+
icon: u(wt),
|
|
1284
1284
|
disabled: s.disabled,
|
|
1285
1285
|
onClick: e
|
|
1286
1286
|
}, null, 8, ["icon", "disabled"])
|
|
@@ -1288,8 +1288,8 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1288
1288
|
_: 1
|
|
1289
1289
|
}, 8, ["disabled"]));
|
|
1290
1290
|
}
|
|
1291
|
-
}),
|
|
1292
|
-
name:
|
|
1291
|
+
}), Vs = "sq-editor-strikethrough", Hs = /* @__PURE__ */ R({
|
|
1292
|
+
name: Vs,
|
|
1293
1293
|
__name: "editor-strikethrough",
|
|
1294
1294
|
props: {
|
|
1295
1295
|
disabled: { type: Boolean },
|
|
@@ -1311,14 +1311,14 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1311
1311
|
}
|
|
1312
1312
|
l = `~~${l}~~`, e[t.selectedRow] = `${c}${l}${a}`, n("updateText", e, 0, 4);
|
|
1313
1313
|
}
|
|
1314
|
-
return (e, r) => (m(), C(u(
|
|
1314
|
+
return (e, r) => (m(), C(u(ae), {
|
|
1315
1315
|
tip: "删除线",
|
|
1316
1316
|
disabled: t.disabled
|
|
1317
1317
|
}, {
|
|
1318
1318
|
default: E(() => [
|
|
1319
1319
|
S(u(j), {
|
|
1320
1320
|
text: "",
|
|
1321
|
-
icon: u(
|
|
1321
|
+
icon: u(qt),
|
|
1322
1322
|
disabled: t.disabled,
|
|
1323
1323
|
onClick: s
|
|
1324
1324
|
}, null, 8, ["icon", "disabled"])
|
|
@@ -1326,8 +1326,8 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1326
1326
|
_: 1
|
|
1327
1327
|
}, 8, ["disabled"]));
|
|
1328
1328
|
}
|
|
1329
|
-
}),
|
|
1330
|
-
name:
|
|
1329
|
+
}), Ws = "sq-editor-blur", js = /* @__PURE__ */ R({
|
|
1330
|
+
name: Ws,
|
|
1331
1331
|
__name: "editor-blur",
|
|
1332
1332
|
props: {
|
|
1333
1333
|
disabled: { type: Boolean },
|
|
@@ -1353,7 +1353,7 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1353
1353
|
}
|
|
1354
1354
|
i = `<blur>${i}</blur>`, e[t.selectedRow] = `${c}${i}${a}`, n("updateText", e, 0, 13);
|
|
1355
1355
|
}
|
|
1356
|
-
return (e, r) => (m(), C(u(
|
|
1356
|
+
return (e, r) => (m(), C(u(ae), {
|
|
1357
1357
|
tip: "模糊块",
|
|
1358
1358
|
disabled: t.disabled
|
|
1359
1359
|
}, {
|
|
@@ -1368,8 +1368,8 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1368
1368
|
_: 1
|
|
1369
1369
|
}, 8, ["disabled"]));
|
|
1370
1370
|
}
|
|
1371
|
-
}),
|
|
1372
|
-
name:
|
|
1371
|
+
}), Xs = "sq-editor-ul", Ys = /* @__PURE__ */ R({
|
|
1372
|
+
name: Xs,
|
|
1373
1373
|
__name: "editor-ul",
|
|
1374
1374
|
props: {
|
|
1375
1375
|
disabled: { type: Boolean },
|
|
@@ -1403,14 +1403,14 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1403
1403
|
function c(a) {
|
|
1404
1404
|
return a.replace(" ", "").match(/^\d+\.\s/)[0];
|
|
1405
1405
|
}
|
|
1406
|
-
return (a, l) => (m(), C(u(
|
|
1406
|
+
return (a, l) => (m(), C(u(ae), {
|
|
1407
1407
|
tip: "无序列表",
|
|
1408
1408
|
disabled: t.disabled
|
|
1409
1409
|
}, {
|
|
1410
1410
|
default: E(() => [
|
|
1411
1411
|
S(u(j), {
|
|
1412
1412
|
text: "",
|
|
1413
|
-
icon: u(
|
|
1413
|
+
icon: u(Ct),
|
|
1414
1414
|
disabled: t.disabled,
|
|
1415
1415
|
onClick: s
|
|
1416
1416
|
}, null, 8, ["icon", "disabled"])
|
|
@@ -1418,8 +1418,8 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1418
1418
|
_: 1
|
|
1419
1419
|
}, 8, ["disabled"]));
|
|
1420
1420
|
}
|
|
1421
|
-
}),
|
|
1422
|
-
name:
|
|
1421
|
+
}), Ks = "sq-editor-ol", Gs = /* @__PURE__ */ R({
|
|
1422
|
+
name: Ks,
|
|
1423
1423
|
__name: "editor-ol",
|
|
1424
1424
|
props: {
|
|
1425
1425
|
disabled: { type: Boolean },
|
|
@@ -1458,14 +1458,14 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1458
1458
|
function c(a) {
|
|
1459
1459
|
return a.replace(" ", "").match(/^\d+\.\s/)[0];
|
|
1460
1460
|
}
|
|
1461
|
-
return (a, l) => (m(), C(u(
|
|
1461
|
+
return (a, l) => (m(), C(u(ae), {
|
|
1462
1462
|
tip: "有序列表",
|
|
1463
1463
|
disabled: t.disabled
|
|
1464
1464
|
}, {
|
|
1465
1465
|
default: E(() => [
|
|
1466
1466
|
S(u(j), {
|
|
1467
1467
|
text: "",
|
|
1468
|
-
icon: u(
|
|
1468
|
+
icon: u(St),
|
|
1469
1469
|
disabled: t.disabled,
|
|
1470
1470
|
onClick: s
|
|
1471
1471
|
}, null, 8, ["icon", "disabled"])
|
|
@@ -1473,8 +1473,8 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1473
1473
|
_: 1
|
|
1474
1474
|
}, 8, ["disabled"]));
|
|
1475
1475
|
}
|
|
1476
|
-
}),
|
|
1477
|
-
name:
|
|
1476
|
+
}), Zs = { class: "sq-editor-body" }, Js = { class: "sq-editor-toolbar" }, Qs = { class: "sq-editor-control" }, en = "sq-editor", Qo = /* @__PURE__ */ R({
|
|
1477
|
+
name: en,
|
|
1478
1478
|
__name: "editor",
|
|
1479
1479
|
props: /* @__PURE__ */ Z({
|
|
1480
1480
|
round: { type: Boolean },
|
|
@@ -1501,7 +1501,7 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1501
1501
|
}
|
|
1502
1502
|
];
|
|
1503
1503
|
let n;
|
|
1504
|
-
const t = d, s = z("edit"), e = z([]), r = z(!1), c = z(""), a = z(), l = z({}), i =
|
|
1504
|
+
const t = d, s = z("edit"), e = z([]), r = z(!1), c = z(""), a = z(), l = z({}), i = ie(null), p = ie(null), g = ie(null), h = ie(
|
|
1505
1505
|
null
|
|
1506
1506
|
), f = le(d, "value"), w = b(() => {
|
|
1507
1507
|
const y = [];
|
|
@@ -1514,7 +1514,7 @@ const hs = ["disabled", "form", "type"], gs = "sq-button", j = /* @__PURE__ */ R
|
|
|
1514
1514
|
), P = b(
|
|
1515
1515
|
() => typeof t.beforePreview == "function" ? t.beforePreview(f.value) : f.value
|
|
1516
1516
|
);
|
|
1517
|
-
|
|
1517
|
+
ce(() => {
|
|
1518
1518
|
document.addEventListener("selectionchange", Y), document.addEventListener("click", H);
|
|
1519
1519
|
}), ge(() => {
|
|
1520
1520
|
document.removeEventListener("selectionchange", Y), document.removeEventListener("click", H);
|
|
@@ -1621,9 +1621,9 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1621
1621
|
onClick: x[2] || (x[2] = me(() => {
|
|
1622
1622
|
}, ["stop"]))
|
|
1623
1623
|
}, [
|
|
1624
|
-
|
|
1625
|
-
I("div",
|
|
1626
|
-
S(
|
|
1624
|
+
oe(I("div", Zs, [
|
|
1625
|
+
I("div", Js, [
|
|
1626
|
+
S(Os, {
|
|
1627
1627
|
ref_key: "boldRef",
|
|
1628
1628
|
ref: p,
|
|
1629
1629
|
disabled: !B.value,
|
|
@@ -1633,7 +1633,7 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1633
1633
|
"select-info": l.value,
|
|
1634
1634
|
onUpdateText: v
|
|
1635
1635
|
}, null, 8, ["disabled", "rows", "selected-val", "selected-row", "select-info"]),
|
|
1636
|
-
S(
|
|
1636
|
+
S(Ns, {
|
|
1637
1637
|
ref_key: "italicRef",
|
|
1638
1638
|
ref: g,
|
|
1639
1639
|
disabled: !B.value,
|
|
@@ -1643,7 +1643,7 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1643
1643
|
"select-info": l.value,
|
|
1644
1644
|
onUpdateText: v
|
|
1645
1645
|
}, null, 8, ["disabled", "rows", "selected-val", "selected-row", "select-info"]),
|
|
1646
|
-
S(
|
|
1646
|
+
S(Us, {
|
|
1647
1647
|
ref_key: "underlineRef",
|
|
1648
1648
|
ref: h,
|
|
1649
1649
|
disabled: !B.value,
|
|
@@ -1653,7 +1653,7 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1653
1653
|
"select-info": l.value,
|
|
1654
1654
|
onUpdateText: v
|
|
1655
1655
|
}, null, 8, ["disabled", "rows", "selected-val", "selected-row", "select-info"]),
|
|
1656
|
-
S(
|
|
1656
|
+
S(Hs, {
|
|
1657
1657
|
disabled: !B.value,
|
|
1658
1658
|
rows: e.value,
|
|
1659
1659
|
"selected-val": c.value,
|
|
@@ -1661,7 +1661,7 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1661
1661
|
"select-info": l.value,
|
|
1662
1662
|
onUpdateText: v
|
|
1663
1663
|
}, null, 8, ["disabled", "rows", "selected-val", "selected-row", "select-info"]),
|
|
1664
|
-
S(
|
|
1664
|
+
S(js, {
|
|
1665
1665
|
disabled: !B.value,
|
|
1666
1666
|
rows: e.value,
|
|
1667
1667
|
"selected-val": c.value,
|
|
@@ -1670,7 +1670,7 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1670
1670
|
onUpdateText: v
|
|
1671
1671
|
}, null, 8, ["disabled", "rows", "selected-val", "selected-row", "select-info"]),
|
|
1672
1672
|
S(u($e), { direction: "vertical" }),
|
|
1673
|
-
S(
|
|
1673
|
+
S(Ys, {
|
|
1674
1674
|
disabled: !D.value,
|
|
1675
1675
|
rows: e.value,
|
|
1676
1676
|
"selected-val": c.value,
|
|
@@ -1678,7 +1678,7 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1678
1678
|
"select-info": l.value,
|
|
1679
1679
|
onUpdateText: v
|
|
1680
1680
|
}, null, 8, ["disabled", "rows", "selected-val", "selected-row", "select-info"]),
|
|
1681
|
-
S(
|
|
1681
|
+
S(Gs, {
|
|
1682
1682
|
disabled: !D.value,
|
|
1683
1683
|
rows: e.value,
|
|
1684
1684
|
"selected-val": c.value,
|
|
@@ -1706,12 +1706,12 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1706
1706
|
], 512), [
|
|
1707
1707
|
[ve, s.value === "edit"]
|
|
1708
1708
|
]),
|
|
1709
|
-
s.value === "preview" ? (m(), C(u(
|
|
1709
|
+
s.value === "preview" ? (m(), C(u(Qt), {
|
|
1710
1710
|
key: 0,
|
|
1711
1711
|
text: P.value
|
|
1712
1712
|
}, null, 8, ["text"])) : L("", !0),
|
|
1713
|
-
I("div",
|
|
1714
|
-
S(u(
|
|
1713
|
+
I("div", Qs, [
|
|
1714
|
+
S(u(co), {
|
|
1715
1715
|
size: t.size,
|
|
1716
1716
|
round: t.round,
|
|
1717
1717
|
disabled: t.disabled,
|
|
@@ -1724,8 +1724,8 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1724
1724
|
])
|
|
1725
1725
|
], 2));
|
|
1726
1726
|
}
|
|
1727
|
-
}),
|
|
1728
|
-
name:
|
|
1727
|
+
}), tn = ["textContent", "for"], sn = { class: "sq-form-item-content" }, nn = ["textContent"], on = "sq-form-item", an = /* @__PURE__ */ R({
|
|
1728
|
+
name: on,
|
|
1729
1729
|
__name: "form-item",
|
|
1730
1730
|
props: {
|
|
1731
1731
|
label: {},
|
|
@@ -1742,12 +1742,12 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1742
1742
|
const a = [];
|
|
1743
1743
|
return n.isRequired && a.push("is-required"), a;
|
|
1744
1744
|
}), r = b(() => ["input", "switch"].includes(n.type));
|
|
1745
|
-
|
|
1745
|
+
ue(
|
|
1746
1746
|
() => n.errorMsg,
|
|
1747
1747
|
(a) => {
|
|
1748
1748
|
a && (s.value = a);
|
|
1749
1749
|
}
|
|
1750
|
-
),
|
|
1750
|
+
), ce(() => {
|
|
1751
1751
|
r.value && (t.value = `sq-form-item-${o()}`);
|
|
1752
1752
|
});
|
|
1753
1753
|
function c() {
|
|
@@ -1762,8 +1762,8 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1762
1762
|
class: U(["sq-form-item-label", e.value]),
|
|
1763
1763
|
textContent: K(n.label),
|
|
1764
1764
|
for: n.type !== "custom" ? t.value : void 0
|
|
1765
|
-
}, null, 10,
|
|
1766
|
-
I("div",
|
|
1765
|
+
}, null, 10, tn)) : L("", !0),
|
|
1766
|
+
I("div", sn, [
|
|
1767
1767
|
N(a.$slots, "default"),
|
|
1768
1768
|
S(he, {
|
|
1769
1769
|
appear: "",
|
|
@@ -1771,10 +1771,10 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1771
1771
|
onAfterLeave: c
|
|
1772
1772
|
}, {
|
|
1773
1773
|
default: E(() => [
|
|
1774
|
-
|
|
1774
|
+
oe(I("span", {
|
|
1775
1775
|
class: "sq-form-item-check",
|
|
1776
1776
|
textContent: K(s.value)
|
|
1777
|
-
}, null, 8,
|
|
1777
|
+
}, null, 8, nn), [
|
|
1778
1778
|
[ve, n.errorMsg]
|
|
1779
1779
|
])
|
|
1780
1780
|
]),
|
|
@@ -1783,8 +1783,8 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1783
1783
|
])
|
|
1784
1784
|
], 4));
|
|
1785
1785
|
}
|
|
1786
|
-
}),
|
|
1787
|
-
name:
|
|
1786
|
+
}), ln = "sq-form", ea = /* @__PURE__ */ R({
|
|
1787
|
+
name: ln,
|
|
1788
1788
|
__name: "form",
|
|
1789
1789
|
props: {
|
|
1790
1790
|
round: { type: Boolean, default: void 0 },
|
|
@@ -1823,7 +1823,7 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1823
1823
|
const k = e.step;
|
|
1824
1824
|
return k === void 0 ? e.items : e.items.filter((_) => _.step === void 0 ? _ : Array.isArray(_.step) ? _.step.includes(k) : _.step === k);
|
|
1825
1825
|
});
|
|
1826
|
-
|
|
1826
|
+
ce(() => {
|
|
1827
1827
|
t = structuredClone(_e(e.formData));
|
|
1828
1828
|
});
|
|
1829
1829
|
function g(k) {
|
|
@@ -1897,7 +1897,7 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1897
1897
|
onSubmit: _[0] || (_[0] = me(() => {
|
|
1898
1898
|
}, ["prevent"]))
|
|
1899
1899
|
}, [
|
|
1900
|
-
(m(!0), $(ne, null, de(p.value, (v, y) => (m(), C(
|
|
1900
|
+
(m(!0), $(ne, null, de(p.value, (v, y) => (m(), C(an, {
|
|
1901
1901
|
class: U(v.itemClass),
|
|
1902
1902
|
type: v.type,
|
|
1903
1903
|
key: y,
|
|
@@ -1920,7 +1920,7 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1920
1920
|
onChange: (x) => f(v.binding, "change", v.rule),
|
|
1921
1921
|
onInput: (x) => f(v.binding, "input", v.rule),
|
|
1922
1922
|
onBlur: (x) => f(v.binding, "blur", v.rule)
|
|
1923
|
-
}), null, 16, ["name", "status", "suffix-icon", "value", "onUpdate:value", "onChange", "onInput", "onBlur"])) : v.type === "checkbox" ? (m(), C(u(
|
|
1923
|
+
}), null, 16, ["name", "status", "suffix-icon", "value", "onUpdate:value", "onChange", "onInput", "onBlur"])) : v.type === "checkbox" ? (m(), C(u(zs), pe({
|
|
1924
1924
|
key: 1,
|
|
1925
1925
|
ref_for: !0
|
|
1926
1926
|
}, v.props, {
|
|
@@ -1928,7 +1928,7 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1928
1928
|
value: e.formData[v.binding],
|
|
1929
1929
|
"onUpdate:value": (x) => e.formData[v.binding] = x,
|
|
1930
1930
|
onChange: (x) => f(v.binding, "change", v.rule)
|
|
1931
|
-
}), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : v.type === "radio" ? (m(), C(u(
|
|
1931
|
+
}), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : v.type === "radio" ? (m(), C(u(ro), pe({
|
|
1932
1932
|
key: 2,
|
|
1933
1933
|
ref_for: !0
|
|
1934
1934
|
}, v.props, {
|
|
@@ -1936,7 +1936,7 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1936
1936
|
value: e.formData[v.binding],
|
|
1937
1937
|
"onUpdate:value": (x) => e.formData[v.binding] = x,
|
|
1938
1938
|
onChange: (x) => f(v.binding, "change", v.rule)
|
|
1939
|
-
}), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : v.type === "switch" ? (m(), C(u(
|
|
1939
|
+
}), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : v.type === "switch" ? (m(), C(u(yo), pe({
|
|
1940
1940
|
key: 3,
|
|
1941
1941
|
ref_for: !0
|
|
1942
1942
|
}, v.props, {
|
|
@@ -1951,17 +1951,17 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1951
1951
|
}, 1032, ["class", "type", "label-width", "label", "show-label", "is-required", "error-msg"]))), 128))
|
|
1952
1952
|
], 38));
|
|
1953
1953
|
}
|
|
1954
|
-
}), Ce = Symbol("form-context-keys"), Fe = Symbol("form-item-id-keys"),
|
|
1954
|
+
}), Ce = Symbol("form-context-keys"), Fe = Symbol("form-item-id-keys"), rn = {
|
|
1955
1955
|
key: 0,
|
|
1956
1956
|
class: "sq-image-mask"
|
|
1957
|
-
},
|
|
1957
|
+
}, un = {
|
|
1958
1958
|
key: 0,
|
|
1959
1959
|
class: "sq-image-picture"
|
|
1960
|
-
},
|
|
1960
|
+
}, cn = ["srcset", "media", "type"], dn = ["crossorigin", "alt", "src"], fn = {
|
|
1961
1961
|
key: 2,
|
|
1962
1962
|
class: "sq-image-error"
|
|
1963
|
-
},
|
|
1964
|
-
name:
|
|
1963
|
+
}, pn = "sq-image", vn = /* @__PURE__ */ R({
|
|
1964
|
+
name: pn,
|
|
1965
1965
|
__name: "image",
|
|
1966
1966
|
props: {
|
|
1967
1967
|
alt: {},
|
|
@@ -1976,11 +1976,11 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1976
1976
|
},
|
|
1977
1977
|
emits: ["load", "error"],
|
|
1978
1978
|
setup(d, { emit: o }) {
|
|
1979
|
-
const n = new IntersectionObserver(w), t = o, s = d, e = z(!1), r = z(s.src), c = z(!1), a = z(!1), l = z(!1), i =
|
|
1979
|
+
const n = new IntersectionObserver(w), t = o, s = d, e = z(!1), r = z(s.src), c = z(!1), a = z(!1), l = z(!1), i = ie(null), p = b(() => e.value && !c.value), g = b(() => ({
|
|
1980
1980
|
height: p.value ? void 0 : "var(--image-placeholder-height)",
|
|
1981
1981
|
aspectRatio: p.value ? void 0 : s.aspectRatio
|
|
1982
1982
|
}));
|
|
1983
|
-
|
|
1983
|
+
ce(() => {
|
|
1984
1984
|
n.observe(i.value);
|
|
1985
1985
|
}), ge(() => {
|
|
1986
1986
|
n.disconnect();
|
|
@@ -2009,17 +2009,17 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2009
2009
|
}, [
|
|
2010
2010
|
S(he, { name: "sq-fade" }, {
|
|
2011
2011
|
default: E(() => [
|
|
2012
|
-
e.value ? L("", !0) : (m(), $("div",
|
|
2012
|
+
e.value ? L("", !0) : (m(), $("div", rn))
|
|
2013
2013
|
]),
|
|
2014
2014
|
_: 1
|
|
2015
2015
|
}),
|
|
2016
|
-
!c.value && a.value ? (m(), $("picture",
|
|
2016
|
+
!c.value && a.value ? (m(), $("picture", un, [
|
|
2017
2017
|
(m(!0), $(ne, null, de(s.source, (O, V) => (m(), $("source", {
|
|
2018
2018
|
key: V,
|
|
2019
2019
|
srcset: O.src,
|
|
2020
2020
|
media: O.media,
|
|
2021
2021
|
type: O.type
|
|
2022
|
-
}, null, 8,
|
|
2022
|
+
}, null, 8, cn))), 128)),
|
|
2023
2023
|
I("img", {
|
|
2024
2024
|
style: X({ objectFit: s.objectFit }),
|
|
2025
2025
|
crossorigin: s.crossorigin,
|
|
@@ -2027,7 +2027,7 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2027
2027
|
src: r.value,
|
|
2028
2028
|
onLoad: h,
|
|
2029
2029
|
onError: f
|
|
2030
|
-
}, null, 44,
|
|
2030
|
+
}, null, 44, dn)
|
|
2031
2031
|
])) : L("", !0),
|
|
2032
2032
|
!c.value && a.value && s.preview ? (m(), $("div", {
|
|
2033
2033
|
key: 1,
|
|
@@ -2036,12 +2036,12 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2036
2036
|
}, [
|
|
2037
2037
|
S(u(st))
|
|
2038
2038
|
])) : L("", !0),
|
|
2039
|
-
c.value ? (m(), $("div",
|
|
2039
|
+
c.value ? (m(), $("div", fn, [
|
|
2040
2040
|
N(D.$slots, "error", {}, () => [
|
|
2041
2041
|
P[1] || (P[1] = I("span", null, "图片加载失败", -1))
|
|
2042
2042
|
])
|
|
2043
2043
|
])) : L("", !0),
|
|
2044
|
-
s.preview ? (m(), C(u(
|
|
2044
|
+
s.preview ? (m(), C(u(gn), {
|
|
2045
2045
|
key: 3,
|
|
2046
2046
|
"src-list": [r.value],
|
|
2047
2047
|
visible: l.value,
|
|
@@ -2049,8 +2049,8 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2049
2049
|
}, null, 8, ["src-list", "visible"])) : L("", !0)
|
|
2050
2050
|
], 4));
|
|
2051
2051
|
}
|
|
2052
|
-
}),
|
|
2053
|
-
name:
|
|
2052
|
+
}), mn = ["src"], hn = "sq-image-viewer", gn = /* @__PURE__ */ R({
|
|
2053
|
+
name: hn,
|
|
2054
2054
|
__name: "image-viewer",
|
|
2055
2055
|
props: /* @__PURE__ */ Z({
|
|
2056
2056
|
srcList: {},
|
|
@@ -2175,7 +2175,7 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2175
2175
|
onLoad: F,
|
|
2176
2176
|
onMousedown: me(D, ["prevent"]),
|
|
2177
2177
|
onTouchstartPassive: V
|
|
2178
|
-
}, null, 44,
|
|
2178
|
+
}, null, 44, mn),
|
|
2179
2179
|
S(u(j), {
|
|
2180
2180
|
class: "sq-image-viewer-close",
|
|
2181
2181
|
round: "",
|
|
@@ -2204,28 +2204,28 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2204
2204
|
onClick: M[5] || (M[5] = me(() => {
|
|
2205
2205
|
}, ["stop"]))
|
|
2206
2206
|
}, [
|
|
2207
|
-
S(u(
|
|
2207
|
+
S(u(ae), {
|
|
2208
2208
|
tip: "放大",
|
|
2209
2209
|
shadow: !1
|
|
2210
2210
|
}, {
|
|
2211
2211
|
default: E(() => [
|
|
2212
2212
|
S(u(j), {
|
|
2213
2213
|
text: "",
|
|
2214
|
-
icon: u(
|
|
2214
|
+
icon: u(Bt),
|
|
2215
2215
|
disabled: r.value >= e.maxScale,
|
|
2216
2216
|
onClick: _
|
|
2217
2217
|
}, null, 8, ["icon", "disabled"])
|
|
2218
2218
|
]),
|
|
2219
2219
|
_: 1
|
|
2220
2220
|
}),
|
|
2221
|
-
S(u(
|
|
2221
|
+
S(u(ae), {
|
|
2222
2222
|
tip: "缩小",
|
|
2223
2223
|
shadow: !1
|
|
2224
2224
|
}, {
|
|
2225
2225
|
default: E(() => [
|
|
2226
2226
|
S(u(j), {
|
|
2227
2227
|
text: "",
|
|
2228
|
-
icon: u(
|
|
2228
|
+
icon: u(zt),
|
|
2229
2229
|
disabled: r.value <= e.minScale,
|
|
2230
2230
|
onClick: v
|
|
2231
2231
|
}, null, 8, ["icon", "disabled"])
|
|
@@ -2233,81 +2233,81 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2233
2233
|
_: 1
|
|
2234
2234
|
}),
|
|
2235
2235
|
S(u($e), { direction: "vertical" }),
|
|
2236
|
-
S(u(
|
|
2236
|
+
S(u(ae), {
|
|
2237
2237
|
tip: "水平翻转",
|
|
2238
2238
|
shadow: !1
|
|
2239
2239
|
}, {
|
|
2240
2240
|
default: E(() => [
|
|
2241
2241
|
S(u(j), {
|
|
2242
2242
|
text: "",
|
|
2243
|
-
icon: u(
|
|
2243
|
+
icon: u(Rt),
|
|
2244
2244
|
onClick: T
|
|
2245
2245
|
}, null, 8, ["icon"])
|
|
2246
2246
|
]),
|
|
2247
2247
|
_: 1
|
|
2248
2248
|
}),
|
|
2249
|
-
S(u(
|
|
2249
|
+
S(u(ae), {
|
|
2250
2250
|
tip: "垂直翻转",
|
|
2251
2251
|
shadow: !1
|
|
2252
2252
|
}, {
|
|
2253
2253
|
default: E(() => [
|
|
2254
2254
|
S(u(j), {
|
|
2255
2255
|
text: "",
|
|
2256
|
-
icon: u(
|
|
2256
|
+
icon: u(Tt),
|
|
2257
2257
|
onClick: Q
|
|
2258
2258
|
}, null, 8, ["icon"])
|
|
2259
2259
|
]),
|
|
2260
2260
|
_: 1
|
|
2261
2261
|
}),
|
|
2262
2262
|
S(u($e), { direction: "vertical" }),
|
|
2263
|
-
S(u(
|
|
2263
|
+
S(u(ae), {
|
|
2264
2264
|
tip: "顺时针旋转",
|
|
2265
2265
|
shadow: !1
|
|
2266
2266
|
}, {
|
|
2267
2267
|
default: E(() => [
|
|
2268
2268
|
S(u(j), {
|
|
2269
2269
|
text: "",
|
|
2270
|
-
icon: u(
|
|
2270
|
+
icon: u(Lt),
|
|
2271
2271
|
onClick: M[3] || (M[3] = (W) => G(90))
|
|
2272
2272
|
}, null, 8, ["icon"])
|
|
2273
2273
|
]),
|
|
2274
2274
|
_: 1
|
|
2275
2275
|
}),
|
|
2276
|
-
S(u(
|
|
2276
|
+
S(u(ae), {
|
|
2277
2277
|
tip: "逆时针旋转",
|
|
2278
2278
|
shadow: !1
|
|
2279
2279
|
}, {
|
|
2280
2280
|
default: E(() => [
|
|
2281
2281
|
S(u(j), {
|
|
2282
2282
|
text: "",
|
|
2283
|
-
icon: u(
|
|
2283
|
+
icon: u(It),
|
|
2284
2284
|
onClick: M[4] || (M[4] = (W) => G(-90))
|
|
2285
2285
|
}, null, 8, ["icon"])
|
|
2286
2286
|
]),
|
|
2287
2287
|
_: 1
|
|
2288
2288
|
}),
|
|
2289
2289
|
S(u($e), { direction: "vertical" }),
|
|
2290
|
-
S(u(
|
|
2290
|
+
S(u(ae), {
|
|
2291
2291
|
tip: "原始大小",
|
|
2292
2292
|
shadow: !1
|
|
2293
2293
|
}, {
|
|
2294
2294
|
default: E(() => [
|
|
2295
2295
|
S(u(j), {
|
|
2296
2296
|
text: "",
|
|
2297
|
-
icon: u(
|
|
2297
|
+
icon: u(Mt),
|
|
2298
2298
|
onClick: x
|
|
2299
2299
|
}, null, 8, ["icon"])
|
|
2300
2300
|
]),
|
|
2301
2301
|
_: 1
|
|
2302
2302
|
}),
|
|
2303
|
-
S(u(
|
|
2303
|
+
S(u(ae), {
|
|
2304
2304
|
tip: "全屏",
|
|
2305
2305
|
shadow: !1
|
|
2306
2306
|
}, {
|
|
2307
2307
|
default: E(() => [
|
|
2308
2308
|
S(u(j), {
|
|
2309
2309
|
text: "",
|
|
2310
|
-
icon: u(
|
|
2310
|
+
icon: u(Et),
|
|
2311
2311
|
onClick: y
|
|
2312
2312
|
}, null, 8, ["icon"])
|
|
2313
2313
|
]),
|
|
@@ -2318,8 +2318,8 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2318
2318
|
_: 1
|
|
2319
2319
|
}, 8, ["visible", "keyboard", "mask-closeable"]));
|
|
2320
2320
|
}
|
|
2321
|
-
}),
|
|
2322
|
-
name:
|
|
2321
|
+
}), bn = ["src"], yn = "sq-image-crop", Le = 5, ta = /* @__PURE__ */ R({
|
|
2322
|
+
name: yn,
|
|
2323
2323
|
__name: "image-crop",
|
|
2324
2324
|
props: {
|
|
2325
2325
|
aspectRatio: { default: 1 },
|
|
@@ -2328,12 +2328,12 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2328
2328
|
setup(d, { expose: o }) {
|
|
2329
2329
|
const n = {};
|
|
2330
2330
|
let t = 0, s, e = !1, r;
|
|
2331
|
-
const c = d, a = z(1), l = z({ x: 0, y: 0 }), i =
|
|
2331
|
+
const c = d, a = z(1), l = z({ x: 0, y: 0 }), i = ie(null), p = ie(null), g = b(() => ({
|
|
2332
2332
|
transform: `scale(${a.value})`,
|
|
2333
2333
|
marginInlineStart: `${l.value.x}px`,
|
|
2334
2334
|
marginBlockStart: `${l.value.y}px`
|
|
2335
2335
|
}));
|
|
2336
|
-
|
|
2336
|
+
ce(() => {
|
|
2337
2337
|
document.addEventListener("mousemove", D), document.addEventListener("mouseup", B);
|
|
2338
2338
|
}), ge(() => {
|
|
2339
2339
|
document.removeEventListener("mousemove", D), document.removeEventListener("mouseup", B);
|
|
@@ -2440,14 +2440,14 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2440
2440
|
ref: p,
|
|
2441
2441
|
src: c.src,
|
|
2442
2442
|
onLoad: h
|
|
2443
|
-
}, null, 44,
|
|
2443
|
+
}, null, 44, bn)) : L("", !0)
|
|
2444
2444
|
], 36));
|
|
2445
2445
|
}
|
|
2446
|
-
}),
|
|
2446
|
+
}), xn = {
|
|
2447
2447
|
key: 0,
|
|
2448
2448
|
class: "sq-input-prefix"
|
|
2449
|
-
},
|
|
2450
|
-
name:
|
|
2449
|
+
}, _n = ["id", "disabled", "readonly", "placeholder", "type", "maxlength", "minlength", "autocomplete", "name", "autofocus", "form", "inputmode"], $n = ["id", "disabled", "readonly", "placeholder", "type", "maxlength", "minlength", "autocomplete", "name", "autofocus", "form", "inputmode", "rows", "cols"], kn = { class: "sq-input-suffix" }, wn = "sq-input", ut = /* @__PURE__ */ R({
|
|
2450
|
+
name: wn,
|
|
2451
2451
|
__name: "input",
|
|
2452
2452
|
props: /* @__PURE__ */ Z({
|
|
2453
2453
|
status: {},
|
|
@@ -2477,7 +2477,7 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2477
2477
|
}),
|
|
2478
2478
|
emits: /* @__PURE__ */ Z(["focus", "blur", "input", "change"], ["update:value"]),
|
|
2479
2479
|
setup(d, { expose: o, emit: n }) {
|
|
2480
|
-
const t = Be(), s = n, e = d, { inputSize: r, inputRound: c, inputDisabled: a, inputReadonly: l, id: i } =
|
|
2480
|
+
const t = Be(), s = n, e = d, { inputSize: r, inputRound: c, inputDisabled: a, inputReadonly: l, id: i } = ds(e), p = le(d, "value"), g = z(!1), h = z(!1), f = ie(null), w = b(() => {
|
|
2481
2481
|
const A = [], F = u(r), q = u(c), M = u(J);
|
|
2482
2482
|
return F !== "md" && A.push(`sq-input--${F}`), e.status && A.push(`is-${e.status}`), q && A.push("is-round"), M && A.push("is-disabled"), A;
|
|
2483
2483
|
}), B = b(() => u(h) ? tt : st), D = b(() => u(h) ? "text" : e.type), P = b(() => t.prefix || e.prefixIcon), O = b(() => u(g) && u(p).length), V = b(
|
|
@@ -2515,12 +2515,12 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2515
2515
|
class: U(["sq-input", w.value]),
|
|
2516
2516
|
onMousedown: y
|
|
2517
2517
|
}, [
|
|
2518
|
-
P.value ? (m(), $("span",
|
|
2518
|
+
P.value ? (m(), $("span", xn, [
|
|
2519
2519
|
N(A.$slots, "prefix", {}, () => [
|
|
2520
|
-
(m(), C(
|
|
2520
|
+
(m(), C(re(e.prefixIcon)))
|
|
2521
2521
|
])
|
|
2522
2522
|
])) : L("", !0),
|
|
2523
|
-
e.type !== "textarea" ?
|
|
2523
|
+
e.type !== "textarea" ? oe((m(), $("input", {
|
|
2524
2524
|
key: 1,
|
|
2525
2525
|
class: "sq-input-inner",
|
|
2526
2526
|
"onUpdate:modelValue": F[0] || (F[0] = (q) => p.value = q),
|
|
@@ -2542,9 +2542,9 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2542
2542
|
onBlur: v,
|
|
2543
2543
|
onInput: F[1] || (F[1] = (q) => s("input", q)),
|
|
2544
2544
|
onChange: F[2] || (F[2] = (q) => s("change", q))
|
|
2545
|
-
}, null, 40,
|
|
2545
|
+
}, null, 40, _n)), [
|
|
2546
2546
|
[vt, p.value]
|
|
2547
|
-
]) :
|
|
2547
|
+
]) : oe((m(), $("textarea", {
|
|
2548
2548
|
key: 2,
|
|
2549
2549
|
class: "sq-input-inner",
|
|
2550
2550
|
style: X({ resize: k.value }),
|
|
@@ -2569,11 +2569,11 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2569
2569
|
onBlur: v,
|
|
2570
2570
|
onInput: F[4] || (F[4] = (q) => s("input", q)),
|
|
2571
2571
|
onChange: F[5] || (F[5] = (q) => s("change", q))
|
|
2572
|
-
}, null, 44,
|
|
2572
|
+
}, null, 44, $n)), [
|
|
2573
2573
|
[mt, p.value]
|
|
2574
2574
|
]),
|
|
2575
|
-
|
|
2576
|
-
V.value ? (m(), C(
|
|
2575
|
+
oe(I("span", kn, [
|
|
2576
|
+
V.value ? (m(), C(re(B.value), {
|
|
2577
2577
|
key: 0,
|
|
2578
2578
|
class: "sq-input-suffix-pwd",
|
|
2579
2579
|
onMousedown: T
|
|
@@ -2584,15 +2584,15 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2584
2584
|
onMousedown: x
|
|
2585
2585
|
})) : L("", !0),
|
|
2586
2586
|
N(A.$slots, "suffix", {}, () => [
|
|
2587
|
-
H.value ? (m(), C(
|
|
2587
|
+
H.value ? (m(), C(re(H.value), { key: 0 })) : L("", !0)
|
|
2588
2588
|
])
|
|
2589
2589
|
], 512), [
|
|
2590
2590
|
[ve, ee.value]
|
|
2591
2591
|
])
|
|
2592
2592
|
], 34));
|
|
2593
2593
|
}
|
|
2594
|
-
}),
|
|
2595
|
-
name:
|
|
2594
|
+
}), qn = ["onClick"], Cn = ["textContent"], Sn = ["onClick"], Bn = ["textContent"], zn = "sq-menu", sa = /* @__PURE__ */ R({
|
|
2595
|
+
name: zn,
|
|
2596
2596
|
__name: "menu",
|
|
2597
2597
|
props: /* @__PURE__ */ Z({
|
|
2598
2598
|
router: { type: Boolean },
|
|
@@ -2617,7 +2617,7 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2617
2617
|
return (a, l) => (m(), $("menu", {
|
|
2618
2618
|
class: U(["sq-menu", e.value])
|
|
2619
2619
|
}, [
|
|
2620
|
-
t.router ? (m(!0), $(ne, { key: 0 }, de(t.items, (i) => (m(), C(u(
|
|
2620
|
+
t.router ? (m(!0), $(ne, { key: 0 }, de(t.items, (i) => (m(), C(u(Ot), {
|
|
2621
2621
|
custom: "",
|
|
2622
2622
|
to: { name: i.value },
|
|
2623
2623
|
key: i.value
|
|
@@ -2628,11 +2628,11 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2628
2628
|
onClick: (h) => r(i, p)
|
|
2629
2629
|
}, [
|
|
2630
2630
|
N(a.$slots, "default", pe({ ref_for: !0 }, i), () => [
|
|
2631
|
-
i.icon ? (m(), C(
|
|
2631
|
+
i.icon ? (m(), C(re(i.icon), { key: 0 })) : L("", !0),
|
|
2632
2632
|
I("span", {
|
|
2633
2633
|
textContent: K(i.text)
|
|
2634
|
-
}, null, 8,
|
|
2635
|
-
t.direction === "vertical" ?
|
|
2634
|
+
}, null, 8, Cn),
|
|
2635
|
+
t.direction === "vertical" ? oe((m(), C(u(Xe), {
|
|
2636
2636
|
key: 1,
|
|
2637
2637
|
dot: "",
|
|
2638
2638
|
"show-zero": "",
|
|
@@ -2641,7 +2641,7 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2641
2641
|
[ve, g]
|
|
2642
2642
|
]) : L("", !0)
|
|
2643
2643
|
])
|
|
2644
|
-
], 10,
|
|
2644
|
+
], 10, qn)
|
|
2645
2645
|
]),
|
|
2646
2646
|
_: 2
|
|
2647
2647
|
}, 1032, ["to"]))), 128)) : (m(!0), $(ne, { key: 1 }, de(t.items, (i) => (m(), $("li", {
|
|
@@ -2653,11 +2653,11 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2653
2653
|
onClick: (p) => c(i, p)
|
|
2654
2654
|
}, [
|
|
2655
2655
|
N(a.$slots, "default", pe({ ref_for: !0 }, i), () => [
|
|
2656
|
-
i.icon ? (m(), C(
|
|
2656
|
+
i.icon ? (m(), C(re(i.icon), { key: 0 })) : L("", !0),
|
|
2657
2657
|
I("span", {
|
|
2658
2658
|
textContent: K(i.text)
|
|
2659
|
-
}, null, 8,
|
|
2660
|
-
t.direction === "vertical" ?
|
|
2659
|
+
}, null, 8, Bn),
|
|
2660
|
+
t.direction === "vertical" ? oe((m(), C(u(Xe), {
|
|
2661
2661
|
key: 1,
|
|
2662
2662
|
dot: "",
|
|
2663
2663
|
"show-zero": "",
|
|
@@ -2666,11 +2666,11 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2666
2666
|
[ve, s.value === i.value]
|
|
2667
2667
|
]) : L("", !0)
|
|
2668
2668
|
])
|
|
2669
|
-
], 10,
|
|
2669
|
+
], 10, Sn))), 128))
|
|
2670
2670
|
], 2));
|
|
2671
2671
|
}
|
|
2672
|
-
}),
|
|
2673
|
-
name:
|
|
2672
|
+
}), Rn = ["id"], Tn = ["textContent"], Ln = "sq-message", In = /* @__PURE__ */ R({
|
|
2673
|
+
name: Ln,
|
|
2674
2674
|
__name: "message",
|
|
2675
2675
|
props: {
|
|
2676
2676
|
message: {},
|
|
@@ -2683,7 +2683,7 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2683
2683
|
},
|
|
2684
2684
|
setup(d, { expose: o }) {
|
|
2685
2685
|
const n = d, t = z(!0), s = b(() => n.type ? Oe[n.type] : void 0);
|
|
2686
|
-
|
|
2686
|
+
ce(() => {
|
|
2687
2687
|
setTimeout(e, n.closeAfter);
|
|
2688
2688
|
});
|
|
2689
2689
|
function e() {
|
|
@@ -2696,38 +2696,38 @@ ${W}${M}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2696
2696
|
onAfterLeave: n.onDestroy
|
|
2697
2697
|
}, {
|
|
2698
2698
|
default: E(() => [
|
|
2699
|
-
|
|
2699
|
+
oe(I("div", {
|
|
2700
2700
|
class: U(["sq-message", `is-${n.type}`]),
|
|
2701
2701
|
id: n.id,
|
|
2702
2702
|
style: X({ top: `${n.offsetTop}px` })
|
|
2703
2703
|
}, [
|
|
2704
2704
|
S(u(be), { class: "sq-message-inner" }, {
|
|
2705
2705
|
default: E(() => [
|
|
2706
|
-
n.type && s.value ? (m(), C(
|
|
2706
|
+
n.type && s.value ? (m(), C(re(s.value), {
|
|
2707
2707
|
key: 0,
|
|
2708
2708
|
class: "sq-message-icon"
|
|
2709
2709
|
})) : L("", !0),
|
|
2710
2710
|
I("div", {
|
|
2711
2711
|
class: "sq-message-content",
|
|
2712
2712
|
textContent: K(n.message)
|
|
2713
|
-
}, null, 8,
|
|
2713
|
+
}, null, 8, Tn)
|
|
2714
2714
|
]),
|
|
2715
2715
|
_: 1
|
|
2716
2716
|
}),
|
|
2717
2717
|
c[0] || (c[0] = I("div", { class: "sq-message-progress" }, null, -1))
|
|
2718
|
-
], 14,
|
|
2718
|
+
], 14, Rn), [
|
|
2719
2719
|
[ve, t.value]
|
|
2720
2720
|
])
|
|
2721
2721
|
]),
|
|
2722
2722
|
_: 1
|
|
2723
2723
|
}, 8, ["onBeforeLeave", "onAfterLeave"]));
|
|
2724
2724
|
}
|
|
2725
|
-
}), { getCssVar:
|
|
2726
|
-
let
|
|
2725
|
+
}), { getCssVar: Mn } = Pe(), { nextZIndex: En } = Ne(), xe = [], An = ["primary", "success", "info", "warn", "error"], Ie = parseInt(Mn("--sq-padding-md"));
|
|
2726
|
+
let Dn = 0;
|
|
2727
2727
|
const Ee = (d = {}) => {
|
|
2728
|
-
const o = `sq-message-${
|
|
2728
|
+
const o = `sq-message-${Dn++}`;
|
|
2729
2729
|
let n = document.querySelector(".sq-message-wrap");
|
|
2730
|
-
n || (n = document.createElement("div"), n.classList.add("sq-message-wrap"), document.body.appendChild(n)), n.style.zIndex =
|
|
2730
|
+
n || (n = document.createElement("div"), n.classList.add("sq-message-wrap"), document.body.appendChild(n)), n.style.zIndex = En().toString();
|
|
2731
2731
|
let t = Ie;
|
|
2732
2732
|
xe.forEach((l) => {
|
|
2733
2733
|
var i;
|
|
@@ -2756,7 +2756,7 @@ const Ee = (d = {}) => {
|
|
|
2756
2756
|
s.onDestroy = () => {
|
|
2757
2757
|
c == null || c(), Ue(null, e);
|
|
2758
2758
|
};
|
|
2759
|
-
const a = S(
|
|
2759
|
+
const a = S(In, s);
|
|
2760
2760
|
return Ue(a, e), xe.push({ vm: a }), n.appendChild(e.firstElementChild), {
|
|
2761
2761
|
close: () => {
|
|
2762
2762
|
var l, i;
|
|
@@ -2764,13 +2764,13 @@ const Ee = (d = {}) => {
|
|
|
2764
2764
|
}
|
|
2765
2765
|
};
|
|
2766
2766
|
};
|
|
2767
|
-
|
|
2767
|
+
An.forEach((d) => {
|
|
2768
2768
|
Ee[d] = (o = {}) => (typeof o == "string" && (o = {
|
|
2769
2769
|
message: o
|
|
2770
2770
|
}), Ee({ ...o, type: d }));
|
|
2771
2771
|
});
|
|
2772
|
-
const
|
|
2773
|
-
name:
|
|
2772
|
+
const na = Ee, On = "sq-pagination-prev", Pn = /* @__PURE__ */ R({
|
|
2773
|
+
name: On,
|
|
2774
2774
|
__name: "pagination-prev",
|
|
2775
2775
|
props: /* @__PURE__ */ Z({
|
|
2776
2776
|
disabled: { type: Boolean },
|
|
@@ -2792,8 +2792,8 @@ const oa = Ee, Pn = "sq-pagination-prev", Nn = /* @__PURE__ */ R({
|
|
|
2792
2792
|
onClick: e[0] || (e[0] = (r) => t(-1))
|
|
2793
2793
|
}, null, 8, ["icon", "size", "disabled"]));
|
|
2794
2794
|
}
|
|
2795
|
-
}),
|
|
2796
|
-
name:
|
|
2795
|
+
}), Nn = "sq-pagination-next", Fn = /* @__PURE__ */ R({
|
|
2796
|
+
name: Nn,
|
|
2797
2797
|
__name: "pagination-next",
|
|
2798
2798
|
props: /* @__PURE__ */ Z({
|
|
2799
2799
|
disabled: { type: Boolean },
|
|
@@ -2815,8 +2815,8 @@ const oa = Ee, Pn = "sq-pagination-prev", Nn = /* @__PURE__ */ R({
|
|
|
2815
2815
|
onClick: e[0] || (e[0] = (r) => t(1))
|
|
2816
2816
|
}, null, 8, ["icon", "size", "disabled"]));
|
|
2817
2817
|
}
|
|
2818
|
-
}),
|
|
2819
|
-
name:
|
|
2818
|
+
}), Un = { class: "sq-pagination-pager" }, Vn = "sq-pagination-pager", Hn = /* @__PURE__ */ R({
|
|
2819
|
+
name: Vn,
|
|
2820
2820
|
__name: "pagination-pager",
|
|
2821
2821
|
props: /* @__PURE__ */ Z({
|
|
2822
2822
|
disabled: { type: Boolean },
|
|
@@ -2831,7 +2831,7 @@ const oa = Ee, Pn = "sq-pagination-prev", Nn = /* @__PURE__ */ R({
|
|
|
2831
2831
|
const o = d, n = le(d, "current"), t = (s) => {
|
|
2832
2832
|
n.value = s;
|
|
2833
2833
|
};
|
|
2834
|
-
return (s, e) => (m(), $("div",
|
|
2834
|
+
return (s, e) => (m(), $("div", Un, [
|
|
2835
2835
|
(m(!0), $(ne, null, de(o.list, (r) => (m(), $(ne, { key: r }, [
|
|
2836
2836
|
r ? (m(), C(u(j), {
|
|
2837
2837
|
key: 0,
|
|
@@ -2846,15 +2846,15 @@ const oa = Ee, Pn = "sq-pagination-prev", Nn = /* @__PURE__ */ R({
|
|
|
2846
2846
|
_: 2
|
|
2847
2847
|
}, 1032, ["type", "size", "disabled", "onClick"])) : (m(), C(u(j), {
|
|
2848
2848
|
key: 1,
|
|
2849
|
-
icon: u(
|
|
2849
|
+
icon: u(At),
|
|
2850
2850
|
size: o.size,
|
|
2851
2851
|
disabled: ""
|
|
2852
2852
|
}, null, 8, ["icon", "size"]))
|
|
2853
2853
|
], 64))), 128))
|
|
2854
2854
|
]));
|
|
2855
2855
|
}
|
|
2856
|
-
}),
|
|
2857
|
-
name:
|
|
2856
|
+
}), Wn = { class: "sq-pagination" }, jn = "sq-pagination", oa = /* @__PURE__ */ R({
|
|
2857
|
+
name: jn,
|
|
2858
2858
|
__name: "pagination",
|
|
2859
2859
|
props: /* @__PURE__ */ Z({
|
|
2860
2860
|
total: { default: 0 },
|
|
@@ -2882,19 +2882,19 @@ const oa = Ee, Pn = "sq-pagination-prev", Nn = /* @__PURE__ */ R({
|
|
|
2882
2882
|
for (const l of c)
|
|
2883
2883
|
switch (l) {
|
|
2884
2884
|
case "prev":
|
|
2885
|
-
a.push(
|
|
2885
|
+
a.push(Pn);
|
|
2886
2886
|
break;
|
|
2887
2887
|
case "pager":
|
|
2888
|
-
a.push(
|
|
2888
|
+
a.push(Hn);
|
|
2889
2889
|
break;
|
|
2890
2890
|
case "next":
|
|
2891
|
-
a.push(
|
|
2891
|
+
a.push(Fn);
|
|
2892
2892
|
break;
|
|
2893
2893
|
}
|
|
2894
2894
|
return a;
|
|
2895
2895
|
});
|
|
2896
|
-
return (c, a) => (m(), $("div",
|
|
2897
|
-
(m(!0), $(ne, null, de(r.value, (l, i) => (m(), C(
|
|
2896
|
+
return (c, a) => (m(), $("div", Wn, [
|
|
2897
|
+
(m(!0), $(ne, null, de(r.value, (l, i) => (m(), C(re(l), {
|
|
2898
2898
|
key: i,
|
|
2899
2899
|
size: o.size,
|
|
2900
2900
|
disabled: o.disabled,
|
|
@@ -2905,8 +2905,8 @@ const oa = Ee, Pn = "sq-pagination-prev", Nn = /* @__PURE__ */ R({
|
|
|
2905
2905
|
}, null, 40, ["size", "disabled", "list", "max-page", "current"]))), 128))
|
|
2906
2906
|
]));
|
|
2907
2907
|
}
|
|
2908
|
-
}),
|
|
2909
|
-
name:
|
|
2908
|
+
}), Xn = "sq-only-child", Yn = /* @__PURE__ */ R({
|
|
2909
|
+
name: Xn,
|
|
2910
2910
|
setup(d, {
|
|
2911
2911
|
slots: o,
|
|
2912
2912
|
attrs: n
|
|
@@ -2941,8 +2941,8 @@ function ct(d) {
|
|
|
2941
2941
|
function Ye(d) {
|
|
2942
2942
|
return S("span", null, [d]);
|
|
2943
2943
|
}
|
|
2944
|
-
const
|
|
2945
|
-
name:
|
|
2944
|
+
const Kn = "sq-popover", Gn = /* @__PURE__ */ R({
|
|
2945
|
+
name: Kn,
|
|
2946
2946
|
__name: "popover",
|
|
2947
2947
|
props: /* @__PURE__ */ Z({
|
|
2948
2948
|
placement: { default: "top" },
|
|
@@ -2963,17 +2963,17 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
2963
2963
|
setup(d) {
|
|
2964
2964
|
const { getCssVar: o } = Pe(), { nextZIndex: n } = Ne(), t = Ae(), s = parseInt(o("--sq-padding-sm")), e = parseInt(o("--sq-padding-md"));
|
|
2965
2965
|
let r, c;
|
|
2966
|
-
const a = d, l = le(d, "visible"), i = z(0), p = z({}), g =
|
|
2966
|
+
const a = d, l = le(d, "visible"), i = z(0), p = z({}), g = ie(null), h = ie(null), f = b(() => {
|
|
2967
2967
|
const H = [];
|
|
2968
2968
|
return a.shadow && H.push("has-shadow"), H.push(a.popoverClass), [H];
|
|
2969
2969
|
});
|
|
2970
|
-
|
|
2971
|
-
H ? (i.value = n(), V(), c =
|
|
2970
|
+
ue(l, (H) => {
|
|
2971
|
+
H ? (i.value = n(), V(), c = Pt(
|
|
2972
2972
|
g.value.$el,
|
|
2973
2973
|
h.value,
|
|
2974
2974
|
V
|
|
2975
2975
|
)) : c == null || c();
|
|
2976
|
-
}),
|
|
2976
|
+
}), ce(() => {
|
|
2977
2977
|
V();
|
|
2978
2978
|
}), ge(() => {
|
|
2979
2979
|
Y(), document.removeEventListener("click", O);
|
|
@@ -3001,12 +3001,12 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3001
3001
|
var v, y;
|
|
3002
3002
|
const H = typeof ((v = g.value) == null ? void 0 : v.$el.getBoundingClientRect), ee = typeof ((y = h.value) == null ? void 0 : y.getBoundingClientRect);
|
|
3003
3003
|
if (H !== "function" || ee !== "function") return;
|
|
3004
|
-
const J = await
|
|
3004
|
+
const J = await Nt(g.value.$el, h.value, {
|
|
3005
3005
|
placement: a.placement,
|
|
3006
3006
|
middleware: [
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3007
|
+
Ft(a.offset ?? s),
|
|
3008
|
+
Ut(),
|
|
3009
|
+
Vt({ padding: e })
|
|
3010
3010
|
]
|
|
3011
3011
|
}), { x: k, y: _ } = J;
|
|
3012
3012
|
p.value = {
|
|
@@ -3018,7 +3018,7 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3018
3018
|
r && (clearTimeout(r), r = void 0);
|
|
3019
3019
|
}
|
|
3020
3020
|
return (H, ee) => (m(), $(ne, null, [
|
|
3021
|
-
S(u(
|
|
3021
|
+
S(u(Yn), {
|
|
3022
3022
|
class: U(["sq-popover-trigger", u(t).class]),
|
|
3023
3023
|
style: X(u(t).style),
|
|
3024
3024
|
ref_key: "triggerRef",
|
|
@@ -3040,7 +3040,7 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3040
3040
|
name: a.transition
|
|
3041
3041
|
}, {
|
|
3042
3042
|
default: E(() => [
|
|
3043
|
-
|
|
3043
|
+
oe(I("div", {
|
|
3044
3044
|
class: U(["sq-popover", f.value]),
|
|
3045
3045
|
style: X({ ...p.value, zIndex: i.value }),
|
|
3046
3046
|
ref_key: "popverRef",
|
|
@@ -3058,11 +3058,11 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3058
3058
|
], 8, ["disabled"]))
|
|
3059
3059
|
], 64));
|
|
3060
3060
|
}
|
|
3061
|
-
}),
|
|
3061
|
+
}), Zn = {
|
|
3062
3062
|
key: 0,
|
|
3063
3063
|
class: "sq-progress-label"
|
|
3064
|
-
},
|
|
3065
|
-
name:
|
|
3064
|
+
}, Jn = ["textContent"], Qn = "sq-progress", eo = /* @__PURE__ */ R({
|
|
3065
|
+
name: Qn,
|
|
3066
3066
|
__name: "progress",
|
|
3067
3067
|
props: {
|
|
3068
3068
|
value: {},
|
|
@@ -3075,7 +3075,7 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3075
3075
|
label: { type: Boolean, default: !0 }
|
|
3076
3076
|
},
|
|
3077
3077
|
setup(d) {
|
|
3078
|
-
const o = new ResizeObserver(l), n = d, t = z(100), s =
|
|
3078
|
+
const o = new ResizeObserver(l), n = d, t = z(100), s = ie(null), e = b(() => {
|
|
3079
3079
|
const i = [];
|
|
3080
3080
|
return n.color || i.push(`is-${n.type}`), n.variant && i.push(`is-${n.variant}`), i;
|
|
3081
3081
|
}), r = b(() => {
|
|
@@ -3095,7 +3095,7 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3095
3095
|
}
|
|
3096
3096
|
return i;
|
|
3097
3097
|
});
|
|
3098
|
-
|
|
3098
|
+
ce(() => {
|
|
3099
3099
|
o.observe(s.value);
|
|
3100
3100
|
}), ge(() => {
|
|
3101
3101
|
o.disconnect();
|
|
@@ -3126,21 +3126,21 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3126
3126
|
cy: "50"
|
|
3127
3127
|
})
|
|
3128
3128
|
], -1)),
|
|
3129
|
-
n.label ? (m(), $("div",
|
|
3129
|
+
n.label ? (m(), $("div", Zn, [
|
|
3130
3130
|
N(i.$slots, "default", { percentage: r.value }, () => [
|
|
3131
3131
|
I("span", {
|
|
3132
3132
|
textContent: K(c.value)
|
|
3133
|
-
}, null, 8,
|
|
3133
|
+
}, null, 8, Jn)
|
|
3134
3134
|
])
|
|
3135
3135
|
])) : L("", !0)
|
|
3136
3136
|
], 64)) : L("", !0)
|
|
3137
3137
|
], 6));
|
|
3138
3138
|
}
|
|
3139
|
-
}),
|
|
3139
|
+
}), to = ["autofocus", "name", "form", "value", "disabled"], so = {
|
|
3140
3140
|
key: 0,
|
|
3141
3141
|
class: "sq-radio-box"
|
|
3142
|
-
},
|
|
3143
|
-
name:
|
|
3142
|
+
}, no = ["textContent"], oo = "sq-radio", ao = /* @__PURE__ */ R({
|
|
3143
|
+
name: oo,
|
|
3144
3144
|
__name: "radio",
|
|
3145
3145
|
props: /* @__PURE__ */ Z({
|
|
3146
3146
|
form: {},
|
|
@@ -3164,25 +3164,25 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3164
3164
|
radioName: c,
|
|
3165
3165
|
radioVariant: a,
|
|
3166
3166
|
groupContext: l
|
|
3167
|
-
} =
|
|
3167
|
+
} = fs(t), i = z(), p = le(d, "checked"), g = b(() => {
|
|
3168
3168
|
const f = [], w = u(s), B = u(e), D = u(a);
|
|
3169
3169
|
return w !== "md" && f.push(`sq-selection--${w}`), h.value && f.push("is-checked"), B && f.push("is-disabled"), D && f.push(`is-${D}`), f;
|
|
3170
3170
|
}), h = b(() => l ? u(l).checked === t.value : p.value);
|
|
3171
|
-
return
|
|
3171
|
+
return ue(i, (f) => {
|
|
3172
3172
|
p.value = f === t.value;
|
|
3173
|
-
}),
|
|
3173
|
+
}), ue(h, (f) => {
|
|
3174
3174
|
if (f ? i.value = t.value ?? "on" : i.value = void 0, p.value !== f) {
|
|
3175
3175
|
p.value = f;
|
|
3176
3176
|
return;
|
|
3177
3177
|
}
|
|
3178
|
-
}),
|
|
3178
|
+
}), ue(p, (f) => {
|
|
3179
3179
|
h.value !== f && l && l.value.toggleItem(t.value);
|
|
3180
|
-
}),
|
|
3180
|
+
}), ce(() => {
|
|
3181
3181
|
p.value = h.value, i.value = p.value ? t.value ?? "on" : void 0;
|
|
3182
3182
|
}), (f, w) => (m(), $("label", {
|
|
3183
3183
|
class: U(["sq-selection sq-radio", g.value])
|
|
3184
3184
|
}, [
|
|
3185
|
-
|
|
3185
|
+
oe(I("input", {
|
|
3186
3186
|
type: "radio",
|
|
3187
3187
|
autofocus: t.autofocus,
|
|
3188
3188
|
name: u(c),
|
|
@@ -3191,19 +3191,19 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3191
3191
|
disabled: u(e),
|
|
3192
3192
|
"onUpdate:modelValue": w[0] || (w[0] = (B) => i.value = B),
|
|
3193
3193
|
onChange: w[1] || (w[1] = (B) => n("change", h.value))
|
|
3194
|
-
}, null, 40,
|
|
3194
|
+
}, null, 40, to), [
|
|
3195
3195
|
[Ze, i.value]
|
|
3196
3196
|
]),
|
|
3197
|
-
u(a) !== "solid" ? (m(), $("span",
|
|
3197
|
+
u(a) !== "solid" ? (m(), $("span", so)) : L("", !0),
|
|
3198
3198
|
t.label ? (m(), $("span", {
|
|
3199
3199
|
key: 1,
|
|
3200
3200
|
class: "sq-selection-label",
|
|
3201
3201
|
textContent: K(t.label)
|
|
3202
|
-
}, null, 8,
|
|
3202
|
+
}, null, 8, no)) : L("", !0)
|
|
3203
3203
|
], 2));
|
|
3204
3204
|
}
|
|
3205
|
-
}),
|
|
3206
|
-
name:
|
|
3205
|
+
}), lo = { class: "sq-radio-group sq-selection-group" }, io = "sq-radio-group", ro = /* @__PURE__ */ R({
|
|
3206
|
+
name: io,
|
|
3207
3207
|
__name: "radio-group",
|
|
3208
3208
|
props: {
|
|
3209
3209
|
items: { default: () => [] },
|
|
@@ -3228,7 +3228,7 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3228
3228
|
checked: e,
|
|
3229
3229
|
toggleItem: c
|
|
3230
3230
|
})
|
|
3231
|
-
),
|
|
3231
|
+
), ue(
|
|
3232
3232
|
() => s.value,
|
|
3233
3233
|
(a) => {
|
|
3234
3234
|
a !== e.value && (e.value = a);
|
|
@@ -3237,9 +3237,9 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3237
3237
|
function c(a) {
|
|
3238
3238
|
e.value = a, t("change", e.value), t("update:value", e.value);
|
|
3239
3239
|
}
|
|
3240
|
-
return (a, l) => (m(), $("div",
|
|
3240
|
+
return (a, l) => (m(), $("div", lo, [
|
|
3241
3241
|
N(a.$slots, "default", {}, () => [
|
|
3242
|
-
(m(!0), $(ne, null, de(s.items, (i, p) => (m(), C(u(
|
|
3242
|
+
(m(!0), $(ne, null, de(s.items, (i, p) => (m(), C(u(ao), {
|
|
3243
3243
|
key: p,
|
|
3244
3244
|
label: i.toString(),
|
|
3245
3245
|
value: i
|
|
@@ -3247,8 +3247,8 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3247
3247
|
])
|
|
3248
3248
|
]));
|
|
3249
3249
|
}
|
|
3250
|
-
}), dt = Symbol("radio-group-context-keys"),
|
|
3251
|
-
name:
|
|
3250
|
+
}), dt = Symbol("radio-group-context-keys"), uo = "sq-segmented", co = /* @__PURE__ */ R({
|
|
3251
|
+
name: uo,
|
|
3252
3252
|
__name: "segmented",
|
|
3253
3253
|
props: {
|
|
3254
3254
|
name: {},
|
|
@@ -3280,14 +3280,14 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3280
3280
|
toggleItem: g,
|
|
3281
3281
|
updateThumb: h
|
|
3282
3282
|
})
|
|
3283
|
-
),
|
|
3283
|
+
), ue(e, (f) => {
|
|
3284
3284
|
f !== s.value && (t("change", f), t("update:value", f));
|
|
3285
|
-
}),
|
|
3285
|
+
}), ue(
|
|
3286
3286
|
() => s.value,
|
|
3287
3287
|
(f) => {
|
|
3288
3288
|
f !== e.value && (e.value = f);
|
|
3289
3289
|
}
|
|
3290
|
-
),
|
|
3290
|
+
), ce(() => {
|
|
3291
3291
|
var f;
|
|
3292
3292
|
e.value || (e.value = (f = a.value[0]) == null ? void 0 : f.value);
|
|
3293
3293
|
});
|
|
@@ -3305,14 +3305,14 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3305
3305
|
style: X(i.value)
|
|
3306
3306
|
}, null, 4),
|
|
3307
3307
|
N(f.$slots, "default", {}, () => [
|
|
3308
|
-
(m(!0), $(ne, null, de(a.value, (B) => (m(), C(u(
|
|
3308
|
+
(m(!0), $(ne, null, de(a.value, (B) => (m(), C(u(vo), pe({
|
|
3309
3309
|
key: B.text
|
|
3310
3310
|
}, { ref_for: !0 }, B), null, 16))), 128))
|
|
3311
3311
|
])
|
|
3312
3312
|
], 2));
|
|
3313
3313
|
}
|
|
3314
|
-
}),
|
|
3315
|
-
name:
|
|
3314
|
+
}), fo = ["name", "value", "disabled"], po = "sq-segmented-item", vo = /* @__PURE__ */ R({
|
|
3315
|
+
name: po,
|
|
3316
3316
|
__name: "segmented-item",
|
|
3317
3317
|
props: {
|
|
3318
3318
|
icon: {},
|
|
@@ -3321,16 +3321,16 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3321
3321
|
value: {}
|
|
3322
3322
|
},
|
|
3323
3323
|
setup(d) {
|
|
3324
|
-
const o = d, { segmentedDisabled: n, parentContext: t } =
|
|
3324
|
+
const o = d, { segmentedDisabled: n, parentContext: t } = ps(o), s = z(), e = ie(null), r = b(() => {
|
|
3325
3325
|
const i = [], p = u(n);
|
|
3326
3326
|
return c.value && i.push("is-active"), p && i.push("is-disabled"), i;
|
|
3327
3327
|
}), c = b(() => u(t).active === o.value), a = b(() => u(t).size !== "sm" ? "md" : "sm");
|
|
3328
|
-
|
|
3328
|
+
ue(c, (i) => {
|
|
3329
3329
|
if (i) {
|
|
3330
3330
|
if (s.value = o.value ?? "on", !t) return;
|
|
3331
3331
|
t.value.updateThumb(e.value);
|
|
3332
3332
|
} else s.value = void 0;
|
|
3333
|
-
}),
|
|
3333
|
+
}), ce(() => {
|
|
3334
3334
|
s.value = c.value ? o.value ?? "on" : void 0, !(!c.value || !t) && t.value.updateThumb(e.value);
|
|
3335
3335
|
});
|
|
3336
3336
|
function l() {
|
|
@@ -3343,20 +3343,20 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3343
3343
|
ref_key: "itemRef",
|
|
3344
3344
|
ref: e
|
|
3345
3345
|
}, [
|
|
3346
|
-
|
|
3346
|
+
oe(I("input", {
|
|
3347
3347
|
type: "radio",
|
|
3348
3348
|
name: (g = u(t)) == null ? void 0 : g.name,
|
|
3349
3349
|
value: o.value,
|
|
3350
3350
|
disabled: u(n),
|
|
3351
3351
|
"onUpdate:modelValue": p[0] || (p[0] = (h) => s.value = h),
|
|
3352
3352
|
onChange: l
|
|
3353
|
-
}, null, 40,
|
|
3353
|
+
}, null, 40, fo), [
|
|
3354
3354
|
[Ze, s.value]
|
|
3355
3355
|
]),
|
|
3356
3356
|
N(i.$slots, "default", {}, () => [
|
|
3357
3357
|
S(u(be), { size: a.value }, {
|
|
3358
3358
|
default: E(() => [
|
|
3359
|
-
o.icon ? (m(), C(
|
|
3359
|
+
o.icon ? (m(), C(re(o.icon), { key: 0 })) : L("", !0),
|
|
3360
3360
|
Se(" " + K(o.text), 1)
|
|
3361
3361
|
]),
|
|
3362
3362
|
_: 1
|
|
@@ -3367,8 +3367,8 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3367
3367
|
}
|
|
3368
3368
|
}), ft = Symbol(
|
|
3369
3369
|
"segmented-context-keys"
|
|
3370
|
-
),
|
|
3371
|
-
name:
|
|
3370
|
+
), mo = ["id", "autofocus", "name", "form", "disabled"], ho = { class: "sq-switch-track" }, go = { class: "sq-switch-thumb" }, bo = "sq-switch", yo = /* @__PURE__ */ R({
|
|
3371
|
+
name: bo,
|
|
3372
3372
|
__name: "switch",
|
|
3373
3373
|
props: /* @__PURE__ */ Z({
|
|
3374
3374
|
form: {},
|
|
@@ -3384,14 +3384,14 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3384
3384
|
}),
|
|
3385
3385
|
emits: /* @__PURE__ */ Z(["change", "click"], ["update:checked"]),
|
|
3386
3386
|
setup(d, { emit: o }) {
|
|
3387
|
-
const n = o, t = d, { switchSize: s, switchDisabled: e, id: r } =
|
|
3387
|
+
const n = o, t = d, { switchSize: s, switchDisabled: e, id: r } = vs(t), c = le(d, "checked"), a = b(() => {
|
|
3388
3388
|
const l = [], i = u(s), p = u(e);
|
|
3389
3389
|
return i !== "md" && l.push(`sq-switch--${i}`), c.value && l.push("is-checked"), (p || t.loading) && l.push("is-disabled"), t.variant && l.push(`is-${t.variant}`), l;
|
|
3390
3390
|
});
|
|
3391
3391
|
return (l, i) => (m(), $("label", {
|
|
3392
3392
|
class: U(["sq-switch", a.value])
|
|
3393
3393
|
}, [
|
|
3394
|
-
|
|
3394
|
+
oe(I("input", {
|
|
3395
3395
|
type: "checkbox",
|
|
3396
3396
|
"onUpdate:modelValue": i[0] || (i[0] = (p) => c.value = p),
|
|
3397
3397
|
id: u(r),
|
|
@@ -3401,18 +3401,18 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3401
3401
|
disabled: u(e) || t.loading,
|
|
3402
3402
|
onChange: i[1] || (i[1] = (p) => n("change", c.value, p)),
|
|
3403
3403
|
onClick: i[2] || (i[2] = (p) => n("click", c.value, p))
|
|
3404
|
-
}, null, 40,
|
|
3404
|
+
}, null, 40, mo), [
|
|
3405
3405
|
[Ke, c.value]
|
|
3406
3406
|
]),
|
|
3407
|
-
I("span",
|
|
3408
|
-
I("span",
|
|
3407
|
+
I("span", ho, [
|
|
3408
|
+
I("span", go, [
|
|
3409
3409
|
t.loading ? (m(), C(u(Re), { key: 0 })) : L("", !0)
|
|
3410
3410
|
])
|
|
3411
3411
|
])
|
|
3412
3412
|
], 2));
|
|
3413
3413
|
}
|
|
3414
|
-
}),
|
|
3415
|
-
name:
|
|
3414
|
+
}), xo = "sq-vnode-renderer", _o = R({
|
|
3415
|
+
name: xo,
|
|
3416
3416
|
props: {
|
|
3417
3417
|
content: {
|
|
3418
3418
|
type: Object
|
|
@@ -3421,11 +3421,11 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3421
3421
|
render() {
|
|
3422
3422
|
return this.content;
|
|
3423
3423
|
}
|
|
3424
|
-
}),
|
|
3425
|
-
key:
|
|
3424
|
+
}), $o = { class: "sq-table-wrap" }, ko = ["textContent"], wo = ["textContent"], qo = {
|
|
3425
|
+
key: 0,
|
|
3426
3426
|
class: "sq-table-empty"
|
|
3427
|
-
},
|
|
3428
|
-
name:
|
|
3427
|
+
}, Co = ["textContent"], So = "sq-table", aa = /* @__PURE__ */ R({
|
|
3428
|
+
name: So,
|
|
3429
3429
|
__name: "table",
|
|
3430
3430
|
props: {
|
|
3431
3431
|
emptyText: { default: "暂无数据" },
|
|
@@ -3437,7 +3437,7 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3437
3437
|
cols: { default: () => [] }
|
|
3438
3438
|
},
|
|
3439
3439
|
setup(d) {
|
|
3440
|
-
const { getCssUnit: o } = Pe(), n = new ResizeObserver(l), t = d, s = z(!1), e =
|
|
3440
|
+
const { getCssUnit: o } = Pe(), n = new ResizeObserver(l), t = d, s = z(!1), e = ie(null), r = b(() => {
|
|
3441
3441
|
const h = [];
|
|
3442
3442
|
return t.stripe && h.push("is-striped"), t.border && h.push("has-border"), h;
|
|
3443
3443
|
}), c = b(() => ({
|
|
@@ -3446,7 +3446,7 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3446
3446
|
...c.value,
|
|
3447
3447
|
paddingInlineEnd: s.value ? "6px" : "0"
|
|
3448
3448
|
}));
|
|
3449
|
-
|
|
3449
|
+
ce(() => {
|
|
3450
3450
|
n.observe(e.value);
|
|
3451
3451
|
}), ge(() => {
|
|
3452
3452
|
n.disconnect();
|
|
@@ -3483,7 +3483,7 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3483
3483
|
return (h, f) => (m(), $("div", {
|
|
3484
3484
|
class: U(["sq-table", r.value])
|
|
3485
3485
|
}, [
|
|
3486
|
-
I("div",
|
|
3486
|
+
I("div", $o, [
|
|
3487
3487
|
I("div", {
|
|
3488
3488
|
class: "sq-table-header",
|
|
3489
3489
|
style: X(a.value)
|
|
@@ -3495,11 +3495,10 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3495
3495
|
}, [
|
|
3496
3496
|
I("span", {
|
|
3497
3497
|
textContent: K(w.title)
|
|
3498
|
-
}, null, 8,
|
|
3498
|
+
}, null, 8, ko)
|
|
3499
3499
|
], 4))), 128))
|
|
3500
3500
|
], 4),
|
|
3501
|
-
|
|
3502
|
-
key: 0,
|
|
3501
|
+
oe(I("div", {
|
|
3503
3502
|
class: "sq-table-body",
|
|
3504
3503
|
ref_key: "bodyRef",
|
|
3505
3504
|
ref: e
|
|
@@ -3514,27 +3513,30 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3514
3513
|
style: X({ "justify-content": p(D.align) }),
|
|
3515
3514
|
key: `${D.binding}-${i(w, P)}`
|
|
3516
3515
|
}, [
|
|
3517
|
-
typeof D.cellRender == "function" ? (m(), C(u(
|
|
3516
|
+
typeof D.cellRender == "function" ? (m(), C(u(_o), {
|
|
3518
3517
|
key: 0,
|
|
3519
3518
|
content: D.cellRender(w)
|
|
3520
3519
|
}, null, 8, ["content"])) : (m(), $("span", {
|
|
3521
3520
|
key: 1,
|
|
3522
3521
|
textContent: K(g(w, D))
|
|
3523
|
-
}, null, 8,
|
|
3522
|
+
}, null, 8, wo))
|
|
3524
3523
|
], 6))), 128))
|
|
3525
3524
|
], 4))), 128))
|
|
3526
|
-
], 512)
|
|
3525
|
+
], 512), [
|
|
3526
|
+
[ve, t.data.length]
|
|
3527
|
+
]),
|
|
3528
|
+
t.data.length ? L("", !0) : (m(), $("div", qo, [
|
|
3527
3529
|
N(h.$slots, "empty", {}, () => [
|
|
3528
3530
|
I("span", {
|
|
3529
3531
|
textContent: K(t.emptyText)
|
|
3530
|
-
}, null, 8,
|
|
3532
|
+
}, null, 8, Co)
|
|
3531
3533
|
])
|
|
3532
3534
|
]))
|
|
3533
3535
|
])
|
|
3534
3536
|
], 2));
|
|
3535
3537
|
}
|
|
3536
|
-
}),
|
|
3537
|
-
name:
|
|
3538
|
+
}), Bo = "sq-tag", la = /* @__PURE__ */ R({
|
|
3539
|
+
name: Bo,
|
|
3538
3540
|
__name: "tag",
|
|
3539
3541
|
props: {
|
|
3540
3542
|
type: {},
|
|
@@ -3557,8 +3559,8 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3557
3559
|
_: 3
|
|
3558
3560
|
}, 8, ["class", "size"]));
|
|
3559
3561
|
}
|
|
3560
|
-
}),
|
|
3561
|
-
name:
|
|
3562
|
+
}), zo = "sq-check-tag", ia = /* @__PURE__ */ R({
|
|
3563
|
+
name: zo,
|
|
3562
3564
|
__name: "check-tag",
|
|
3563
3565
|
props: {
|
|
3564
3566
|
checked: { type: Boolean, default: !1 },
|
|
@@ -3583,8 +3585,8 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3583
3585
|
_: 3
|
|
3584
3586
|
}, 8, ["class", "size"]));
|
|
3585
3587
|
}
|
|
3586
|
-
}),
|
|
3587
|
-
name:
|
|
3588
|
+
}), Ro = "sq-text", be = /* @__PURE__ */ R({
|
|
3589
|
+
name: Ro,
|
|
3588
3590
|
__name: "text",
|
|
3589
3591
|
props: {
|
|
3590
3592
|
ellipsis: { type: [Boolean, Number], default: !1 },
|
|
@@ -3604,8 +3606,8 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3604
3606
|
N(e.$slots, "default")
|
|
3605
3607
|
], 6));
|
|
3606
3608
|
}
|
|
3607
|
-
}),
|
|
3608
|
-
name:
|
|
3609
|
+
}), To = "sq-timeline", ra = /* @__PURE__ */ R({
|
|
3610
|
+
name: To,
|
|
3609
3611
|
__name: "timeline",
|
|
3610
3612
|
props: {
|
|
3611
3613
|
align: { default: "left" },
|
|
@@ -3622,8 +3624,8 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3622
3624
|
N(t.$slots, "default")
|
|
3623
3625
|
], 2));
|
|
3624
3626
|
}
|
|
3625
|
-
}),
|
|
3626
|
-
name:
|
|
3627
|
+
}), Lo = { class: "sq-timeline-dot" }, Io = { class: "sq-timeline-content" }, Mo = ["textContent"], Eo = ["textContent"], Ao = { class: "content-info" }, Do = "sq-timeline-item", ua = /* @__PURE__ */ R({
|
|
3628
|
+
name: Do,
|
|
3627
3629
|
__name: "timeline-item",
|
|
3628
3630
|
props: {
|
|
3629
3631
|
color: {},
|
|
@@ -3645,28 +3647,28 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3645
3647
|
class: U(["sq-timeline-item", n.value]),
|
|
3646
3648
|
style: X(t.value)
|
|
3647
3649
|
}, [
|
|
3648
|
-
I("span",
|
|
3649
|
-
o.icon ? (m(), C(
|
|
3650
|
+
I("span", Lo, [
|
|
3651
|
+
o.icon ? (m(), C(re(o.icon), { key: 0 })) : L("", !0)
|
|
3650
3652
|
]),
|
|
3651
|
-
I("div",
|
|
3653
|
+
I("div", Io, [
|
|
3652
3654
|
o.title ? (m(), $("h2", {
|
|
3653
3655
|
key: 0,
|
|
3654
3656
|
class: "content-title",
|
|
3655
3657
|
textContent: K(o.title)
|
|
3656
|
-
}, null, 8,
|
|
3658
|
+
}, null, 8, Mo)) : L("", !0),
|
|
3657
3659
|
o.timestamp ? (m(), $("span", {
|
|
3658
3660
|
key: 1,
|
|
3659
3661
|
class: "content-time",
|
|
3660
3662
|
textContent: K(o.timestamp)
|
|
3661
|
-
}, null, 8,
|
|
3662
|
-
I("div",
|
|
3663
|
+
}, null, 8, Eo)) : L("", !0),
|
|
3664
|
+
I("div", Ao, [
|
|
3663
3665
|
N(s.$slots, "default")
|
|
3664
3666
|
])
|
|
3665
3667
|
])
|
|
3666
3668
|
], 6));
|
|
3667
3669
|
}
|
|
3668
|
-
}),
|
|
3669
|
-
name:
|
|
3670
|
+
}), Oo = ["textContent"], Po = "sq-tooltip", ae = /* @__PURE__ */ R({
|
|
3671
|
+
name: Po,
|
|
3670
3672
|
__name: "tooltip",
|
|
3671
3673
|
props: {
|
|
3672
3674
|
placement: {},
|
|
@@ -3682,7 +3684,7 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3682
3684
|
const t = ["sq-tooltip"], s = o.popoverClass;
|
|
3683
3685
|
return Array.isArray(s) ? t.push(...s) : typeof s == "string" && t.push(s), t;
|
|
3684
3686
|
});
|
|
3685
|
-
return (t, s) => (m(), C(u(
|
|
3687
|
+
return (t, s) => (m(), C(u(Gn), {
|
|
3686
3688
|
placement: o.placement,
|
|
3687
3689
|
disabled: o.disabled,
|
|
3688
3690
|
"show-after": 300,
|
|
@@ -3698,13 +3700,13 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3698
3700
|
default: E(() => [
|
|
3699
3701
|
I("span", {
|
|
3700
3702
|
textContent: K(o.tip)
|
|
3701
|
-
}, null, 8,
|
|
3703
|
+
}, null, 8, Oo)
|
|
3702
3704
|
]),
|
|
3703
3705
|
_: 3
|
|
3704
3706
|
}, 8, ["placement", "disabled", "popover-class", "teleported", "transition", "shadow"]));
|
|
3705
3707
|
}
|
|
3706
|
-
}),
|
|
3707
|
-
name:
|
|
3708
|
+
}), No = ["name", "form", "disabled", "accept", "multiple"], Fo = "sq-upload", ca = /* @__PURE__ */ R({
|
|
3709
|
+
name: Fo,
|
|
3708
3710
|
__name: "upload",
|
|
3709
3711
|
props: {
|
|
3710
3712
|
form: {},
|
|
@@ -3717,7 +3719,7 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3717
3719
|
},
|
|
3718
3720
|
emits: ["change"],
|
|
3719
3721
|
setup(d, { expose: o, emit: n }) {
|
|
3720
|
-
const t = n, s = d, e =
|
|
3722
|
+
const t = n, s = d, e = ie(null);
|
|
3721
3723
|
function r() {
|
|
3722
3724
|
var g;
|
|
3723
3725
|
i(((g = e.value) == null ? void 0 : g.files) ?? void 0);
|
|
@@ -3760,7 +3762,7 @@ const Gn = "sq-popover", Zn = /* @__PURE__ */ R({
|
|
|
3760
3762
|
accept: s.accept,
|
|
3761
3763
|
multiple: s.multiple,
|
|
3762
3764
|
onChange: r
|
|
3763
|
-
}, null, 40,
|
|
3765
|
+
}, null, 40, No),
|
|
3764
3766
|
N(g.$slots, "default")
|
|
3765
3767
|
], 32));
|
|
3766
3768
|
}
|
|
@@ -3772,41 +3774,41 @@ export {
|
|
|
3772
3774
|
Fe as FormItemIdKeys,
|
|
3773
3775
|
dt as RadioGroupContextKeys,
|
|
3774
3776
|
ft as SegmentedContextKeys,
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3777
|
+
Xo as SqAlert,
|
|
3778
|
+
Qt as SqArticle,
|
|
3779
|
+
Yo as SqAvatar,
|
|
3780
|
+
Ko as SqBacktop,
|
|
3779
3781
|
Xe as SqBadge,
|
|
3780
|
-
|
|
3782
|
+
rs as SqBlur,
|
|
3781
3783
|
j as SqButton,
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3784
|
+
Go as SqButtonGroup,
|
|
3785
|
+
Zo as SqCard,
|
|
3786
|
+
ia as SqCheckTag,
|
|
3785
3787
|
lt as SqCheckbox,
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
+
zs as SqCheckboxGroup,
|
|
3789
|
+
Jo as SqDialog,
|
|
3788
3790
|
$e as SqDivider,
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3791
|
+
Qo as SqEditor,
|
|
3792
|
+
ea as SqForm,
|
|
3793
|
+
vn as SqImage,
|
|
3794
|
+
ta as SqImageCrop,
|
|
3795
|
+
gn as SqImageViewer,
|
|
3794
3796
|
ut as SqInput,
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3797
|
+
sa as SqMenu,
|
|
3798
|
+
na as SqMessage,
|
|
3799
|
+
oa as SqPagination,
|
|
3800
|
+
Gn as SqPopover,
|
|
3801
|
+
eo as SqProgress,
|
|
3802
|
+
ao as SqRadio,
|
|
3803
|
+
ro as SqRadioGroup,
|
|
3804
|
+
co as SqSegmented,
|
|
3805
|
+
vo as SqSegmentedItem,
|
|
3806
|
+
yo as SqSwitch,
|
|
3807
|
+
aa as SqTable,
|
|
3808
|
+
la as SqTag,
|
|
3807
3809
|
be as SqText,
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3810
|
+
ra as SqTimeline,
|
|
3811
|
+
ua as SqTimelineItem,
|
|
3812
|
+
ae as SqTooltip,
|
|
3813
|
+
ca as SqUpload
|
|
3812
3814
|
};
|