@pubinfo/core 2.1.10-beta.2 → 2.1.11

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.
Files changed (88) hide show
  1. package/dist/{AppSetting-Dl8pVkN4.js → AppSetting-7jlhUzze.js} +42 -42
  2. package/dist/{HButton-CzYSwI6a.js → HButton-Dt6qGhhR.js} +7 -7
  3. package/dist/{HCheckList-CHR-lWIq.js → HCheckList-cPBgATmv.js} +15 -15
  4. package/dist/{HDivider-CXS9rl4C.js → HDivider-BwvBr5OE.js} +3 -3
  5. package/dist/{HInput-CSVwTg1Q.js → HInput-KJ5nFBpF.js} +10 -10
  6. package/dist/HSlideover-DVQDc9q6.js +3151 -0
  7. package/dist/{HToggle-C_iVIpxv.js → HToggle-Ce_2-yhZ.js} +8 -8
  8. package/dist/{HTooltip-BHBHfrCD.js → HTooltip-DjAU-Evn.js} +6 -6
  9. package/dist/PreferencesContent-BAIH81yS.js +701 -0
  10. package/dist/SettingBreadcrumb-O9-PhAFT.js +45 -0
  11. package/dist/SettingCopyright-DIKsWTuf.js +45 -0
  12. package/dist/{SettingEnableTransition-BBH52KKl.js → SettingEnableTransition-61O7W00b.js} +19 -19
  13. package/dist/SettingHome-Sv65TPH8.js +31 -0
  14. package/dist/SettingMenu-BvwJOUZV.js +111 -0
  15. package/dist/{SettingMode-BwhhUYlz.js → SettingMode-B8H_eQc8.js} +14 -14
  16. package/dist/SettingNavSearch-BHsmYBA7.js +31 -0
  17. package/dist/SettingOther-CyyNnaDX.js +48 -0
  18. package/dist/SettingPage-B82lW41P.js +22 -0
  19. package/dist/{SettingTabbar-DuqQVRnz.js → SettingTabbar-Bky2xvH-.js} +58 -58
  20. package/dist/{SettingThemes-Doo6Ax3u.js → SettingThemes-CkdzS1xt.js} +44 -44
  21. package/dist/SettingToolbar-CD4qns1J.js +50 -0
  22. package/dist/SettingTopbar-1shjoe3s.js +49 -0
  23. package/dist/{SettingWidthMode-VaN0CrBa.js → SettingWidthMode-DlG6lXjA.js} +14 -14
  24. package/dist/auth-BLGKOyc5.js +4432 -0
  25. package/dist/built-in/layout-component/composables/useContext.d.ts +1 -0
  26. package/dist/{change-organization-OjxZhWST.js → change-organization-hsqeSzDu.js} +38 -38
  27. package/dist/{change-password-B6kO54-d.js → change-password-EtccCDRX.js} +73 -73
  28. package/dist/{chunk-EsrJ1IKw.js → chunk-CD4vhpVs.js} +3 -3
  29. package/dist/{components-DVIyiEVI.js → components-DFNyaAb9.js} +1584 -1584
  30. package/dist/core/request.d.ts +1 -1
  31. package/dist/core-DJIGzMMM.js +4885 -0
  32. package/dist/dist-7OjQvlya.js +468 -0
  33. package/dist/engine-oniguruma-CaNXwGSv.js +243 -0
  34. package/dist/features/settings/index.d.ts +90 -1
  35. package/dist/{form-EQ9eL9hv.js → form-C3VHofnN.js} +923 -443
  36. package/dist/index.js +4418 -3895
  37. package/dist/{modal-CSWipFvB.js → modal-Bl5xHbxa.js} +15510 -15790
  38. package/dist/{not-found-DBe-djEg.js → not-found-BCjngLzt.js} +19 -19
  39. package/dist/{not-permission-DQzWCpOK.js → not-permission-C26vTMvf.js} +19 -19
  40. package/dist/{profile-DJ3gpjsS.js → profile-BVXIFuBG.js} +3340 -3277
  41. package/dist/{question-line-BKVlJGUb.js → question-line-BG__Ycfv.js} +2 -2
  42. package/dist/{reload-DAR8dVYw.js → reload-DHx5Vwus.js} +4 -4
  43. package/dist/{right-VKgVtqD5.js → right-BxBlFUwj.js} +6 -6
  44. package/dist/style.css +1 -1
  45. package/dist/{tree-select-CTjWj5WT.js → tree-select-B8cTcGLa.js} +2575 -2256
  46. package/dist/watchDiff-CPZFtaOC.js +655 -0
  47. package/package.json +41 -41
  48. package/src/built-in/layout-component/components/Header/HeaderMenu.vue +2 -3
  49. package/src/built-in/layout-component/components/Menu/item.vue +2 -2
  50. package/src/built-in/layout-component/components/Menu/sub.vue +20 -1
  51. package/src/built-in/layout-component/composables/useContext.ts +1 -0
  52. package/src/built-in/layout-component/composables/useLayoutVisible.ts +1 -1
  53. package/src/built-in/layout-component/provider.ts +5 -0
  54. package/src/built-in/system-info/components/SystemInfo.vue +68 -66
  55. package/src/built-in/system-info/index.ts +4 -4
  56. package/src/core/ctx.ts +2 -2
  57. package/src/core/request.ts +1 -1
  58. package/src/features/components/PubinfoApp/index.vue +1 -0
  59. package/types/auto-imports.d.ts +63 -63
  60. package/types/components.d.ts +45 -1
  61. package/dist/HSlideover-Bc6OHPHe.js +0 -1695
  62. package/dist/HeaderFullMenu-BRhGliRJ.js +0 -6
  63. package/dist/HeaderFullMenu-DCF-gTCZ.js +0 -249
  64. package/dist/HeaderThinMenu-B_7vLcQX.js +0 -6
  65. package/dist/HeaderThinMenu-PA12XAvb.js +0 -437
  66. package/dist/PreferencesContent-cll4nwwl.js +0 -695
  67. package/dist/SettingBreadcrumb-BvSc7VUo.js +0 -45
  68. package/dist/SettingCopyright-DcWLKM5d.js +0 -45
  69. package/dist/SettingHome-Cd43oJmB.js +0 -31
  70. package/dist/SettingMenu-CJsN4F1l.js +0 -111
  71. package/dist/SettingNavSearch-BhHUWem3.js +0 -31
  72. package/dist/SettingOther-CDY0jSVT.js +0 -48
  73. package/dist/SettingPage-B0WNvUlj.js +0 -22
  74. package/dist/SettingToolbar-CHV_dVJ9.js +0 -50
  75. package/dist/SettingTopbar-CF1K_XIt.js +0 -49
  76. package/dist/auth-CPSkJwBz.js +0 -3968
  77. package/dist/core-Bg2PEcZK.js +0 -4884
  78. package/dist/dist-DAb-7mqe.js +0 -468
  79. package/dist/engine-oniguruma-CUfGsBrF.js +0 -243
  80. package/dist/overlayscrollbars-vue-BOGU2FK-.js +0 -1436
  81. package/dist/pick-C42gkI1h.js +0 -10
  82. package/dist/watchDiff-C4eGkl9e.js +0 -397
  83. /package/dist/{_plugin-vue_export-helper-DaPiLSxE.js → _plugin-vue_export-helper-sUTDUeGO.js} +0 -0
  84. /package/dist/{json-S7wVLDnW.js → json-Bu_Zprin.js} +0 -0
  85. /package/dist/{useContext-D6pJCZez.js → useContext-DLtu9F7E.js} +0 -0
  86. /package/dist/{vitesse-dark-BsnBIHGG.js → vitesse-dark-CTe40QT_.js} +0 -0
  87. /package/dist/{vitesse-light-Cs_6DF7j.js → vitesse-light-BWXC_WeB.js} +0 -0
  88. /package/dist/{wasm-EvDQvzqp.js → wasm-2zDVqo-C.js} +0 -0
