quail-ui 0.2.30 → 0.2.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +63 -63
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { openBlock as n, createElementBlock as s, createElementVNode as o, createStaticVNode as o1, defineComponent as Z, ref as S, watch as E, onMounted as h1, withDirectives as t1, vModelText as c1, computed as I, createBlock as P, Transition as C1, withCtx as f1, normalizeClass as j, normalizeStyle as w1, withModifiers as p1, toDisplayString as D, renderSlot as l1, createCommentVNode as F, getCurrentInstance as H1, unref as X, resolveDynamicComponent as e1, Fragment as g1, renderList as v1, vModelCheckbox as b1, useSlots as z1, resolveComponent as _1, createVNode as n1 } from "vue";
|
|
2
2
|
const l = (t, e) => {
|
|
3
3
|
const i = t.__vccOpts || t;
|
|
4
|
-
for (const [_,
|
|
5
|
-
i[_] =
|
|
4
|
+
for (const [_, C] of e)
|
|
5
|
+
i[_] = C;
|
|
6
6
|
return i;
|
|
7
7
|
}, Q1 = {}, B1 = {
|
|
8
8
|
width: "24",
|
|
@@ -1231,7 +1231,7 @@ var M1 = { exports: {} };
|
|
|
1231
1231
|
(function(i, _) {
|
|
1232
1232
|
t.exports = _();
|
|
1233
1233
|
})(A9, function() {
|
|
1234
|
-
var i = 1e3, _ = 6e4,
|
|
1234
|
+
var i = 1e3, _ = 6e4, C = 36e5, h = "millisecond", v = "second", g = "minute", $ = "hour", M = "day", x = "week", u = "month", L = "quarter", Q = "year", q = "date", a1 = "Invalid Date", x1 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, L1 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y1 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(f) {
|
|
1235
1235
|
var d = ["th", "st", "nd", "rd"], r = f % 100;
|
|
1236
1236
|
return "[" + f + (d[(r - 20) % 10] || d[r] || d[0]) + "]";
|
|
1237
1237
|
} }, s1 = function(f, d, r) {
|
|
@@ -1248,7 +1248,7 @@ var M1 = { exports: {} };
|
|
|
1248
1248
|
}, a: function(f) {
|
|
1249
1249
|
return f < 0 ? Math.ceil(f) || 0 : Math.floor(f);
|
|
1250
1250
|
}, p: function(f) {
|
|
1251
|
-
return { M: u, y: Q, w: x, d: M, D: q, h: $, m: g, s: v, ms:
|
|
1251
|
+
return { M: u, y: Q, w: x, d: M, D: q, h: $, m: g, s: v, ms: h, Q: L }[f] || String(f || "").toLowerCase().replace(/s$/, "");
|
|
1252
1252
|
}, u: function(f) {
|
|
1253
1253
|
return f === void 0;
|
|
1254
1254
|
} }, W = "en", T = {};
|
|
@@ -1352,7 +1352,7 @@ var M1 = { exports: {} };
|
|
|
1352
1352
|
}, d.endOf = function(r) {
|
|
1353
1353
|
return this.startOf(r, !1);
|
|
1354
1354
|
}, d.$set = function(r, a) {
|
|
1355
|
-
var c, w = m.p(r), p = "set" + (this.$u ? "UTC" : ""), k = (c = {}, c[M] = p + "Date", c[q] = p + "Date", c[u] = p + "Month", c[Q] = p + "FullYear", c[$] = p + "Hours", c[g] = p + "Minutes", c[v] = p + "Seconds", c[
|
|
1355
|
+
var c, w = m.p(r), p = "set" + (this.$u ? "UTC" : ""), k = (c = {}, c[M] = p + "Date", c[q] = p + "Date", c[u] = p + "Month", c[Q] = p + "FullYear", c[$] = p + "Hours", c[g] = p + "Minutes", c[v] = p + "Seconds", c[h] = p + "Milliseconds", c)[w], y = w === M ? this.$D + (a - this.$W) : a;
|
|
1356
1356
|
if (w === u || w === Q) {
|
|
1357
1357
|
var H = this.clone().set(q, 1);
|
|
1358
1358
|
H.$d[k](y), H.init(), this.$d = H.set(q, Math.min(this.$D, H.daysInMonth())).$d;
|
|
@@ -1378,7 +1378,7 @@ var M1 = { exports: {} };
|
|
|
1378
1378
|
return k(1);
|
|
1379
1379
|
if (p === x)
|
|
1380
1380
|
return k(7);
|
|
1381
|
-
var y = (c = {}, c[g] = _, c[$] =
|
|
1381
|
+
var y = (c = {}, c[g] = _, c[$] = C, c[v] = i, c)[p] || 1, H = this.$d.getTime() + r * y;
|
|
1382
1382
|
return m.w(H, this);
|
|
1383
1383
|
}, d.subtract = function(r, a) {
|
|
1384
1384
|
return this.add(-1 * r, a);
|
|
@@ -1472,7 +1472,7 @@ var M1 = { exports: {} };
|
|
|
1472
1472
|
w = (b - H) / 864e5;
|
|
1473
1473
|
break;
|
|
1474
1474
|
case $:
|
|
1475
|
-
w = b /
|
|
1475
|
+
w = b / C;
|
|
1476
1476
|
break;
|
|
1477
1477
|
case g:
|
|
1478
1478
|
w = b / _;
|
|
@@ -1505,7 +1505,7 @@ var M1 = { exports: {} };
|
|
|
1505
1505
|
return this.$d.toUTCString();
|
|
1506
1506
|
}, f;
|
|
1507
1507
|
}(), u1 = J.prototype;
|
|
1508
|
-
return V.prototype = u1, [["$ms",
|
|
1508
|
+
return V.prototype = u1, [["$ms", h], ["$s", v], ["$m", g], ["$H", $], ["$W", M], ["$M", u], ["$y", Q], ["$D", q]].forEach(function(f) {
|
|
1509
1509
|
u1[f[1]] = function(d) {
|
|
1510
1510
|
return this.$g(d, f[0], f[1]);
|
|
1511
1511
|
};
|
|
@@ -1531,37 +1531,37 @@ const i1 = /* @__PURE__ */ F9(U9), E9 = { class: "q-datetime-picker" }, W9 = ["d
|
|
|
1531
1531
|
},
|
|
1532
1532
|
emits: ["update:modelValue", "change"],
|
|
1533
1533
|
setup(t, { emit: e }) {
|
|
1534
|
-
const i = t, _ = S(""),
|
|
1534
|
+
const i = t, _ = S(""), C = S("");
|
|
1535
1535
|
E(
|
|
1536
1536
|
() => i.modelValue,
|
|
1537
1537
|
(v) => {
|
|
1538
1538
|
const g = i1(v);
|
|
1539
|
-
_.value = g.format("YYYY-MM-DD"),
|
|
1539
|
+
_.value = g.format("YYYY-MM-DD"), C.value = g.format("HH:mm");
|
|
1540
1540
|
}
|
|
1541
1541
|
);
|
|
1542
|
-
function
|
|
1543
|
-
const v = i1(`${_.value} ${
|
|
1542
|
+
function h() {
|
|
1543
|
+
const v = i1(`${_.value} ${C.value}`).format("YYYY-MM-DDTHH:mm:ssZ");
|
|
1544
1544
|
e("change", v), e("update:modelValue", v);
|
|
1545
1545
|
}
|
|
1546
1546
|
return h1(() => {
|
|
1547
1547
|
const v = i1();
|
|
1548
|
-
_.value = v.format("YYYY-MM-DD"),
|
|
1548
|
+
_.value = v.format("YYYY-MM-DD"), C.value = v.format("HH:mm");
|
|
1549
1549
|
}), (v, g) => (n(), s("div", E9, [
|
|
1550
1550
|
t1(o("input", {
|
|
1551
1551
|
"onUpdate:modelValue": g[0] || (g[0] = ($) => _.value = $),
|
|
1552
1552
|
type: "date",
|
|
1553
1553
|
disabled: t.disabled,
|
|
1554
|
-
onChange:
|
|
1554
|
+
onChange: h
|
|
1555
1555
|
}, null, 40, W9), [
|
|
1556
1556
|
[c1, _.value]
|
|
1557
1557
|
]),
|
|
1558
1558
|
t1(o("input", {
|
|
1559
|
-
"onUpdate:modelValue": g[1] || (g[1] = ($) =>
|
|
1559
|
+
"onUpdate:modelValue": g[1] || (g[1] = ($) => C.value = $),
|
|
1560
1560
|
type: "time",
|
|
1561
1561
|
disabled: t.disabled,
|
|
1562
|
-
onChange:
|
|
1562
|
+
onChange: h
|
|
1563
1563
|
}, null, 40, N9), [
|
|
1564
|
-
[c1,
|
|
1564
|
+
[c1, C.value]
|
|
1565
1565
|
])
|
|
1566
1566
|
]));
|
|
1567
1567
|
}
|
|
@@ -1596,7 +1596,7 @@ const R9 = ["onClick"], J9 = { class: "q-dialog-header" }, K9 = {
|
|
|
1596
1596
|
},
|
|
1597
1597
|
emits: ["update:modelValue", "close"],
|
|
1598
1598
|
setup(t, { emit: e }) {
|
|
1599
|
-
const i = t, _ = S(!1),
|
|
1599
|
+
const i = t, _ = S(!1), C = S(i.modelValue), h = I(() => {
|
|
1600
1600
|
const $ = document.body.clientWidth < 720 ? "100%" : i.width, M = i.height;
|
|
1601
1601
|
return {
|
|
1602
1602
|
width: $,
|
|
@@ -1606,7 +1606,7 @@ const R9 = ["onClick"], J9 = { class: "q-dialog-header" }, K9 = {
|
|
|
1606
1606
|
E(
|
|
1607
1607
|
() => i.modelValue,
|
|
1608
1608
|
($) => {
|
|
1609
|
-
|
|
1609
|
+
C.value = $;
|
|
1610
1610
|
}
|
|
1611
1611
|
);
|
|
1612
1612
|
function v() {
|
|
@@ -1616,20 +1616,20 @@ const R9 = ["onClick"], J9 = { class: "q-dialog-header" }, K9 = {
|
|
|
1616
1616
|
}, 300);
|
|
1617
1617
|
return;
|
|
1618
1618
|
}
|
|
1619
|
-
|
|
1619
|
+
C.value = !1, e("update:modelValue", !1), e("close");
|
|
1620
1620
|
}
|
|
1621
1621
|
function g() {
|
|
1622
1622
|
}
|
|
1623
1623
|
return ($, M) => (n(), P(C1, null, {
|
|
1624
1624
|
default: f1(() => [
|
|
1625
|
-
|
|
1625
|
+
C.value ? (n(), s("div", {
|
|
1626
1626
|
key: 0,
|
|
1627
1627
|
class: "q-dialog-mask",
|
|
1628
1628
|
onClick: v
|
|
1629
1629
|
}, [
|
|
1630
1630
|
o("div", {
|
|
1631
1631
|
class: j(["q-dialog", _.value ? "shaking" : ""]),
|
|
1632
|
-
style: w1(
|
|
1632
|
+
style: w1(h.value),
|
|
1633
1633
|
onClick: p1(g, ["stop"])
|
|
1634
1634
|
}, [
|
|
1635
1635
|
o("div", J9, [
|
|
@@ -1670,7 +1670,7 @@ const e5 = ["href"], n5 = { class: "q-fence-text" }, o5 = {
|
|
|
1670
1670
|
setup(t) {
|
|
1671
1671
|
var i;
|
|
1672
1672
|
const e = (i = H1()) == null ? void 0 : i.appContext.components;
|
|
1673
|
-
return (_,
|
|
1673
|
+
return (_, C) => (n(), s("div", {
|
|
1674
1674
|
class: j(["q-fence", t.type])
|
|
1675
1675
|
}, [
|
|
1676
1676
|
t.link ? (n(), s("a", {
|
|
@@ -1729,18 +1729,18 @@ const u5 = /* @__PURE__ */ l(i5, [["render", a5]]), _5 = { class: "q-menu" }, h5
|
|
|
1729
1729
|
emits: ["action"],
|
|
1730
1730
|
setup(t, { emit: e }) {
|
|
1731
1731
|
const i = t;
|
|
1732
|
-
function _(
|
|
1732
|
+
function _(h) {
|
|
1733
1733
|
let v = "";
|
|
1734
|
-
return
|
|
1734
|
+
return h.disabled && (v += " disabled"), h.danger && (v += " danger"), h.icon && (v += " with-icon"), h.image && (v += " with-image"), h.divider && (v += " with-divider"), v;
|
|
1735
1735
|
}
|
|
1736
|
-
function h
|
|
1737
|
-
|
|
1736
|
+
function C(h) {
|
|
1737
|
+
h.action && h.action(h), h.disabled !== !0 && e("action", h);
|
|
1738
1738
|
}
|
|
1739
|
-
return (
|
|
1739
|
+
return (h, v) => (n(), s("div", _5, [
|
|
1740
1740
|
(n(!0), s(g1, null, v1(i.items, (g) => (n(), s("div", {
|
|
1741
1741
|
class: j(["q-menu-item", _(g)]),
|
|
1742
1742
|
key: `q-menu-item-${g.id}`,
|
|
1743
|
-
onClick: ($) =>
|
|
1743
|
+
onClick: ($) => C(g)
|
|
1744
1744
|
}, [
|
|
1745
1745
|
g.divider ? (n(), s("div", C5)) : (n(), s("div", f5, [
|
|
1746
1746
|
g.image ? (n(), s("img", {
|
|
@@ -1776,20 +1776,20 @@ const m5 = ["disabled"], M5 = /* @__PURE__ */ o("div", { class: "q-switch-inner"
|
|
|
1776
1776
|
emits: ["update:modelValue", "change"],
|
|
1777
1777
|
setup(t, { emit: e }) {
|
|
1778
1778
|
const i = t, _ = S(i.modelValue);
|
|
1779
|
-
E(() => i.modelValue, (
|
|
1780
|
-
_.value =
|
|
1779
|
+
E(() => i.modelValue, (h) => {
|
|
1780
|
+
_.value = h;
|
|
1781
1781
|
});
|
|
1782
|
-
function h
|
|
1782
|
+
function C(h) {
|
|
1783
1783
|
e("update:modelValue", _.value), e("change", _.value);
|
|
1784
1784
|
}
|
|
1785
|
-
return (
|
|
1785
|
+
return (h, v) => (n(), s("label", {
|
|
1786
1786
|
class: j(["q-switch", t.disabled ? "disabled" : ""])
|
|
1787
1787
|
}, [
|
|
1788
1788
|
t1(o("input", {
|
|
1789
1789
|
class: "q-switch-checkbox",
|
|
1790
1790
|
type: "checkbox",
|
|
1791
1791
|
"onUpdate:modelValue": v[0] || (v[0] = (g) => _.value = g),
|
|
1792
|
-
onChange:
|
|
1792
|
+
onChange: C,
|
|
1793
1793
|
disabled: i.disabled
|
|
1794
1794
|
}, null, 40, m5), [
|
|
1795
1795
|
[b1, _.value]
|
|
@@ -1835,10 +1835,10 @@ const x5 = { class: "q-text-field-wrapper" }, L5 = ["placeholder"], y5 = { class
|
|
|
1835
1835
|
},
|
|
1836
1836
|
emits: ["submit", "update:modelValue"],
|
|
1837
1837
|
setup(t, { emit: e }) {
|
|
1838
|
-
const i = t, _ = S(i.defaultText),
|
|
1838
|
+
const i = t, _ = S(i.defaultText), C = I(() => {
|
|
1839
1839
|
const u = [];
|
|
1840
1840
|
return i.layout === "vertical" ? u.push("vertical") : u.push("horizontal"), i.type === "code" && u.push("code"), i.glow && u.push(`glow-${i.glow}`), u.join(" ");
|
|
1841
|
-
}),
|
|
1841
|
+
}), h = I(() => {
|
|
1842
1842
|
var L;
|
|
1843
1843
|
return i.loading || ((L = _.value) == null ? void 0 : L.trim()).length === 0 ? !1 : i.type === "email" ? v.value : i.type === "code" ? g.value : !0;
|
|
1844
1844
|
}), v = I(() => {
|
|
@@ -1854,13 +1854,13 @@ const x5 = { class: "q-text-field-wrapper" }, L5 = ["placeholder"], y5 = { class
|
|
|
1854
1854
|
_.value = u;
|
|
1855
1855
|
});
|
|
1856
1856
|
function M() {
|
|
1857
|
-
|
|
1857
|
+
h.value && e("submit", { text: _.value });
|
|
1858
1858
|
}
|
|
1859
1859
|
function x() {
|
|
1860
1860
|
e("update:modelValue", _.value);
|
|
1861
1861
|
}
|
|
1862
1862
|
return (u, L) => (n(), s("div", {
|
|
1863
|
-
class: j(["q-text-field-with-button",
|
|
1863
|
+
class: j(["q-text-field-with-button", C.value])
|
|
1864
1864
|
}, [
|
|
1865
1865
|
o("div", x5, [
|
|
1866
1866
|
t1(o("input", {
|
|
@@ -1875,7 +1875,7 @@ const x5 = { class: "q-text-field-wrapper" }, L5 = ["placeholder"], y5 = { class
|
|
|
1875
1875
|
o("div", y5, [
|
|
1876
1876
|
o("button", {
|
|
1877
1877
|
class: "q-button button primary",
|
|
1878
|
-
disabled: !
|
|
1878
|
+
disabled: !h.value,
|
|
1879
1879
|
onClick: M
|
|
1880
1880
|
}, D($.value), 9, V5)
|
|
1881
1881
|
]),
|
|
@@ -1920,27 +1920,27 @@ const z5 = { class: "q-dropdown-menu" }, Q5 = { class: "q-dropdown-menu-inner na
|
|
|
1920
1920
|
},
|
|
1921
1921
|
emits: ["change"],
|
|
1922
1922
|
setup(t, { emit: e }) {
|
|
1923
|
-
const i = t, _ = z1(),
|
|
1923
|
+
const i = t, _ = z1(), C = S(!1), h = S(null), v = S(null), g = I(() => {
|
|
1924
1924
|
const u = [];
|
|
1925
|
-
return
|
|
1925
|
+
return C.value && u.push("expanded"), i.variant === "outlined" && u.push("frame"), i.hideSelected && u.push("hide-selected"), h.value && (h.value.icon || h.value.image) ? u.push("prepend") : u.push("no-prepend"), u.join(" ");
|
|
1926
1926
|
}), $ = I(() => _.default !== void 0);
|
|
1927
1927
|
function M() {
|
|
1928
|
-
|
|
1928
|
+
C.value || k1(), C.value = !C.value, C.value && setTimeout(() => {
|
|
1929
1929
|
const L = v.value.querySelector(".q-menu");
|
|
1930
1930
|
L.getBoundingClientRect().left < 0 && (L.style.left = "0");
|
|
1931
1931
|
}, 10);
|
|
1932
1932
|
}
|
|
1933
1933
|
function x(u) {
|
|
1934
|
-
|
|
1934
|
+
C.value = !1, h.value = u, u.action && u.action(u), e("change", u);
|
|
1935
1935
|
}
|
|
1936
1936
|
return E(
|
|
1937
1937
|
() => i.initialItem,
|
|
1938
1938
|
() => {
|
|
1939
|
-
i.initialItem && (
|
|
1939
|
+
i.initialItem && (h.value = i.initialItem);
|
|
1940
1940
|
}
|
|
1941
1941
|
), h1(() => {
|
|
1942
|
-
i.initialItem && (
|
|
1943
|
-
u.key === "quailui_global_popup_trigger" && u.newValue && (
|
|
1942
|
+
i.initialItem && (h.value = i.initialItem), window.addEventListener("storage", (u) => {
|
|
1943
|
+
u.key === "quailui_global_popup_trigger" && u.newValue && (C.value = !1);
|
|
1944
1944
|
});
|
|
1945
1945
|
}), (u, L) => {
|
|
1946
1946
|
const Q = _1("q-icon-chevron-down"), q = _1("q-menu");
|
|
@@ -1950,17 +1950,17 @@ const z5 = { class: "q-dropdown-menu" }, Q5 = { class: "q-dropdown-menu-inner na
|
|
|
1950
1950
|
class: j(["q-dropdown-menu-action", g.value]),
|
|
1951
1951
|
onClick: p1(M, ["stop"])
|
|
1952
1952
|
}, [
|
|
1953
|
-
!t.hideSelected &&
|
|
1954
|
-
|
|
1953
|
+
!t.hideSelected && h.value && !$.value ? (n(), s("div", I5, [
|
|
1954
|
+
h.value.image ? (n(), s("img", {
|
|
1955
1955
|
key: 0,
|
|
1956
1956
|
class: "menu-image",
|
|
1957
|
-
src:
|
|
1958
|
-
alt:
|
|
1959
|
-
}, null, 8, S5)) :
|
|
1957
|
+
src: h.value.image,
|
|
1958
|
+
alt: h.value.title
|
|
1959
|
+
}, null, 8, S5)) : h.value.icon ? (n(), P(e1(h.value.icon), {
|
|
1960
1960
|
key: 1,
|
|
1961
1961
|
class: "icon menu-icon"
|
|
1962
1962
|
})) : F("", !0),
|
|
1963
|
-
o("div", j5, D(
|
|
1963
|
+
o("div", j5, D(h.value ? h.value.title : i.placeholder || "Select ..."), 1)
|
|
1964
1964
|
])) : F("", !0),
|
|
1965
1965
|
l1(u.$slots, "default"),
|
|
1966
1966
|
n1(Q, { class: "icon chevron-icon" })
|
|
@@ -1971,7 +1971,7 @@ const z5 = { class: "q-dropdown-menu" }, Q5 = { class: "q-dropdown-menu-inner na
|
|
|
1971
1971
|
}, [
|
|
1972
1972
|
n1(C1, null, {
|
|
1973
1973
|
default: f1(() => [
|
|
1974
|
-
|
|
1974
|
+
C.value ? (n(), P(q, {
|
|
1975
1975
|
key: 0,
|
|
1976
1976
|
items: t.items,
|
|
1977
1977
|
onAction: x
|
|
@@ -2022,30 +2022,30 @@ const Z5 = { class: "q-pagination" }, q5 = ["disabled"], O5 = {
|
|
|
2022
2022
|
M.push({ label: x });
|
|
2023
2023
|
else {
|
|
2024
2024
|
M.push({ label: 1 });
|
|
2025
|
-
let x =
|
|
2025
|
+
let x = C.value - 2, u = C.value + 2;
|
|
2026
2026
|
x < 2 && (x = 2, u = x + $ - 2), u > i.totalPage - 1 && (u = i.totalPage - 1, x = u - $ + 2), x > 2 && M.push({ label: "…", disabled: !0 });
|
|
2027
2027
|
for (let L = x; L <= u; L++)
|
|
2028
2028
|
M.push({ label: L });
|
|
2029
2029
|
u < i.totalPage - 1 && M.push({ label: "…", disabled: !0 }), M.push({ label: i.totalPage });
|
|
2030
2030
|
}
|
|
2031
2031
|
return M;
|
|
2032
|
-
}),
|
|
2032
|
+
}), C = S(i.modelValue);
|
|
2033
2033
|
E(() => i.modelValue, ($) => {
|
|
2034
|
-
|
|
2034
|
+
C.value = $;
|
|
2035
2035
|
});
|
|
2036
|
-
function
|
|
2037
|
-
|
|
2036
|
+
function h() {
|
|
2037
|
+
C.value--, e("change:prev", C.value), e("update:modelValue", C.value);
|
|
2038
2038
|
}
|
|
2039
2039
|
function v() {
|
|
2040
|
-
|
|
2040
|
+
C.value++, e("change:next", C.value), e("update:modelValue", C.value);
|
|
2041
2041
|
}
|
|
2042
2042
|
function g($, M) {
|
|
2043
|
-
M.disabled || (
|
|
2043
|
+
M.disabled || (C.value = $, e("change:goto", C.value), e("update:modelValue", C.value));
|
|
2044
2044
|
}
|
|
2045
2045
|
return ($, M) => (n(), s("div", Z5, [
|
|
2046
2046
|
o("button", {
|
|
2047
2047
|
class: "prev q-button button sm outlined icon",
|
|
2048
|
-
onClick:
|
|
2048
|
+
onClick: h,
|
|
2049
2049
|
disabled: !i.hasPrev
|
|
2050
2050
|
}, [
|
|
2051
2051
|
n1($1, { class: "icon" })
|
|
@@ -2053,7 +2053,7 @@ const Z5 = { class: "q-pagination" }, q5 = ["disabled"], O5 = {
|
|
|
2053
2053
|
t.totalPage !== 0 ? (n(), s("div", O5, [
|
|
2054
2054
|
(n(!0), s(g1, null, v1(_.value, (x) => (n(), s("div", P5, [
|
|
2055
2055
|
o("button", {
|
|
2056
|
-
class: j(["q-page-indicator q-button button sm plain", x.label ===
|
|
2056
|
+
class: j(["q-page-indicator q-button button sm plain", x.label === C.value ? "active" : ""]),
|
|
2057
2057
|
disabled: x.disabled,
|
|
2058
2058
|
onClick: (u) => g(x.label, x)
|
|
2059
2059
|
}, D(x.label), 11, T5)
|
|
@@ -2095,7 +2095,7 @@ const E5 = { class: "q-progress-slot" }, W5 = /* @__PURE__ */ o("div", { class:
|
|
|
2095
2095
|
},
|
|
2096
2096
|
setup(t) {
|
|
2097
2097
|
const e = t, i = I(() => e.infinite ? "100%" : `${e.value / e.max * 100}%`), _ = I(() => e.value >= e.max);
|
|
2098
|
-
return (
|
|
2098
|
+
return (C, h) => (n(), s("div", {
|
|
2099
2099
|
class: j(["q-progress", t.color])
|
|
2100
2100
|
}, [
|
|
2101
2101
|
o("div", E5, [
|