@pubinfo/core 2.0.0-beta.26 → 2.0.0-beta.28

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 (63) hide show
  1. package/dist/{AppSetting-DodCOb_z.js → AppSetting-DMJZXmzA.js} +21 -20
  2. package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-CMOw56Mk.js → HCheckList.vue_vue_type_script_setup_true_lang-B3wESRn7.js} +2 -2
  3. package/dist/{PreferencesContent-Dic24ifo.js → PreferencesContent-BniiAnvk.js} +117 -113
  4. package/dist/{SettingBreadcrumb-DWpbGcSy.js → SettingBreadcrumb-C4f3EHvJ.js} +2 -2
  5. package/dist/{SettingCopyright-CIY0pFMT.js → SettingCopyright-BfIv7JmX.js} +1 -1
  6. package/dist/{SettingEnableTransition-f0xuLIrZ.js → SettingEnableTransition-ltxmSAel.js} +1 -1
  7. package/dist/{SettingHome-BFtJsJsN.js → SettingHome-D3YO-Jml.js} +1 -1
  8. package/dist/{SettingMenu-DuPD3iSG.js → SettingMenu-BFPc8wk1.js} +2 -2
  9. package/dist/{SettingMode-nZ65qSWK.js → SettingMode-FWqs1ki-.js} +1 -1
  10. package/dist/{SettingNavSearch-CrarPE7d.js → SettingNavSearch-CNH2GsIA.js} +1 -1
  11. package/dist/{SettingOther-BddvExCF.js → SettingOther-DeKEcGIY.js} +1 -1
  12. package/dist/{SettingPage-C6Na8HEN.js → SettingPage-CvRmxfR7.js} +1 -1
  13. package/dist/{SettingTabbar-nuwfRRaE.js → SettingTabbar-C7I7s-0s.js} +2 -2
  14. package/dist/SettingThemes-DzQ2YBRN.js +145 -0
  15. package/dist/{SettingToolbar-BdizZaGF.js → SettingToolbar-BPj0XLJ3.js} +1 -1
  16. package/dist/{SettingTopbar-D5BX5vS_.js → SettingTopbar-DVlc3dq-.js} +2 -2
  17. package/dist/{SettingWidthMode-CHrLW3gs.js → SettingWidthMode-BzNU65dj.js} +1 -1
  18. package/dist/{TopThinMode-CttqTmaT.js → TopThinMode-DSO5USf6.js} +1 -1
  19. package/dist/{_...all_--d4S-8dL.js → _...all_-6l5FWUkL.js} +1 -1
  20. package/dist/{colors-BOKDjZQI.js → colors-DiWJrScm.js} +1 -1
  21. package/dist/components/PubinfoIcon/register.d.ts +9 -0
  22. package/dist/{index-Cygbc-66.js → index-Be7jJtXg.js} +33 -31
  23. package/dist/{index-CC3GE307.js → index-BmMbAV1Y.js} +34 -30
  24. package/dist/{index-D0CMv5FJ.js → index-CXsL0aQN.js} +5618 -5248
  25. package/dist/{index-B0i20hau.js → index-CfasTv4x.js} +6 -6
  26. package/dist/{index-Bz9lh14R.js → index-Ckgil96Y.js} +30 -30
  27. package/dist/{index-DltN2SCZ.js → index-De_ME_Ws.js} +2 -2
  28. package/dist/{index-dPREgrj8.js → index-Md7zV10q.js} +12 -12
  29. package/dist/{index-DORROKh7.js → index-XnF26Tbt.js} +3 -3
  30. package/dist/{index-Cf8yM5Cv.js → index-bsi-FZDt.js} +11 -9
  31. package/dist/index.js +33 -32
  32. package/dist/{index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-Bmtn9Oo4.js → index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-B3Eieo0k.js} +315 -297
  33. package/dist/interface.d.ts +2 -0
  34. package/dist/layout/Layout.vue.d.ts +2 -2
  35. package/dist/{menu-Ddxel9ck.js → menu-CC5544p-.js} +3202 -3184
  36. package/dist/{pick-DEgsMKda.js → pick-CJo2YiT-.js} +1 -1
  37. package/dist/request.js +399 -390
  38. package/dist/route/routes.d.ts +6 -4
  39. package/dist/style.css +2 -2
  40. package/dist/utils/index.d.ts +6 -0
  41. package/package.json +26 -26
  42. package/src/api/modules/configData/xitongpeizhifuwu.ts +3 -3
  43. package/src/components/PubinfoApp/index.vue +1 -1
  44. package/src/components/PubinfoIcon/index.vue +3 -1
  45. package/src/components/PubinfoIcon/register.ts +19 -0
  46. package/src/components/PubinfoProvider/index.ts +1 -2
  47. package/src/create.ts +7 -0
  48. package/src/interface.ts +2 -0
  49. package/src/layout/Layout.vue +50 -59
  50. package/src/layout/components/Content/index.vue +34 -13
  51. package/src/layout/components/SettingBar/components/SettingThemes.vue +7 -5
  52. package/src/layout/components/Sidebar/MainSidebar.vue +4 -7
  53. package/src/layout/components/Tools/Preferences/PreferencesContent.vue +2 -1
  54. package/src/layout/components/Tools/index.vue +1 -8
  55. package/src/layout/provider.ts +7 -1
  56. package/src/pages/system/not-permission/index.vue +2 -2
  57. package/src/route/routes.ts +26 -8
  58. package/src/stores/modules/route.ts +10 -2
  59. package/src/utils/index.ts +14 -0
  60. package/types/vue-router.d.ts +3 -1
  61. package/dist/SettingThemes-DBq6j0zt.js +0 -144
  62. package/src/layout/components/Tools/I18nSelector.vue +0 -52
  63. package/src/pages/system/change-password/page.vue +0 -58
