@pubinfo/core 2.0.0-rc.2 → 2.0.0-rc.3
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/{AppSetting-D2RJrc9O.js → AppSetting-3wJKvibc.js} +19 -19
- package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-DusVz35O.js → HCheckList.vue_vue_type_script_setup_true_lang-17EywJvs.js} +1 -1
- package/dist/{HToggle-DMcVgMVY.js → HToggle-B-ZjSh6S.js} +1 -1
- package/dist/{PreferencesContent-Dtd9rtew.js → PreferencesContent-xT4paU7N.js} +52 -52
- package/dist/{SettingBreadcrumb-QSCSviKM.js → SettingBreadcrumb-CYnO51Ek.js} +5 -5
- package/dist/{SettingCopyright-Dr5P6yfq.js → SettingCopyright-FOW5ObHK.js} +2 -2
- package/dist/{SettingEnableTransition-DGiHEbCI.js → SettingEnableTransition-Q5cvubmF.js} +12 -12
- package/dist/{SettingHome-CEPcBlds.js → SettingHome-Df7-AlWB.js} +8 -8
- package/dist/{SettingMenu-BJdjnRA6.js → SettingMenu-BNAJ3el9.js} +14 -14
- package/dist/{SettingMode-BnuCHoEY.js → SettingMode-LzlRsBL9.js} +3 -3
- package/dist/{SettingNavSearch-CiU4BmlU.js → SettingNavSearch-BA08vYuw.js} +6 -6
- package/dist/{SettingOther-DTHjVlFe.js → SettingOther-BE8dDCYD.js} +11 -11
- package/dist/{SettingPage-D75_Nf05.js → SettingPage-D061yXCv.js} +2 -2
- package/dist/{SettingTabbar-D48dzvgA.js → SettingTabbar-COwdPPKy.js} +13 -13
- package/dist/{SettingThemes-D-8vTs5n.js → SettingThemes-BHaYERNp.js} +12 -12
- package/dist/{SettingToolbar-DjIjm9V-.js → SettingToolbar-fSuzu6ND.js} +10 -10
- package/dist/{SettingTopbar-Cg30OTH3.js → SettingTopbar-D7GgP0KB.js} +6 -6
- package/dist/{SettingWidthMode-BKV_7kb8.js → SettingWidthMode-CNjzChe1.js} +11 -11
- package/dist/{TopThinMode-JFYsp_lJ.js → TopThinMode-B-28sBJD.js} +3 -3
- package/dist/built-in/layout-component/Layout.vue.d.ts +1 -0
- package/dist/built-in/layout-component/components/Tools/Fullscreen.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Tools/PageReload.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Tools/SearchBar.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Tools/index.vue.d.ts +47 -1
- package/dist/built-in/layout-component/components/Tools/interface.d.ts +26 -0
- package/dist/built-in/layout-component/components/ui/HDropdownMenu.vue.d.ts +2 -7
- package/dist/built-in/layout-component/composables/useHotkey.d.ts +1 -5
- package/dist/built-in/layout-component/composables/useMainPage.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useMenu.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useTabbar.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useTitle.d.ts +2 -1
- package/dist/built-in/layout-component/composables/useWatermark.d.ts +3 -1
- package/dist/built-in/layout-component/index.d.ts +9 -6
- package/dist/built-in/layout-component/utils/index.d.ts +0 -1
- package/dist/{colors-CODcBxrF.js → colors-BIQSd520.js} +1 -1
- package/dist/{index-Jd3PYkpj.js → index-Beb7_0-E.js} +11384 -11329
- package/dist/{index-BAoB7aoj.js → index-CPRiufg0.js} +1 -1
- package/dist/{index-DmcblkoZ.js → index-DNdH93AP.js} +13 -13
- package/dist/{index-DQn1WFMa.js → index-DYMBkmAp.js} +2 -2
- package/dist/{index-BVLkBCRY.js → index-Dlf6GQBd.js} +6418 -6439
- package/dist/{index-DvJr0paY.js → index-IscoZG-Y.js} +2 -2
- package/dist/{index-BROqFYXS.js → index-WubcSL0v.js} +1 -1
- package/dist/{index-RT-QBzm0.js → index-YSjb6X1D.js} +10 -12
- package/dist/{index-D4_xmL_A.js → index-wxEEuQXu.js} +17 -17
- package/dist/index.d.ts +4 -2
- package/dist/index.js +53 -55
- package/dist/{pick-BLJM77QN.js → pick-D_XPbQHB.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +9 -9
- package/src/built-in/layout-component/Layout.vue +11 -22
- package/src/built-in/layout-component/components/Header/TopMode/index.vue +1 -1
- package/src/built-in/layout-component/components/Sidebar/MainSidebar.vue +1 -1
- package/src/built-in/layout-component/components/Sidebar/index.vue +1 -1
- package/src/built-in/layout-component/components/Tools/DarkModeToggle.vue +108 -0
- package/src/built-in/layout-component/components/Tools/Fullscreen.vue +24 -0
- package/src/built-in/layout-component/components/Tools/PageReload.vue +22 -0
- package/src/built-in/layout-component/components/Tools/SearchBar.vue +44 -0
- package/src/built-in/layout-component/components/Tools/{Search.vue → SearchPanel.vue} +1 -1
- package/src/built-in/layout-component/components/Tools/index.vue +63 -131
- package/src/built-in/layout-component/components/Tools/interface.ts +27 -0
- package/src/built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue +2 -2
- package/src/built-in/layout-component/components/Topbar/Tabbar/index.vue +2 -2
- package/src/built-in/layout-component/components/ui/HDropdownMenu.vue +19 -26
- package/src/built-in/layout-component/composables/useGetComputedStyle.ts +2 -3
- package/src/built-in/layout-component/composables/useHotkey.ts +6 -10
- package/src/built-in/layout-component/composables/useMainPage.ts +5 -6
- package/src/built-in/layout-component/composables/useMenu.ts +3 -5
- package/src/built-in/layout-component/composables/useTabbar.ts +3 -5
- package/src/built-in/layout-component/composables/useTitle.ts +2 -3
- package/src/built-in/layout-component/composables/useWatermark.ts +25 -12
- package/src/built-in/layout-component/index.ts +21 -12
- package/src/built-in/layout-component/provider.ts +6 -2
- package/src/built-in/layout-component/utils/index.ts +0 -1
- package/src/built-in/settings/router.ts +5 -1
- package/src/features/stores/utils/routerHelper.ts +3 -0
- package/src/index.ts +7 -9
- package/dist/built-in/layout-component/utils/eventBus.d.ts +0 -5
- package/src/built-in/layout-component/components/Tools/DayNightSwitch.vue +0 -70
- package/src/built-in/layout-component/utils/eventBus.ts +0 -8
- /package/dist/built-in/layout-component/components/Tools/{DayNightSwitch.vue.d.ts → DarkModeToggle.vue.d.ts} +0 -0
- /package/dist/built-in/layout-component/components/Tools/{Search.vue.d.ts → SearchPanel.vue.d.ts} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
|
-
import { _ as p } from "./HToggle-
|
|
3
|
-
import {
|
|
2
|
+
import { _ as p } from "./HToggle-B-ZjSh6S.js";
|
|
3
|
+
import { bL as u, bN as c } from "./index-Beb7_0-E.js";
|
|
4
4
|
import { defineComponent as f, toRef as b, createBlock as g, openBlock as v, withCtx as i, createElementVNode as n, createVNode as s, createTextVNode as V, unref as t } from "vue";
|
|
5
5
|
import { R as S } from "./question-line-CfkciTFq.js";
|
|
6
|
-
const x = { class: "setting-item" },
|
|
6
|
+
const x = { class: "setting-item" }, N = { class: "label" }, H = { class: "setting-item" }, U = /* @__PURE__ */ f({
|
|
7
7
|
name: "SettingNavSearch",
|
|
8
8
|
__name: "SettingNavSearch",
|
|
9
9
|
setup(k) {
|
|
@@ -13,7 +13,7 @@ const x = { class: "setting-item" }, H = { class: "label" }, N = { class: "setti
|
|
|
13
13
|
return v(), g(r, { title: "导航搜索" }, {
|
|
14
14
|
default: i(() => [
|
|
15
15
|
n("div", x, [
|
|
16
|
-
n("div",
|
|
16
|
+
n("div", N, [
|
|
17
17
|
e[2] || (e[2] = V(" 是否启用 ")),
|
|
18
18
|
s(d, { text: "对导航进行快捷搜索" }, {
|
|
19
19
|
default: i(() => [
|
|
@@ -27,7 +27,7 @@ const x = { class: "setting-item" }, H = { class: "label" }, N = { class: "setti
|
|
|
27
27
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t(o).enable = l)
|
|
28
28
|
}, null, 8, ["modelValue"])
|
|
29
29
|
]),
|
|
30
|
-
n("div",
|
|
30
|
+
n("div", H, [
|
|
31
31
|
e[3] || (e[3] = n("div", { class: "label" }, " 是否启用快捷键 ", -1)),
|
|
32
32
|
s(a, {
|
|
33
33
|
modelValue: t(o).enableHotkeys,
|
|
@@ -42,5 +42,5 @@ const x = { class: "setting-item" }, H = { class: "label" }, N = { class: "setti
|
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
U as default
|
|
46
46
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { _ as c } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
2
|
import { _ as b } from "./HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js";
|
|
3
|
-
import {
|
|
4
|
-
import { _ as H } from "./HToggle-
|
|
5
|
-
import { defineComponent as
|
|
3
|
+
import { bL as x, bN as S } from "./index-Beb7_0-E.js";
|
|
4
|
+
import { _ as H } from "./HToggle-B-ZjSh6S.js";
|
|
5
|
+
import { defineComponent as N, toRefs as R, createBlock as T, openBlock as U, withCtx as s, createElementVNode as o, createVNode as t, unref as n, isRef as i, createTextVNode as p } from "vue";
|
|
6
6
|
import { R as f } from "./question-line-CfkciTFq.js";
|
|
7
|
-
const
|
|
7
|
+
const C = { class: "setting-item" }, P = { class: "setting-item" }, $ = { class: "label" }, k = { class: "setting-item" }, B = { class: "label" }, D = { class: "setting-item" }, L = { class: "label" }, z = /* @__PURE__ */ N({
|
|
8
8
|
name: "SettingOther",
|
|
9
9
|
__name: "SettingOther",
|
|
10
|
-
setup(
|
|
10
|
+
setup(O) {
|
|
11
11
|
const { settingsStore: g } = x(), {
|
|
12
12
|
enablePermission: a,
|
|
13
13
|
enableProgress: m,
|
|
14
14
|
enableDynamicTitle: d,
|
|
15
15
|
storagePrefix: u
|
|
16
|
-
} =
|
|
17
|
-
return (
|
|
16
|
+
} = R(g.settings.app);
|
|
17
|
+
return (w, e) => {
|
|
18
18
|
const r = H, _ = S, V = b, v = c;
|
|
19
|
-
return
|
|
19
|
+
return U(), T(v, { title: "其它" }, {
|
|
20
20
|
default: s(() => [
|
|
21
|
-
o("div",
|
|
21
|
+
o("div", C, [
|
|
22
22
|
e[4] || (e[4] = o("div", { class: "label" }, " 是否启用权限 ", -1)),
|
|
23
23
|
t(r, {
|
|
24
24
|
modelValue: n(a),
|
|
@@ -56,7 +56,7 @@ const N = { class: "setting-item" }, P = { class: "setting-item" }, $ = { class:
|
|
|
56
56
|
}, null, 8, ["modelValue"])
|
|
57
57
|
]),
|
|
58
58
|
o("div", D, [
|
|
59
|
-
o("div",
|
|
59
|
+
o("div", L, [
|
|
60
60
|
e[7] || (e[7] = p(" Storage 前缀 ")),
|
|
61
61
|
t(_, { text: "localStorage 和 sessionStorage 的字段前缀" }, {
|
|
62
62
|
default: s(() => [
|
|
@@ -77,5 +77,5 @@ const N = { class: "setting-item" }, P = { class: "setting-item" }, $ = { class:
|
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
export {
|
|
80
|
-
|
|
80
|
+
z as default
|
|
81
81
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as l } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
|
-
import { _ as r } from "./HToggle-
|
|
2
|
+
import { _ as r } from "./HToggle-B-ZjSh6S.js";
|
|
3
3
|
import { defineComponent as _, toRef as p, createBlock as c, openBlock as d, withCtx as u, createElementVNode as o, createVNode as g, unref as n } from "vue";
|
|
4
|
-
import {
|
|
4
|
+
import { bL as f } from "./index-Beb7_0-E.js";
|
|
5
5
|
const V = { class: "setting-item" }, C = /* @__PURE__ */ _({
|
|
6
6
|
name: "SettingPage",
|
|
7
7
|
__name: "SettingPage",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as k } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
|
-
import {
|
|
3
|
-
import { markRaw as x, createElementBlock as p, openBlock as r, createElementVNode as o, defineComponent as v, computed as $, resolveComponent as C, createBlock as V, mergeProps as h, withCtx as u, toDisplayString as g, unref as t, createVNode as a, Fragment as H, renderList as
|
|
4
|
-
import { _ as U } from "./HCheckList.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as L } from "./HToggle-
|
|
2
|
+
import { bL as w, bN as y } from "./index-Beb7_0-E.js";
|
|
3
|
+
import { markRaw as x, createElementBlock as p, openBlock as r, createElementVNode as o, defineComponent as v, computed as $, resolveComponent as C, createBlock as V, mergeProps as h, withCtx as u, toDisplayString as g, unref as t, createVNode as a, Fragment as H, renderList as B, normalizeClass as S, toRef as T, createTextVNode as M } from "vue";
|
|
4
|
+
import { _ as U } from "./HCheckList.vue_vue_type_script_setup_true_lang-17EywJvs.js";
|
|
5
|
+
import { _ as L } from "./HToggle-B-ZjSh6S.js";
|
|
6
6
|
import { R as N } from "./question-line-CfkciTFq.js";
|
|
7
7
|
const R = {
|
|
8
8
|
viewBox: "0 0 32 32",
|
|
@@ -17,7 +17,7 @@ function z(m, i) {
|
|
|
17
17
|
}, null, -1)
|
|
18
18
|
]));
|
|
19
19
|
}
|
|
20
|
-
const D = x({ name: "carbon-chevron-sort-down", render: z }), E = { class: "w-full inline-flex" }, I = ["disabled"], q = { class: "block truncate" }, F = { class: "pointer-events-none absolute end-0 inset-y-0 flex items-center pe-2.5" },
|
|
20
|
+
const D = x({ name: "carbon-chevron-sort-down", render: z }), E = { class: "w-full inline-flex" }, I = ["disabled"], q = { class: "block truncate" }, F = { class: "pointer-events-none absolute end-0 inset-y-0 flex items-center pe-2.5" }, P = { class: "max-h-60 w-full scroll-py-1 overflow-y-auto p-1 lg:w-48 focus:outline-none" }, Q = ["disabled", "onClick"], j = /* @__PURE__ */ v({
|
|
21
21
|
__name: "HSelect",
|
|
22
22
|
props: {
|
|
23
23
|
modelValue: {},
|
|
@@ -43,13 +43,13 @@ const D = x({ name: "carbon-chevron-sort-down", render: z }), E = { class: "w-fu
|
|
|
43
43
|
disabled: s.disabled
|
|
44
44
|
}, s.$attrs), {
|
|
45
45
|
popper: u(() => [
|
|
46
|
-
o("div",
|
|
47
|
-
(r(!0), p(H, null,
|
|
46
|
+
o("div", P, [
|
|
47
|
+
(r(!0), p(H, null, B(s.options, (d) => (r(), p("button", {
|
|
48
48
|
key: d.value,
|
|
49
49
|
disabled: d.disabled,
|
|
50
|
-
class:
|
|
50
|
+
class: S(["w-full cursor-pointer truncate border-size-0 rounded-md bg-inherit px-2 py-1.5 text-left text-sm disabled:cursor-not-allowed hover:not-disabled:bg-stone-1 dark:hover:not-disabled:bg-stone-9", { "font-bold": s.modelValue === d.value }]),
|
|
51
51
|
onClick: (_) => e.value = d
|
|
52
|
-
}, g(d.label), 11,
|
|
52
|
+
}, g(d.label), 11, Q))), 128))
|
|
53
53
|
])
|
|
54
54
|
]),
|
|
55
55
|
default: u(() => [
|
|
@@ -69,23 +69,23 @@ const D = x({ name: "carbon-chevron-sort-down", render: z }), E = { class: "w-fu
|
|
|
69
69
|
}, 16, ["disabled"]);
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
}),
|
|
72
|
+
}), A = { class: "setting-item" }, G = { class: "setting-item" }, J = { class: "setting-item" }, K = { class: "setting-item" }, O = { class: "setting-item" }, W = { class: "label" }, X = { class: "setting-item" }, se = /* @__PURE__ */ v({
|
|
73
73
|
name: "SettingTabbar",
|
|
74
74
|
__name: "SettingTabbar",
|
|
75
75
|
setup(m) {
|
|
76
76
|
const { settingsStore: i } = w(), l = T(i.settings, "tabbar");
|
|
77
77
|
return (c, e) => {
|
|
78
|
-
const s = L, f = U, b =
|
|
78
|
+
const s = L, f = U, b = j, d = y, _ = k;
|
|
79
79
|
return r(), V(_, { title: "标签栏" }, {
|
|
80
80
|
default: u(() => [
|
|
81
|
-
o("div",
|
|
81
|
+
o("div", A, [
|
|
82
82
|
e[6] || (e[6] = o("div", { class: "label" }, " 是否启用 ", -1)),
|
|
83
83
|
a(s, {
|
|
84
84
|
modelValue: t(l).enable,
|
|
85
85
|
"onUpdate:modelValue": e[0] || (e[0] = (n) => t(l).enable = n)
|
|
86
86
|
}, null, 8, ["modelValue"])
|
|
87
87
|
]),
|
|
88
|
-
o("div",
|
|
88
|
+
o("div", G, [
|
|
89
89
|
e[7] || (e[7] = o("div", { class: "label" }, " 风格 ", -1)),
|
|
90
90
|
a(f, {
|
|
91
91
|
modelValue: t(l).style,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as T } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
|
-
import { markRaw as g, createElementBlock as r, openBlock as n, createElementVNode as s, defineComponent as k, useModel as V, withDirectives as $, createStaticVNode as S, vModelCheckbox as w, toRef as D, computed as B, createBlock as
|
|
2
|
+
import { markRaw as g, createElementBlock as r, openBlock as n, createElementVNode as s, defineComponent as k, useModel as V, withDirectives as $, createStaticVNode as S, vModelCheckbox as w, toRef as D, computed as B, createBlock as L, withCtx as N, createVNode as u, unref as o, isRef as j, Fragment as b, renderList as _, normalizeClass as M, normalizeStyle as h, toDisplayString as z } from "vue";
|
|
3
3
|
import { getThemes as F } from "@pubinfo/config/themes";
|
|
4
|
-
import { b as x, bW as R,
|
|
4
|
+
import { b as x, bW as R, bL as W } from "./index-Beb7_0-E.js";
|
|
5
5
|
const A = {
|
|
6
6
|
viewBox: "-5 -2 24 24",
|
|
7
7
|
width: "1.2em",
|
|
@@ -30,11 +30,11 @@ function U(f, e) {
|
|
|
30
30
|
}, null, -1)
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const J = g({ name: "pajamas-check-circle-filled", render: U }), O = {
|
|
34
34
|
flex: "",
|
|
35
35
|
"justify-center": "",
|
|
36
36
|
"pb-15px": ""
|
|
37
|
-
},
|
|
37
|
+
}, P = { class: "toggleWrapper" }, q = /* @__PURE__ */ k({
|
|
38
38
|
name: "DayNightToggle",
|
|
39
39
|
__name: "DayNightToggle",
|
|
40
40
|
props: {
|
|
@@ -44,8 +44,8 @@ const G = g({ name: "pajamas-check-circle-filled", render: U }), J = {
|
|
|
44
44
|
emits: ["update:modelValue"],
|
|
45
45
|
setup(f) {
|
|
46
46
|
const e = V(f, "modelValue");
|
|
47
|
-
return (v, l) => (n(), r("div",
|
|
48
|
-
s("div",
|
|
47
|
+
return (v, l) => (n(), r("div", O, [
|
|
48
|
+
s("div", P, [
|
|
49
49
|
$(s("input", {
|
|
50
50
|
id: "dn",
|
|
51
51
|
"onUpdate:modelValue": l[0] || (l[0] = (p) => e.value = p),
|
|
@@ -58,7 +58,7 @@ const G = g({ name: "pajamas-check-circle-filled", render: U }), J = {
|
|
|
58
58
|
])
|
|
59
59
|
]));
|
|
60
60
|
}
|
|
61
|
-
}),
|
|
61
|
+
}), G = /* @__PURE__ */ x(q, [["__scopeId", "data-v-5b2fff8a"]]), K = { class: "themes" }, Q = ["onClick"], X = {
|
|
62
62
|
class: "theme-type",
|
|
63
63
|
flex: "",
|
|
64
64
|
"items-center": ""
|
|
@@ -93,12 +93,12 @@ const G = g({ name: "pajamas-check-circle-filled", render: U }), J = {
|
|
|
93
93
|
}
|
|
94
94
|
return (c, t) => {
|
|
95
95
|
const i = T;
|
|
96
|
-
return n(),
|
|
97
|
-
default:
|
|
96
|
+
return n(), L(i, { title: "颜色主题风格" }, {
|
|
97
|
+
default: N(() => [
|
|
98
98
|
s("div", null, [
|
|
99
|
-
u(
|
|
99
|
+
u(G, {
|
|
100
100
|
modelValue: o(e),
|
|
101
|
-
"onUpdate:modelValue": t[0] || (t[0] = (a) =>
|
|
101
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => j(e) ? e.value = a : null)
|
|
102
102
|
}, null, 8, ["modelValue"])
|
|
103
103
|
]),
|
|
104
104
|
s("div", K, [
|
|
@@ -127,7 +127,7 @@ const G = g({ name: "pajamas-check-circle-filled", render: U }), J = {
|
|
|
127
127
|
}, null, 4))), 128))
|
|
128
128
|
]),
|
|
129
129
|
s("div", Z, [
|
|
130
|
-
u(o(
|
|
130
|
+
u(o(J))
|
|
131
131
|
])
|
|
132
132
|
], 10, Q))), 128))
|
|
133
133
|
])
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { _ as b } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
|
-
import { _ as V } from "./HToggle-
|
|
3
|
-
import {
|
|
4
|
-
import { defineComponent as v, toRef as c, createBlock as x, openBlock as _, withCtx as i, createElementVNode as s, createElementBlock as
|
|
2
|
+
import { _ as V } from "./HToggle-B-ZjSh6S.js";
|
|
3
|
+
import { bL as f, bN as g } from "./index-Beb7_0-E.js";
|
|
4
|
+
import { defineComponent as v, toRef as c, createBlock as x, openBlock as _, withCtx as i, createElementVNode as s, createElementBlock as N, createCommentVNode as C, createVNode as o, createTextVNode as m, unref as t } from "vue";
|
|
5
5
|
import { R as u } from "./question-line-CfkciTFq.js";
|
|
6
|
-
const
|
|
6
|
+
const R = { class: "setting-item" }, S = { class: "label" }, T = { class: "setting-item" }, U = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "setting-item"
|
|
9
|
-
}, k = { class: "setting-item" }, B = { class: "label" }, H = { class: "setting-item" }, E = { class: "label" },
|
|
9
|
+
}, k = { class: "setting-item" }, B = { class: "label" }, H = { class: "setting-item" }, E = { class: "label" }, D = /* @__PURE__ */ v({
|
|
10
10
|
name: "SettingToolbar",
|
|
11
11
|
__name: "SettingToolbar",
|
|
12
12
|
setup(F) {
|
|
@@ -15,8 +15,8 @@ const S = { class: "setting-item" }, R = { class: "label" }, T = { class: "setti
|
|
|
15
15
|
const d = g, a = V, p = b;
|
|
16
16
|
return _(), x(p, { title: "工具栏" }, {
|
|
17
17
|
default: i(() => [
|
|
18
|
-
s("div",
|
|
19
|
-
s("div",
|
|
18
|
+
s("div", R, [
|
|
19
|
+
s("div", S, [
|
|
20
20
|
e[5] || (e[5] = m(" 通知中心 ")),
|
|
21
21
|
o(d, { text: "该功能具体业务功能需自行开发,框架仅提供示例模版" }, {
|
|
22
22
|
default: i(() => [
|
|
@@ -37,13 +37,13 @@ const S = { class: "setting-item" }, R = { class: "label" }, T = { class: "setti
|
|
|
37
37
|
"onUpdate:modelValue": e[1] || (e[1] = (n) => t(l).enableI18n = n)
|
|
38
38
|
}, null, 8, ["modelValue"])
|
|
39
39
|
]),
|
|
40
|
-
t(r).mode === "pc" ? (_(),
|
|
40
|
+
t(r).mode === "pc" ? (_(), N("div", U, [
|
|
41
41
|
e[7] || (e[7] = s("div", { class: "label" }, " 全屏 ", -1)),
|
|
42
42
|
o(a, {
|
|
43
43
|
modelValue: t(l).enableFullscreen,
|
|
44
44
|
"onUpdate:modelValue": e[2] || (e[2] = (n) => t(l).enableFullscreen = n)
|
|
45
45
|
}, null, 8, ["modelValue"])
|
|
46
|
-
])) :
|
|
46
|
+
])) : C("", !0),
|
|
47
47
|
s("div", k, [
|
|
48
48
|
s("div", B, [
|
|
49
49
|
e[8] || (e[8] = m(" 页面刷新 ")),
|
|
@@ -81,5 +81,5 @@ const S = { class: "setting-item" }, R = { class: "label" }, T = { class: "setti
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
export {
|
|
84
|
-
|
|
84
|
+
D as default
|
|
85
85
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { _ as u } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
|
-
import { _ as b } from "./HToggle-
|
|
3
|
-
import {
|
|
4
|
-
import { _ as g } from "./HCheckList.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as b } from "./HToggle-B-ZjSh6S.js";
|
|
3
|
+
import { bL as c, bN as f } from "./index-Beb7_0-E.js";
|
|
4
|
+
import { _ as g } from "./HCheckList.vue_vue_type_script_setup_true_lang-17EywJvs.js";
|
|
5
5
|
import { defineComponent as T, toRefs as V, createBlock as v, openBlock as x, withCtx as l, createElementVNode as n, createVNode as s, unref as t, createTextVNode as k } from "vue";
|
|
6
6
|
import { R as C } from "./question-line-CfkciTFq.js";
|
|
7
|
-
const H = { class: "setting-item" },
|
|
7
|
+
const H = { class: "setting-item" }, N = { class: "setting-item" }, w = { class: "label" }, D = /* @__PURE__ */ T({
|
|
8
8
|
name: "SettingTopbar",
|
|
9
9
|
__name: "SettingTopbar",
|
|
10
|
-
setup(
|
|
10
|
+
setup(L) {
|
|
11
11
|
const { settingsStore: i } = c(), { topbar: o, tabbar: m } = V(i.settings);
|
|
12
12
|
return (R, e) => {
|
|
13
13
|
const r = g, d = f, _ = b, p = u;
|
|
@@ -25,7 +25,7 @@ const H = { class: "setting-item" }, S = { class: "setting-item" }, w = { class:
|
|
|
25
25
|
]
|
|
26
26
|
}, null, 8, ["modelValue"])
|
|
27
27
|
]),
|
|
28
|
-
n("div",
|
|
28
|
+
n("div", N, [
|
|
29
29
|
n("div", w, [
|
|
30
30
|
e[3] || (e[3] = k(" 展示切换 ")),
|
|
31
31
|
s(d, { text: "切换标签栏和工具栏的展示顺序" }, {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { _ as v } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
|
-
import {
|
|
2
|
+
import { bL as u, bN as b, b as k } from "./index-Beb7_0-E.js";
|
|
3
3
|
import { defineComponent as w, toRef as x, reactive as g, createBlock as o, openBlock as t, withCtx as n, createElementVNode as s, createElementBlock as d, Fragment as r, renderList as C, unref as c, normalizeClass as M, createCommentVNode as E, createVNode as l } from "vue";
|
|
4
|
-
import { E as
|
|
5
|
-
const
|
|
4
|
+
import { E as y, a as B } from "./right-Bfe2p1o0.js";
|
|
5
|
+
const N = { class: "app-width-mode" }, S = ["onClick"], H = /* @__PURE__ */ w({
|
|
6
6
|
name: "SettingWidthMode",
|
|
7
7
|
__name: "SettingWidthMode",
|
|
8
|
-
setup(
|
|
8
|
+
setup(L) {
|
|
9
9
|
const { settingsStore: m } = u(), i = x(m.settings.layout, "widthMode"), _ = g([
|
|
10
10
|
{
|
|
11
11
|
describe: "自适应",
|
|
@@ -31,11 +31,11 @@ const B = { class: "app-width-mode" }, H = ["onClick"], N = /* @__PURE__ */ w({
|
|
|
31
31
|
function p(a) {
|
|
32
32
|
a && (i.value = a);
|
|
33
33
|
}
|
|
34
|
-
return (a,
|
|
34
|
+
return (a, V) => {
|
|
35
35
|
const f = b, h = v;
|
|
36
36
|
return t(), o(h, { title: "页宽模式" }, {
|
|
37
37
|
default: n(() => [
|
|
38
|
-
s("div",
|
|
38
|
+
s("div", N, [
|
|
39
39
|
(t(!0), d(r, null, C(c(_), (e) => (t(), o(f, {
|
|
40
40
|
key: e.active,
|
|
41
41
|
text: e.describe,
|
|
@@ -45,13 +45,13 @@ const B = { class: "app-width-mode" }, H = ["onClick"], N = /* @__PURE__ */ w({
|
|
|
45
45
|
default: n(() => [
|
|
46
46
|
s("div", {
|
|
47
47
|
class: M(["mode", [e.class, c(i) === e.active ? "active" : ""]]),
|
|
48
|
-
onClick: (
|
|
48
|
+
onClick: (W) => p(e.active)
|
|
49
49
|
}, [
|
|
50
50
|
e.active !== "center" ? (t(), d(r, { key: 0 }, [
|
|
51
|
-
l(c(
|
|
52
|
-
l(c(
|
|
51
|
+
l(c(y), { class: "left" }),
|
|
52
|
+
l(c(B), { class: "right" })
|
|
53
53
|
], 64)) : E("", !0)
|
|
54
|
-
], 10,
|
|
54
|
+
], 10, S)
|
|
55
55
|
]),
|
|
56
56
|
_: 2
|
|
57
57
|
}, 1032, ["text"]))), 128))
|
|
@@ -61,7 +61,7 @@ const B = { class: "app-width-mode" }, H = ["onClick"], N = /* @__PURE__ */ w({
|
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
}), F = /* @__PURE__ */ k(
|
|
64
|
+
}), F = /* @__PURE__ */ k(H, [["__scopeId", "data-v-c424e7f2"]]);
|
|
65
65
|
export {
|
|
66
66
|
F as default
|
|
67
67
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as a, ref as l, createElementBlock as m, openBlock as i, withModifiers as c, createVNode as d, normalizeClass as f, unref as e } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { bL as p, bT as _ } from "./index-Beb7_0-E.js";
|
|
3
3
|
import { useRoute as h } from "vue-router";
|
|
4
|
-
const
|
|
4
|
+
const y = /* @__PURE__ */ a({
|
|
5
5
|
name: "TopThinMode",
|
|
6
6
|
__name: "TopThinMode",
|
|
7
7
|
setup(v) {
|
|
@@ -31,5 +31,5 @@ const R = /* @__PURE__ */ a({
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
y as default
|
|
35
35
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -1,4 +1,44 @@
|
|
|
1
|
-
|
|
1
|
+
import { DropdownMenuRender } from './interface';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
dropdownMenuRender?: DropdownMenuRender;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {
|
|
11
|
+
hotkeysIntroRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
12
|
+
open: () => boolean;
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
14
|
+
P: {};
|
|
15
|
+
B: {};
|
|
16
|
+
D: {};
|
|
17
|
+
C: {};
|
|
18
|
+
M: {};
|
|
19
|
+
Defaults: {};
|
|
20
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
21
|
+
open: () => boolean;
|
|
22
|
+
}, {}, {}, {}, {}> | null;
|
|
23
|
+
preferencesRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
24
|
+
open: () => boolean;
|
|
25
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
26
|
+
P: {};
|
|
27
|
+
B: {};
|
|
28
|
+
D: {};
|
|
29
|
+
C: {};
|
|
30
|
+
M: {};
|
|
31
|
+
Defaults: {};
|
|
32
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
33
|
+
open: () => boolean;
|
|
34
|
+
}, {}, {}, {}, {}> | null;
|
|
35
|
+
};
|
|
36
|
+
rootEl: HTMLDivElement;
|
|
37
|
+
};
|
|
38
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
39
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
40
|
+
dropdownMenuRender: DropdownMenuRender;
|
|
41
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
2
42
|
hotkeysIntroRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
3
43
|
open: () => boolean;
|
|
4
44
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -24,4 +64,10 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
24
64
|
open: () => boolean;
|
|
25
65
|
}, {}, {}, {}, {}> | null;
|
|
26
66
|
}, HTMLDivElement>;
|
|
67
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
68
|
export default _default;
|
|
69
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
70
|
+
new (): {
|
|
71
|
+
$slots: S;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface DropdownMenu {
|
|
2
|
+
key?: string | 'divider';
|
|
3
|
+
icon?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
hide?: boolean;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export type DropdownMenuRender = (items: {
|
|
10
|
+
/** 主页 */
|
|
11
|
+
Home: DropdownMenu;
|
|
12
|
+
/** 个人偏好设置 */
|
|
13
|
+
Preferences: DropdownMenu;
|
|
14
|
+
/** 快捷键介绍 */
|
|
15
|
+
Hotkeys: DropdownMenu;
|
|
16
|
+
/** 切换组织 */
|
|
17
|
+
Org: DropdownMenu;
|
|
18
|
+
/** 个人中心 */
|
|
19
|
+
Profile: DropdownMenu;
|
|
20
|
+
/** 修改密码 */
|
|
21
|
+
Password: DropdownMenu;
|
|
22
|
+
/** 登出 */
|
|
23
|
+
Logout: DropdownMenu;
|
|
24
|
+
/** 分割线 */
|
|
25
|
+
Divider: DropdownMenu;
|
|
26
|
+
}) => DropdownMenu[];
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
+
import { DropdownMenu } from '../Tools/interface';
|
|
1
2
|
type __VLS_Props = {
|
|
2
|
-
items:
|
|
3
|
-
icon?: string;
|
|
4
|
-
label: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
hide?: boolean;
|
|
7
|
-
handle?: () => void;
|
|
8
|
-
}[][];
|
|
3
|
+
items: DropdownMenu[];
|
|
9
4
|
};
|
|
10
5
|
declare function __VLS_template(): {
|
|
11
6
|
attrs: Partial<{}>;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function useHotkey({ menuStore, settingsStore, }: {
|
|
3
|
-
menuStore: ReturnType<typeof useMenuStore>;
|
|
4
|
-
settingsStore: ReturnType<typeof useSettingsStore>;
|
|
5
|
-
}): void;
|
|
1
|
+
export declare function useHotkey(): void;
|
|
@@ -3,6 +3,6 @@ import { Menu } from '../../../../types/menu';
|
|
|
3
3
|
* 用于管理菜单功能的自定义组合函数。
|
|
4
4
|
* @returns 一个包含 `switchTo` 函数的对象。
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export declare function useMenu(): {
|
|
7
7
|
switchTo: (index: number | string, mainRouter?: Menu.recordMainRaw) => void;
|
|
8
8
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { useSettingsStore } from '../../../features/stores';
|
|
2
|
+
export declare function useTitle(appTitle: string, settingsStore: ReturnType<typeof useSettingsStore>): {
|
|
2
3
|
generateI18nTitle: (key?: string, defaultTitle?: string | (() => any)) => any;
|
|
3
4
|
};
|
|
@@ -3,18 +3,21 @@ import { Provider as LayoutProvider } from './provider';
|
|
|
3
3
|
import { default as Layout } from './Layout.vue';
|
|
4
4
|
import { default as LayoutContent } from './components/Content/index.vue';
|
|
5
5
|
import { default as LayoutHeader } from './components/Header/index.vue';
|
|
6
|
+
import { default as LayoutSidebar } from './components/Sidebar/index.vue';
|
|
7
|
+
import { default as LayoutTopbar } from './components/Topbar/index.vue';
|
|
6
8
|
import { default as Logo } from './components/Logo/index.vue';
|
|
7
|
-
import { default as Menu } from './components/Menu/index.vue';
|
|
8
9
|
import { default as Tools } from './components/Tools/index.vue';
|
|
9
|
-
import { default as Topbar } from './components/Topbar/index.vue';
|
|
10
|
-
import { default as Sidebar } from './components/Sidebar/index.vue';
|
|
11
10
|
import { default as Copyright } from './components/Copyright/index.vue';
|
|
12
|
-
import { default as SettingBar } from './components/SettingBar/index.vue';
|
|
13
|
-
import { default as BackTop } from './components/BackTop/index.vue';
|
|
14
11
|
import 'vue-m-message/dist/style.css';
|
|
15
12
|
import 'floating-vue/dist/style.css';
|
|
16
13
|
/**
|
|
17
14
|
* 布局组件
|
|
18
15
|
*/
|
|
19
16
|
export declare function LayoutComponent(): ModuleOptions;
|
|
20
|
-
export {
|
|
17
|
+
export type { DropdownMenu, DropdownMenuRender } from './components/Tools/interface';
|
|
18
|
+
export declare const Tool: {
|
|
19
|
+
Fullscreen: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
PageReload: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
DarkModeToggle: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
};
|
|
23
|
+
export { LayoutProvider, Layout, LayoutContent, LayoutHeader, LayoutSidebar, LayoutTopbar, Logo, Tools, Copyright, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as t } from "./index-
|
|
1
|
+
import { e as t } from "./index-Beb7_0-E.js";
|
|
2
2
|
const n = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
|
|
3
3
|
function C(e, s) {
|
|
4
4
|
return n.reduce((o, r) => {
|