@campus-admin/core 2.0.3 → 2.0.4
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 +149 -123
- package/dist/layout/UserAvatar.vue.d.ts +8 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +1 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1554,21 +1554,39 @@ var Vt = {
|
|
|
1554
1554
|
preview: ""
|
|
1555
1555
|
}));
|
|
1556
1556
|
}
|
|
1557
|
-
}), rn = { class: "ca-
|
|
1557
|
+
}), rn = { class: "ca-user-avatar" }, an = ["src"], on = /*#__PURE__*/ Y(/* @__PURE__ */ d({
|
|
1558
|
+
__name: "UserAvatar",
|
|
1559
|
+
props: {
|
|
1560
|
+
name: {},
|
|
1561
|
+
src: {}
|
|
1562
|
+
},
|
|
1563
|
+
setup(t) {
|
|
1564
|
+
let n = t, r = x(!1);
|
|
1565
|
+
return A(() => n.src, () => {
|
|
1566
|
+
r.value = !1;
|
|
1567
|
+
}), (n, i) => (y(), o("span", rn, [t.src && !r.value ? (y(), o("img", {
|
|
1568
|
+
key: 0,
|
|
1569
|
+
src: t.src,
|
|
1570
|
+
alt: "",
|
|
1571
|
+
draggable: "false",
|
|
1572
|
+
onError: i[0] ||= (e) => r.value = !0
|
|
1573
|
+
}, null, 40, an)) : (y(), o(e, { key: 1 }, [l(E(t.name?.slice(0, 1)), 1)], 64))]));
|
|
1574
|
+
}
|
|
1575
|
+
}), [["__scopeId", "data-v-b67c1b85"]]), sn = { class: "ca-header" }, cn = ["aria-label", "aria-expanded"], ln = { class: "ca-header__brand" }, un = ["src"], dn = { class: "ca-header__titles" }, fn = { class: "ca-header__name" }, pn = {
|
|
1558
1576
|
key: 0,
|
|
1559
1577
|
class: "ca-header__subtitle"
|
|
1560
|
-
},
|
|
1578
|
+
}, mn = ["aria-label"], hn = ["onClick"], gn = { class: "ca-header__tools" }, _n = { class: "ca-header__search-text" }, vn = [
|
|
1561
1579
|
"title",
|
|
1562
1580
|
"aria-label",
|
|
1563
1581
|
"aria-pressed"
|
|
1564
|
-
],
|
|
1582
|
+
], yn = ["title", "aria-label"], bn = { class: "ca-header__icon-text" }, xn = ["title", "aria-label"], Sn = ["title", "aria-label"], Cn = ["title", "aria-label"], wn = ["title", "aria-label"], Tn = { class: "ca-settings__group" }, En = { class: "ca-settings__title" }, Dn = ["aria-label"], On = ["aria-checked", "onClick"], kn = {
|
|
1565
1583
|
key: 0,
|
|
1566
1584
|
class: "ca-settings__group"
|
|
1567
|
-
},
|
|
1585
|
+
}, An = { class: "ca-settings__title" }, jn = ["aria-label"], Mn = [
|
|
1568
1586
|
"aria-label",
|
|
1569
1587
|
"aria-checked",
|
|
1570
1588
|
"onClick"
|
|
1571
|
-
],
|
|
1589
|
+
], Nn = ["title"], Pn = ["value", "aria-label"], Fn = ["disabled"], In = { class: "ca-settings__group" }, Ln = { class: "ca-settings__title" }, Rn = ["aria-label"], zn = ["aria-checked", "onClick"], Bn = /*#__PURE__*/ Y(/* @__PURE__ */ d({
|
|
1572
1590
|
__name: "HeaderBar",
|
|
1573
1591
|
setup(t) {
|
|
1574
1592
|
let r = V(), c = H(), d = Q(), f = X(), p = ze(), { t: m, label: b, locale: C } = W(), T = K(), O = x(!1), k = [{
|
|
@@ -1632,7 +1650,7 @@ var Vt = {
|
|
|
1632
1650
|
}
|
|
1633
1651
|
return (t, n) => {
|
|
1634
1652
|
let c = w("ca-icon"), _ = w("ca-dropdown-item"), v = w("ca-dropdown-menu"), x = w("ca-dropdown"), B = w("ca-drawer");
|
|
1635
|
-
return y(), o("header",
|
|
1653
|
+
return y(), o("header", sn, [
|
|
1636
1654
|
s("button", {
|
|
1637
1655
|
type: "button",
|
|
1638
1656
|
class: "ca-header__hamburger ca-header__icon",
|
|
@@ -1648,13 +1666,13 @@ var Vt = {
|
|
|
1648
1666
|
"stroke-width": "2",
|
|
1649
1667
|
"stroke-linecap": "round",
|
|
1650
1668
|
"aria-hidden": "true"
|
|
1651
|
-
}, [s("path", { d: "M4 6h16M4 12h16M4 18h16" })], -1)]], 8,
|
|
1652
|
-
s("div",
|
|
1669
|
+
}, [s("path", { d: "M4 6h16M4 12h16M4 18h16" })], -1)]], 8, cn),
|
|
1670
|
+
s("div", ln, [j.value ? (y(), o("img", {
|
|
1653
1671
|
key: 0,
|
|
1654
1672
|
src: j.value,
|
|
1655
1673
|
alt: "",
|
|
1656
1674
|
class: "ca-header__logo"
|
|
1657
|
-
}, null, 8,
|
|
1675
|
+
}, null, 8, un)) : (y(), o(e, { key: 1 }, [a(" 没有配置 logo 时用框架默认标志(学士帽),颜色跟随头部前景色 "), n[9] ||= s("svg", {
|
|
1658
1676
|
class: "ca-header__logo",
|
|
1659
1677
|
viewBox: "0 0 32 32",
|
|
1660
1678
|
fill: "none",
|
|
@@ -1667,7 +1685,7 @@ var Vt = {
|
|
|
1667
1685
|
s("path", { d: "M16 6 3 12.5 16 19l13-6.5L16 6Z" }),
|
|
1668
1686
|
s("path", { d: "M9 16.5v5.2c0 1.6 3.1 3.3 7 3.3s7-1.7 7-3.3v-5.2" }),
|
|
1669
1687
|
s("path", { d: "M29 12.5V20" })
|
|
1670
|
-
], -1)], 2112)), s("div",
|
|
1688
|
+
], -1)], 2112)), s("div", dn, [s("strong", fn, E(A.value), 1), D(T).brand.subtitle ? (y(), o("span", pn, E(D(b)(D(T).brand.subtitle)), 1)) : a("v-if", !0)])]),
|
|
1671
1689
|
s("nav", {
|
|
1672
1690
|
class: "ca-header__nav",
|
|
1673
1691
|
"aria-label": D(m)("campus.header.shortcuts")
|
|
@@ -1676,15 +1694,15 @@ var Vt = {
|
|
|
1676
1694
|
class: h(["ca-header__nav-item", { "is-active": D(r).path === e.path }]),
|
|
1677
1695
|
type: "button",
|
|
1678
1696
|
onClick: (t) => P(e.path)
|
|
1679
|
-
}, E(D(b)(e.title)), 11,
|
|
1680
|
-
s("div",
|
|
1697
|
+
}, E(D(b)(e.title)), 11, hn))), 128))], 8, mn),
|
|
1698
|
+
s("div", gn, [
|
|
1681
1699
|
s("button", {
|
|
1682
1700
|
type: "button",
|
|
1683
1701
|
class: "ca-header__search",
|
|
1684
1702
|
onClick: n[1] ||= (e) => ie("search")
|
|
1685
1703
|
}, [
|
|
1686
1704
|
u(c, { name: "search" }),
|
|
1687
|
-
s("span",
|
|
1705
|
+
s("span", _n, E(D(m)("campus.header.search")), 1),
|
|
1688
1706
|
n[10] ||= s("kbd", { class: "ca-header__kbd" }, "⌘ K", -1)
|
|
1689
1707
|
]),
|
|
1690
1708
|
s("button", {
|
|
@@ -1697,7 +1715,7 @@ var Vt = {
|
|
|
1697
1715
|
}, [u(c, {
|
|
1698
1716
|
name: z.value ? "exitFullscreen" : "fullscreen",
|
|
1699
1717
|
size: 18
|
|
1700
|
-
}, null, 8, ["name"])], 8,
|
|
1718
|
+
}, null, 8, ["name"])], 8, vn),
|
|
1701
1719
|
u(x, {
|
|
1702
1720
|
trigger: "click",
|
|
1703
1721
|
onCommand: te
|
|
@@ -1718,7 +1736,7 @@ var Vt = {
|
|
|
1718
1736
|
class: "ca-header__icon",
|
|
1719
1737
|
title: D(m)("campus.header.language"),
|
|
1720
1738
|
"aria-label": D(m)("campus.header.language")
|
|
1721
|
-
}, [s("span",
|
|
1739
|
+
}, [s("span", bn, E(D(ee).find((e) => e.code === D(C))?.label), 1)], 8, yn)]),
|
|
1722
1740
|
_: 1
|
|
1723
1741
|
}),
|
|
1724
1742
|
s("button", {
|
|
@@ -1733,7 +1751,7 @@ var Vt = {
|
|
|
1733
1751
|
}), n[11] ||= s("i", {
|
|
1734
1752
|
class: "ca-header__dot is-danger",
|
|
1735
1753
|
"aria-hidden": "true"
|
|
1736
|
-
}, null, -1)], 8,
|
|
1754
|
+
}, null, -1)], 8, xn),
|
|
1737
1755
|
s("button", {
|
|
1738
1756
|
type: "button",
|
|
1739
1757
|
class: "ca-header__icon ca-header__desktop-tool",
|
|
@@ -1746,7 +1764,7 @@ var Vt = {
|
|
|
1746
1764
|
}), n[12] ||= s("i", {
|
|
1747
1765
|
class: "ca-header__dot is-success",
|
|
1748
1766
|
"aria-hidden": "true"
|
|
1749
|
-
}, null, -1)], 8,
|
|
1767
|
+
}, null, -1)], 8, Sn),
|
|
1750
1768
|
s("button", {
|
|
1751
1769
|
type: "button",
|
|
1752
1770
|
class: "ca-header__icon",
|
|
@@ -1756,7 +1774,7 @@ var Vt = {
|
|
|
1756
1774
|
}, [u(c, {
|
|
1757
1775
|
name: "setting",
|
|
1758
1776
|
size: 18
|
|
1759
|
-
})], 8,
|
|
1777
|
+
})], 8, Cn),
|
|
1760
1778
|
u(x, {
|
|
1761
1779
|
trigger: "click",
|
|
1762
1780
|
onCommand: ne
|
|
@@ -1782,10 +1800,14 @@ var Vt = {
|
|
|
1782
1800
|
class: "ca-header__user",
|
|
1783
1801
|
title: D(m)("campus.header.account"),
|
|
1784
1802
|
"aria-label": D(d).user?.name
|
|
1785
|
-
}, [
|
|
1803
|
+
}, [u(on, {
|
|
1804
|
+
class: "ca-header__avatar",
|
|
1805
|
+
name: D(d).user?.name,
|
|
1806
|
+
src: D(d).user?.avatar
|
|
1807
|
+
}, null, 8, ["name", "src"]), u(c, {
|
|
1786
1808
|
name: "arrowDown",
|
|
1787
1809
|
size: 12
|
|
1788
|
-
})], 8,
|
|
1810
|
+
})], 8, wn)]),
|
|
1789
1811
|
_: 1
|
|
1790
1812
|
})
|
|
1791
1813
|
]),
|
|
@@ -1798,7 +1820,7 @@ var Vt = {
|
|
|
1798
1820
|
class: "ca-settings"
|
|
1799
1821
|
}, {
|
|
1800
1822
|
default: M(() => [
|
|
1801
|
-
s("section",
|
|
1823
|
+
s("section", Tn, [s("h3", En, [s("span", null, E(D(m)("campus.settings.themeMode")), 1)]), s("div", {
|
|
1802
1824
|
class: "ca-settings__segment is-three",
|
|
1803
1825
|
role: "radiogroup",
|
|
1804
1826
|
"aria-label": D(m)("campus.settings.themeMode")
|
|
@@ -1812,9 +1834,9 @@ var Vt = {
|
|
|
1812
1834
|
}, [u(c, {
|
|
1813
1835
|
name: e.icon,
|
|
1814
1836
|
size: 16
|
|
1815
|
-
}, null, 8, ["name"]), l(E(D(m)(`campus.mode.${e.value}`)), 1)], 10,
|
|
1816
|
-
D(p).primaryLocked ? a("v-if", !0) : (y(), o("section",
|
|
1817
|
-
s("h3",
|
|
1837
|
+
}, null, 8, ["name"]), l(E(D(m)(`campus.mode.${e.value}`)), 1)], 10, On)), 64))], 8, Dn)]),
|
|
1838
|
+
D(p).primaryLocked ? a("v-if", !0) : (y(), o("section", kn, [
|
|
1839
|
+
s("h3", An, [s("span", null, E(D(m)("campus.settings.themeColor")), 1)]),
|
|
1818
1840
|
s("div", {
|
|
1819
1841
|
class: "ca-settings__swatches",
|
|
1820
1842
|
role: "radiogroup",
|
|
@@ -1828,7 +1850,7 @@ var Vt = {
|
|
|
1828
1850
|
"aria-label": e,
|
|
1829
1851
|
"aria-checked": D(p).userPrimary?.toLowerCase() === e,
|
|
1830
1852
|
onClick: (t) => D(p).setPrimary(e)
|
|
1831
|
-
}, null, 14,
|
|
1853
|
+
}, null, 14, Mn)), 64)), s("label", {
|
|
1832
1854
|
class: "ca-settings__swatch is-custom",
|
|
1833
1855
|
title: D(m)("campus.settings.themeColorCustom")
|
|
1834
1856
|
}, [s("input", {
|
|
@@ -1836,15 +1858,15 @@ var Vt = {
|
|
|
1836
1858
|
value: L.value,
|
|
1837
1859
|
"aria-label": D(m)("campus.settings.themeColorCustom"),
|
|
1838
1860
|
onInput: n[5] ||= (e) => D(p).setPrimary(e.target.value)
|
|
1839
|
-
}, null, 40,
|
|
1861
|
+
}, null, 40, Pn)], 8, Nn)], 8, jn),
|
|
1840
1862
|
s("button", {
|
|
1841
1863
|
type: "button",
|
|
1842
1864
|
class: "ca-settings__reset",
|
|
1843
1865
|
disabled: !D(p).userPrimary,
|
|
1844
1866
|
onClick: n[6] ||= (e) => D(p).setPrimary(void 0)
|
|
1845
|
-
}, E(D(m)("campus.settings.themeColorReset")), 9,
|
|
1867
|
+
}, E(D(m)("campus.settings.themeColorReset")), 9, Fn)
|
|
1846
1868
|
])),
|
|
1847
|
-
s("section",
|
|
1869
|
+
s("section", In, [s("h3", Ln, [s("span", null, E(D(m)("campus.settings.boxStyle")), 1)]), s("div", {
|
|
1848
1870
|
class: "ca-settings__segment",
|
|
1849
1871
|
role: "radiogroup",
|
|
1850
1872
|
"aria-label": D(m)("campus.settings.boxStyle")
|
|
@@ -1855,17 +1877,17 @@ var Vt = {
|
|
|
1855
1877
|
"aria-checked": D(p).boxStyle === e.value,
|
|
1856
1878
|
class: h({ "is-active": D(p).boxStyle === e.value }),
|
|
1857
1879
|
onClick: (t) => D(p).setBoxStyle(e.value)
|
|
1858
|
-
}, E(D(m)(e.label)), 11,
|
|
1880
|
+
}, E(D(m)(e.label)), 11, zn)), 64))], 8, Rn)])
|
|
1859
1881
|
]),
|
|
1860
1882
|
_: 1
|
|
1861
1883
|
}, 8, ["modelValue", "title"])
|
|
1862
1884
|
]);
|
|
1863
1885
|
};
|
|
1864
1886
|
}
|
|
1865
|
-
}), [["__scopeId", "data-v-
|
|
1887
|
+
}), [["__scopeId", "data-v-1b60a583"]]), Vn = {
|
|
1866
1888
|
key: 0,
|
|
1867
1889
|
class: "ca-page-header"
|
|
1868
|
-
},
|
|
1890
|
+
}, Hn = { class: "ca-page-header__top" }, Un = { class: "ca-page-header__crumb" }, Wn = ["title", "aria-label"], Gn = { class: "ca-page-header__date" }, Kn = /*#__PURE__*/ Y(/* @__PURE__ */ d({
|
|
1869
1891
|
__name: "PageHeader",
|
|
1870
1892
|
setup(t) {
|
|
1871
1893
|
let r = V(), { t: c, label: d, locale: f } = W(), p = Z(), m = new Map(je(K().menus).map((e) => [e.key, e])), h = n(() => r.meta.pageKey ? m.get(r.meta.pageKey) : void 0), g = n(() => {
|
|
@@ -1885,7 +1907,7 @@ var Vt = {
|
|
|
1885
1907
|
});
|
|
1886
1908
|
return (t, n) => {
|
|
1887
1909
|
let r = w("ca-icon"), d = w("ca-breadcrumb-item"), f = w("ca-breadcrumb");
|
|
1888
|
-
return h.value ? (y(), o("header",
|
|
1910
|
+
return h.value ? (y(), o("header", Vn, [s("div", Hn, [s("div", Un, [
|
|
1889
1911
|
u(r, {
|
|
1890
1912
|
name: "location",
|
|
1891
1913
|
class: "ca-page-header__icon"
|
|
@@ -1905,26 +1927,26 @@ var Vt = {
|
|
|
1905
1927
|
title: D(c)("campus.tabs.refresh"),
|
|
1906
1928
|
"aria-label": D(c)("campus.tabs.refresh"),
|
|
1907
1929
|
onClick: n[0] ||= (e) => h.value && D(p).refresh(h.value.key)
|
|
1908
|
-
}, [u(r, { name: "refresh" })], 8,
|
|
1909
|
-
]), s("time",
|
|
1930
|
+
}, [u(r, { name: "refresh" })], 8, Wn)
|
|
1931
|
+
]), s("time", Gn, E(C.value), 1)])])) : a("v-if", !0);
|
|
1910
1932
|
};
|
|
1911
1933
|
}
|
|
1912
|
-
}), [["__scopeId", "data-v-e0f9b42f"]]),
|
|
1934
|
+
}), [["__scopeId", "data-v-e0f9b42f"]]), qn = {
|
|
1913
1935
|
key: 0,
|
|
1914
1936
|
class: "ca-page-header__main"
|
|
1915
|
-
},
|
|
1937
|
+
}, Jn = { class: "ca-page-header__titles" }, Yn = { class: "ca-page-header__title" }, Xn = ["title"], Zn = /*#__PURE__*/ Y(/* @__PURE__ */ d({
|
|
1916
1938
|
__name: "PageTitle",
|
|
1917
1939
|
setup(e) {
|
|
1918
1940
|
let t = V(), { label: r } = W(), i = new Map(je(K().menus).map((e) => [e.key, e])), c = n(() => t.meta.pageKey ? i.get(t.meta.pageKey) : void 0), l = n(() => c.value ? r(c.value.title) : ""), u = n(() => c.value?.description ? r(c.value.description) : "");
|
|
1919
|
-
return (e, t) => c.value ? (y(), o("header",
|
|
1920
|
-
s("div",
|
|
1921
|
-
s("h2",
|
|
1941
|
+
return (e, t) => c.value ? (y(), o("header", qn, [
|
|
1942
|
+
s("div", Jn, [
|
|
1943
|
+
s("h2", Yn, E(l.value), 1),
|
|
1922
1944
|
a(" 说明和标题同一行,放不下时省略;窗口较矮时直接隐藏,把高度留给内容 "),
|
|
1923
1945
|
u.value ? (y(), o("p", {
|
|
1924
1946
|
key: 0,
|
|
1925
1947
|
class: "ca-page-header__desc",
|
|
1926
1948
|
title: u.value
|
|
1927
|
-
}, E(u.value), 9,
|
|
1949
|
+
}, E(u.value), 9, Xn)) : a("v-if", !0)
|
|
1928
1950
|
]),
|
|
1929
1951
|
a(" 页面通过 <ca-page-actions> 把按钮放到这里 "),
|
|
1930
1952
|
t[0] ||= s("div", {
|
|
@@ -1933,28 +1955,28 @@ var Vt = {
|
|
|
1933
1955
|
}, null, -1)
|
|
1934
1956
|
])) : a("v-if", !0);
|
|
1935
1957
|
}
|
|
1936
|
-
}), [["__scopeId", "data-v-e63e651d"]]),
|
|
1958
|
+
}), [["__scopeId", "data-v-e63e651d"]]), Qn = ["aria-label"], $n = ["onClick"], er = { class: "ca-side__rail-list" }, tr = ["aria-current", "title"], nr = [
|
|
1937
1959
|
"aria-current",
|
|
1938
1960
|
"title",
|
|
1939
1961
|
"onClick"
|
|
1940
|
-
],
|
|
1962
|
+
], rr = {
|
|
1941
1963
|
key: 0,
|
|
1942
1964
|
class: "ca-side__badge"
|
|
1943
|
-
},
|
|
1965
|
+
}, ir = { class: "ca-side__tools" }, ar = [
|
|
1944
1966
|
"title",
|
|
1945
1967
|
"aria-label",
|
|
1946
1968
|
"aria-pressed"
|
|
1947
|
-
],
|
|
1969
|
+
], or = [
|
|
1948
1970
|
"title",
|
|
1949
1971
|
"aria-label",
|
|
1950
1972
|
"aria-expanded"
|
|
1951
|
-
],
|
|
1973
|
+
], sr = ["title", "aria-label"], cr = ["inert"], lr = { class: "ca-side__panel-inner" }, ur = {
|
|
1952
1974
|
key: 0,
|
|
1953
1975
|
class: "ca-side__title"
|
|
1954
|
-
},
|
|
1976
|
+
}, dr = {
|
|
1955
1977
|
key: 1,
|
|
1956
1978
|
class: "ca-side__group-badge"
|
|
1957
|
-
},
|
|
1979
|
+
}, fr = /*#__PURE__*/ Y(/* @__PURE__ */ d({
|
|
1958
1980
|
__name: "SideMenu",
|
|
1959
1981
|
setup(t) {
|
|
1960
1982
|
let r = V(), c = H(), d = Q(), f = X(), { t: p, label: m } = W(), g = K(), _ = x(ge("side-collapsed") === "1");
|
|
@@ -2008,10 +2030,10 @@ var Vt = {
|
|
|
2008
2030
|
type: "button",
|
|
2009
2031
|
class: h({ "is-active": D(r).path === e.path }),
|
|
2010
2032
|
onClick: (t) => ae(e.path)
|
|
2011
|
-
}, E(D(m)(e.title)), 11,
|
|
2033
|
+
}, E(D(m)(e.title)), 11, $n))), 128))], 8, Qn)) : a("v-if", !0),
|
|
2012
2034
|
s("nav", { class: h(["ca-side__rail", { "is-compact": b.value }]) }, [
|
|
2013
2035
|
a(" 入口列表单独滚动;底部工具按钮固定在外面,窗口再矮也不会被挤出屏幕 "),
|
|
2014
|
-
s("div",
|
|
2036
|
+
s("div", er, [O.value ? (y(), o("button", {
|
|
2015
2037
|
key: 0,
|
|
2016
2038
|
type: "button",
|
|
2017
2039
|
class: h(["ca-side__rail-item", { "is-active": I.value }]),
|
|
@@ -2021,7 +2043,7 @@ var Vt = {
|
|
|
2021
2043
|
}, [u(c, {
|
|
2022
2044
|
name: "home",
|
|
2023
2045
|
size: 20
|
|
2024
|
-
}), N(s("span", { class: "ca-side__rail-text" }, E(D(p)("campus.side.home")), 513), [[k, !b.value || D(f).mobileMenuOpen]])], 10,
|
|
2046
|
+
}), N(s("span", { class: "ca-side__rail-text" }, E(D(p)("campus.side.home")), 513), [[k, !b.value || D(f).mobileMenuOpen]])], 10, tr)) : a("v-if", !0), (y(!0), o(e, null, S(P.value, (e) => (y(), o("button", {
|
|
2025
2047
|
key: e.key,
|
|
2026
2048
|
type: "button",
|
|
2027
2049
|
class: h(["ca-side__rail-item", { "is-active": e.key === L.value?.key }]),
|
|
@@ -2034,9 +2056,9 @@ var Vt = {
|
|
|
2034
2056
|
size: 20
|
|
2035
2057
|
}, null, 8, ["name"]),
|
|
2036
2058
|
N(s("span", { class: "ca-side__rail-text" }, E(D(m)(e.title)), 513), [[k, !b.value || D(f).mobileMenuOpen]]),
|
|
2037
|
-
z(e) ? (y(), o("span",
|
|
2038
|
-
], 10,
|
|
2039
|
-
s("div",
|
|
2059
|
+
z(e) ? (y(), o("span", rr, E(z(e)), 1)) : a("v-if", !0)
|
|
2060
|
+
], 10, nr))), 128))]),
|
|
2061
|
+
s("div", ir, [
|
|
2040
2062
|
s("button", {
|
|
2041
2063
|
type: "button",
|
|
2042
2064
|
class: "ca-side__tool",
|
|
@@ -2047,7 +2069,7 @@ var Vt = {
|
|
|
2047
2069
|
}, [u(c, {
|
|
2048
2070
|
name: b.value ? "view" : "hide",
|
|
2049
2071
|
size: 18
|
|
2050
|
-
}, null, 8, ["name"])], 8,
|
|
2072
|
+
}, null, 8, ["name"])], 8, ar),
|
|
2051
2073
|
s("button", {
|
|
2052
2074
|
type: "button",
|
|
2053
2075
|
class: "ca-side__tool ca-side__tool--collapse",
|
|
@@ -2058,7 +2080,7 @@ var Vt = {
|
|
|
2058
2080
|
}, [u(c, {
|
|
2059
2081
|
name: _.value ? "expand" : "fold",
|
|
2060
2082
|
size: 18
|
|
2061
|
-
}, null, 8, ["name"])], 8,
|
|
2083
|
+
}, null, 8, ["name"])], 8, or),
|
|
2062
2084
|
u(j, {
|
|
2063
2085
|
trigger: "click",
|
|
2064
2086
|
placement: "right-end",
|
|
@@ -2085,7 +2107,11 @@ var Vt = {
|
|
|
2085
2107
|
class: "ca-side__tool",
|
|
2086
2108
|
title: D(d).user?.name,
|
|
2087
2109
|
"aria-label": D(d).user?.name
|
|
2088
|
-
}, [
|
|
2110
|
+
}, [u(on, {
|
|
2111
|
+
class: "ca-side__avatar",
|
|
2112
|
+
name: D(d).user?.name,
|
|
2113
|
+
src: D(d).user?.avatar
|
|
2114
|
+
}, null, 8, ["name", "src"])], 8, sr)]),
|
|
2089
2115
|
_: 1
|
|
2090
2116
|
})
|
|
2091
2117
|
])
|
|
@@ -2094,8 +2120,8 @@ var Vt = {
|
|
|
2094
2120
|
s("div", {
|
|
2095
2121
|
class: h(["ca-side__panel", { "is-hidden": R.value }]),
|
|
2096
2122
|
inert: R.value && !D(f).mobileMenuOpen
|
|
2097
|
-
}, [s("div",
|
|
2098
|
-
te.value ? (y(), o("div",
|
|
2123
|
+
}, [s("div", lr, [
|
|
2124
|
+
te.value ? (y(), o("div", ur, E(D(m)(te.value.title)), 1)) : a("v-if", !0),
|
|
2099
2125
|
a(" key 绑定场景:切换场景时重建菜单,展开状态不会串到别的场景 "),
|
|
2100
2126
|
(y(), i(V, {
|
|
2101
2127
|
key: te.value?.key,
|
|
@@ -2115,7 +2141,7 @@ var Vt = {
|
|
|
2115
2141
|
name: t.icon
|
|
2116
2142
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
2117
2143
|
s("span", null, E(D(m)(t.title)), 1),
|
|
2118
|
-
ne(t) ? (y(), o("span",
|
|
2144
|
+
ne(t) ? (y(), o("span", dr, E(ne(t)), 1)) : a("v-if", !0)
|
|
2119
2145
|
]),
|
|
2120
2146
|
default: M(() => [(y(!0), o(e, null, S(t.children, (e) => (y(), i(F, {
|
|
2121
2147
|
key: e.key,
|
|
@@ -2134,31 +2160,31 @@ var Vt = {
|
|
|
2134
2160
|
}, 1032, ["index"])], 2112))], 64))), 128))]),
|
|
2135
2161
|
_: 1
|
|
2136
2162
|
}, 8, ["default-active", "default-openeds"]))
|
|
2137
|
-
])], 10,
|
|
2163
|
+
])], 10, cr)
|
|
2138
2164
|
], 2);
|
|
2139
2165
|
};
|
|
2140
2166
|
}
|
|
2141
|
-
}), [["__scopeId", "data-v-
|
|
2167
|
+
}), [["__scopeId", "data-v-7e3f4585"]]), pr = {
|
|
2142
2168
|
key: 0,
|
|
2143
2169
|
class: "ca-copyright"
|
|
2144
|
-
},
|
|
2170
|
+
}, mr = ["href"], hr = /*#__PURE__*/ Y(/* @__PURE__ */ d({
|
|
2145
2171
|
__name: "CaCopyright",
|
|
2146
2172
|
setup(t) {
|
|
2147
2173
|
let r = K().brand, { label: i } = W(), c = n(() => r.copyright ? Be(i(r.copyright)) : ""), l = n(() => r.copyrightLinks ?? []);
|
|
2148
|
-
return (t, n) => c.value ? (y(), o("footer",
|
|
2174
|
+
return (t, n) => c.value ? (y(), o("footer", pr, [s("span", null, E(c.value), 1), (y(!0), o(e, null, S(l.value, (t) => (y(), o(e, { key: t.href }, [n[0] ||= s("span", {
|
|
2149
2175
|
class: "ca-copyright__dot",
|
|
2150
2176
|
"aria-hidden": "true"
|
|
2151
2177
|
}, "·", -1), s("a", {
|
|
2152
2178
|
href: t.href,
|
|
2153
2179
|
target: "_blank",
|
|
2154
2180
|
rel: "noopener noreferrer"
|
|
2155
|
-
}, E(t.text), 9,
|
|
2181
|
+
}, E(t.text), 9, mr)], 64))), 128))])) : a("v-if", !0);
|
|
2156
2182
|
}
|
|
2157
|
-
}), [["__scopeId", "data-v-c51879e8"]]),
|
|
2183
|
+
}), [["__scopeId", "data-v-c51879e8"]]), gr = { class: "ca-tabs" }, _r = ["onClick"], vr = { class: "ca-tabs__more" }, yr = [
|
|
2158
2184
|
"title",
|
|
2159
2185
|
"aria-label",
|
|
2160
2186
|
"aria-pressed"
|
|
2161
|
-
],
|
|
2187
|
+
], br = /*#__PURE__*/ Y(/* @__PURE__ */ d({
|
|
2162
2188
|
__name: "TabsBar",
|
|
2163
2189
|
setup(t) {
|
|
2164
2190
|
let r = V(), c = H(), d = Z(), f = X(), { t: p, label: g } = W(), _ = new Map(je(K().menus).map((e) => [e.key, e])), b = n(() => d.visited.map((e) => _.get(e)).filter((e) => !!e).map((e) => ({
|
|
@@ -2205,7 +2231,7 @@ var Vt = {
|
|
|
2205
2231
|
}
|
|
2206
2232
|
return (t, n) => {
|
|
2207
2233
|
let r = w("ca-icon"), d = w("ca-dropdown-item"), m = w("ca-dropdown-menu"), g = w("ca-dropdown");
|
|
2208
|
-
return y(), o("div",
|
|
2234
|
+
return y(), o("div", gr, [
|
|
2209
2235
|
(y(!0), o(e, null, S(T.value, (t) => (y(), o("div", {
|
|
2210
2236
|
key: t.name,
|
|
2211
2237
|
ref_for: !0,
|
|
@@ -2229,7 +2255,7 @@ var Vt = {
|
|
|
2229
2255
|
class: "ca-tabs__close",
|
|
2230
2256
|
onClick: P((t) => j(e.key), ["stop"])
|
|
2231
2257
|
}, null, 8, ["onClick"])) : a("v-if", !0)
|
|
2232
|
-
], 10,
|
|
2258
|
+
], 10, _r))), 128))], 2))), 128)),
|
|
2233
2259
|
u(g, {
|
|
2234
2260
|
trigger: "click",
|
|
2235
2261
|
onCommand: I
|
|
@@ -2265,7 +2291,7 @@ var Vt = {
|
|
|
2265
2291
|
]),
|
|
2266
2292
|
_: 1
|
|
2267
2293
|
})]),
|
|
2268
|
-
default: M(() => [s("span",
|
|
2294
|
+
default: M(() => [s("span", vr, [u(r, { name: "arrowDown" })])]),
|
|
2269
2295
|
_: 1
|
|
2270
2296
|
}),
|
|
2271
2297
|
a(" 内容全屏:隐藏头部和侧栏,再点一次恢复 "),
|
|
@@ -2276,14 +2302,14 @@ var Vt = {
|
|
|
2276
2302
|
"aria-label": D(f).contentFullscreen ? D(p)("campus.tabs.exitFullscreen") : D(p)("campus.tabs.fullscreen"),
|
|
2277
2303
|
"aria-pressed": D(f).contentFullscreen,
|
|
2278
2304
|
onClick: n[0] ||= (e) => D(f).toggleContentFullscreen()
|
|
2279
|
-
}, [u(r, { name: D(f).contentFullscreen ? "exitFullscreen" : "fullscreen" }, null, 8, ["name"])], 8,
|
|
2305
|
+
}, [u(r, { name: D(f).contentFullscreen ? "exitFullscreen" : "fullscreen" }, null, 8, ["name"])], 8, yr)
|
|
2280
2306
|
]);
|
|
2281
2307
|
};
|
|
2282
2308
|
}
|
|
2283
|
-
}), [["__scopeId", "data-v-1d7ba823"]]),
|
|
2309
|
+
}), [["__scopeId", "data-v-1d7ba823"]]), xr = 1200, Sr = "(max-width: 768px)", Cr = `(min-width: 769px) and (max-width: ${xr}px)`, wr = ["aria-label"], Tr = ["aria-label"], Er = { class: "ca-main" }, Dr = { class: "ca-content" }, Or = { class: "ca-content__page" }, kr = /*#__PURE__*/ Y(/* @__PURE__ */ d({
|
|
2284
2310
|
__name: "CaLayout",
|
|
2285
2311
|
setup(e) {
|
|
2286
|
-
let n = V(), r = Z(), c = X(), { t: l } = W(), d = window.matchMedia(
|
|
2312
|
+
let n = V(), r = Z(), c = X(), { t: l } = W(), d = window.matchMedia(Sr), f = window.matchMedia(Cr), p = "";
|
|
2287
2313
|
function m() {
|
|
2288
2314
|
let e = d.matches ? "phone" : f.matches ? "pad" : "desktop";
|
|
2289
2315
|
c.setMode(e);
|
|
@@ -2305,54 +2331,54 @@ var Vt = {
|
|
|
2305
2331
|
}
|
|
2306
2332
|
return (e, n) => {
|
|
2307
2333
|
let d = w("router-view");
|
|
2308
|
-
return y(), o("div", { class: h(["ca-shell", { "is-fullscreen": D(c).contentFullscreen }]) }, [N(u(
|
|
2334
|
+
return y(), o("div", { class: h(["ca-shell", { "is-fullscreen": D(c).contentFullscreen }]) }, [N(u(Bn, null, null, 512), [[k, !D(c).contentFullscreen]]), s("div", { class: h(["ca-body", { "is-fullscreen": D(c).contentFullscreen }]) }, [
|
|
2309
2335
|
D(c).mode === "phone" && D(c).mobileMenuOpen ? (y(), o("button", {
|
|
2310
2336
|
key: 0,
|
|
2311
2337
|
type: "button",
|
|
2312
2338
|
class: "ca-mobile-scrim",
|
|
2313
2339
|
"aria-label": D(l)("campus.side.closeMenu"),
|
|
2314
2340
|
onClick: n[0] ||= (e) => D(c).closeMobileMenu()
|
|
2315
|
-
}, null, 8,
|
|
2341
|
+
}, null, 8, wr)) : a("v-if", !0),
|
|
2316
2342
|
D(c).mode === "pad" && D(c).padPanelOpen ? (y(), o("button", {
|
|
2317
2343
|
key: 1,
|
|
2318
2344
|
type: "button",
|
|
2319
2345
|
class: "ca-pad-scrim",
|
|
2320
2346
|
"aria-label": D(l)("campus.side.closeMenu"),
|
|
2321
2347
|
onClick: n[1] ||= (e) => D(c).closePadPanel()
|
|
2322
|
-
}, null, 8,
|
|
2323
|
-
N(u(
|
|
2348
|
+
}, null, 8, Tr)) : a("v-if", !0),
|
|
2349
|
+
N(u(fr, {
|
|
2324
2350
|
class: h({ "is-mobile-open": D(c).mobileMenuOpen }),
|
|
2325
2351
|
inert: D(c).mode === "phone" && !D(c).mobileMenuOpen
|
|
2326
2352
|
}, null, 8, ["class", "inert"]), [[k, !D(c).contentFullscreen]]),
|
|
2327
|
-
s("main",
|
|
2328
|
-
u(
|
|
2329
|
-
u(
|
|
2330
|
-
s("div",
|
|
2331
|
-
u(
|
|
2353
|
+
s("main", Er, [
|
|
2354
|
+
u(br),
|
|
2355
|
+
u(Kn),
|
|
2356
|
+
s("div", Dr, [
|
|
2357
|
+
u(Zn),
|
|
2332
2358
|
a(" 页面区撑满剩余高度,版权在其后:内容少时贴窗口底,内容长时滚到最底才出现 "),
|
|
2333
|
-
s("div",
|
|
2359
|
+
s("div", Or, [u(d, null, {
|
|
2334
2360
|
default: M(({ Component: e }) => [a(" include 与标签名单同步;缓存容量包含固定标签。 "), (y(), i(t, {
|
|
2335
2361
|
include: D(r).cached,
|
|
2336
2362
|
max: D(r).maxTabs + D(r).affixKeys.length
|
|
2337
2363
|
}, [e ? (y(), i(T(e), { key: b() })) : a("v-if", !0)], 1032, ["include", "max"]))]),
|
|
2338
2364
|
_: 1
|
|
2339
2365
|
})]),
|
|
2340
|
-
u(
|
|
2366
|
+
u(hr)
|
|
2341
2367
|
])
|
|
2342
2368
|
])
|
|
2343
2369
|
], 2)], 2);
|
|
2344
2370
|
};
|
|
2345
2371
|
}
|
|
2346
|
-
}), [["__scopeId", "data-v-3a849ce7"]]),
|
|
2372
|
+
}), [["__scopeId", "data-v-3a849ce7"]]), Ar = { class: "ca-exception" }, jr = { class: "ca-exception__code" }, Mr = { class: "ca-exception__text" }, Nr = /*#__PURE__*/ Y(/* @__PURE__ */ d({
|
|
2347
2373
|
__name: "ExceptionPage",
|
|
2348
2374
|
props: { kind: {} },
|
|
2349
2375
|
setup(e) {
|
|
2350
2376
|
let t = e, r = H(), { t: i } = W(), a = n(() => t.kind === "forbidden" ? "403" : "404"), c = n(() => i(t.kind === "forbidden" ? "campus.error.forbidden" : "campus.error.notFound"));
|
|
2351
2377
|
return (e, t) => {
|
|
2352
2378
|
let n = w("ca-button");
|
|
2353
|
-
return y(), o("div",
|
|
2354
|
-
s("div",
|
|
2355
|
-
s("p",
|
|
2379
|
+
return y(), o("div", Ar, [
|
|
2380
|
+
s("div", jr, E(a.value), 1),
|
|
2381
|
+
s("p", Mr, E(c.value), 1),
|
|
2356
2382
|
u(n, {
|
|
2357
2383
|
type: "primary",
|
|
2358
2384
|
onClick: t[0] ||= (e) => D(r).replace("/")
|
|
@@ -2363,10 +2389,10 @@ var Vt = {
|
|
|
2363
2389
|
]);
|
|
2364
2390
|
};
|
|
2365
2391
|
}
|
|
2366
|
-
}), [["__scopeId", "data-v-ffcb23b0"]]),
|
|
2392
|
+
}), [["__scopeId", "data-v-ffcb23b0"]]), Pr = { class: "ca-login" }, Fr = { class: "ca-login__main" }, Ir = { class: "ca-login__card" }, Lr = { class: "ca-login__brand" }, Rr = ["src"], zr = { class: "ca-login__name" }, Br = {
|
|
2367
2393
|
key: 1,
|
|
2368
2394
|
class: "ca-login__subtitle"
|
|
2369
|
-
},
|
|
2395
|
+
}, Vr = /*#__PURE__*/ Y(/* @__PURE__ */ d({
|
|
2370
2396
|
__name: "LoginPage",
|
|
2371
2397
|
setup(e) {
|
|
2372
2398
|
let t = V(), r = H(), c = Q(), d = ze(), { t: f, label: p } = W(), m = K().brand, h = n(() => p(d.theme.siteName ?? m.name)), g = n(() => d.theme.logo ?? m.logo), _ = J(), v = b({
|
|
@@ -2414,16 +2440,16 @@ var Vt = {
|
|
|
2414
2440
|
}
|
|
2415
2441
|
return (e, t) => {
|
|
2416
2442
|
let n = w("ca-alert"), r = w("ca-input"), c = w("ca-form-item"), d = w("ca-button"), b = w("ca-form");
|
|
2417
|
-
return y(), o("div",
|
|
2418
|
-
s("div",
|
|
2443
|
+
return y(), o("div", Pr, [s("div", Fr, [s("div", Ir, [
|
|
2444
|
+
s("div", Lr, [
|
|
2419
2445
|
g.value ? (y(), o("img", {
|
|
2420
2446
|
key: 0,
|
|
2421
2447
|
src: g.value,
|
|
2422
2448
|
alt: "",
|
|
2423
2449
|
class: "ca-login__logo"
|
|
2424
|
-
}, null, 8,
|
|
2425
|
-
s("h1",
|
|
2426
|
-
D(m).subtitle ? (y(), o("p",
|
|
2450
|
+
}, null, 8, Rr)) : a("v-if", !0),
|
|
2451
|
+
s("h1", zr, E(h.value), 1),
|
|
2452
|
+
D(m).subtitle ? (y(), o("p", Br, E(D(p)(D(m).subtitle)), 1)) : a("v-if", !0)
|
|
2427
2453
|
]),
|
|
2428
2454
|
k.value ? (y(), i(n, {
|
|
2429
2455
|
key: 0,
|
|
@@ -2490,12 +2516,12 @@ var Vt = {
|
|
|
2490
2516
|
]),
|
|
2491
2517
|
_: 1
|
|
2492
2518
|
}, 8, ["model", "rules"])
|
|
2493
|
-
])]), u(
|
|
2519
|
+
])]), u(hr, { class: "ca-login__copyright" })]);
|
|
2494
2520
|
};
|
|
2495
2521
|
}
|
|
2496
2522
|
}), [["__scopeId", "data-v-ddf636fd"]]);
|
|
2497
2523
|
// packages/core/src/router.ts
|
|
2498
|
-
function
|
|
2524
|
+
function Hr(e) {
|
|
2499
2525
|
return async () => {
|
|
2500
2526
|
let t = await e.component();
|
|
2501
2527
|
return d({
|
|
@@ -2504,14 +2530,14 @@ function Vr(e) {
|
|
|
2504
2530
|
});
|
|
2505
2531
|
};
|
|
2506
2532
|
}
|
|
2507
|
-
var
|
|
2533
|
+
var Ur = d({
|
|
2508
2534
|
name: "CaForbidden",
|
|
2509
|
-
setup: () => () => f(
|
|
2510
|
-
}),
|
|
2535
|
+
setup: () => () => f(Nr, { kind: "forbidden" })
|
|
2536
|
+
}), Wr = d({
|
|
2511
2537
|
name: "CaNotFound",
|
|
2512
|
-
setup: () => () => f(
|
|
2538
|
+
setup: () => () => f(Nr, { kind: "notFound" })
|
|
2513
2539
|
});
|
|
2514
|
-
function
|
|
2540
|
+
function Gr(e, t) {
|
|
2515
2541
|
let n = je(e.menus);
|
|
2516
2542
|
if (!n.length) throw Error("[campus] 菜单里至少需要一个页面");
|
|
2517
2543
|
Me(e.accountPath, n);
|
|
@@ -2519,7 +2545,7 @@ function Wr(e, t) {
|
|
|
2519
2545
|
{
|
|
2520
2546
|
path: "/login",
|
|
2521
2547
|
name: "login",
|
|
2522
|
-
component: e.login?.style === "split" ? At :
|
|
2548
|
+
component: e.login?.style === "split" ? At : Vr,
|
|
2523
2549
|
meta: { public: !0 }
|
|
2524
2550
|
},
|
|
2525
2551
|
{
|
|
@@ -2536,7 +2562,7 @@ function Wr(e, t) {
|
|
|
2536
2562
|
},
|
|
2537
2563
|
{
|
|
2538
2564
|
path: "/",
|
|
2539
|
-
component:
|
|
2565
|
+
component: kr,
|
|
2540
2566
|
redirect: n.some((e) => e.path === "/") ? void 0 : () => {
|
|
2541
2567
|
let e = Q(t);
|
|
2542
2568
|
return n.find((t) => e.can(t.permission))?.path ?? "/403";
|
|
@@ -2545,7 +2571,7 @@ function Wr(e, t) {
|
|
|
2545
2571
|
...n.map((e) => ({
|
|
2546
2572
|
path: e.path,
|
|
2547
2573
|
name: e.key,
|
|
2548
|
-
component:
|
|
2574
|
+
component: Hr(e),
|
|
2549
2575
|
meta: {
|
|
2550
2576
|
pageKey: e.key,
|
|
2551
2577
|
appKey: e.appKey,
|
|
@@ -2556,12 +2582,12 @@ function Wr(e, t) {
|
|
|
2556
2582
|
{
|
|
2557
2583
|
path: "/403",
|
|
2558
2584
|
name: "forbidden",
|
|
2559
|
-
component:
|
|
2585
|
+
component: Ur
|
|
2560
2586
|
},
|
|
2561
2587
|
{
|
|
2562
2588
|
path: "/:pathMatch(.*)*",
|
|
2563
2589
|
name: "not-found",
|
|
2564
|
-
component:
|
|
2590
|
+
component: Wr
|
|
2565
2591
|
}
|
|
2566
2592
|
]
|
|
2567
2593
|
}
|
|
@@ -2580,31 +2606,31 @@ function Wr(e, t) {
|
|
|
2580
2606
|
}), i;
|
|
2581
2607
|
}
|
|
2582
2608
|
// packages/core/src/services/login.ts
|
|
2583
|
-
async function
|
|
2609
|
+
async function Kr(e, t, n, r) {
|
|
2584
2610
|
e.signIn(n), await t.replace(He(r));
|
|
2585
2611
|
}
|
|
2586
2612
|
// packages/core/src/services/auth.ts
|
|
2587
|
-
var
|
|
2588
|
-
function
|
|
2589
|
-
|
|
2613
|
+
var qr, Jr;
|
|
2614
|
+
function Yr(e, t) {
|
|
2615
|
+
qr = e, Jr = t;
|
|
2590
2616
|
}
|
|
2591
|
-
async function
|
|
2592
|
-
if (K(), !
|
|
2593
|
-
let t = Q(
|
|
2617
|
+
async function Xr(e) {
|
|
2618
|
+
if (K(), !qr || !Jr) return;
|
|
2619
|
+
let t = Q(Jr);
|
|
2594
2620
|
if (!t.isLoggedIn) return;
|
|
2595
2621
|
t.expire(), Vt.toast.warning(e || Te("campus.auth.sessionExpired"));
|
|
2596
|
-
let n =
|
|
2597
|
-
n.name !== "login" && await
|
|
2622
|
+
let n = qr.currentRoute.value;
|
|
2623
|
+
n.name !== "login" && await qr.replace({
|
|
2598
2624
|
name: "login",
|
|
2599
2625
|
query: n.fullPath === "/" ? void 0 : { redirect: n.fullPath }
|
|
2600
2626
|
});
|
|
2601
2627
|
}
|
|
2602
|
-
async function
|
|
2603
|
-
if (K(), !
|
|
2604
|
-
await
|
|
2628
|
+
async function Zr(e, t) {
|
|
2629
|
+
if (K(), !qr || !Jr) throw Error("[campus] 应用尚未创建,无法完成登录");
|
|
2630
|
+
await Kr(Q(Jr), qr, e, t);
|
|
2605
2631
|
}
|
|
2606
2632
|
// packages/core/src/app.ts
|
|
2607
|
-
function
|
|
2633
|
+
function Qr(e) {
|
|
2608
2634
|
Mt(e), ke(e);
|
|
2609
2635
|
let t = r(De), n = F();
|
|
2610
2636
|
t.use(n);
|
|
@@ -2612,11 +2638,11 @@ function Zr(e) {
|
|
|
2612
2638
|
t.use(i);
|
|
2613
2639
|
let a = (e, t) => i.global.t(e, t ?? {});
|
|
2614
2640
|
t.provide(R, a), Ft(a), t.config.globalProperties.$ca = Vt, L(t), t.component("CaAuthPreview", nn);
|
|
2615
|
-
let o =
|
|
2616
|
-
return
|
|
2641
|
+
let o = Gr(e, n);
|
|
2642
|
+
return Yr(o, n), t.use(o), ze(n).boot(), t;
|
|
2617
2643
|
}
|
|
2618
2644
|
// packages/core/src/index.ts
|
|
2619
|
-
function
|
|
2645
|
+
function $r(e) {
|
|
2620
2646
|
return e;
|
|
2621
2647
|
}
|
|
2622
|
-
export { Vt as ca,
|
|
2648
|
+
export { Vt as ca, Zr as completeLogin, Qr as createCampusApp, $r as defineMenus, Xr as handleUnauthorized, jt as resolveEnvironment, Te as t, W as useCampusT, X as useLayoutStore, Q as useSessionStore, Z as useTabsStore, ze as useThemeStore };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** 用户头像:有图片地址显示图片,没有或加载失败时显示姓名首字 */
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
name?: string;
|
|
4
|
+
src?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
package/dist/style.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.ca-auth[data-v-df817220]{container:ca-auth/inline-size}.ca-auth__stage[data-v-df817220]{box-sizing:border-box;justify-content:center;align-items:center;min-height:100vh;padding:32px 16px;display:flex;position:relative}.ca-auth--preview .ca-auth__stage[data-v-df817220]{border-radius:var(--ca-radius-lg);min-height:680px;overflow:hidden}.ca-auth__card[data-v-df817220]{grid-template-columns:var(--ca-auth-panel-width,45%) 1fr;box-sizing:border-box;width:min(var(--ca-auth-card-width,920px), 100%);min-height:var(--ca-auth-card-min-height,600px);color:var(--ca-text);background:var(--ca-bg-card);border-radius:var(--ca-auth-card-radius,var(--ca-radius-lg));display:grid;overflow:hidden;box-shadow:0 12px 40px #00000038}.ca-auth__panel[data-v-df817220]{color:var(--ca-color-on-primary);text-align:center;background:radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--ca-color-on-primary) 18%, transparent), transparent 55%), linear-gradient(160deg, color-mix(in srgb, var(--ca-color-primary) 88%, white), color-mix(in srgb, var(--ca-color-primary) 62%, black));flex-direction:column;justify-content:center;align-items:center;gap:22px;padding:32px;display:flex}.ca-auth__logo[data-v-df817220]{object-fit:contain;max-width:160px;max-height:64px}.ca-auth__qrcode[data-v-df817220]{box-sizing:border-box;border-radius:var(--ca-radius);background:#fff;width:168px;height:168px;padding:10px}.ca-auth__qrcode img[data-v-df817220]{width:100%;height:100%;display:block}.ca-auth__title[data-v-df817220]{letter-spacing:2px;margin:0;font-size:24px;font-weight:600}.ca-auth__site[data-v-df817220]{margin:0;font-size:24px;font-weight:600}.ca-auth__caption[data-v-df817220]{letter-spacing:1px;margin:0;font-size:14px;line-height:22px}.ca-auth__main[data-v-df817220]{box-sizing:border-box;flex-direction:column;min-width:0;padding:36px 48px 16px;display:flex}.ca-auth__brand[data-v-df817220]{justify-content:center;align-items:center;gap:10px;margin-bottom:20px;font-size:18px;font-weight:600;display:none}.ca-auth__brand img[data-v-df817220]{max-height:36px}.ca-auth__tabs[data-v-df817220]{border-bottom:1px solid var(--ca-border);gap:32px;margin-bottom:24px;display:flex}.ca-auth__tab[data-v-df817220]{color:var(--ca-text-secondary);font:inherit;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;margin-bottom:-1px;padding:0 2px 12px;font-size:18px;text-decoration:none}.ca-auth__tab[data-v-df817220]:hover{color:var(--ca-color-primary-text)}.ca-auth__tab[data-v-df817220]:focus-visible{outline:2px solid var(--ca-color-primary);outline-offset:2px}.ca-auth__tab--active[data-v-df817220]{color:var(--ca-color-primary-text);border-bottom-color:var(--ca-color-primary)}.ca-auth__body[data-v-df817220]{flex:1}.ca-auth__footer[data-v-df817220]{color:var(--ca-text-secondary);text-align:center;padding-top:16px;font-size:12px;line-height:20px}.ca-auth__footer p[data-v-df817220]{margin:0}.ca-auth__version[data-v-df817220]{color:var(--ca-text-secondary);background:color-mix(in srgb, var(--ca-bg-card) 92%, transparent);border-radius:var(--ca-radius);padding:0 8px;font-size:12px;line-height:20px;position:absolute;bottom:10px;right:12px}@container ca-auth (width<=1200px){.ca-auth__card[data-v-df817220]{grid-template-columns:40% 1fr;width:min(720px,100%)}.ca-auth__panel[data-v-df817220]{padding:24px 20px}.ca-auth__qrcode[data-v-df817220]{width:132px;height:132px}.ca-auth__main[data-v-df817220]{padding:32px 32px 12px}}@container ca-auth (width<=768px){.ca-auth__stage[data-v-df817220]{align-items:flex-start;padding:16px}.ca-auth__card[data-v-df817220]{grid-template-columns:1fr;width:100%;min-height:0}.ca-auth__panel[data-v-df817220]{display:none}.ca-auth__brand[data-v-df817220]{display:flex}.ca-auth__main[data-v-df817220]{padding:28px 20px 12px}.ca-auth__tabs[data-v-df817220]{gap:24px}.ca-auth__version[data-v-df817220]{width:fit-content;margin:12px auto 0;display:block;position:static}.ca-auth__stage[data-v-df817220]{flex-direction:column}}.ca-auth-form{--el-component-size-large:46px}.ca-auth-form .ca-auth-row{gap:10px;width:100%;display:flex}.ca-auth-form .ca-auth-row>:first-child{flex:1;min-width:0}.ca-auth-alert{margin-bottom:16px}.ca-auth-captcha,.ca-auth-sms{height:46px;color:var(--ca-color-primary-text);font:inherit;cursor:pointer;background:var(--ca-color-primary-soft);border-radius:var(--ca-radius);border:1px solid #0000;flex:none;font-size:14px}.ca-auth-captcha{justify-content:center;align-items:center;width:120px;padding:0;font-size:12px;line-height:16px;display:flex;overflow:hidden}.ca-auth-captcha img{object-fit:cover;width:100%;height:100%;display:block}.ca-auth-sms{min-width:112px;padding:0 12px}.ca-auth-sms:disabled{color:var(--ca-text-secondary);cursor:not-allowed;background:var(--ca-bg-page);border-color:var(--ca-border)}.ca-auth-captcha:focus-visible,.ca-auth-sms:focus-visible{outline:2px solid var(--ca-color-primary);outline-offset:2px}.ca-auth-hint{color:var(--ca-text-secondary);margin:4px 0 0;font-size:12px;line-height:18px}.ca-auth-agreements{flex-wrap:wrap;gap:0 8px;display:inline-flex}.ca-auth-agreements a{color:var(--ca-color-primary-text);text-decoration:none}.ca-auth-agreements a:hover{text-decoration:underline}.ca-auth-form .ca-auth-submit{border-radius:5px;width:100%;height:50px;font-size:20px}.ca-auth-form .ca-auth-submit--off,.ca-auth-form .ca-auth-submit--off:hover{color:var(--ca-text-secondary);background:var(--ca-bg-page);border-color:var(--ca-border)}.ca-auth-links{justify-content:space-between;margin-top:14px;font-size:14px;display:flex}.ca-auth-links a,.ca-auth-help a{color:var(--ca-color-primary-text);text-decoration:none}.ca-auth-links a:hover,.ca-auth-help a:hover{text-decoration:underline}.ca-auth-help{color:var(--ca-text-secondary);margin-top:22px;font-size:13px;line-height:21px}.ca-auth-help h3{color:var(--ca-text);margin:0 0 6px;font-size:14px;font-weight:600}.ca-auth-help ol{margin:0;padding-left:18px}.ca-auth-off{text-align:center;padding:48px 0}.ca-auth-off h3{margin:0 0 8px;font-size:18px}.ca-auth-off p{color:var(--ca-text-secondary);margin:0}.ca-auth-wechat{flex-direction:column;align-items:center;gap:12px;padding:12px 0;display:flex}.ca-auth-wechat__code{box-sizing:border-box;color:#1f2937;border:1px solid var(--ca-border);border-radius:var(--ca-radius);background:#fff;width:180px;height:180px;padding:12px}.ca-auth-wechat__code img,.ca-auth-wechat__code svg{width:100%;height:100%;display:block}.ca-auth-wechat__hint{margin:0;font-size:16px}.ca-auth-wechat__host{justify-content:center;align-items:center;width:100%;min-height:180px;display:flex}.ca-auth-wechat__failed{color:var(--ca-text-secondary);flex-direction:column;align-items:center;gap:12px;padding:48px 0;display:flex}.ca-auth-wechat__failed p{margin:0}.ca-auth-wechat__note{color:var(--ca-text-secondary);margin:0;font-size:12px}.ca-auth-icon{color:var(--ca-text-secondary)}.ca-header[data-v-534bb61b]{height:var(--ca-header-height);background:var(--ca-header-bg);color:var(--ca-header-fg);flex:none;align-items:center;gap:32px;padding:0 20px;display:flex}.ca-header__hamburger.ca-header__icon[data-v-534bb61b]{display:none}.ca-header__brand[data-v-534bb61b]{width:calc(var(--ca-rail-width,84px) + var(--ca-side-panel-width,200px) + 6px - 20px - 32px);flex:none;align-items:center;gap:12px;display:flex;overflow:hidden}.ca-header__logo[data-v-534bb61b]{flex:none;width:40px;height:40px}.ca-header__titles[data-v-534bb61b]{flex-direction:column;line-height:1.25;display:flex}.ca-header__name[data-v-534bb61b]{font-size:20px;font-weight:700}.ca-header__subtitle[data-v-534bb61b]{color:var(--ca-header-fg-muted);font-size:12px}.ca-header__nav[data-v-534bb61b]{flex:1;gap:4px;min-width:0;display:flex}.ca-header__nav-item[data-v-534bb61b]{color:var(--ca-header-fg-muted);font:inherit;cursor:pointer;border-radius:var(--ca-radius);background:0 0;border:0;align-items:center;gap:6px;padding:8px 16px;font-size:16px;display:inline-flex}.ca-header__nav-item[data-v-534bb61b]:hover{background:var(--ca-header-hover);color:var(--ca-header-fg)}.ca-header__nav-item.is-active[data-v-534bb61b]{background:var(--ca-header-active);color:var(--ca-header-fg);font-weight:600}.ca-header__tools[data-v-534bb61b]{align-items:center;gap:6px;display:flex}.ca-header__search[data-v-534bb61b]{border:1px solid var(--ca-header-control);border-radius:var(--ca-radius);width:180px;height:34px;color:var(--ca-header-fg-muted);font:inherit;cursor:pointer;background:0 0;align-items:center;gap:8px;margin-right:8px;padding:0 8px 0 12px;font-size:13px;display:inline-flex}.ca-header__search[data-v-534bb61b]:hover{background:var(--ca-header-hover)}.ca-header__search-text[data-v-534bb61b]{text-align:left;flex:1}.ca-header__kbd[data-v-534bb61b]{border:1px solid var(--ca-header-control);font:inherit;border-radius:6px;padding:1px 6px;font-size:12px}.ca-header__icon[data-v-534bb61b]{border-radius:var(--ca-radius);width:36px;height:36px;color:var(--ca-header-fg);font:inherit;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;display:inline-flex;position:relative}.ca-header__icon[data-v-534bb61b]:hover{background:var(--ca-header-hover)}.ca-header__icon-text[data-v-534bb61b]{font-size:13px;font-weight:600}.ca-header__dot[data-v-534bb61b]{border-radius:50%;width:7px;height:7px;position:absolute;top:6px;right:6px}.ca-header__dot.is-danger[data-v-534bb61b]{background:var(--ca-danger)}.ca-header__dot.is-success[data-v-534bb61b]{background:var(--ca-success)}.ca-header__user[data-v-534bb61b]{color:var(--ca-header-fg);cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;margin-left:4px;padding:0;display:inline-flex}.ca-header__avatar[data-v-534bb61b]{background:var(--ca-header-control);border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:13px;font-weight:600;display:inline-flex}.ca-settings__group[data-v-534bb61b]{flex-direction:column;gap:16px;display:flex}.ca-settings__group+.ca-settings__group[data-v-534bb61b]{margin-top:28px}.ca-settings__title[data-v-534bb61b]{color:var(--ca-text);align-items:center;gap:12px;margin:0;font-size:14px;font-weight:600;display:flex}.ca-settings__title[data-v-534bb61b]:before,.ca-settings__title[data-v-534bb61b]:after{content:"";background:var(--ca-border);flex:1;height:1px}.ca-settings__segment[data-v-534bb61b]{border:1px solid var(--ca-border);border-radius:var(--ca-radius);background:var(--ca-bg-page);grid-template-columns:1fr 1fr;padding:3px;display:grid}.ca-settings__swatches[data-v-534bb61b]{flex-wrap:wrap;gap:10px;display:flex}.ca-settings__swatch[data-v-534bb61b]{cursor:pointer;border:2px solid #0000;border-radius:50%;width:28px;height:28px;padding:0;position:relative;box-shadow:inset 0 0 0 1px #00000026}.ca-settings__swatch.is-active[data-v-534bb61b]{border-color:var(--ca-bg-card);box-shadow:0 0 0 2px var(--ca-color-primary)}.ca-settings__swatch[data-v-534bb61b]:focus-visible{outline:2px solid var(--ca-color-primary);outline-offset:2px}.ca-settings__swatch.is-custom[data-v-534bb61b]{background:conic-gradient(red,#ff0,#0f0,#0ff,#00f,#f0f,red);overflow:hidden}.ca-settings__swatch.is-custom input[data-v-534bb61b]{opacity:0;cursor:pointer;width:44px;height:44px;position:absolute;inset:-6px}.ca-settings__reset[data-v-534bb61b]{color:var(--ca-color-primary-text);font:inherit;cursor:pointer;background:0 0;border:0;align-self:flex-start;padding:0}.ca-settings__reset[data-v-534bb61b]:disabled{color:var(--ca-text-secondary);cursor:default;opacity:.6}.ca-settings__segment.is-three[data-v-534bb61b]{grid-template-columns:repeat(3,1fr)}.ca-settings__segment button[data-v-534bb61b]{border-radius:calc(var(--ca-radius) - 2px);min-height:36px;color:var(--ca-text-secondary);font:inherit;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;gap:6px;display:inline-flex}.ca-settings__segment button.is-active[data-v-534bb61b]{background:var(--ca-bg-card);color:var(--ca-color-primary-text);font-weight:600;box-shadow:0 1px 4px #0000001f}.ca-settings__segment button[data-v-534bb61b]:focus-visible{outline:2px solid var(--ca-color-primary);outline-offset:1px}@media (width>=769px) and (width<=1200px){.ca-header[data-v-534bb61b]{gap:16px;min-width:0;padding:0 12px}.ca-header__brand[data-v-534bb61b]{flex:none;width:auto;min-width:0}.ca-header__nav[data-v-534bb61b]{overflow:hidden}.ca-header__search[data-v-534bb61b]{border:0;justify-content:center;width:36px;height:36px;margin:0;padding:0}.ca-header__search-text[data-v-534bb61b],.ca-header__kbd[data-v-534bb61b]{display:none}}@media (width<=768px){.ca-header[data-v-534bb61b]{gap:8px;min-width:0;padding:0 12px}.ca-header__hamburger.ca-header__icon[data-v-534bb61b]{flex:none;display:inline-flex}.ca-header__brand[data-v-534bb61b]{flex:1;gap:6px;width:auto;min-width:0}.ca-header__logo[data-v-534bb61b]{width:32px;height:32px}.ca-header__titles[data-v-534bb61b]{min-width:0}.ca-header__name[data-v-534bb61b]{white-space:nowrap;text-overflow:ellipsis;font-size:16px;overflow:hidden}.ca-header__subtitle[data-v-534bb61b],.ca-header__nav[data-v-534bb61b],.ca-header__desktop-tool[data-v-534bb61b]{display:none}.ca-header__tools[data-v-534bb61b]{flex:none;gap:0}.ca-header__search[data-v-534bb61b]{border:0;justify-content:center;width:36px;height:36px;margin:0;padding:0}.ca-header__search-text[data-v-534bb61b],.ca-header__kbd[data-v-534bb61b],.ca-header__user .ca-icon[data-v-534bb61b]{display:none}.ca-header__user[data-v-534bb61b]{margin-left:0}}.ca-page-header[data-v-e0f9b42f]{padding:12px 16px}.ca-page-header__top[data-v-e0f9b42f]{color:var(--ca-text-secondary);justify-content:space-between;align-items:center;gap:12px;font-size:13px;display:flex}.ca-page-header__crumb[data-v-e0f9b42f]{align-items:center;gap:6px;display:flex}.ca-page-header__refresh[data-v-e0f9b42f]{border-radius:var(--ca-radius);color:var(--ca-text-secondary);cursor:pointer;background:0 0;border:0;align-items:center;margin-left:4px;padding:2px;display:inline-flex}.ca-page-header__refresh[data-v-e0f9b42f]:hover{background:var(--ca-color-primary-soft);color:var(--ca-color-primary-text)}.ca-page-header__icon[data-v-e0f9b42f]{color:var(--ca-color-primary-text)}@media (height<=720px){.ca-page-header[data-v-e0f9b42f]{padding-top:8px}}@media (width<=768px){.ca-page-header[data-v-e0f9b42f]{padding:8px 12px}.ca-page-header__date[data-v-e0f9b42f]{display:none}.ca-page-header__crumb[data-v-e0f9b42f]{white-space:nowrap;min-width:0;overflow:hidden}.ca-page-header__refresh[data-v-e0f9b42f]{justify-content:center;min-width:36px;min-height:36px}}.ca-page-header__main[data-v-e63e651d]{flex:none;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.ca-page-header__titles[data-v-e63e651d]{align-items:baseline;gap:12px;min-width:0;display:flex;position:relative;top:-10px}.ca-page-header__title[data-v-e63e651d]{color:var(--ca-text);flex:none;margin:0;font-size:20px;font-weight:700;line-height:1.4}.ca-page-header__desc[data-v-e63e651d]{min-width:0;color:var(--ca-text-secondary);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:13px;overflow:hidden}.ca-page-header__actions[data-v-e63e651d]{flex:none;gap:8px;display:flex}@media (height<=720px){.ca-page-header__desc[data-v-e63e651d]{display:none}}@media (width<=768px){.ca-page-header__desc[data-v-e63e651d]{display:none}.ca-page-header__main[data-v-e63e651d]{flex-direction:column;align-items:stretch;gap:8px;margin-bottom:12px}.ca-page-header__titles[data-v-e63e651d]{flex-wrap:wrap}.ca-page-header__title[data-v-e63e651d]{overflow-wrap:anywhere;flex:1;min-width:0}.ca-page-header__actions[data-v-e63e651d]{flex-wrap:wrap}}.ca-side[data-v-7a8607e6]{border-radius:0 var(--ca-radius-lg) 0 0;background:var(--ca-bg-sidebar);flex:none;display:flex;overflow:hidden}.ca-side__shortcuts[data-v-7a8607e6]{display:none}.ca-side__rail[data-v-7a8607e6]{box-sizing:border-box;width:var(--ca-rail-width,84px);border-right:1px solid var(--ca-border);flex-direction:column;gap:4px;padding:8px 4px;display:flex}.ca-side__rail-list[data-v-7a8607e6]{scrollbar-width:none;flex-direction:column;flex:1;gap:4px;min-height:0;display:flex;overflow-y:auto}.ca-side__rail.is-compact[data-v-7a8607e6]{width:56px}.ca-side__rail-item[data-v-7a8607e6]{border-radius:var(--ca-radius);color:var(--ca-text-secondary);font:inherit;cursor:pointer;background:0 0;border:0;flex-direction:column;align-items:center;gap:4px;padding:8px 0;font-size:12px;display:flex;position:relative}.ca-side__rail-item[data-v-7a8607e6]:hover{background:var(--ca-color-primary-soft)}.ca-side__rail-item.is-active[data-v-7a8607e6]{background:var(--ca-color-primary-soft);color:var(--ca-color-primary-text)}.ca-side__rail-text[data-v-7a8607e6]{-webkit-line-clamp:2;text-align:center;overflow-wrap:break-word;-webkit-box-orient:vertical;max-width:100%;line-height:1.25;display:-webkit-box;overflow:hidden}html.dark .ca-side__rail-item:not(.is-active){color:var(--ca-text)}.ca-side__tools[data-v-7a8607e6]{border-top:1px solid var(--ca-border);flex-direction:column;align-items:center;gap:4px;margin-top:auto;padding-top:8px;display:flex}.ca-side__tool[data-v-7a8607e6]{border-radius:var(--ca-radius);width:40px;height:36px;color:var(--ca-text-secondary);font:inherit;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;display:inline-flex}.ca-side__tool[data-v-7a8607e6]:hover{background:var(--ca-color-primary-soft);color:var(--ca-color-primary-text)}.ca-side__avatar[data-v-7a8607e6]{background:var(--ca-color-primary-soft);width:26px;height:26px;color:var(--ca-color-primary-text);border-radius:50%;justify-content:center;align-items:center;font-size:12px;font-weight:600;display:inline-flex}.ca-side__group-badge[data-v-7a8607e6]{background:var(--ca-danger);color:#fff;border-radius:999px;margin-left:8px;padding:0 6px;font-size:11px;line-height:16px}.ca-side__panel[data-v-7a8607e6]{width:var(--ca-side-panel-width,200px);transition:width .2s;overflow:hidden}.ca-side__panel.is-hidden[data-v-7a8607e6]{width:0}.ca-side__panel-inner[data-v-7a8607e6]{width:var(--ca-side-panel-width,200px);height:100%;overflow-y:auto}@media (prefers-reduced-motion:reduce){.ca-side__panel[data-v-7a8607e6]{transition:none}}.ca-side__title[data-v-7a8607e6]{color:var(--ca-text);padding:16px 16px 8px;font-size:15px;font-weight:600}.ca-side__menu[data-v-7a8607e6]{padding:0 8px 8px}.ca-side__badge[data-v-7a8607e6]{background:var(--ca-danger);color:#fff;border-radius:999px;padding:0 5px;font-size:11px;line-height:16px;position:absolute;top:2px;right:6px}@media (width>=769px) and (width<=1200px){.ca-side[data-v-7a8607e6]{z-index:21;position:relative;overflow:visible}.ca-side__tool--collapse[data-v-7a8607e6]{display:none}.ca-side__panel[data-v-7a8607e6]{background:var(--ca-bg-sidebar);border-radius:0 var(--ca-radius-lg) 0 0;clip-path:inset(0 -32px 0 0);position:absolute;top:0;bottom:0;left:100%;box-shadow:6px 0 16px #00000024}.ca-side[data-v-7a8607e6]{transition:border-radius 0s linear .2s}.ca-side__rail[data-v-7a8607e6]{border-right:0}.ca-side.is-pad-open[data-v-7a8607e6]{border-radius:0;transition:none}.ca-side__panel.is-hidden[data-v-7a8607e6]{box-shadow:none}}@media (width>=769px) and (width<=1200px) and (prefers-reduced-motion:reduce){.ca-side[data-v-7a8607e6]{transition:none}}@media (width<=768px){.ca-side[data-v-7a8607e6]{grid-template-columns:var(--ca-rail-width) minmax(0, 1fr);border-radius:0 var(--ca-radius-lg) var(--ca-radius-lg) 0;grid-template-rows:auto minmax(0,1fr);width:min(320px,100vw - 40px);height:100%;display:grid}.ca-side__shortcuts[data-v-7a8607e6]{border-bottom:1px solid var(--ca-border);flex-wrap:wrap;grid-column:1/-1;gap:4px;padding:12px;display:flex}.ca-side__shortcuts button[data-v-7a8607e6]{border-radius:var(--ca-radius);min-height:36px;color:var(--ca-text);font:inherit;background:0 0;border:0;padding:4px 10px}.ca-side__shortcuts button.is-active[data-v-7a8607e6]{background:var(--ca-color-primary-soft);color:var(--ca-color-primary-text)}.ca-side__rail[data-v-7a8607e6],.ca-side__rail.is-compact[data-v-7a8607e6]{width:var(--ca-rail-width)}.ca-side__rail-item[data-v-7a8607e6]{min-height:44px}.ca-side__tools[data-v-7a8607e6]{display:none}.ca-side__panel[data-v-7a8607e6],.ca-side__panel.is-hidden[data-v-7a8607e6],.ca-side__panel-inner[data-v-7a8607e6]{width:100%}}.ca-copyright[data-v-c51879e8]{color:var(--ca-text-secondary);text-align:center;flex-wrap:wrap;justify-content:center;gap:0 6px;padding:16px 0;font-size:12px;line-height:18px;display:flex}.ca-copyright>span[data-v-c51879e8]:first-child{white-space:pre-line}.ca-copyright a[data-v-c51879e8]{color:inherit;text-decoration:none}.ca-copyright a[data-v-c51879e8]:hover{color:var(--ca-color-primary-text);text-decoration:underline}.ca-tabs[data-v-1d7ba823]{height:var(--ca-tabs-height);box-sizing:border-box;flex:none;align-items:center;gap:8px;padding:10px 16px 0;display:flex}.ca-tabs__fixed[data-v-1d7ba823]{flex:none;gap:6px;display:flex}.ca-tabs__list[data-v-1d7ba823]{scrollbar-width:none;flex:1;gap:6px;min-width:0;display:flex;overflow-x:auto}.ca-tabs__item[data-v-1d7ba823]{border:1px solid var(--ca-border);border-radius:var(--ca-radius);background:var(--ca-bg-card);color:var(--ca-text-secondary);cursor:pointer;flex:none;align-items:center;gap:6px;padding:6px 12px;font-size:13px;display:inline-flex}.ca-tabs__item.is-active[data-v-1d7ba823]{border-color:var(--ca-color-primary);background:var(--ca-color-primary-soft);color:var(--ca-color-primary-text)}.ca-tabs__close[data-v-1d7ba823]{border-radius:50%;font-size:12px}.ca-tabs__close[data-v-1d7ba823]:hover{background:var(--ca-border)}.ca-tabs__more[data-v-1d7ba823]{border:1px solid var(--ca-border);border-radius:var(--ca-radius);background:var(--ca-bg-card);cursor:pointer;outline:none;flex:none;justify-content:center;align-items:center;width:30px;height:30px;display:inline-flex}@media (width<=768px){.ca-tabs[data-v-1d7ba823]{gap:4px;padding:8px 12px 0}.ca-tabs__item[data-v-1d7ba823]{box-sizing:border-box;min-height:36px;padding:6px 8px}.ca-tabs__more[data-v-1d7ba823]{width:36px;height:36px}.ca-tabs__fullscreen[data-v-1d7ba823]{display:none}}.ca-shell[data-v-3a849ce7]{--ca-header-height:64px;--ca-tabs-height:42px;--ca-rail-width:84px;--ca-side-panel-width:200px;background:linear-gradient(to bottom, var(--ca-header-bg) calc(var(--ca-header-height) + var(--ca-tabs-height)), var(--ca-bg-page) calc(var(--ca-header-height) + var(--ca-tabs-height)));flex-direction:column;height:100vh;display:flex}.ca-shell.is-fullscreen[data-v-3a849ce7]{--ca-header-height:0px}.ca-body[data-v-3a849ce7]{flex:1;gap:6px;min-height:0;margin:0 6px 0 0;display:flex}.ca-body.is-fullscreen[data-v-3a849ce7]{gap:0;margin:0}.ca-body.is-fullscreen .ca-main[data-v-3a849ce7]{border-radius:0}.ca-main[data-v-3a849ce7]{border-radius:var(--ca-radius-lg) var(--ca-radius-lg) 0 0;background:var(--ca-bg-page);flex-direction:column;flex:1;min-width:0;display:flex;overflow:hidden}.ca-content[data-v-3a849ce7]{flex-direction:column;flex:1;min-height:0;padding:16px;display:flex;position:relative;overflow-y:auto}.ca-content__page[data-v-3a849ce7]{flex:1 0 auto;min-width:0}.ca-mobile-scrim[data-v-3a849ce7]{display:none}@media (width>=769px) and (width<=1200px){.ca-shell[data-v-3a849ce7]{width:100%;min-width:0;height:100dvh;overflow:hidden}.ca-body[data-v-3a849ce7]{position:relative}.ca-main[data-v-3a849ce7]{min-width:0}.ca-content[data-v-3a849ce7]{overflow-x:hidden}.ca-pad-scrim[data-v-3a849ce7]{z-index:20;background:color-mix(in srgb, var(--ca-text) 35%, transparent);border:0;width:100%;position:absolute;inset:0}}@media (width<=768px){.ca-shell[data-v-3a849ce7]{--ca-tabs-height:44px;width:100%;min-width:0;height:100dvh;overflow:hidden}.ca-body[data-v-3a849ce7],.ca-body.is-fullscreen[data-v-3a849ce7]{gap:0;margin:0}.ca-main[data-v-3a849ce7]{border-radius:0;min-width:0}.ca-content[data-v-3a849ce7]{padding:12px;overflow-x:hidden}.ca-mobile-scrim[data-v-3a849ce7]{z-index:20;background:color-mix(in srgb, var(--ca-text) 45%, transparent);border:0;width:100%;display:block;position:fixed;inset:0}.ca-side[data-v-3a849ce7]{z-index:21;visibility:hidden;transition:transform .2s,visibility .2s;position:fixed;inset:0 auto 0 0;transform:translate(-100%)}.ca-side.is-mobile-open[data-v-3a849ce7]{visibility:visible;transform:translate(0)}}@media (width<=768px) and (prefers-reduced-motion:reduce){.ca-side[data-v-3a849ce7]{transition:none}}.ca-exception[data-v-ffcb23b0]{flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:60vh;display:flex}.ca-exception__code[data-v-ffcb23b0]{color:var(--ca-color-primary-text);font-size:72px;font-weight:700;line-height:1}.ca-exception__text[data-v-ffcb23b0]{color:var(--ca-text-secondary);margin:0 0 8px}.ca-login[data-v-ddf636fd]{background:var(--ca-login-bg);flex-direction:column;min-height:100vh;display:flex}.ca-login__main[data-v-ddf636fd]{flex:1;justify-content:center;align-items:center;padding:16px 0;display:flex}.ca-login .ca-login__copyright[data-v-ddf636fd]{box-sizing:border-box;width:fit-content;max-width:calc(100vw - 32px);color:var(--ca-text-secondary);background:color-mix(in srgb, var(--ca-bg-card) 92%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid var(--ca-border);border-radius:var(--ca-radius-lg);margin:0 auto 16px;padding:4px 14px}.ca-login__card[data-v-ddf636fd]{box-sizing:border-box;background:color-mix(in srgb, var(--ca-bg-card) 92%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid var(--ca-border);border-radius:var(--ca-radius-lg);width:min(380px,100vw - 32px);padding:36px 32px 28px;box-shadow:0 12px 40px #0000002e}.ca-login__brand[data-v-ddf636fd]{text-align:center;margin-bottom:24px}.ca-login__logo[data-v-ddf636fd]{height:44px;margin-bottom:10px}.ca-login__name[data-v-ddf636fd]{margin:0;font-size:22px;font-weight:600}.ca-login__subtitle[data-v-ddf636fd]{color:var(--ca-text-secondary);margin:6px 0 0;font-size:13px}.ca-login__error[data-v-ddf636fd]{margin-bottom:16px}.ca-login__submit[data-v-ddf636fd]{width:100%}
|
|
1
|
+
.ca-auth[data-v-df817220]{container:ca-auth/inline-size}.ca-auth__stage[data-v-df817220]{box-sizing:border-box;justify-content:center;align-items:center;min-height:100vh;padding:32px 16px;display:flex;position:relative}.ca-auth--preview .ca-auth__stage[data-v-df817220]{border-radius:var(--ca-radius-lg);min-height:680px;overflow:hidden}.ca-auth__card[data-v-df817220]{grid-template-columns:var(--ca-auth-panel-width,45%) 1fr;box-sizing:border-box;width:min(var(--ca-auth-card-width,920px), 100%);min-height:var(--ca-auth-card-min-height,600px);color:var(--ca-text);background:var(--ca-bg-card);border-radius:var(--ca-auth-card-radius,var(--ca-radius-lg));display:grid;overflow:hidden;box-shadow:0 12px 40px #00000038}.ca-auth__panel[data-v-df817220]{color:var(--ca-color-on-primary);text-align:center;background:radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--ca-color-on-primary) 18%, transparent), transparent 55%), linear-gradient(160deg, color-mix(in srgb, var(--ca-color-primary) 88%, white), color-mix(in srgb, var(--ca-color-primary) 62%, black));flex-direction:column;justify-content:center;align-items:center;gap:22px;padding:32px;display:flex}.ca-auth__logo[data-v-df817220]{object-fit:contain;max-width:160px;max-height:64px}.ca-auth__qrcode[data-v-df817220]{box-sizing:border-box;border-radius:var(--ca-radius);background:#fff;width:168px;height:168px;padding:10px}.ca-auth__qrcode img[data-v-df817220]{width:100%;height:100%;display:block}.ca-auth__title[data-v-df817220]{letter-spacing:2px;margin:0;font-size:24px;font-weight:600}.ca-auth__site[data-v-df817220]{margin:0;font-size:24px;font-weight:600}.ca-auth__caption[data-v-df817220]{letter-spacing:1px;margin:0;font-size:14px;line-height:22px}.ca-auth__main[data-v-df817220]{box-sizing:border-box;flex-direction:column;min-width:0;padding:36px 48px 16px;display:flex}.ca-auth__brand[data-v-df817220]{justify-content:center;align-items:center;gap:10px;margin-bottom:20px;font-size:18px;font-weight:600;display:none}.ca-auth__brand img[data-v-df817220]{max-height:36px}.ca-auth__tabs[data-v-df817220]{border-bottom:1px solid var(--ca-border);gap:32px;margin-bottom:24px;display:flex}.ca-auth__tab[data-v-df817220]{color:var(--ca-text-secondary);font:inherit;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;margin-bottom:-1px;padding:0 2px 12px;font-size:18px;text-decoration:none}.ca-auth__tab[data-v-df817220]:hover{color:var(--ca-color-primary-text)}.ca-auth__tab[data-v-df817220]:focus-visible{outline:2px solid var(--ca-color-primary);outline-offset:2px}.ca-auth__tab--active[data-v-df817220]{color:var(--ca-color-primary-text);border-bottom-color:var(--ca-color-primary)}.ca-auth__body[data-v-df817220]{flex:1}.ca-auth__footer[data-v-df817220]{color:var(--ca-text-secondary);text-align:center;padding-top:16px;font-size:12px;line-height:20px}.ca-auth__footer p[data-v-df817220]{margin:0}.ca-auth__version[data-v-df817220]{color:var(--ca-text-secondary);background:color-mix(in srgb, var(--ca-bg-card) 92%, transparent);border-radius:var(--ca-radius);padding:0 8px;font-size:12px;line-height:20px;position:absolute;bottom:10px;right:12px}@container ca-auth (width<=1200px){.ca-auth__card[data-v-df817220]{grid-template-columns:40% 1fr;width:min(720px,100%)}.ca-auth__panel[data-v-df817220]{padding:24px 20px}.ca-auth__qrcode[data-v-df817220]{width:132px;height:132px}.ca-auth__main[data-v-df817220]{padding:32px 32px 12px}}@container ca-auth (width<=768px){.ca-auth__stage[data-v-df817220]{align-items:flex-start;padding:16px}.ca-auth__card[data-v-df817220]{grid-template-columns:1fr;width:100%;min-height:0}.ca-auth__panel[data-v-df817220]{display:none}.ca-auth__brand[data-v-df817220]{display:flex}.ca-auth__main[data-v-df817220]{padding:28px 20px 12px}.ca-auth__tabs[data-v-df817220]{gap:24px}.ca-auth__version[data-v-df817220]{width:fit-content;margin:12px auto 0;display:block;position:static}.ca-auth__stage[data-v-df817220]{flex-direction:column}}.ca-auth-form{--el-component-size-large:46px}.ca-auth-form .ca-auth-row{gap:10px;width:100%;display:flex}.ca-auth-form .ca-auth-row>:first-child{flex:1;min-width:0}.ca-auth-alert{margin-bottom:16px}.ca-auth-captcha,.ca-auth-sms{height:46px;color:var(--ca-color-primary-text);font:inherit;cursor:pointer;background:var(--ca-color-primary-soft);border-radius:var(--ca-radius);border:1px solid #0000;flex:none;font-size:14px}.ca-auth-captcha{justify-content:center;align-items:center;width:120px;padding:0;font-size:12px;line-height:16px;display:flex;overflow:hidden}.ca-auth-captcha img{object-fit:cover;width:100%;height:100%;display:block}.ca-auth-sms{min-width:112px;padding:0 12px}.ca-auth-sms:disabled{color:var(--ca-text-secondary);cursor:not-allowed;background:var(--ca-bg-page);border-color:var(--ca-border)}.ca-auth-captcha:focus-visible,.ca-auth-sms:focus-visible{outline:2px solid var(--ca-color-primary);outline-offset:2px}.ca-auth-hint{color:var(--ca-text-secondary);margin:4px 0 0;font-size:12px;line-height:18px}.ca-auth-agreements{flex-wrap:wrap;gap:0 8px;display:inline-flex}.ca-auth-agreements a{color:var(--ca-color-primary-text);text-decoration:none}.ca-auth-agreements a:hover{text-decoration:underline}.ca-auth-form .ca-auth-submit{border-radius:5px;width:100%;height:50px;font-size:20px}.ca-auth-form .ca-auth-submit--off,.ca-auth-form .ca-auth-submit--off:hover{color:var(--ca-text-secondary);background:var(--ca-bg-page);border-color:var(--ca-border)}.ca-auth-links{justify-content:space-between;margin-top:14px;font-size:14px;display:flex}.ca-auth-links a,.ca-auth-help a{color:var(--ca-color-primary-text);text-decoration:none}.ca-auth-links a:hover,.ca-auth-help a:hover{text-decoration:underline}.ca-auth-help{color:var(--ca-text-secondary);margin-top:22px;font-size:13px;line-height:21px}.ca-auth-help h3{color:var(--ca-text);margin:0 0 6px;font-size:14px;font-weight:600}.ca-auth-help ol{margin:0;padding-left:18px}.ca-auth-off{text-align:center;padding:48px 0}.ca-auth-off h3{margin:0 0 8px;font-size:18px}.ca-auth-off p{color:var(--ca-text-secondary);margin:0}.ca-auth-wechat{flex-direction:column;align-items:center;gap:12px;padding:12px 0;display:flex}.ca-auth-wechat__code{box-sizing:border-box;color:#1f2937;border:1px solid var(--ca-border);border-radius:var(--ca-radius);background:#fff;width:180px;height:180px;padding:12px}.ca-auth-wechat__code img,.ca-auth-wechat__code svg{width:100%;height:100%;display:block}.ca-auth-wechat__hint{margin:0;font-size:16px}.ca-auth-wechat__host{justify-content:center;align-items:center;width:100%;min-height:180px;display:flex}.ca-auth-wechat__failed{color:var(--ca-text-secondary);flex-direction:column;align-items:center;gap:12px;padding:48px 0;display:flex}.ca-auth-wechat__failed p{margin:0}.ca-auth-wechat__note{color:var(--ca-text-secondary);margin:0;font-size:12px}.ca-auth-icon{color:var(--ca-text-secondary)}.ca-user-avatar[data-v-b67c1b85]{overflow:hidden}.ca-user-avatar img[data-v-b67c1b85]{object-fit:cover;width:100%;height:100%}.ca-header[data-v-1b60a583]{height:var(--ca-header-height);background:var(--ca-header-bg);color:var(--ca-header-fg);flex:none;align-items:center;gap:32px;padding:0 20px;display:flex}.ca-header__hamburger.ca-header__icon[data-v-1b60a583]{display:none}.ca-header__brand[data-v-1b60a583]{width:calc(var(--ca-rail-width,84px) + var(--ca-side-panel-width,200px) + 6px - 20px - 32px);flex:none;align-items:center;gap:12px;display:flex;overflow:hidden}.ca-header__logo[data-v-1b60a583]{flex:none;width:40px;height:40px}.ca-header__titles[data-v-1b60a583]{flex-direction:column;line-height:1.25;display:flex}.ca-header__name[data-v-1b60a583]{font-size:20px;font-weight:700}.ca-header__subtitle[data-v-1b60a583]{color:var(--ca-header-fg-muted);font-size:12px}.ca-header__nav[data-v-1b60a583]{flex:1;gap:4px;min-width:0;display:flex}.ca-header__nav-item[data-v-1b60a583]{color:var(--ca-header-fg-muted);font:inherit;cursor:pointer;border-radius:var(--ca-radius);background:0 0;border:0;align-items:center;gap:6px;padding:8px 16px;font-size:16px;display:inline-flex}.ca-header__nav-item[data-v-1b60a583]:hover{background:var(--ca-header-hover);color:var(--ca-header-fg)}.ca-header__nav-item.is-active[data-v-1b60a583]{background:var(--ca-header-active);color:var(--ca-header-fg);font-weight:600}.ca-header__tools[data-v-1b60a583]{align-items:center;gap:6px;display:flex}.ca-header__search[data-v-1b60a583]{border:1px solid var(--ca-header-control);border-radius:var(--ca-radius);width:180px;height:34px;color:var(--ca-header-fg-muted);font:inherit;cursor:pointer;background:0 0;align-items:center;gap:8px;margin-right:8px;padding:0 8px 0 12px;font-size:13px;display:inline-flex}.ca-header__search[data-v-1b60a583]:hover{background:var(--ca-header-hover)}.ca-header__search-text[data-v-1b60a583]{text-align:left;flex:1}.ca-header__kbd[data-v-1b60a583]{border:1px solid var(--ca-header-control);font:inherit;border-radius:6px;padding:1px 6px;font-size:12px}.ca-header__icon[data-v-1b60a583]{border-radius:var(--ca-radius);width:36px;height:36px;color:var(--ca-header-fg);font:inherit;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;display:inline-flex;position:relative}.ca-header__icon[data-v-1b60a583]:hover{background:var(--ca-header-hover)}.ca-header__icon-text[data-v-1b60a583]{font-size:13px;font-weight:600}.ca-header__dot[data-v-1b60a583]{border-radius:50%;width:7px;height:7px;position:absolute;top:6px;right:6px}.ca-header__dot.is-danger[data-v-1b60a583]{background:var(--ca-danger)}.ca-header__dot.is-success[data-v-1b60a583]{background:var(--ca-success)}.ca-header__user[data-v-1b60a583]{color:var(--ca-header-fg);cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;margin-left:4px;padding:0;display:inline-flex}.ca-header__avatar[data-v-1b60a583]{background:var(--ca-header-control);border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:13px;font-weight:600;display:inline-flex}.ca-settings__group[data-v-1b60a583]{flex-direction:column;gap:16px;display:flex}.ca-settings__group+.ca-settings__group[data-v-1b60a583]{margin-top:28px}.ca-settings__title[data-v-1b60a583]{color:var(--ca-text);align-items:center;gap:12px;margin:0;font-size:14px;font-weight:600;display:flex}.ca-settings__title[data-v-1b60a583]:before,.ca-settings__title[data-v-1b60a583]:after{content:"";background:var(--ca-border);flex:1;height:1px}.ca-settings__segment[data-v-1b60a583]{border:1px solid var(--ca-border);border-radius:var(--ca-radius);background:var(--ca-bg-page);grid-template-columns:1fr 1fr;padding:3px;display:grid}.ca-settings__swatches[data-v-1b60a583]{flex-wrap:wrap;gap:10px;display:flex}.ca-settings__swatch[data-v-1b60a583]{cursor:pointer;border:2px solid #0000;border-radius:50%;width:28px;height:28px;padding:0;position:relative;box-shadow:inset 0 0 0 1px #00000026}.ca-settings__swatch.is-active[data-v-1b60a583]{border-color:var(--ca-bg-card);box-shadow:0 0 0 2px var(--ca-color-primary)}.ca-settings__swatch[data-v-1b60a583]:focus-visible{outline:2px solid var(--ca-color-primary);outline-offset:2px}.ca-settings__swatch.is-custom[data-v-1b60a583]{background:conic-gradient(red,#ff0,#0f0,#0ff,#00f,#f0f,red);overflow:hidden}.ca-settings__swatch.is-custom input[data-v-1b60a583]{opacity:0;cursor:pointer;width:44px;height:44px;position:absolute;inset:-6px}.ca-settings__reset[data-v-1b60a583]{color:var(--ca-color-primary-text);font:inherit;cursor:pointer;background:0 0;border:0;align-self:flex-start;padding:0}.ca-settings__reset[data-v-1b60a583]:disabled{color:var(--ca-text-secondary);cursor:default;opacity:.6}.ca-settings__segment.is-three[data-v-1b60a583]{grid-template-columns:repeat(3,1fr)}.ca-settings__segment button[data-v-1b60a583]{border-radius:calc(var(--ca-radius) - 2px);min-height:36px;color:var(--ca-text-secondary);font:inherit;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;gap:6px;display:inline-flex}.ca-settings__segment button.is-active[data-v-1b60a583]{background:var(--ca-bg-card);color:var(--ca-color-primary-text);font-weight:600;box-shadow:0 1px 4px #0000001f}.ca-settings__segment button[data-v-1b60a583]:focus-visible{outline:2px solid var(--ca-color-primary);outline-offset:1px}@media (width>=769px) and (width<=1200px){.ca-header[data-v-1b60a583]{gap:16px;min-width:0;padding:0 12px}.ca-header__brand[data-v-1b60a583]{flex:none;width:auto;min-width:0}.ca-header__nav[data-v-1b60a583]{overflow:hidden}.ca-header__search[data-v-1b60a583]{border:0;justify-content:center;width:36px;height:36px;margin:0;padding:0}.ca-header__search-text[data-v-1b60a583],.ca-header__kbd[data-v-1b60a583]{display:none}}@media (width<=768px){.ca-header[data-v-1b60a583]{gap:8px;min-width:0;padding:0 12px}.ca-header__hamburger.ca-header__icon[data-v-1b60a583]{flex:none;display:inline-flex}.ca-header__brand[data-v-1b60a583]{flex:1;gap:6px;width:auto;min-width:0}.ca-header__logo[data-v-1b60a583]{width:32px;height:32px}.ca-header__titles[data-v-1b60a583]{min-width:0}.ca-header__name[data-v-1b60a583]{white-space:nowrap;text-overflow:ellipsis;font-size:16px;overflow:hidden}.ca-header__subtitle[data-v-1b60a583],.ca-header__nav[data-v-1b60a583],.ca-header__desktop-tool[data-v-1b60a583]{display:none}.ca-header__tools[data-v-1b60a583]{flex:none;gap:0}.ca-header__search[data-v-1b60a583]{border:0;justify-content:center;width:36px;height:36px;margin:0;padding:0}.ca-header__search-text[data-v-1b60a583],.ca-header__kbd[data-v-1b60a583],.ca-header__user .ca-icon[data-v-1b60a583]{display:none}.ca-header__user[data-v-1b60a583]{margin-left:0}}.ca-page-header[data-v-e0f9b42f]{padding:12px 16px}.ca-page-header__top[data-v-e0f9b42f]{color:var(--ca-text-secondary);justify-content:space-between;align-items:center;gap:12px;font-size:13px;display:flex}.ca-page-header__crumb[data-v-e0f9b42f]{align-items:center;gap:6px;display:flex}.ca-page-header__refresh[data-v-e0f9b42f]{border-radius:var(--ca-radius);color:var(--ca-text-secondary);cursor:pointer;background:0 0;border:0;align-items:center;margin-left:4px;padding:2px;display:inline-flex}.ca-page-header__refresh[data-v-e0f9b42f]:hover{background:var(--ca-color-primary-soft);color:var(--ca-color-primary-text)}.ca-page-header__icon[data-v-e0f9b42f]{color:var(--ca-color-primary-text)}@media (height<=720px){.ca-page-header[data-v-e0f9b42f]{padding-top:8px}}@media (width<=768px){.ca-page-header[data-v-e0f9b42f]{padding:8px 12px}.ca-page-header__date[data-v-e0f9b42f]{display:none}.ca-page-header__crumb[data-v-e0f9b42f]{white-space:nowrap;min-width:0;overflow:hidden}.ca-page-header__refresh[data-v-e0f9b42f]{justify-content:center;min-width:36px;min-height:36px}}.ca-page-header__main[data-v-e63e651d]{flex:none;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.ca-page-header__titles[data-v-e63e651d]{align-items:baseline;gap:12px;min-width:0;display:flex;position:relative;top:-10px}.ca-page-header__title[data-v-e63e651d]{color:var(--ca-text);flex:none;margin:0;font-size:20px;font-weight:700;line-height:1.4}.ca-page-header__desc[data-v-e63e651d]{min-width:0;color:var(--ca-text-secondary);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:13px;overflow:hidden}.ca-page-header__actions[data-v-e63e651d]{flex:none;gap:8px;display:flex}@media (height<=720px){.ca-page-header__desc[data-v-e63e651d]{display:none}}@media (width<=768px){.ca-page-header__desc[data-v-e63e651d]{display:none}.ca-page-header__main[data-v-e63e651d]{flex-direction:column;align-items:stretch;gap:8px;margin-bottom:12px}.ca-page-header__titles[data-v-e63e651d]{flex-wrap:wrap}.ca-page-header__title[data-v-e63e651d]{overflow-wrap:anywhere;flex:1;min-width:0}.ca-page-header__actions[data-v-e63e651d]{flex-wrap:wrap}}.ca-side[data-v-7e3f4585]{border-radius:0 var(--ca-radius-lg) 0 0;background:var(--ca-bg-sidebar);flex:none;display:flex;overflow:hidden}.ca-side__shortcuts[data-v-7e3f4585]{display:none}.ca-side__rail[data-v-7e3f4585]{box-sizing:border-box;width:var(--ca-rail-width,84px);border-right:1px solid var(--ca-border);flex-direction:column;gap:4px;padding:8px 4px;display:flex}.ca-side__rail-list[data-v-7e3f4585]{scrollbar-width:none;flex-direction:column;flex:1;gap:4px;min-height:0;display:flex;overflow-y:auto}.ca-side__rail.is-compact[data-v-7e3f4585]{width:56px}.ca-side__rail-item[data-v-7e3f4585]{border-radius:var(--ca-radius);color:var(--ca-text-secondary);font:inherit;cursor:pointer;background:0 0;border:0;flex-direction:column;align-items:center;gap:4px;padding:8px 0;font-size:12px;display:flex;position:relative}.ca-side__rail-item[data-v-7e3f4585]:hover{background:var(--ca-color-primary-soft)}.ca-side__rail-item.is-active[data-v-7e3f4585]{background:var(--ca-color-primary-soft);color:var(--ca-color-primary-text)}.ca-side__rail-text[data-v-7e3f4585]{-webkit-line-clamp:2;text-align:center;overflow-wrap:break-word;-webkit-box-orient:vertical;max-width:100%;line-height:1.25;display:-webkit-box;overflow:hidden}html.dark .ca-side__rail-item:not(.is-active){color:var(--ca-text)}.ca-side__tools[data-v-7e3f4585]{border-top:1px solid var(--ca-border);flex-direction:column;align-items:center;gap:4px;margin-top:auto;padding-top:8px;display:flex}.ca-side__tool[data-v-7e3f4585]{border-radius:var(--ca-radius);width:40px;height:36px;color:var(--ca-text-secondary);font:inherit;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;display:inline-flex}.ca-side__tool[data-v-7e3f4585]:hover{background:var(--ca-color-primary-soft);color:var(--ca-color-primary-text)}.ca-side__avatar[data-v-7e3f4585]{background:var(--ca-color-primary-soft);width:26px;height:26px;color:var(--ca-color-primary-text);border-radius:50%;justify-content:center;align-items:center;font-size:12px;font-weight:600;display:inline-flex}.ca-side__group-badge[data-v-7e3f4585]{background:var(--ca-danger);color:#fff;border-radius:999px;margin-left:8px;padding:0 6px;font-size:11px;line-height:16px}.ca-side__panel[data-v-7e3f4585]{width:var(--ca-side-panel-width,200px);transition:width .2s;overflow:hidden}.ca-side__panel.is-hidden[data-v-7e3f4585]{width:0}.ca-side__panel-inner[data-v-7e3f4585]{width:var(--ca-side-panel-width,200px);height:100%;overflow-y:auto}@media (prefers-reduced-motion:reduce){.ca-side__panel[data-v-7e3f4585]{transition:none}}.ca-side__title[data-v-7e3f4585]{color:var(--ca-text);padding:16px 16px 8px;font-size:15px;font-weight:600}.ca-side__menu[data-v-7e3f4585]{padding:0 8px 8px}.ca-side__badge[data-v-7e3f4585]{background:var(--ca-danger);color:#fff;border-radius:999px;padding:0 5px;font-size:11px;line-height:16px;position:absolute;top:2px;right:6px}@media (width>=769px) and (width<=1200px){.ca-side[data-v-7e3f4585]{z-index:21;position:relative;overflow:visible}.ca-side__tool--collapse[data-v-7e3f4585]{display:none}.ca-side__panel[data-v-7e3f4585]{background:var(--ca-bg-sidebar);border-radius:0 var(--ca-radius-lg) 0 0;clip-path:inset(0 -32px 0 0);position:absolute;top:0;bottom:0;left:100%;box-shadow:6px 0 16px #00000024}.ca-side[data-v-7e3f4585]{transition:border-radius 0s linear .2s}.ca-side__rail[data-v-7e3f4585]{border-right:0}.ca-side.is-pad-open[data-v-7e3f4585]{border-radius:0;transition:none}.ca-side__panel.is-hidden[data-v-7e3f4585]{box-shadow:none}}@media (width>=769px) and (width<=1200px) and (prefers-reduced-motion:reduce){.ca-side[data-v-7e3f4585]{transition:none}}@media (width<=768px){.ca-side[data-v-7e3f4585]{grid-template-columns:var(--ca-rail-width) minmax(0, 1fr);border-radius:0 var(--ca-radius-lg) var(--ca-radius-lg) 0;grid-template-rows:auto minmax(0,1fr);width:min(320px,100vw - 40px);height:100%;display:grid}.ca-side__shortcuts[data-v-7e3f4585]{border-bottom:1px solid var(--ca-border);flex-wrap:wrap;grid-column:1/-1;gap:4px;padding:12px;display:flex}.ca-side__shortcuts button[data-v-7e3f4585]{border-radius:var(--ca-radius);min-height:36px;color:var(--ca-text);font:inherit;background:0 0;border:0;padding:4px 10px}.ca-side__shortcuts button.is-active[data-v-7e3f4585]{background:var(--ca-color-primary-soft);color:var(--ca-color-primary-text)}.ca-side__rail[data-v-7e3f4585],.ca-side__rail.is-compact[data-v-7e3f4585]{width:var(--ca-rail-width)}.ca-side__rail-item[data-v-7e3f4585]{min-height:44px}.ca-side__tools[data-v-7e3f4585]{display:none}.ca-side__panel[data-v-7e3f4585],.ca-side__panel.is-hidden[data-v-7e3f4585],.ca-side__panel-inner[data-v-7e3f4585]{width:100%}}.ca-copyright[data-v-c51879e8]{color:var(--ca-text-secondary);text-align:center;flex-wrap:wrap;justify-content:center;gap:0 6px;padding:16px 0;font-size:12px;line-height:18px;display:flex}.ca-copyright>span[data-v-c51879e8]:first-child{white-space:pre-line}.ca-copyright a[data-v-c51879e8]{color:inherit;text-decoration:none}.ca-copyright a[data-v-c51879e8]:hover{color:var(--ca-color-primary-text);text-decoration:underline}.ca-tabs[data-v-1d7ba823]{height:var(--ca-tabs-height);box-sizing:border-box;flex:none;align-items:center;gap:8px;padding:10px 16px 0;display:flex}.ca-tabs__fixed[data-v-1d7ba823]{flex:none;gap:6px;display:flex}.ca-tabs__list[data-v-1d7ba823]{scrollbar-width:none;flex:1;gap:6px;min-width:0;display:flex;overflow-x:auto}.ca-tabs__item[data-v-1d7ba823]{border:1px solid var(--ca-border);border-radius:var(--ca-radius);background:var(--ca-bg-card);color:var(--ca-text-secondary);cursor:pointer;flex:none;align-items:center;gap:6px;padding:6px 12px;font-size:13px;display:inline-flex}.ca-tabs__item.is-active[data-v-1d7ba823]{border-color:var(--ca-color-primary);background:var(--ca-color-primary-soft);color:var(--ca-color-primary-text)}.ca-tabs__close[data-v-1d7ba823]{border-radius:50%;font-size:12px}.ca-tabs__close[data-v-1d7ba823]:hover{background:var(--ca-border)}.ca-tabs__more[data-v-1d7ba823]{border:1px solid var(--ca-border);border-radius:var(--ca-radius);background:var(--ca-bg-card);cursor:pointer;outline:none;flex:none;justify-content:center;align-items:center;width:30px;height:30px;display:inline-flex}@media (width<=768px){.ca-tabs[data-v-1d7ba823]{gap:4px;padding:8px 12px 0}.ca-tabs__item[data-v-1d7ba823]{box-sizing:border-box;min-height:36px;padding:6px 8px}.ca-tabs__more[data-v-1d7ba823]{width:36px;height:36px}.ca-tabs__fullscreen[data-v-1d7ba823]{display:none}}.ca-shell[data-v-3a849ce7]{--ca-header-height:64px;--ca-tabs-height:42px;--ca-rail-width:84px;--ca-side-panel-width:200px;background:linear-gradient(to bottom, var(--ca-header-bg) calc(var(--ca-header-height) + var(--ca-tabs-height)), var(--ca-bg-page) calc(var(--ca-header-height) + var(--ca-tabs-height)));flex-direction:column;height:100vh;display:flex}.ca-shell.is-fullscreen[data-v-3a849ce7]{--ca-header-height:0px}.ca-body[data-v-3a849ce7]{flex:1;gap:6px;min-height:0;margin:0 6px 0 0;display:flex}.ca-body.is-fullscreen[data-v-3a849ce7]{gap:0;margin:0}.ca-body.is-fullscreen .ca-main[data-v-3a849ce7]{border-radius:0}.ca-main[data-v-3a849ce7]{border-radius:var(--ca-radius-lg) var(--ca-radius-lg) 0 0;background:var(--ca-bg-page);flex-direction:column;flex:1;min-width:0;display:flex;overflow:hidden}.ca-content[data-v-3a849ce7]{flex-direction:column;flex:1;min-height:0;padding:16px;display:flex;position:relative;overflow-y:auto}.ca-content__page[data-v-3a849ce7]{flex:1 0 auto;min-width:0}.ca-mobile-scrim[data-v-3a849ce7]{display:none}@media (width>=769px) and (width<=1200px){.ca-shell[data-v-3a849ce7]{width:100%;min-width:0;height:100dvh;overflow:hidden}.ca-body[data-v-3a849ce7]{position:relative}.ca-main[data-v-3a849ce7]{min-width:0}.ca-content[data-v-3a849ce7]{overflow-x:hidden}.ca-pad-scrim[data-v-3a849ce7]{z-index:20;background:color-mix(in srgb, var(--ca-text) 35%, transparent);border:0;width:100%;position:absolute;inset:0}}@media (width<=768px){.ca-shell[data-v-3a849ce7]{--ca-tabs-height:44px;width:100%;min-width:0;height:100dvh;overflow:hidden}.ca-body[data-v-3a849ce7],.ca-body.is-fullscreen[data-v-3a849ce7]{gap:0;margin:0}.ca-main[data-v-3a849ce7]{border-radius:0;min-width:0}.ca-content[data-v-3a849ce7]{padding:12px;overflow-x:hidden}.ca-mobile-scrim[data-v-3a849ce7]{z-index:20;background:color-mix(in srgb, var(--ca-text) 45%, transparent);border:0;width:100%;display:block;position:fixed;inset:0}.ca-side[data-v-3a849ce7]{z-index:21;visibility:hidden;transition:transform .2s,visibility .2s;position:fixed;inset:0 auto 0 0;transform:translate(-100%)}.ca-side.is-mobile-open[data-v-3a849ce7]{visibility:visible;transform:translate(0)}}@media (width<=768px) and (prefers-reduced-motion:reduce){.ca-side[data-v-3a849ce7]{transition:none}}.ca-exception[data-v-ffcb23b0]{flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:60vh;display:flex}.ca-exception__code[data-v-ffcb23b0]{color:var(--ca-color-primary-text);font-size:72px;font-weight:700;line-height:1}.ca-exception__text[data-v-ffcb23b0]{color:var(--ca-text-secondary);margin:0 0 8px}.ca-login[data-v-ddf636fd]{background:var(--ca-login-bg);flex-direction:column;min-height:100vh;display:flex}.ca-login__main[data-v-ddf636fd]{flex:1;justify-content:center;align-items:center;padding:16px 0;display:flex}.ca-login .ca-login__copyright[data-v-ddf636fd]{box-sizing:border-box;width:fit-content;max-width:calc(100vw - 32px);color:var(--ca-text-secondary);background:color-mix(in srgb, var(--ca-bg-card) 92%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid var(--ca-border);border-radius:var(--ca-radius-lg);margin:0 auto 16px;padding:4px 14px}.ca-login__card[data-v-ddf636fd]{box-sizing:border-box;background:color-mix(in srgb, var(--ca-bg-card) 92%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid var(--ca-border);border-radius:var(--ca-radius-lg);width:min(380px,100vw - 32px);padding:36px 32px 28px;box-shadow:0 12px 40px #0000002e}.ca-login__brand[data-v-ddf636fd]{text-align:center;margin-bottom:24px}.ca-login__logo[data-v-ddf636fd]{height:44px;margin-bottom:10px}.ca-login__name[data-v-ddf636fd]{margin:0;font-size:22px;font-weight:600}.ca-login__subtitle[data-v-ddf636fd]{color:var(--ca-text-secondary);margin:6px 0 0;font-size:13px}.ca-login__error[data-v-ddf636fd]{margin-bottom:16px}.ca-login__submit[data-v-ddf636fd]{width:100%}
|
|
2
2
|
/*$vite$:1*/
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@campus-admin/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "应用壳:布局、菜单、路由、权限、多标签、主题运行时、反馈服务。平台只安装这个包。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"./dist/index.js"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@campus-admin/locale": "^2.0.
|
|
30
|
-
"@campus-admin/ui": "^2.0.
|
|
31
|
-
"@campus-admin/theme": "^2.0.
|
|
29
|
+
"@campus-admin/locale": "^2.0.4",
|
|
30
|
+
"@campus-admin/ui": "^2.0.4",
|
|
31
|
+
"@campus-admin/theme": "^2.0.4",
|
|
32
32
|
"element-plus": "^2.14.7",
|
|
33
33
|
"pinia": "^3.0.3",
|
|
34
34
|
"vue-i18n": "^11.1.0",
|