@@ -1,7 +1,7 @@
1
1
  import { _ as m } from "./HDivider-DgXBhPr0.js";
2
2
  import { _ } from "./HToggle-Cd71WKvG.js";
3
3
  import { defineComponent as r, toRef as p, createBlock as u, openBlock as c, withCtx as d, createElementVNode as o, createVNode as g, unref as n } from "vue";
4
- import { u as f } from "./index-D0CMv5FJ.js";
4
+ import { u as f } from "./index-CXsL0aQN.js";
5
5
  const V = { class: "setting-item" }, C = /* @__PURE__ */ r({
6
6
  name: "SettingPage",
7
7
  __name: "SettingPage",
@@ -1,7 +1,7 @@
1
1
  import { _ as k } from "./HDivider-DgXBhPr0.js";
2
- import { u as w, c as y } from "./index-D0CMv5FJ.js";
2
+ import { u as w, c as y } from "./index-CXsL0aQN.js";
3
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-CMOw56Mk.js";
4
+ import { _ as U } from "./HCheckList.vue_vue_type_script_setup_true_lang-B3wESRn7.js";
5
5
  import { _ as L } from "./HToggle-Cd71WKvG.js";
6
6
  import { R as N } from "./question-line-CfkciTFq.js";
7
7
  const R = {
@@ -0,0 +1,145 @@
1
+ import { _ as T } from "./HDivider-DgXBhPr0.js";
2
+ import { markRaw as b, createElementBlock as r, openBlock as n, createElementVNode as s, defineComponent as k, useModel as V, withDirectives as S, createStaticVNode as $, vModelCheckbox as w, toRef as D, computed as B, createBlock as N, withCtx as j, createVNode as h, unref as o, isRef as L, Fragment as g, renderList as f, normalizeClass as M, normalizeStyle as v, toDisplayString as z } from "vue";
3
+ import "./menu-CC5544p-.js";
4
+ import "pinia-plugin-persistedstate";
5
+ import { d as F, u as R } from "./index-CXsL0aQN.js";
6
+ import { getThemes as A } from "@pubinfo/config/themes";
7
+ import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const E = {
9
+ viewBox: "-5 -2 24 24",
10
+ width: "1.2em",
11
+ height: "1.2em"
12
+ };
13
+ function H(p, e) {
14
+ return n(), r("svg", E, e[0] || (e[0] = [
15
+ s("path", {
16
+ fill: "currentColor",
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
+ }, null, -1)
19
+ ]));
20
+ }
21
+ const I = b({ name: "jam-bookmark-f", render: H }), U = {
22
+ viewBox: "0 0 16 16",
23
+ width: "1.2em",
24
+ height: "1.2em"
25
+ };
26
+ function W(p, e) {
27
+ return n(), r("svg", U, e[0] || (e[0] = [
28
+ s("path", {
29
+ fill: "currentColor",
30
+ "fill-rule": "evenodd",
31
+ 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",
32
+ "clip-rule": "evenodd"
33
+ }, null, -1)
34
+ ]));
35
+ }
36
+ const J = b({ name: "pajamas-check-circle-filled", render: W }), O = {
37
+ flex: "",
38
+ "justify-center": "",
39
+ "pb-15px": ""
40
+ }, P = { class: "toggleWrapper" }, q = /* @__PURE__ */ k({
41
+ name: "DayNightToggle",
42
+ __name: "DayNightToggle",
43
+ props: {
44
+ modelValue: {},
45
+ modelModifiers: {}
46
+ },
47
+ emits: ["update:modelValue"],
48
+ setup(p) {
49
+ const e = V(p, "modelValue");
50
+ return (_, l) => (n(), r("div", O, [
51
+ s("div", P, [
52
+ S(s("input", {
53
+ id: "dn",
54
+ "onUpdate:modelValue": l[0] || (l[0] = (m) => e.value = m),
55
+ type: "checkbox",
56
+ class: "dn"
57
+ }, null, 512), [
58
+ [w, e.value]
59
+ ]),
60
+ l[1] || (l[1] = $('<label for="dn" class="toggle" data-v-d927ea22><span class="toggle__handler" data-v-d927ea22><span class="crater crater--1" data-v-d927ea22></span><span class="crater crater--2" data-v-d927ea22></span><span class="crater crater--3" data-v-d927ea22></span></span><span class="star star--1" data-v-d927ea22></span><span class="star star--2" data-v-d927ea22></span><span class="star star--3" data-v-d927ea22></span><span class="star star--4" data-v-d927ea22></span><span class="star star--5" data-v-d927ea22></span><span class="star star--6" data-v-d927ea22></span></label>', 1))
61
+ ])
62
+ ]));
63
+ }
64
+ }), G = /* @__PURE__ */ x(q, [["__scopeId", "data-v-d927ea22"]]), K = { class: "themes" }, Q = ["onClick"], X = {
65
+ class: "theme-type",
66
+ flex: "",
67
+ "items-center": ""
68
+ }, Y = { class: "theme-point" }, Z = { class: "explosion" }, ee = /* @__PURE__ */ k({
69
+ name: "SettingThemes",
70
+ __name: "SettingThemes",
71
+ setup(p) {
72
+ const { isDark: e } = F(), { settingsStore: _ } = R(), l = D(_.settings, "app"), m = [
73
+ "--ui-primary",
74
+ "--ui-text",
75
+ "--g-bg",
76
+ "--g-header-bg",
77
+ "--g-main-sidebar-bg",
78
+ "--g-sub-sidebar-bg"
79
+ ], y = B(() => {
80
+ const c = A();
81
+ return Object.keys(c).map((t) => {
82
+ const d = c[t], a = m.map((u) => d[u].startsWith("#") ? d[u] : `rgb(${d[u]})`), i = c[t].label;
83
+ return {
84
+ label: t,
85
+ value: d,
86
+ colors: a,
87
+ name: i
88
+ };
89
+ }).filter(
90
+ (t) => t.value["color-scheme"] === l.value.colorScheme
91
+ );
92
+ });
93
+ function C(c) {
94
+ const t = c.label;
95
+ e.value ? l.value.darkTheme = t : l.value.lightTheme = t;
96
+ }
97
+ return (c, t) => {
98
+ const d = T;
99
+ return n(), N(d, { title: "颜色主题风格" }, {
100
+ default: j(() => [
101
+ s("div", null, [
102
+ h(G, {
103
+ modelValue: o(e),
104
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => L(e) ? e.value = a : null)
105
+ }, null, 8, ["modelValue"])
106
+ ]),
107
+ s("div", K, [
108
+ (n(!0), r(g, null, f(o(y), (a) => (n(), r("div", {
109
+ key: a.label,
110
+ class: M(["theme", { active: o(e) ? o(l).darkTheme === a.label : o(l).lightTheme === a.label }]),
111
+ onClick: (i) => C(a)
112
+ }, [
113
+ s("div", X, [
114
+ s("span", {
115
+ style: v({ color: a.colors.at(0) }),
116
+ "mr-5px": ""
117
+ }, [
118
+ h(o(I))
119
+ ], 4),
120
+ s("span", {
121
+ style: v({ color: a.colors.at(0) }),
122
+ "text-sm": ""
123
+ }, z(a.name || a.label), 5)
124
+ ]),
125
+ s("div", Y, [
126
+ (n(!0), r(g, null, f(a.colors, (i) => (n(), r("div", {
127
+ key: i,
128
+ class: "point",
129
+ style: v({ backgroundColor: i })
130
+ }, null, 4))), 128))
131
+ ]),
132
+ s("div", Z, [
133
+ h(o(J))
134
+ ])
135
+ ], 10, Q))), 128))
136
+ ])
137
+ ]),
138
+ _: 1
139
+ });
140
+ };
141
+ }
142
+ }), de = /* @__PURE__ */ x(ee, [["__scopeId", "data-v-f75d0f5f"]]);
143
+ export {
144
+ de as default
145
+ };
@@ -1,6 +1,6 @@
1
1
  import { _ as b } from "./HDivider-DgXBhPr0.js";
2
2
  import { _ as V } from "./HToggle-Cd71WKvG.js";
3
- import { u as f, c as g } from "./index-D0CMv5FJ.js";
3
+ import { u as f, c as g } from "./index-CXsL0aQN.js";
4
4
  import { defineComponent as c, toRef as v, createBlock as x, openBlock as _, withCtx as i, createElementVNode as s, createElementBlock as C, createCommentVNode as N, createVNode as o, createTextVNode as m, unref as t } from "vue";
5
5
  import { R as u } from "./question-line-CfkciTFq.js";
6
6
  const R = { class: "setting-item" }, S = { class: "label" }, T = { class: "setting-item" }, U = {
@@ -1,7 +1,7 @@
1
1
  import { _ as u } from "./HDivider-DgXBhPr0.js";
2
2
  import { _ as c } from "./HToggle-Cd71WKvG.js";
3
- import { u as b, c as f } from "./index-D0CMv5FJ.js";
4
- import { _ as g } from "./HCheckList.vue_vue_type_script_setup_true_lang-CMOw56Mk.js";
3
+ import { u as b, c as f } from "./index-CXsL0aQN.js";
4
+ import { _ as g } from "./HCheckList.vue_vue_type_script_setup_true_lang-B3wESRn7.js";
5
5
  import { defineComponent as T, toRefs as V, createBlock as v, openBlock as x, withCtx as a, 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
7
  const H = { class: "setting-item" }, w = { class: "setting-item" }, N = { class: "label" }, D = /* @__PURE__ */ T({
@@ -1,5 +1,5 @@
1
1
  import { _ as h } from "./HDivider-DgXBhPr0.js";
2
- import { u as v, c as g } from "./index-D0CMv5FJ.js";
2
+ import { u as v, c as g } from "./index-CXsL0aQN.js";
3
3
  import { defineComponent as k, toRef as w, reactive as x, createBlock as a, openBlock as t, withCtx as n, createElementVNode as s, createElementBlock as d, Fragment as r, renderList as b, unref as c, normalizeClass as C, createCommentVNode as M, createVNode as l } from "vue";
4
4
  import { E, a as y } from "./right-Bfe2p1o0.js";
5
5
  import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,5 +1,5 @@
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 { u as p, _ } from "./index-D0CMv5FJ.js";
2
+ import { u as p, _ } from "./index-CXsL0aQN.js";
3
3
  import { useRoute as h } from "vue-router";
4
4
  const R = /* @__PURE__ */ a({
5
5
  name: "TopThinMode",
@@ -1,6 +1,6 @@
1
1
  import { _ as u } from "./HButton.vue_vue_type_script_setup_true_lang-CYAzn9Mg.js";
2
2
  import { defineComponent as c, ref as f, onMounted as d, createElementBlock as m, openBlock as p, createElementVNode as o, createVNode as _, withCtx as x, createTextVNode as v, toDisplayString as w, unref as g } from "vue";
3
- import { e as b, a as k } from "./menu-Ddxel9ck.js";
3
+ import { e as b, a as k } from "./menu-CC5544p-.js";
4
4
  import "pinia-plugin-persistedstate";
5
5
  import { useRoute as N, useRouter as S, onBeforeRouteLeave as h } from "vue-router";
6
6
  import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,4 +1,4 @@
1
- import { a6 as t } from "./menu-Ddxel9ck.js";
1
+ import { a7 as t } from "./menu-CC5544p-.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) => {
@@ -0,0 +1,9 @@
1
+ type IconMap = Record<string, string>;
2
+ export declare class IconRegistry {
3
+ private iconMap;
4
+ register(icons: IconMap): void;
5
+ get(name: string): string | undefined;
6
+ getAll(): IconMap;
7
+ }
8
+ export declare const iconRegistry: IconRegistry;
9
+ export {};
@@ -1,26 +1,26 @@
1
- import { defineComponent as k, mergeModels as R, useModel as F, reactive as T, ref as P, createElementBlock as h, openBlock as N, createVNode as t, unref as a, withCtx as u, createTextVNode as b, nextTick as j, computed as z, createElementVNode as p, isRef as v } from "vue";
2
- import { by as S, bz as W, u as B, aQ as M, v as $ } from "./menu-Ddxel9ck.js";
1
+ import { defineComponent as y, mergeModels as V, useModel as F, reactive as T, ref as P, createElementBlock as h, openBlock as N, createVNode as t, unref as a, withCtx as u, createTextVNode as k, nextTick as j, computed as z, createElementVNode as p, isRef as v } from "vue";
2
+ import { bz as S, bA as W, u as B, aR as M, v as $ } from "./menu-CC5544p-.js";
3
3
  import "pinia-plugin-persistedstate";
4
- import { useRouter as q, useRoute as D } from "vue-router";
5
- import { _ as I } from "./index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-Bmtn9Oo4.js";
6
- import { P as J } from "./index-B0i20hau.js";
7
- import { J as O, _ as Q, M as X } from "./index-DltN2SCZ.js";
8
- import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- var G = "Expected a function";
10
- function H(n, l, s) {
4
+ import { useRouter as q, useRoute as A } from "vue-router";
5
+ import { _ as D } from "./index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-B3Eieo0k.js";
6
+ import { P as I } from "./index-CfasTv4x.js";
7
+ import { J, _ as O, M as X } from "./index-De_ME_Ws.js";
8
+ import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ var H = "Expected a function";
10
+ function K(n, l, s) {
11
11
  if (typeof n != "function")
12
- throw new TypeError(G);
12
+ throw new TypeError(H);
13
13
  return setTimeout(function() {
14
14
  n.apply(void 0, s);
15
15
  }, l);
16
16
  }
17
- var K = S(function(n, l, s) {
18
- return H(n, W(l) || 0, s);
17
+ var L = S(function(n, l, s) {
18
+ return K(n, W(l) || 0, s);
19
19
  });
20
- const L = /* @__PURE__ */ k({
20
+ const Q = /* @__PURE__ */ y({
21
21
  name: "ChangePasswordForm",
22
22
  __name: "index",
23
- props: /* @__PURE__ */ R({
23
+ props: /* @__PURE__ */ V({
24
24
  token: {}
25
25
  }, {
26
26
  validate: { type: Boolean, default: !1 },
@@ -54,14 +54,14 @@ const L = /* @__PURE__ */ k({
54
54
  newPassword: [{ validator: E }],
55
55
  repeatNewPassword: [{ validator: i }]
56
56
  };
57
- async function U() {
57
+ async function R() {
58
58
  var w;
59
59
  try {
60
60
  await ((w = m.value) == null ? void 0 : w.validate()), await r.changeUserPassword({
61
61
  oldPassword: o.password,
62
62
  newPassword: o.newPassword,
63
63
  token: s.token
64
- }), $.success("密码修改成功"), K(() => {
64
+ }), $.success("密码修改成功"), L(() => {
65
65
  x();
66
66
  }, 800);
67
67
  } catch {
@@ -73,9 +73,9 @@ const L = /* @__PURE__ */ k({
73
73
  return l({
74
74
  formState: o
75
75
  }), (w, e) => {
76
- const _ = X, f = Q, y = M, V = O;
76
+ const _ = X, f = O, b = M, U = J;
77
77
  return N(), h("div", null, [
78
- t(V, {
78
+ t(U, {
79
79
  ref_key: "changePasswordForm",
80
80
  ref: m,
81
81
  model: a(o),
@@ -123,27 +123,29 @@ const L = /* @__PURE__ */ k({
123
123
  }),
124
124
  t(f, null, {
125
125
  default: u(() => [
126
- t(y, {
126
+ t(b, {
127
127
  type: "primary",
128
128
  block: "",
129
129
  "h-48px": "",
130
130
  "mb-10px": "",
131
- onClick: U
131
+ onClick: R
132
132
  }, {
133
133
  default: u(() => e[3] || (e[3] = [
134
- b(" 修改密码 ")
134
+ k(" 修改密码 ")
135
135
  ])),
136
- _: 1
136
+ _: 1,
137
+ __: [3]
137
138
  }),
138
- t(y, {
139
+ t(b, {
139
140
  block: "",
140
141
  "h-48px": "",
141
142
  onClick: x
142
143
  }, {
143
144
  default: u(() => e[4] || (e[4] = [
144
- b(" 返回 ")
145
+ k(" 返回 ")
145
146
  ])),
146
- _: 1
147
+ _: 1,
148
+ __: [4]
147
149
  })
148
150
  ]),
149
151
  _: 1
@@ -175,7 +177,7 @@ const L = /* @__PURE__ */ k({
175
177
  flex: "~ center",
176
178
  rounded: "50%",
177
179
  "mb-15px": ""
178
- }, se = /* @__PURE__ */ k({
180
+ }, se = /* @__PURE__ */ y({
179
181
  name: "ChangePassword",
180
182
  __name: "index",
181
183
  setup(n) {
@@ -186,12 +188,12 @@ const L = /* @__PURE__ */ k({
186
188
  },
187
189
  set() {
188
190
  }
189
- }), o = D().params.changePassWordToken, d = P(!1);
191
+ }), o = A().params.changePassWordToken, d = P(!1);
190
192
  return (m, r) => (N(), h("div", Y, [
191
193
  p("main", Z, [
192
194
  p("div", ee, [
193
195
  p("div", oe, [
194
- t(a(J), {
196
+ t(a(I), {
195
197
  modelValue: a(s),
196
198
  "onUpdate:modelValue": r[0] || (r[0] = (i) => v(s) ? s.value = i : null),
197
199
  validate: a(d),
@@ -201,7 +203,7 @@ const L = /* @__PURE__ */ k({
201
203
  p("div", te, [
202
204
  p("div", ae, [
203
205
  p("div", re, [
204
- t(a(I), {
206
+ t(a(D), {
205
207
  name: "mima",
206
208
  color: "transparent",
207
209
  size: 88
@@ -212,7 +214,7 @@ const L = /* @__PURE__ */ k({
212
214
  font: "bold"
213
215
  }, " 更改密码 ", -1))
214
216
  ]),
215
- t(L, {
217
+ t(Q, {
216
218
  ref_key: "ChangePassWordForm",
217
219
  ref: l,
218
220
  validate: a(d),
@@ -224,7 +226,7 @@ const L = /* @__PURE__ */ k({
224
226
  ])
225
227
  ]));
226
228
  }
227
- }), ce = /* @__PURE__ */ A(se, [["__scopeId", "data-v-023a7e03"]]);
229
+ }), ce = /* @__PURE__ */ G(se, [["__scopeId", "data-v-023a7e03"]]);
228
230
  export {
229
231
  ce as default
230
232
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as w, toRaw as z, computed as B, ref as N, createElementBlock as m, openBlock as n, createElementVNode as e, Fragment as O, renderList as V, unref as r, normalizeClass as E, createVNode as l, createBlock as x, createCommentVNode as v, toDisplayString as L, withCtx as c, createTextVNode as u } from "vue";
2
- import { u as S, aQ as T, v as f } from "./menu-Ddxel9ck.js";
1
+ import { defineComponent as w, toRaw as z, computed as B, ref as N, createElementBlock as _, openBlock as n, createElementVNode as e, Fragment as O, renderList as V, unref as r, normalizeClass as E, createVNode as l, createBlock as x, createCommentVNode as v, toDisplayString as L, withCtx as c, createTextVNode as u } from "vue";
2
+ import { u as R, aR as S, v as m } from "./menu-CC5544p-.js";
3
3
  import "pinia-plugin-persistedstate";
4
- import { useRouter as j } from "vue-router";
5
- import { _ as k } from "./index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-Bmtn9Oo4.js";
6
- import { T as A } from "./index-Bz9lh14R.js";
7
- import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import { useRouter as T } from "vue-router";
5
+ import { _ as k } from "./index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-B3Eieo0k.js";
6
+ import { T as j } from "./index-Ckgil96Y.js";
7
+ import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const $ = { class: "change-org" }, D = {
9
9
  "w-full": "",
10
10
  "h-full": "",
@@ -13,23 +13,23 @@ const $ = { class: "change-org" }, D = {
13
13
  }, F = {
14
14
  "w-620px": "",
15
15
  "pt-20vh": ""
16
- }, Q = ["onClick"], U = {
16
+ }, U = ["onClick"], q = {
17
17
  flex: "~",
18
18
  "h-full": ""
19
- }, q = {
19
+ }, G = {
20
20
  flex: "~ col",
21
21
  "h-full": "",
22
22
  "justify-center": "",
23
23
  ml: "18px"
24
- }, G = {
24
+ }, H = {
25
25
  text: "20px black dark:[#86909C]",
26
26
  flex: "~",
27
27
  "items-center": ""
28
- }, H = { "mr-10px": "" }, J = /* @__PURE__ */ w({
28
+ }, J = { "mr-10px": "" }, K = /* @__PURE__ */ w({
29
29
  name: "ChangeOrganization",
30
30
  __name: "index",
31
- setup(K) {
32
- const s = S(), h = j(), b = z(s.user.orgList), p = B(() => b.map((o) => ({
31
+ setup(M) {
32
+ const s = R(), h = T(), b = z(s.user.orgList), f = B(() => b.map((o) => ({
33
33
  orgId: o.orgId,
34
34
  label: o.orgName,
35
35
  ...o
@@ -41,12 +41,12 @@ const $ = { class: "change-org" }, D = {
41
41
  h.go(-1);
42
42
  }
43
43
  async function I() {
44
- const t = p.value[a.value], o = t == null ? void 0 : t.orgId;
45
- o ? o === s.user.orgId ? f.error("请避免切换到当前已选组织") : (await s.changeOrg(o), f.success("组织切换成功")) : f.error("请选择要切换的组织");
44
+ const t = f.value[a.value], o = t == null ? void 0 : t.orgId;
45
+ o ? o === s.user.orgId ? m.error("请避免切换到当前已选组织") : (await s.changeOrg(o), m.success("组织切换成功")) : m.error("请选择要切换的组织");
46
46
  }
47
47
  return (t, o) => {
48
- const _ = A, g = T;
49
- return n(), m("div", $, [
48
+ const p = j, g = S;
49
+ return n(), _("div", $, [
50
50
  e("div", D, [
51
51
  e("div", F, [
52
52
  o[4] || (o[4] = e("div", {
@@ -56,38 +56,40 @@ const $ = { class: "change-org" }, D = {
56
56
  flex: "~",
57
57
  items: "center"
58
58
  }, " 请选择组织 ", -1)),
59
- (n(!0), m(O, null, V(r(p), (d, i) => (n(), m("div", {
59
+ (n(!0), _(O, null, V(r(f), (d, i) => (n(), _("div", {
60
60
  key: i,
61
- onClick: (M) => C(i)
61
+ onClick: (P) => C(i)
62
62
  }, [
63
63
  e("div", {
64
64
  class: E(["org-item", { active: i === r(a) }])
65
65
  }, [
66
- e("div", U, [
66
+ e("div", q, [
67
67
  l(r(k), {
68
68
  name: "change-org",
69
69
  size: "48px"
70
70
  }),
71
- e("div", q, [
72
- e("div", G, [
73
- e("span", H, L(d.label), 1),
74
- r(s).user.orgId === d.orgId ? (n(), x(_, {
71
+ e("div", G, [
72
+ e("div", H, [
73
+ e("span", J, L(d.label), 1),
74
+ r(s).user.orgId === d.orgId ? (n(), x(p, {
75
75
  key: 0,
76
76
  color: "blue"
77
77
  }, {
78
78
  default: c(() => o[0] || (o[0] = [
79
79
  u(" 当前使用组织 ")
80
80
  ])),
81
- _: 1
81
+ _: 1,
82
+ __: [0]
82
83
  })) : v("", !0),
83
- d.main ? (n(), x(_, {
84
+ d.main ? (n(), x(p, {
84
85
  key: 1,
85
86
  color: "red"
86
87
  }, {
87
88
  default: c(() => o[1] || (o[1] = [
88
89
  u(" 主组织 ")
89
90
  ])),
90
- _: 1
91
+ _: 1,
92
+ __: [1]
91
93
  })) : v("", !0)
92
94
  ])
93
95
  ])
@@ -101,7 +103,7 @@ const $ = { class: "change-org" }, D = {
101
103
  }, null, 8, ["color"])
102
104
  ])
103
105
  ], 2)
104
- ], 8, Q))), 128)),
106
+ ], 8, U))), 128)),
105
107
  e("div", null, [
106
108
  l(g, {
107
109
  type: "primary",
@@ -113,7 +115,8 @@ const $ = { class: "change-org" }, D = {
113
115
  default: c(() => o[2] || (o[2] = [
114
116
  u(" 确定 ")
115
117
  ])),
116
- _: 1
118
+ _: 1,
119
+ __: [2]
117
120
  }),
118
121
  l(g, {
119
122
  block: "",
@@ -123,7 +126,8 @@ const $ = { class: "change-org" }, D = {
123
126
  default: c(() => o[3] || (o[3] = [
124
127
  u(" 返回 ")
125
128
  ])),
126
- _: 1
129
+ _: 1,
130
+ __: [3]
127
131
  })
128
132
  ])
129
133
  ])
@@ -131,7 +135,7 @@ const $ = { class: "change-org" }, D = {
131
135
  ]);
132
136
  };
133
137
  }
134
- }), to = /* @__PURE__ */ R(J, [["__scopeId", "data-v-9b12754a"]]);
138
+ }), to = /* @__PURE__ */ A(K, [["__scopeId", "data-v-9b12754a"]]);
135
139
  export {
136
140
  to as default
137
141
  };