@pubinfo-pr/core 0.222.3 → 0.222.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/{AppSetting-Adv5Y3SE.js → AppSetting-BWVulLPM.js} +38 -38
- package/dist/{HCheckList-WAAl9RiK.js → HCheckList-Bb4GvZ2_.js} +1 -1
- package/dist/HSlideover-DoCRa4dK.js +152 -0
- package/dist/{HToggle-YLmL7R0b.js → HToggle-Bnr5k93p.js} +1 -1
- package/dist/{HeaderFullMenu-ByedDsvz.js → HeaderFullMenu--AOcAS-6.js} +72 -72
- package/dist/{HeaderThinMenu-2q2iBtTH.js → HeaderThinMenu-CRPVfGgM.js} +132 -132
- package/dist/PreferencesContent-DW9HAzpr.js +486 -0
- package/dist/{SettingBreadcrumb-C1VwfnxX.js → SettingBreadcrumb-DKCK6V-n.js} +6 -7
- package/dist/{SettingCopyright-C--oGV21.js → SettingCopyright-C5Pc0I1w.js} +4 -4
- package/dist/{SettingEnableTransition-DW2gfisN.js → SettingEnableTransition-D2FDj0oR.js} +5 -5
- package/dist/{SettingHome-VUAS3uEg.js → SettingHome-1Y1rYeQb.js} +6 -6
- package/dist/{SettingMenu-BH7XU7eF.js → SettingMenu-DWtNX8Ti.js} +8 -9
- package/dist/{SettingMode-BIyHzTKH.js → SettingMode-CZV84QeW.js} +4 -4
- package/dist/{SettingNavSearch-PfSA-_ro.js → SettingNavSearch-CrMpbXFg.js} +5 -5
- package/dist/{SettingOther-DdqNapQX.js → SettingOther-D6gGuQJw.js} +6 -6
- package/dist/{SettingPage-DS-G9-X5.js → SettingPage-DuN13bXO.js} +3 -3
- package/dist/{SettingTabbar-2yfw2vsm.js → SettingTabbar-BhJxcU35.js} +10 -11
- package/dist/{SettingThemes-Bkcywy7v.js → SettingThemes-BjkWfY1C.js} +9 -10
- package/dist/{SettingToolbar-DP7-_nPK.js → SettingToolbar-BYOxXAXL.js} +5 -5
- package/dist/{SettingTopbar-C0Ia4-If.js → SettingTopbar-CxKsnIRK.js} +8 -9
- package/dist/{SettingWidthMode-DgSWsHFq.js → SettingWidthMode-dM88qSol.js} +5 -5
- package/dist/auth-DILNNEQ8.js +1230 -0
- package/dist/{change-organization-BfnI2yEl.js → change-organization-BXl4ZC7j.js} +24 -24
- package/dist/{change-password-Bj_GWzmn.js → change-password-P4SGdvdU.js} +64 -73
- package/dist/components-C9kcavB4.js +2768 -0
- package/dist/core-CKIhF3Vi.js +270 -0
- package/dist/{core-4H5JBsa5.js → core-D2ocBD0r.js} +57 -51
- package/dist/index.js +2249 -7757
- package/dist/{not-found-DbHOY5cU.js → not-found-C-1699o2.js} +4 -5
- package/dist/{not-permission-DwERxb_u.js → not-permission-CZGJzlSF.js} +4 -5
- package/dist/profile-B3Q7hRgl.js +123 -0
- package/dist/{question-line-D7ecIumZ.js → question-line-B4oDBb2H.js} +2 -2
- package/dist/{right-DYiPS7dU.js → right-BTHgfOSp.js} +4 -4
- package/dist/style.css +1 -1
- package/package.json +7 -7
- package/dist/HSlideover-CXBJxuQo.js +0 -1695
- package/dist/PreferencesContent-CiPweszy.js +0 -701
- package/dist/auth-B65CJEOe.js +0 -4242
- package/dist/chunk-CD4vhpVs.js +0 -18
- package/dist/components-BfkDsfck.js +0 -5238
- package/dist/dist-7OjQvlya.js +0 -468
- package/dist/form-C3VHofnN.js +0 -2768
- package/dist/modal-Bl5xHbxa.js +0 -43824
- package/dist/overlayscrollbars-vue-mGyICRMi.js +0 -1460
- package/dist/profile-Dq66-Gsl.js +0 -19269
- package/dist/tree-select-B8cTcGLa.js +0 -12497
- package/dist/watchDiff-CPZFtaOC.js +0 -655
- /package/dist/{HButton-Dt6qGhhR.js → HButton-BPbXqVbA.js} +0 -0
- /package/dist/{HDivider-Ds5MMqtm.js → HDivider-BSENlYnI.js} +0 -0
- /package/dist/{HInput-BrsX9848.js → HInput-DbvnkEO7.js} +0 -0
- /package/dist/{HTooltip-DjAU-Evn.js → HTooltip-tCnNrJUE.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-sUTDUeGO.js → _plugin-vue_export-helper-BBf_fmJ_.js} +0 -0
- /package/dist/{engine-oniguruma-uxNZ2DGJ.js → engine-oniguruma-Bl7ZtyDI.js} +0 -0
- /package/dist/{json-CC4oV-bd.js → json-BuUwnwNo.js} +0 -0
- /package/dist/{reload-CbuQgTlC.js → reload-DWTXo9r2.js} +0 -0
- /package/dist/{useContext-DLtu9F7E.js → useContext-mDF2-tXy.js} +0 -0
- /package/dist/{vitesse-dark-CxkWMfh6.js → vitesse-dark-j0hKJETh.js} +0 -0
- /package/dist/{vitesse-light-DY25e6F3.js → vitesse-light-BfgKNo3X.js} +0 -0
- /package/dist/{wasm-DAU6f5s5.js → wasm-tXaxAgz9.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as HSlideover_default } from "./HSlideover-CXBJxuQo.js";
|
|
1
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BBf_fmJ_.js";
|
|
2
|
+
import { n as useContext } from "./useContext-mDF2-tXy.js";
|
|
3
|
+
import { t as HButton_default } from "./HButton-BPbXqVbA.js";
|
|
4
|
+
import { t as HSlideover_default } from "./HSlideover-DoCRa4dK.js";
|
|
6
5
|
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineAsyncComponent, defineComponent, markRaw, openBlock, renderList, resolveComponent, resolveDynamicComponent, unref, useModel, watch, withCtx } from "vue";
|
|
6
|
+
import { useClipboard } from "@vueuse/core";
|
|
7
7
|
import { useRoute } from "vue-router";
|
|
8
8
|
import Message from "vue-m-message";
|
|
9
9
|
var _hoisted_1$1 = {
|
|
@@ -11,7 +11,7 @@ var _hoisted_1$1 = {
|
|
|
11
11
|
width: "1.2em",
|
|
12
12
|
height: "1.2em"
|
|
13
13
|
};
|
|
14
|
-
function render
|
|
14
|
+
function render(e, t) {
|
|
15
15
|
return openBlock(), createElementBlock("svg", _hoisted_1$1, [...t[0] ||= [createElementVNode("path", {
|
|
16
16
|
fill: "currentColor",
|
|
17
17
|
d: "M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"
|
|
@@ -19,24 +19,24 @@ function render$1(e, t) {
|
|
|
19
19
|
}
|
|
20
20
|
var document_copy_default = markRaw({
|
|
21
21
|
name: "ep-document-copy",
|
|
22
|
-
render
|
|
22
|
+
render
|
|
23
23
|
}), _hoisted_1 = { class: "settong-warp" }, AppSetting_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
24
24
|
name: "AppSetting",
|
|
25
25
|
components: {
|
|
26
|
-
SettingThemes: defineAsyncComponent(() => import("./SettingThemes-
|
|
27
|
-
SettingsMode: defineAsyncComponent(() => import("./SettingMode-
|
|
28
|
-
SettingWidthMode: defineAsyncComponent(() => import("./SettingWidthMode-
|
|
29
|
-
SettingEnableTransition: defineAsyncComponent(() => import("./SettingEnableTransition-
|
|
30
|
-
SettingMenu: defineAsyncComponent(() => import("./SettingMenu-
|
|
31
|
-
SettingTopbar: defineAsyncComponent(() => import("./SettingTopbar-
|
|
32
|
-
SettingTabbar: defineAsyncComponent(() => import("./SettingTabbar-
|
|
33
|
-
SettingToolbar: defineAsyncComponent(() => import("./SettingToolbar-
|
|
34
|
-
SettingBreadcrumb: defineAsyncComponent(() => import("./SettingBreadcrumb-
|
|
35
|
-
SettingPage: defineAsyncComponent(() => import("./SettingPage-
|
|
36
|
-
SettingNavSearch: defineAsyncComponent(() => import("./SettingNavSearch-
|
|
37
|
-
SettingCopyright: defineAsyncComponent(() => import("./SettingCopyright-
|
|
38
|
-
SettingHome: defineAsyncComponent(() => import("./SettingHome-
|
|
39
|
-
SettingOther: defineAsyncComponent(() => import("./SettingOther-
|
|
26
|
+
SettingThemes: defineAsyncComponent(() => import("./SettingThemes-BjkWfY1C.js")),
|
|
27
|
+
SettingsMode: defineAsyncComponent(() => import("./SettingMode-CZV84QeW.js")),
|
|
28
|
+
SettingWidthMode: defineAsyncComponent(() => import("./SettingWidthMode-dM88qSol.js")),
|
|
29
|
+
SettingEnableTransition: defineAsyncComponent(() => import("./SettingEnableTransition-D2FDj0oR.js")),
|
|
30
|
+
SettingMenu: defineAsyncComponent(() => import("./SettingMenu-DWtNX8Ti.js")),
|
|
31
|
+
SettingTopbar: defineAsyncComponent(() => import("./SettingTopbar-CxKsnIRK.js")),
|
|
32
|
+
SettingTabbar: defineAsyncComponent(() => import("./SettingTabbar-BhJxcU35.js")),
|
|
33
|
+
SettingToolbar: defineAsyncComponent(() => import("./SettingToolbar-BYOxXAXL.js")),
|
|
34
|
+
SettingBreadcrumb: defineAsyncComponent(() => import("./SettingBreadcrumb-DKCK6V-n.js")),
|
|
35
|
+
SettingPage: defineAsyncComponent(() => import("./SettingPage-DuN13bXO.js")),
|
|
36
|
+
SettingNavSearch: defineAsyncComponent(() => import("./SettingNavSearch-CrMpbXFg.js")),
|
|
37
|
+
SettingCopyright: defineAsyncComponent(() => import("./SettingCopyright-C5Pc0I1w.js")),
|
|
38
|
+
SettingHome: defineAsyncComponent(() => import("./SettingHome-1Y1rYeQb.js")),
|
|
39
|
+
SettingOther: defineAsyncComponent(() => import("./SettingOther-D6gGuQJw.js"))
|
|
40
40
|
},
|
|
41
41
|
__name: "AppSetting",
|
|
42
42
|
props: {
|
|
@@ -44,8 +44,8 @@ var document_copy_default = markRaw({
|
|
|
44
44
|
openModifiers: {}
|
|
45
45
|
},
|
|
46
46
|
emits: ["update:open"],
|
|
47
|
-
setup(
|
|
48
|
-
let
|
|
47
|
+
setup(e) {
|
|
48
|
+
let r = useModel(e, "open"), i = useRoute(), { settingsStore: a, menuStore: o } = useContext(), s = computed(() => a.mode !== "pc"), c = computed(() => p([
|
|
49
49
|
"SettingThemes",
|
|
50
50
|
"SettingsMode",
|
|
51
51
|
"SettingWidthMode",
|
|
@@ -66,33 +66,33 @@ var document_copy_default = markRaw({
|
|
|
66
66
|
"SettingEnableTransition",
|
|
67
67
|
"SettingBreadcrumb"
|
|
68
68
|
]));
|
|
69
|
-
watch(() =>
|
|
70
|
-
e === "single" ?
|
|
69
|
+
watch(() => a.settings.menu.menuMode, (e) => {
|
|
70
|
+
e === "single" ? o.setActived(0) : o.setActived(i.fullPath);
|
|
71
71
|
});
|
|
72
|
-
let { copy:
|
|
73
|
-
watch(
|
|
72
|
+
let { copy: l, copied: u, isSupported: d } = useClipboard();
|
|
73
|
+
watch(u, (e) => {
|
|
74
74
|
e && Message.success("复制成功,请粘贴到 src/settings.ts 文件中!", { zIndex: 2e3 });
|
|
75
75
|
});
|
|
76
|
-
function
|
|
77
|
-
|
|
76
|
+
function f() {
|
|
77
|
+
l(JSON.stringify(a.settings, null, 2));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return e.filter((e) =>
|
|
79
|
+
function p(e, t) {
|
|
80
|
+
return e.filter((e) => s.value ? !t.includes(e) : e);
|
|
81
81
|
}
|
|
82
82
|
return (e, t) => {
|
|
83
|
-
let n = HButton_default,
|
|
84
|
-
return openBlock(), createBlock(
|
|
85
|
-
modelValue:
|
|
86
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
83
|
+
let n = HButton_default, i = HSlideover_default;
|
|
84
|
+
return openBlock(), createBlock(i, {
|
|
85
|
+
modelValue: r.value,
|
|
86
|
+
"onUpdate:modelValue": t[0] ||= (e) => r.value = e,
|
|
87
87
|
title: "应用配置"
|
|
88
88
|
}, createSlots({
|
|
89
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1, [t[1] ||= createElementVNode("div", { class: "rounded-2 bg-rose/20 px-4 py-2 text-sm/6 c-rose" }, [createElementVNode("p", { class: "my-1" }, " 应用配置可实时预览效果,但只是临时生效,要想真正应用于项目,可以点击下方的「复制配置」按钮,并将配置粘贴到 src/settings.ts 文件中。 "), createElementVNode("p", { class: "my-1" }, " 注意:在生产环境中应关闭该模块。 ")], -1), (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(
|
|
89
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1, [t[1] ||= createElementVNode("div", { class: "rounded-2 bg-rose/20 px-4 py-2 text-sm/6 c-rose" }, [createElementVNode("p", { class: "my-1" }, " 应用配置可实时预览效果,但只是临时生效,要想真正应用于项目,可以点击下方的「复制配置」按钮,并将配置粘贴到 src/settings.ts 文件中。 "), createElementVNode("p", { class: "my-1" }, " 注意:在生产环境中应关闭该模块。 ")], -1), (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(c), (e) => (openBlock(), createBlock(resolveDynamicComponent(e), { key: e }))), 128))])]),
|
|
90
90
|
_: 2
|
|
91
|
-
}, [unref(
|
|
91
|
+
}, [unref(d) ? {
|
|
92
92
|
name: "footer",
|
|
93
93
|
fn: withCtx(() => [createVNode(n, {
|
|
94
94
|
class: "block",
|
|
95
|
-
onClick:
|
|
95
|
+
onClick: f
|
|
96
96
|
}, {
|
|
97
97
|
default: withCtx(() => [createVNode(unref(document_copy_default)), t[2] ||= createTextVNode(" 复制配置 ", -1)]),
|
|
98
98
|
_: 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as PubinfoIcon_default } from "./components-
|
|
1
|
+
import { a as PubinfoIcon_default } from "./components-C9kcavB4.js";
|
|
2
2
|
import { Fragment, createBlock, createElementBlock, createTextVNode, defineComponent, normalizeClass, openBlock, renderList, toDisplayString, unref, watch } from "vue";
|
|
3
3
|
var _hoisted_1 = { class: "inline-flex select-none items-center justify-center of-hidden rounded-md bg-stone-3 dark:bg-stone-7" }, _hoisted_2 = ["disabled", "onClick"], HCheckList_default = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "HCheckList",
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, markRaw, mergeProps, normalizeClass, openBlock, ref, renderSlot, toDisplayString, unref, useSlots, withCtx } from "vue";
|
|
2
|
+
import { Dialog, DialogDescription, DialogPanel, DialogTitle, TransitionChild, TransitionRoot } from "@headlessui/vue";
|
|
3
|
+
import { OverlayScrollbarsComponent } from "overlayscrollbars-vue";
|
|
4
|
+
var _hoisted_1$1 = {
|
|
5
|
+
viewBox: "0 0 32 32",
|
|
6
|
+
width: "1.2em",
|
|
7
|
+
height: "1.2em"
|
|
8
|
+
};
|
|
9
|
+
function render(e, t) {
|
|
10
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$1, [...t[0] ||= [createElementVNode("path", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
d: "M17.414 16L24 9.414L22.586 8L16 14.586L9.414 8L8 9.414L14.586 16L8 22.586L9.414 24L16 17.414L22.586 24L24 22.586z"
|
|
13
|
+
}, null, -1)]]);
|
|
14
|
+
}
|
|
15
|
+
var close_default = markRaw({
|
|
16
|
+
name: "carbon-close",
|
|
17
|
+
render
|
|
18
|
+
}), _hoisted_1 = {
|
|
19
|
+
flex: "~ items-center justify-between",
|
|
20
|
+
"p-4": "",
|
|
21
|
+
"border-b": "~ solid stone/15",
|
|
22
|
+
"text-6": ""
|
|
23
|
+
}, _hoisted_2 = {
|
|
24
|
+
key: 0,
|
|
25
|
+
flex: "~ items-center justify-end",
|
|
26
|
+
"px-3": "",
|
|
27
|
+
"py-2": "",
|
|
28
|
+
"border-t": "~ solid stone/15"
|
|
29
|
+
}, HSlideover_default = /* @__PURE__ */ defineComponent({
|
|
30
|
+
__name: "HSlideover",
|
|
31
|
+
props: {
|
|
32
|
+
modelValue: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: !1
|
|
35
|
+
},
|
|
36
|
+
appear: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: !1
|
|
39
|
+
},
|
|
40
|
+
side: { default: "right" },
|
|
41
|
+
title: {},
|
|
42
|
+
preventClose: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !1
|
|
45
|
+
},
|
|
46
|
+
overlay: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !1
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
emits: ["update:modelValue", "close"],
|
|
52
|
+
setup(n, { emit: r }) {
|
|
53
|
+
let i = n, a = r, o = useSlots(), s = ref({
|
|
54
|
+
enter: "ease-in-out duration-500",
|
|
55
|
+
enterFrom: "opacity-0",
|
|
56
|
+
enterTo: "opacity-100",
|
|
57
|
+
leave: "ease-in-out duration-500",
|
|
58
|
+
leaveFrom: "opacity-100",
|
|
59
|
+
leaveTo: "opacity-0"
|
|
60
|
+
}), c = computed(() => ({
|
|
61
|
+
enter: "transform transition ease-in-out duration-300",
|
|
62
|
+
leave: "transform transition ease-in-out duration-200",
|
|
63
|
+
enterFrom: i.side === "left" ? "-translate-x-full" : "translate-x-full",
|
|
64
|
+
enterTo: "translate-x-0",
|
|
65
|
+
leaveFrom: "translate-x-0",
|
|
66
|
+
leaveTo: i.side === "left" ? "-translate-x-full" : "translate-x-full"
|
|
67
|
+
})), l = computed({
|
|
68
|
+
get() {
|
|
69
|
+
return i.modelValue;
|
|
70
|
+
},
|
|
71
|
+
set(e) {
|
|
72
|
+
a("update:modelValue", e);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
function u() {
|
|
76
|
+
l.value = !1, a("close");
|
|
77
|
+
}
|
|
78
|
+
return (e, r) => (openBlock(), createBlock(unref(TransitionRoot), {
|
|
79
|
+
as: "template",
|
|
80
|
+
appear: n.appear,
|
|
81
|
+
show: unref(l)
|
|
82
|
+
}, {
|
|
83
|
+
default: withCtx(() => [createVNode(unref(Dialog), {
|
|
84
|
+
class: normalizeClass(["fixed inset-0 z-1000 flex", { "justify-end": n.side === "right" }]),
|
|
85
|
+
onClose: r[0] ||= (e) => !n.preventClose && u()
|
|
86
|
+
}, {
|
|
87
|
+
default: withCtx(() => [createVNode(unref(TransitionChild), mergeProps({
|
|
88
|
+
as: "template",
|
|
89
|
+
appear: n.appear
|
|
90
|
+
}, unref(s)), {
|
|
91
|
+
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["fixed inset-0 bg-stone-2/75 transition-opacity dark:bg-stone-8/75", { "backdrop-blur-sm": n.overlay }]) }, null, 2)]),
|
|
92
|
+
_: 1
|
|
93
|
+
}, 16, ["appear"]), createVNode(unref(TransitionChild), mergeProps({
|
|
94
|
+
as: "template",
|
|
95
|
+
appear: n.appear
|
|
96
|
+
}, unref(c)), {
|
|
97
|
+
default: withCtx(() => [createVNode(unref(DialogPanel), {
|
|
98
|
+
relative: "",
|
|
99
|
+
"max-w-md": "",
|
|
100
|
+
"w-full": "",
|
|
101
|
+
"w-screen": "",
|
|
102
|
+
flex: "",
|
|
103
|
+
"flex-1": "",
|
|
104
|
+
"flex-col": "",
|
|
105
|
+
"bg-white": "",
|
|
106
|
+
"dark:bg-stone-8": "",
|
|
107
|
+
"focus:outline-none": ""
|
|
108
|
+
}, {
|
|
109
|
+
default: withCtx(() => [
|
|
110
|
+
createElementVNode("div", _hoisted_1, [createVNode(unref(DialogTitle), {
|
|
111
|
+
"m-0": "",
|
|
112
|
+
"text-lg": "",
|
|
113
|
+
"text-dark": "",
|
|
114
|
+
"dark:text-white": ""
|
|
115
|
+
}, {
|
|
116
|
+
default: withCtx(() => [createTextVNode(toDisplayString(n.title), 1)]),
|
|
117
|
+
_: 1
|
|
118
|
+
}), createVNode(unref(close_default), {
|
|
119
|
+
"cursor-pointer": "",
|
|
120
|
+
onClick: u
|
|
121
|
+
})]),
|
|
122
|
+
createVNode(unref(DialogDescription), {
|
|
123
|
+
"m-0": "",
|
|
124
|
+
"flex-1": "",
|
|
125
|
+
"of-y-hidden": ""
|
|
126
|
+
}, {
|
|
127
|
+
default: withCtx(() => [createVNode(unref(OverlayScrollbarsComponent), {
|
|
128
|
+
options: { scrollbars: {
|
|
129
|
+
autoHide: "leave",
|
|
130
|
+
autoHideDelay: 300
|
|
131
|
+
} },
|
|
132
|
+
defer: "",
|
|
133
|
+
class: "h-full p-4"
|
|
134
|
+
}, {
|
|
135
|
+
default: withCtx(() => [renderSlot(e.$slots, "default")]),
|
|
136
|
+
_: 3
|
|
137
|
+
})]),
|
|
138
|
+
_: 3
|
|
139
|
+
}),
|
|
140
|
+
o.footer ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(e.$slots, "footer")])) : createCommentVNode("", !0)
|
|
141
|
+
]),
|
|
142
|
+
_: 3
|
|
143
|
+
})]),
|
|
144
|
+
_: 3
|
|
145
|
+
}, 16, ["appear"])]),
|
|
146
|
+
_: 3
|
|
147
|
+
}, 8, ["class"])]),
|
|
148
|
+
_: 3
|
|
149
|
+
}, 8, ["appear", "show"]));
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
export { close_default as n, HSlideover_default as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BBf_fmJ_.js";
|
|
2
2
|
import { computed, createElementBlock, createElementVNode, defineComponent, isRef, openBlock, unref, vModelCheckbox, withDirectives } from "vue";
|
|
3
3
|
var _hoisted_1 = { class: "switch" }, HToggle_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "HToggle",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-sUTDUeGO.js";
|
|
6
|
-
import { n as useContext } from "./useContext-DLtu9F7E.js";
|
|
1
|
+
import { a as PubinfoIcon_default } from "./components-C9kcavB4.js";
|
|
2
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BBf_fmJ_.js";
|
|
3
|
+
import { n as useContext } from "./useContext-mDF2-tXy.js";
|
|
4
|
+
import { t as __exportAll } from "./core-D2ocBD0r.js";
|
|
7
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, markRaw, mergeProps, normalizeClass, onMounted, openBlock, ref, renderList, renderSlot, resolveComponent, toDisplayString, unref, watch, withCtx } from "vue";
|
|
6
|
+
import { useElementSize } from "@vueuse/core";
|
|
8
7
|
import { useRouter } from "vue-router";
|
|
8
|
+
import { message } from "ant-design-vue";
|
|
9
9
|
var _hoisted_1$3 = {
|
|
10
10
|
viewBox: "0 0 24 24",
|
|
11
11
|
width: "1.2em",
|
|
12
12
|
height: "1.2em"
|
|
13
13
|
};
|
|
14
|
-
function render
|
|
14
|
+
function render(e, t) {
|
|
15
15
|
return openBlock(), createElementBlock("svg", _hoisted_1$3, [...t[0] ||= [
|
|
16
16
|
createElementVNode("path", {
|
|
17
17
|
fill: "currentColor",
|
|
@@ -31,16 +31,16 @@ function render$1(e, t) {
|
|
|
31
31
|
}
|
|
32
32
|
var widget_5_bold_duotone_default = markRaw({
|
|
33
33
|
name: "solar-widget-5-bold-duotone",
|
|
34
|
-
render
|
|
34
|
+
render
|
|
35
35
|
});
|
|
36
36
|
function useMenu() {
|
|
37
|
-
let { settingsStore: e, menuStore:
|
|
38
|
-
function i(
|
|
39
|
-
if (
|
|
40
|
-
|
|
37
|
+
let { settingsStore: e, menuStore: t } = useContext(), r = useRouter();
|
|
38
|
+
function i(n, i) {
|
|
39
|
+
if (i && i.meta?.isDev) {
|
|
40
|
+
message.info("暂未上线,敬请期待!");
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
t.setActived(n), e.settings.menu.switchMainMenuAndPageJump && r.push(t.sidebarMenusFirstDeepestPath);
|
|
44
44
|
}
|
|
45
45
|
return { switchTo: i };
|
|
46
46
|
}
|
|
@@ -94,26 +94,26 @@ var _hoisted_1$2 = {
|
|
|
94
94
|
activeIndex: {}
|
|
95
95
|
},
|
|
96
96
|
emits: ["onMenuClick"],
|
|
97
|
-
setup(
|
|
98
|
-
let
|
|
99
|
-
function
|
|
100
|
-
|
|
97
|
+
setup(t, { emit: n }) {
|
|
98
|
+
let r = n;
|
|
99
|
+
function a(e, t) {
|
|
100
|
+
r("onMenuClick", e, t);
|
|
101
101
|
}
|
|
102
|
-
return (
|
|
103
|
-
let
|
|
104
|
-
return openBlock(), createBlock(
|
|
102
|
+
return (n, r) => {
|
|
103
|
+
let s = resolveComponent("VMenu");
|
|
104
|
+
return openBlock(), createBlock(s, mergeProps({
|
|
105
105
|
triggers: ["hover"],
|
|
106
106
|
"popper-triggers": ["hover"]
|
|
107
|
-
},
|
|
107
|
+
}, n.$attrs, {
|
|
108
108
|
delay: 0,
|
|
109
109
|
"auto-hide": !1,
|
|
110
110
|
theme: "more-appley",
|
|
111
111
|
distance: -6
|
|
112
112
|
}), {
|
|
113
|
-
popper: withCtx(() => [createElementVNode("div", _hoisted_1$1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
114
|
-
key:
|
|
115
|
-
"is-cursor":
|
|
116
|
-
"dev-text":
|
|
113
|
+
popper: withCtx(() => [createElementVNode("div", _hoisted_1$1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(t.items, (n, r) => (openBlock(), createBlock(NotCursor_default, {
|
|
114
|
+
key: r,
|
|
115
|
+
"is-cursor": n.meta?.isDev,
|
|
116
|
+
"dev-text": n.meta?.devText,
|
|
117
117
|
skidding: 150
|
|
118
118
|
}, {
|
|
119
119
|
default: withCtx(() => [createElementVNode("div", {
|
|
@@ -127,19 +127,19 @@ var _hoisted_1$2 = {
|
|
|
127
127
|
"text-sm": "",
|
|
128
128
|
"mb-10px": "",
|
|
129
129
|
class: normalizeClass({
|
|
130
|
-
"bg-[#fff] dark:bg-[var(--g-header-menu-active-bg)]!":
|
|
131
|
-
"is-dev":
|
|
130
|
+
"bg-[#fff] dark:bg-[var(--g-header-menu-active-bg)]!": r === t.activeIndex,
|
|
131
|
+
"is-dev": n.meta?.isDev
|
|
132
132
|
}),
|
|
133
|
-
onClick: (e) =>
|
|
134
|
-
}, [
|
|
133
|
+
onClick: (e) => a(r, n)
|
|
134
|
+
}, [n.meta?.icon ? (openBlock(), createBlock(unref(PubinfoIcon_default), {
|
|
135
135
|
key: 0,
|
|
136
|
-
name:
|
|
136
|
+
name: n.meta.icon,
|
|
137
137
|
size: "18px",
|
|
138
138
|
"mr-6px": ""
|
|
139
|
-
}, null, 8, ["name"])) : createCommentVNode("", !0), createElementVNode("span", null, toDisplayString(
|
|
139
|
+
}, null, 8, ["name"])) : createCommentVNode("", !0), createElementVNode("span", null, toDisplayString(n.meta?.title), 1)], 10, _hoisted_2$1)]),
|
|
140
140
|
_: 2
|
|
141
141
|
}, 1032, ["is-cursor", "dev-text"]))), 128))])]),
|
|
142
|
-
default: withCtx(() => [renderSlot(
|
|
142
|
+
default: withCtx(() => [renderSlot(n.$slots, "default", {}, void 0, !0)]),
|
|
143
143
|
_: 3
|
|
144
144
|
}, 16);
|
|
145
145
|
};
|
|
@@ -154,18 +154,18 @@ var _hoisted_1$2 = {
|
|
|
154
154
|
}, index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
155
155
|
name: "LayoutHeaderFullMenu",
|
|
156
156
|
__name: "index",
|
|
157
|
-
setup(
|
|
158
|
-
let { settingsStore:
|
|
159
|
-
function
|
|
157
|
+
setup(t) {
|
|
158
|
+
let { settingsStore: r, menuStore: c, generateTitle: l } = useContext(), { switchTo: u } = useMenu();
|
|
159
|
+
function d(e, t, n) {
|
|
160
160
|
let r;
|
|
161
161
|
return !e && t || e && !n ? r = t : e && n && (r = n), r;
|
|
162
162
|
}
|
|
163
|
-
let
|
|
164
|
-
function
|
|
165
|
-
|
|
163
|
+
let f = ref(), { width: p } = useElementSize(f), m = ref(0), h = computed(() => m.value === c.allMenus.length - 1);
|
|
164
|
+
function g(e, t) {
|
|
165
|
+
u(e + m.value + 1, t);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
let e =
|
|
167
|
+
function _() {
|
|
168
|
+
let e = f.value, t = Array.from(e.children).at(0), n = t.clientWidth, r = Array.from(t.children), i = r.reduce((e, t) => e + t.clientWidth, 0), a = 0, o = 0;
|
|
169
169
|
if (i <= n) o = r.length - 1;
|
|
170
170
|
else for (let [e, t] of r.entries()) if (a += t.clientWidth, a >= n) {
|
|
171
171
|
o = e - 1;
|
|
@@ -175,48 +175,48 @@ var _hoisted_1$2 = {
|
|
|
175
175
|
t > o ? e.style.visibility = "hidden" : e.style.visibility = "visible";
|
|
176
176
|
}), o;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function v(e) {
|
|
179
179
|
return e.children && e.children.length !== 0 || e?.meta?.isDev;
|
|
180
180
|
}
|
|
181
181
|
return onMounted(() => {
|
|
182
|
-
watch(
|
|
183
|
-
|
|
182
|
+
watch(p, () => {
|
|
183
|
+
m.value = _();
|
|
184
184
|
}, { immediate: !0 });
|
|
185
|
-
}), (
|
|
185
|
+
}), (t, n) => (openBlock(), createElementBlock("div", {
|
|
186
186
|
ref_key: "menuRef",
|
|
187
|
-
ref:
|
|
187
|
+
ref: f,
|
|
188
188
|
class: "menu-container nothin"
|
|
189
|
-
}, [createElementVNode("div", { class: normalizeClass(["menu flex of-hidden transition-all", { [`menu-active-${unref(
|
|
190
|
-
key:
|
|
189
|
+
}, [createElementVNode("div", { class: normalizeClass(["menu flex of-hidden transition-all", { [`menu-active-${unref(r).settings.menu.menuActiveStyle}`]: unref(r).settings.menu.menuActiveStyle !== "" }]) }, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(c).allMenus, (t, n) => (openBlock(), createElementBlock("div", {
|
|
190
|
+
key: t?.meta?.title || n,
|
|
191
191
|
class: normalizeClass(["menu-item relative transition-all", {
|
|
192
|
-
active: n === unref(
|
|
193
|
-
"px-1 py-2":
|
|
194
|
-
"is-dev":
|
|
192
|
+
active: n === unref(c).actived,
|
|
193
|
+
"px-1 py-2": v(t) && unref(r).settings.menu.isRounded,
|
|
194
|
+
"is-dev": t.meta?.isDev
|
|
195
195
|
}]),
|
|
196
196
|
invisible: ""
|
|
197
197
|
}, [createVNode(NotCursor_default, {
|
|
198
|
-
"is-cursor":
|
|
199
|
-
"dev-text":
|
|
198
|
+
"is-cursor": t.meta?.isDev,
|
|
199
|
+
"dev-text": t.meta?.devText
|
|
200
200
|
}, {
|
|
201
|
-
default: withCtx(() => [
|
|
201
|
+
default: withCtx(() => [v(t) ? (openBlock(), createElementBlock("div", {
|
|
202
202
|
key: 0,
|
|
203
203
|
class: normalizeClass(["group menu-item-container h-full w-full flex cursor-pointer items-center justify-between gap-1 px-5 py-4 text-[var(--g-header-menu-color)] transition-all hover:(bg-[var(--g-header-menu-hover-bg)] text-[var(--g-header-menu-hover-color)])", {
|
|
204
|
-
"text-[var(--g-header-menu-active-color)]! bg-[var(--g-header-menu-active-bg)]!": n === unref(
|
|
205
|
-
"rounded-2": unref(
|
|
204
|
+
"text-[var(--g-header-menu-active-color)]! bg-[var(--g-header-menu-active-bg)]!": n === unref(c).actived,
|
|
205
|
+
"rounded-2": unref(r).settings.menu.isRounded
|
|
206
206
|
}]),
|
|
207
|
-
title: unref(
|
|
208
|
-
onClick: (
|
|
209
|
-
}, [createElementVNode("div", _hoisted_2, [
|
|
207
|
+
title: unref(l)(t.meta?.title),
|
|
208
|
+
onClick: (e) => unref(u)(n, t)
|
|
209
|
+
}, [createElementVNode("div", _hoisted_2, [d(n === unref(c).actived, t.meta?.icon, t.meta?.activeIcon) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [t.meta?.iconOptions?.boxType && t.meta.iconOptions.boxType !== "null" ? (openBlock(), createBlock(unref(PubinfoIcon_default), {
|
|
210
210
|
key: 0,
|
|
211
|
-
name:
|
|
211
|
+
name: d(n === unref(c).actived, t.meta?.icon, t.meta?.activeIcon),
|
|
212
212
|
small: "",
|
|
213
|
-
box:
|
|
213
|
+
box: t.meta.iconOptions.boxType,
|
|
214
214
|
size: 18,
|
|
215
|
-
"icon-size":
|
|
216
|
-
angle:
|
|
217
|
-
background:
|
|
218
|
-
radius:
|
|
219
|
-
color: (
|
|
215
|
+
"icon-size": t.meta.iconOptions.iconSize,
|
|
216
|
+
angle: t.meta.iconOptions.angle,
|
|
217
|
+
background: t.meta.iconOptions.background,
|
|
218
|
+
radius: t.meta.iconOptions.radius,
|
|
219
|
+
color: (d(n === unref(c).actived, t.meta?.icon, t.meta?.activeIcon) || "").startsWith("antd:") ? t.meta.iconOptions.iconColor || "#ffffff" : void 0,
|
|
220
220
|
class: "menu-item-container-icon transition-transform group-hover:scale-120 mr-5px"
|
|
221
221
|
}, null, 8, [
|
|
222
222
|
"name",
|
|
@@ -228,17 +228,17 @@ var _hoisted_1$2 = {
|
|
|
228
228
|
"color"
|
|
229
229
|
])) : (openBlock(), createBlock(unref(PubinfoIcon_default), {
|
|
230
230
|
key: 1,
|
|
231
|
-
name:
|
|
231
|
+
name: d(n === unref(c).actived, t.meta?.icon, t.meta?.activeIcon),
|
|
232
232
|
size: 18,
|
|
233
|
-
color: (
|
|
233
|
+
color: (d(n === unref(c).actived, t.meta?.icon, t.meta?.activeIcon) || "").startsWith("antd:") && t.meta?.iconOptions?.iconColor || void 0,
|
|
234
234
|
class: "menu-item-container-icon transition-transform group-hover:scale-120 mr-5px"
|
|
235
|
-
}, null, 8, ["name", "color"]))], 64)) : createCommentVNode("", !0), createElementVNode("span", _hoisted_3, toDisplayString(unref(
|
|
235
|
+
}, null, 8, ["name", "color"]))], 64)) : createCommentVNode("", !0), createElementVNode("span", _hoisted_3, toDisplayString(unref(l)(t.meta?.title)), 1)])], 10, _hoisted_1)) : createCommentVNode("", !0)]),
|
|
236
236
|
_: 2
|
|
237
|
-
}, 1032, ["is-cursor", "dev-text"])], 2))), 128))], 2), unref(
|
|
237
|
+
}, 1032, ["is-cursor", "dev-text"])], 2))), 128))], 2), unref(h) ? createCommentVNode("", !0) : (openBlock(), createBlock(More_default, {
|
|
238
238
|
key: 0,
|
|
239
|
-
items: unref(
|
|
240
|
-
"active-index": unref(
|
|
241
|
-
onOnMenuClick:
|
|
239
|
+
items: unref(c).allMenus.slice(unref(m) + 1),
|
|
240
|
+
"active-index": unref(c).actived - unref(m) - 1,
|
|
241
|
+
onOnMenuClick: g
|
|
242
242
|
}, {
|
|
243
243
|
default: withCtx(() => [createElementVNode("div", _hoisted_4, [n[0] ||= createTextVNode(" 更多应用 ", -1), createVNode(unref(widget_5_bold_duotone_default), {
|
|
244
244
|
ml: "5px",
|