@@ -1,9 +1,9 @@
1
- import "./modal-CSWipFvB.js";
2
- import { w as useTheme } from "./auth-CPSkJwBz.js";
3
- import "./watchDiff-C4eGkl9e.js";
4
- import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-DaPiLSxE.js";
5
- import { n as useContext } from "./useContext-D6pJCZez.js";
6
- import { t as HDivider_default } from "./HDivider-CXS9rl4C.js";
1
+ import "./modal-Bl5xHbxa.js";
2
+ import { w as useTheme } from "./auth-BLGKOyc5.js";
3
+ import "./watchDiff-CPZFtaOC.js";
4
+ import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-sUTDUeGO.js";
5
+ import { n as useContext } from "./useContext-DLtu9F7E.js";
6
+ import { t as HDivider_default } from "./HDivider-BwvBr5OE.js";
7
7
  import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createStaticVNode, createVNode, defineComponent, isRef, markRaw, normalizeClass, normalizeStyle, openBlock, renderList, resolveComponent, toDisplayString, toRef, unref, useModel, vModelCheckbox, withCtx, withDirectives } from "vue";
8
8
  import { getThemes } from "@pubinfo/config/themes";
9
9
  var _hoisted_1$3 = {
@@ -11,8 +11,8 @@ var _hoisted_1$3 = {
11
11
  width: "1.2em",
12
12
  height: "1.2em"
13
13
  };
14
- function render$2(p, P) {
15
- return openBlock(), createElementBlock("svg", _hoisted_1$3, [...P[0] ||= [createElementVNode("path", {
14
+ function render$2(e, t) {
15
+ return openBlock(), createElementBlock("svg", _hoisted_1$3, [...t[0] ||= [createElementVNode("path", {
16
16
  fill: "currentColor",
17
17
  d: "M3 0h8a3 3 0 0 1 3 3v15a2 2 0 0 1-3.348 1.477L7.674 16.76a1 1 0 0 0-1.348 0l-2.978 2.717A2 2 0 0 1 0 18V3a3 3 0 0 1 3-3"
18
18
  }, null, -1)]]);
@@ -25,8 +25,8 @@ var bookmark_f_default = markRaw({
25
25
  width: "1.2em",
26
26
  height: "1.2em"
27
27
  };
28
- function render$1(p, P) {
29
- return openBlock(), createElementBlock("svg", _hoisted_1$2, [...P[0] ||= [createElementVNode("path", {
28
+ function render$1(e, t) {
29
+ return openBlock(), createElementBlock("svg", _hoisted_1$2, [...t[0] ||= [createElementVNode("path", {
30
30
  fill: "currentColor",
31
31
  "fill-rule": "evenodd",
32
32
  d: "M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m3.78-9.72a.75.75 0 0 0-1.06-1.06L6.75 9.19L5.53 7.97a.75.75 0 0 0-1.06 1.06l1.75 1.75a.75.75 0 0 0 1.06 0z",
@@ -48,14 +48,14 @@ var check_circle_filled_default = markRaw({
48
48
  modelModifiers: {}
49
49
  },
50
50
  emits: ["update:modelValue"],
51
- setup(p) {
52
- let P = useModel(p, "modelValue");
53
- return (p, F) => (openBlock(), createElementBlock("div", _hoisted_1$1, [createElementVNode("div", _hoisted_2$1, [withDirectives(createElementVNode("input", {
51
+ setup(e) {
52
+ let t = useModel(e, "modelValue");
53
+ return (e, n) => (openBlock(), createElementBlock("div", _hoisted_1$1, [createElementVNode("div", _hoisted_2$1, [withDirectives(createElementVNode("input", {
54
54
  id: "dn",
55
- "onUpdate:modelValue": F[0] ||= (p) => P.value = p,
55
+ "onUpdate:modelValue": n[0] ||= (e) => t.value = e,
56
56
  type: "checkbox",
57
57
  class: "dn"
58
- }, null, 512), [[vModelCheckbox, P.value]]), F[1] ||= createStaticVNode("<label for=\"dn\" class=\"toggle\" data-v-5b2fff8a><span class=\"toggle__handler\" data-v-5b2fff8a><span class=\"crater crater--1\" data-v-5b2fff8a></span><span class=\"crater crater--2\" data-v-5b2fff8a></span><span class=\"crater crater--3\" data-v-5b2fff8a></span></span><span class=\"star star--1\" data-v-5b2fff8a></span><span class=\"star star--2\" data-v-5b2fff8a></span><span class=\"star star--3\" data-v-5b2fff8a></span><span class=\"star star--4\" data-v-5b2fff8a></span><span class=\"star star--5\" data-v-5b2fff8a></span><span class=\"star star--6\" data-v-5b2fff8a></span></label>", 1)])]));
58
+ }, null, 512), [[vModelCheckbox, t.value]]), n[1] ||= createStaticVNode("<label for=\"dn\" class=\"toggle\" data-v-5b2fff8a><span class=\"toggle__handler\" data-v-5b2fff8a><span class=\"crater crater--1\" data-v-5b2fff8a></span><span class=\"crater crater--2\" data-v-5b2fff8a></span><span class=\"crater crater--3\" data-v-5b2fff8a></span></span><span class=\"star star--1\" data-v-5b2fff8a></span><span class=\"star star--2\" data-v-5b2fff8a></span><span class=\"star star--3\" data-v-5b2fff8a></span><span class=\"star star--4\" data-v-5b2fff8a></span><span class=\"star star--5\" data-v-5b2fff8a></span><span class=\"star star--6\" data-v-5b2fff8a></span></label>", 1)])]));
59
59
  }
60
60
  }), [["__scopeId", "data-v-5b2fff8a"]]), _hoisted_1 = { class: "themes" }, _hoisted_2 = ["onClick"], _hoisted_3 = {
61
61
  class: "theme-type",
@@ -64,52 +64,52 @@ var check_circle_filled_default = markRaw({
64
64
  }, _hoisted_4 = { class: "theme-point" }, _hoisted_5 = { class: "explosion" }, SettingThemes_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
65
65
  name: "SettingThemes",
66
66
  __name: "SettingThemes",
67
- setup(P) {
68
- let { isDark: I } = useTheme(), { settingsStore: L } = useContext(), R = toRef(L.settings, "app"), z = [
67
+ setup(t) {
68
+ let { isDark: r } = useTheme(), { settingsStore: i } = useContext(), a = toRef(i.settings, "app"), o = [
69
69
  "--ui-primary",
70
70
  "--ui-text",
71
71
  "--g-bg",
72
72
  "--g-header-bg",
73
73
  "--g-main-sidebar-bg",
74
74
  "--g-sub-sidebar-bg"
75
- ], B = computed(() => {
76
- let p = getThemes();
77
- return Object.keys(p).map((P) => {
78
- let F = p[P];
75
+ ], s = computed(() => {
76
+ let e = getThemes();
77
+ return Object.keys(e).map((t) => {
78
+ let n = e[t];
79
79
  return {
80
- label: P,
81
- value: F,
82
- colors: z.map((p) => F[p].startsWith("#") ? F[p] : `rgb(${F[p]})`),
83
- name: p[P].label
80
+ label: t,
81
+ value: n,
82
+ colors: o.map((e) => n[e].startsWith("#") ? n[e] : `rgb(${n[e]})`),
83
+ name: e[t].label
84
84
  };
85
- }).filter((p) => p.value["color-scheme"] === R.value.colorScheme);
85
+ }).filter((e) => e.value["color-scheme"] === a.value.colorScheme);
86
86
  });
87
- function V(p) {
88
- let P = p.label;
89
- I.value ? R.value.darkTheme = P : R.value.lightTheme = P;
87
+ function c(e) {
88
+ let t = e.label;
89
+ r.value ? a.value.darkTheme = t : a.value.lightTheme = t;
90
90
  }
91
- return (p, P) => {
92
- let F = HDivider_default;
93
- return openBlock(), createBlock(F, { title: "颜色主题风格" }, {
91
+ return (e, t) => {
92
+ let n = HDivider_default;
93
+ return openBlock(), createBlock(n, { title: "颜色主题风格" }, {
94
94
  default: withCtx(() => [createElementVNode("div", null, [createVNode(DayNightToggle_default, {
95
- modelValue: unref(I),
96
- "onUpdate:modelValue": P[0] ||= (p) => isRef(I) ? I.value = p : null
97
- }, null, 8, ["modelValue"])]), createElementVNode("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(B), (p) => (openBlock(), createElementBlock("div", {
98
- key: p.label,
99
- class: normalizeClass(["theme", { active: unref(I) ? unref(R).darkTheme === p.label : unref(R).lightTheme === p.label }]),
100
- onClick: (P) => V(p)
95
+ modelValue: unref(r),
96
+ "onUpdate:modelValue": t[0] ||= (e) => isRef(r) ? r.value = e : null
97
+ }, null, 8, ["modelValue"])]), createElementVNode("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(s), (e) => (openBlock(), createElementBlock("div", {
98
+ key: e.label,
99
+ class: normalizeClass(["theme", { active: unref(r) ? unref(a).darkTheme === e.label : unref(a).lightTheme === e.label }]),
100
+ onClick: (t) => c(e)
101
101
  }, [
102
102
  createElementVNode("div", _hoisted_3, [createElementVNode("span", {
103
- style: normalizeStyle({ color: p.colors.at(0) }),
103
+ style: normalizeStyle({ color: e.colors.at(0) }),
104
104
  "mr-5px": ""
105
105
  }, [createVNode(unref(bookmark_f_default))], 4), createElementVNode("span", {
106
- style: normalizeStyle({ color: p.colors.at(0) }),
106
+ style: normalizeStyle({ color: e.colors.at(0) }),
107
107
  "text-sm": ""
108
- }, toDisplayString(p.name || p.label), 5)]),
109
- createElementVNode("div", _hoisted_4, [(openBlock(!0), createElementBlock(Fragment, null, renderList(p.colors, (p) => (openBlock(), createElementBlock("div", {
110
- key: p,
108
+ }, toDisplayString(e.name || e.label), 5)]),
109
+ createElementVNode("div", _hoisted_4, [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.colors, (e) => (openBlock(), createElementBlock("div", {
110
+ key: e,
111
111
  class: "point",
112
- style: normalizeStyle({ backgroundColor: p })
112
+ style: normalizeStyle({ backgroundColor: e })
113
113
  }, null, 4))), 128))]),
114
114
  createElementVNode("div", _hoisted_5, [createVNode(unref(check_circle_filled_default))])
115
115
  ], 10, _hoisted_2))), 128))])]),
@@ -0,0 +1,50 @@
1
+ import { n as useContext } from "./useContext-DLtu9F7E.js";
2
+ import { t as HTooltip_default } from "./HTooltip-DjAU-Evn.js";
3
+ import { t as HDivider_default } from "./HDivider-BwvBr5OE.js";
4
+ import { t as HToggle_default } from "./HToggle-Ce_2-yhZ.js";
5
+ import { t as question_line_default } from "./question-line-BG__Ycfv.js";
6
+ import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, resolveComponent, toRef, unref, withCtx } from "vue";
7
+ var _hoisted_1 = { class: "setting-item" }, _hoisted_2 = { class: "label" }, _hoisted_3 = {
8
+ key: 0,
9
+ class: "setting-item"
10
+ }, _hoisted_4 = { class: "setting-item" }, _hoisted_5 = { class: "label" }, _hoisted_6 = { class: "setting-item" }, _hoisted_7 = { class: "label" }, SettingToolbar_default = /* @__PURE__ */ defineComponent({
11
+ name: "SettingToolbar",
12
+ __name: "SettingToolbar",
13
+ setup(t) {
14
+ let { settingsStore: n } = useContext(), i = toRef(n.settings, "toolbar");
15
+ return (e, t) => {
16
+ let r = HTooltip_default, a = HToggle_default, o = HDivider_default;
17
+ return openBlock(), createBlock(o, { title: "工具栏" }, {
18
+ default: withCtx(() => [
19
+ createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [t[4] ||= createTextVNode(" 通知中心 ", -1), createVNode(r, { text: "该功能具体业务功能需自行开发,框架仅提供示例模版" }, {
20
+ default: withCtx(() => [createVNode(unref(question_line_default))]),
21
+ _: 1
22
+ })]), createVNode(a, {
23
+ modelValue: unref(i).enableNotification,
24
+ "onUpdate:modelValue": t[0] ||= (e) => unref(i).enableNotification = e
25
+ }, null, 8, ["modelValue"])]),
26
+ unref(n).mode === "pc" ? (openBlock(), createElementBlock("div", _hoisted_3, [t[5] ||= createElementVNode("div", { class: "label" }, " 全屏 ", -1), createVNode(a, {
27
+ modelValue: unref(i).enableFullscreen,
28
+ "onUpdate:modelValue": t[1] ||= (e) => unref(i).enableFullscreen = e
29
+ }, null, 8, ["modelValue"])])) : createCommentVNode("", !0),
30
+ createElementVNode("div", _hoisted_4, [createElementVNode("div", _hoisted_5, [t[6] ||= createTextVNode(" 页面刷新 ", -1), createVNode(r, { text: "使用框架内提供的刷新功能进行页面刷新" }, {
31
+ default: withCtx(() => [createVNode(unref(question_line_default))]),
32
+ _: 1
33
+ })]), createVNode(a, {
34
+ modelValue: unref(i).enablePageReload,
35
+ "onUpdate:modelValue": t[2] ||= (e) => unref(i).enablePageReload = e
36
+ }, null, 8, ["modelValue"])]),
37
+ createElementVNode("div", _hoisted_6, [createElementVNode("div", _hoisted_7, [t[7] ||= createTextVNode(" 颜色主题 ", -1), createVNode(r, { text: "开启后可在明亮/暗黑模式中切换" }, {
38
+ default: withCtx(() => [createVNode(unref(question_line_default))]),
39
+ _: 1
40
+ })]), createVNode(a, {
41
+ modelValue: unref(i).enableColorScheme,
42
+ "onUpdate:modelValue": t[3] ||= (e) => unref(i).enableColorScheme = e
43
+ }, null, 8, ["modelValue"])])
44
+ ]),
45
+ _: 1
46
+ });
47
+ };
48
+ }
49
+ });
50
+ export { SettingToolbar_default as default };
@@ -0,0 +1,49 @@
1
+ import "./modal-Bl5xHbxa.js";
2
+ import "./tree-select-B8cTcGLa.js";
3
+ import "./components-DFNyaAb9.js";
4
+ import { n as useContext } from "./useContext-DLtu9F7E.js";
5
+ import { t as HTooltip_default } from "./HTooltip-DjAU-Evn.js";
6
+ import { t as HDivider_default } from "./HDivider-BwvBr5OE.js";
7
+ import { t as HCheckList_default } from "./HCheckList-cPBgATmv.js";
8
+ import { t as HToggle_default } from "./HToggle-Ce_2-yhZ.js";
9
+ import { t as question_line_default } from "./question-line-BG__Ycfv.js";
10
+ import { createBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, resolveComponent, toRefs, unref, withCtx } from "vue";
11
+ var _hoisted_1 = { class: "setting-item" }, _hoisted_2 = { class: "setting-item" }, _hoisted_3 = { class: "label" }, SettingTopbar_default = /* @__PURE__ */ defineComponent({
12
+ name: "SettingTopbar",
13
+ __name: "SettingTopbar",
14
+ setup(t) {
15
+ let { settingsStore: n } = useContext(), { topbar: i, tabbar: a } = toRefs(n.settings);
16
+ return (e, t) => {
17
+ let n = HCheckList_default, r = HTooltip_default, o = HToggle_default, s = HDivider_default;
18
+ return openBlock(), createBlock(s, { title: "顶栏" }, {
19
+ default: withCtx(() => [createElementVNode("div", _hoisted_1, [t[2] ||= createElementVNode("div", { class: "label" }, " 模式 ", -1), createVNode(n, {
20
+ modelValue: unref(i).mode,
21
+ "onUpdate:modelValue": t[0] ||= (e) => unref(i).mode = e,
22
+ options: [
23
+ {
24
+ label: "静止",
25
+ value: "static"
26
+ },
27
+ {
28
+ label: "固定",
29
+ value: "fixed"
30
+ },
31
+ {
32
+ label: "粘性",
33
+ value: "sticky"
34
+ }
35
+ ]
36
+ }, null, 8, ["modelValue"])]), createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [t[3] ||= createTextVNode(" 展示切换 ", -1), createVNode(r, { text: "切换标签栏和工具栏的展示顺序" }, {
37
+ default: withCtx(() => [createVNode(unref(question_line_default))]),
38
+ _: 1
39
+ })]), createVNode(o, {
40
+ modelValue: unref(i).switchTabbarAndToolbar,
41
+ "onUpdate:modelValue": t[1] ||= (e) => unref(i).switchTabbarAndToolbar = e,
42
+ disabled: !unref(a).enable
43
+ }, null, 8, ["modelValue", "disabled"])])]),
44
+ _: 1
45
+ });
46
+ };
47
+ }
48
+ });
49
+ export { SettingTopbar_default as default };
@@ -1,14 +1,14 @@
1
- import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-DaPiLSxE.js";
2
- import { n as useContext } from "./useContext-D6pJCZez.js";
3
- import { t as HTooltip_default } from "./HTooltip-BHBHfrCD.js";
4
- import { t as HDivider_default } from "./HDivider-CXS9rl4C.js";
5
- import { n as back_default, t as right_default } from "./right-VKgVtqD5.js";
1
+ import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-sUTDUeGO.js";
2
+ import { n as useContext } from "./useContext-DLtu9F7E.js";
3
+ import { t as HTooltip_default } from "./HTooltip-DjAU-Evn.js";
4
+ import { t as HDivider_default } from "./HDivider-BwvBr5OE.js";
5
+ import { n as back_default, t as right_default } from "./right-BxBlFUwj.js";
6
6
  import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, reactive, renderList, resolveComponent, toRef, unref, withCtx } from "vue";
7
7
  var _hoisted_1 = { class: "app-width-mode" }, _hoisted_2 = ["onClick"], SettingWidthMode_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
8
8
  name: "SettingWidthMode",
9
9
  __name: "SettingWidthMode",
10
10
  setup(e) {
11
- let { settingsStore: b } = useContext(), S = toRef(b.settings.layout, "widthMode"), C = reactive([
11
+ let { settingsStore: n } = useContext(), i = toRef(n.settings.layout, "widthMode"), a = reactive([
12
12
  {
13
13
  describe: "自适应",
14
14
  active: "adaption",
@@ -30,21 +30,21 @@ var _hoisted_1 = { class: "app-width-mode" }, _hoisted_2 = ["onClick"], SettingW
30
30
  class: "mode-center-max-width"
31
31
  }
32
32
  ]);
33
- function w(e) {
34
- e && (S.value = e);
33
+ function o(e) {
34
+ e && (i.value = e);
35
35
  }
36
- return (e, y) => {
37
- let b = HTooltip_default, x = HDivider_default;
38
- return openBlock(), createBlock(x, { title: "页宽模式" }, {
39
- default: withCtx(() => [createElementVNode("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(C), (e) => (openBlock(), createBlock(b, {
36
+ return (e, t) => {
37
+ let n = HTooltip_default, r = HDivider_default;
38
+ return openBlock(), createBlock(r, { title: "页宽模式" }, {
39
+ default: withCtx(() => [createElementVNode("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(a), (e) => (openBlock(), createBlock(n, {
40
40
  key: e.active,
41
41
  text: e.describe,
42
42
  placement: "bottom",
43
43
  delay: 500
44
44
  }, {
45
45
  default: withCtx(() => [createElementVNode("div", {
46
- class: normalizeClass(["mode", [e.class, unref(S) === e.active ? "active" : ""]]),
47
- onClick: (y) => w(e.active)
46
+ class: normalizeClass(["mode", [e.class, unref(i) === e.active ? "active" : ""]]),
47
+ onClick: (t) => o(e.active)
48
48
  }, [e.active === "center" ? createCommentVNode("", !0) : (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(unref(back_default), { class: "left" }), createVNode(unref(right_default), { class: "right" })], 64))], 10, _hoisted_2)]),
49
49
  _: 2
50
50
  }, 1032, ["text"]))), 128))])]),