@ditari/bsui 1.1.2 → 1.1.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.
Files changed (72) hide show
  1. package/dist/cjs/components/dic/DicReplace.cjs.js +1 -1
  2. package/dist/cjs/components/grid/Grid.cjs.js +1 -1
  3. package/dist/cjs/components/layout/Breadcrumb.vue.cjs.js +1 -1
  4. package/dist/cjs/components/layout/FuckMain.vue.cjs.js +1 -1
  5. package/dist/cjs/components/layout/List.vue.cjs.js +1 -1
  6. package/dist/cjs/components/layout/Main.vue.cjs.js +1 -1
  7. package/dist/cjs/components/layout/NavTabs.vue.cjs.js +1 -1
  8. package/dist/cjs/components/layout/Show.vue.cjs.js +1 -1
  9. package/dist/cjs/components/menu/Menu.cjs.js +1 -1
  10. package/dist/cjs/components/select/Select.vue.cjs.js +1 -1
  11. package/dist/cjs/hooks/route/index.cjs.js +1 -1
  12. package/dist/cjs/store/index.cjs.js +1 -1
  13. package/dist/cjs/store/index.d.ts +7 -7
  14. package/dist/cjs/store/modules/Breadcrumb.cjs.js +1 -1
  15. package/dist/cjs/store/modules/Breadcrumb.d.ts +2 -1
  16. package/dist/cjs/store/modules/DataDictionary.cjs.js +1 -1
  17. package/dist/cjs/store/modules/DataDictionary.d.ts +2 -2
  18. package/dist/cjs/store/modules/KeepAlive.cjs.js +1 -1
  19. package/dist/cjs/store/modules/KeepAlive.d.ts +2 -1
  20. package/dist/cjs/store/modules/Menu.cjs.js +1 -1
  21. package/dist/cjs/store/modules/Menu.d.ts +2 -1
  22. package/dist/cjs/store/modules/NavTab.cjs.js +1 -1
  23. package/dist/cjs/store/modules/NavTab.d.ts +4 -3
  24. package/dist/cjs/store/modules/Settings.cjs.js +1 -1
  25. package/dist/cjs/store/modules/Settings.d.ts +2 -1
  26. package/dist/cjs/store/modules/User.cjs.js +1 -1
  27. package/dist/cjs/store/modules/User.d.ts +2 -1
  28. package/dist/esm/components/dic/DicReplace.esm.js +15 -9
  29. package/dist/esm/components/grid/Grid.esm.js +1 -1
  30. package/dist/esm/components/layout/Breadcrumb.vue.esm.js +3 -3
  31. package/dist/esm/components/layout/FuckMain.vue.esm.js +2 -2
  32. package/dist/esm/components/layout/List.vue.esm.js +27 -21
  33. package/dist/esm/components/layout/Main.vue.esm.js +2 -2
  34. package/dist/esm/components/layout/NavTabs.vue.esm.js +18 -14
  35. package/dist/esm/components/layout/Show.vue.esm.js +2 -2
  36. package/dist/esm/components/menu/Menu.esm.js +2 -2
  37. package/dist/esm/components/select/Select.vue.esm.js +28 -22
  38. package/dist/esm/hooks/route/index.esm.js +27 -21
  39. package/dist/esm/store/index.d.ts +7 -7
  40. package/dist/esm/store/index.esm.js +14 -14
  41. package/dist/esm/store/modules/Breadcrumb.d.ts +2 -1
  42. package/dist/esm/store/modules/Breadcrumb.esm.js +2 -2
  43. package/dist/esm/store/modules/DataDictionary.d.ts +2 -2
  44. package/dist/esm/store/modules/DataDictionary.esm.js +1 -1
  45. package/dist/esm/store/modules/KeepAlive.d.ts +2 -1
  46. package/dist/esm/store/modules/KeepAlive.esm.js +9 -9
  47. package/dist/esm/store/modules/Menu.d.ts +2 -1
  48. package/dist/esm/store/modules/Menu.esm.js +2 -2
  49. package/dist/esm/store/modules/NavTab.d.ts +4 -3
  50. package/dist/esm/store/modules/NavTab.esm.js +2 -2
  51. package/dist/esm/store/modules/Settings.d.ts +2 -1
  52. package/dist/esm/store/modules/Settings.esm.js +6 -6
  53. package/dist/esm/store/modules/User.d.ts +2 -1
  54. package/dist/esm/store/modules/User.esm.js +1 -1
  55. package/package.json +1 -1
  56. package/src/components/dic/DicReplace.tsx +1 -1
  57. package/src/components/layout/Breadcrumb.vue +5 -7
  58. package/src/components/layout/List.vue +1 -1
  59. package/src/components/layout/NavTabs.vue +1 -3
  60. package/src/components/layout/Show.vue +2 -2
  61. package/src/components/menu/Menu.tsx +2 -2
  62. package/src/components/select/Select.vue +1 -1
  63. package/src/hooks/route/index.ts +1 -1
  64. package/src/store/index.ts +7 -7
  65. package/src/store/modules/Breadcrumb.ts +2 -2
  66. package/src/store/modules/DataDictionary.ts +1 -2
  67. package/src/store/modules/KeepAlive.ts +1 -1
  68. package/src/store/modules/Menu.ts +1 -1
  69. package/src/store/modules/NavTab.ts +1 -1
  70. package/src/store/modules/Settings.ts +1 -1
  71. package/src/store/modules/User.ts +1 -1
  72. package/src/components/layout/Header.vue +0 -0
@@ -1,22 +1,26 @@
1
- import { defineComponent as P, computed as x, ref as w, watchEffect as A, watch as B, resolveComponent as d, openBlock as r, createElementBlock as p, normalizeClass as h, createVNode as _, withCtx as b, Fragment as E, renderList as R, unref as C, createBlock as V, createElementVNode as k, toDisplayString as q, createCommentVNode as D } from "vue";
1
+ import { defineComponent as P, computed as x, ref as w, watchEffect as A, watch as B, resolveComponent as d, openBlock as l, createElementBlock as p, normalizeClass as h, createVNode as _, withCtx as b, Fragment as E, renderList as R, unref as C, createBlock as V, createElementVNode as k, toDisplayString as q, createCommentVNode as D } from "vue";
2
2
  import { useRoute as L, useRouter as M } from "vue-router";
3
3
  import { CloseOutlined as O } from "@ant-design/icons-vue";
4
4
  import { storeToRefs as z } from "pinia";
5
- import { useNavTabsStore as F } from "../../store/modules/NavTab.esm.js";
6
- import { useKeepAliveStore as U } from "../../store/modules/KeepAlive.esm.js";
7
- import { useMenuStore as $ } from "../../store/modules/Menu.esm.js";
5
+ import "../../store/modules/Breadcrumb.esm.js";
6
+ import "../../store/modules/DataDictionary.esm.js";
7
+ import F from "../../store/modules/KeepAlive.esm.js";
8
+ import U from "../../store/modules/Menu.esm.js";
9
+ import $ from "../../store/modules/NavTab.esm.js";
10
+ import "../../store/modules/Settings.esm.js";
11
+ import "../../store/modules/User.esm.js";
8
12
  import { prefixName as j } from "../theme/index.esm.js";
9
13
  const G = /* @__PURE__ */ k("div", { class: "tab-dividers" }, null, -1), H = {
10
14
  key: 0,
11
15
  class: "tab-close"
12
16
  }, I = {
13
17
  name: "DNavTabs"
14
- }, oe = /* @__PURE__ */ P({
18
+ }, le = /* @__PURE__ */ P({
15
19
  ...I,
16
20
  setup(J) {
17
- const n = L(), m = M(), u = F(), v = U(), y = $(), N = `${j}-nav`, o = x(() => u.getList), { selectedMenuKeys: c } = z(y), l = w("");
21
+ const n = L(), m = M(), u = $(), v = F(), y = U(), N = `${j}-nav`, o = x(() => u.getList), { selectedMenuKeys: c } = z(y), r = w("");
18
22
  A(() => {
19
- l.value = c.value.length > 0 ? c.value[0] : "";
23
+ r.value = c.value.length > 0 ? c.value[0] : "";
20
24
  }), f(), B(
21
25
  () => n.path,
22
26
  () => {
@@ -45,25 +49,25 @@ const G = /* @__PURE__ */ k("div", { class: "tab-dividers" }, null, -1), H = {
45
49
  };
46
50
  return (t, e) => {
47
51
  const s = d("a-tab-pane"), i = d("a-tabs");
48
- return r(), p("div", {
52
+ return l(), p("div", {
49
53
  class: h(N)
50
54
  }, [
51
55
  _(i, {
52
- activeKey: l.value,
53
- "onUpdate:activeKey": e[0] || (e[0] = (a) => l.value = a),
56
+ activeKey: r.value,
57
+ "onUpdate:activeKey": e[0] || (e[0] = (a) => r.value = a),
54
58
  type: "card",
55
59
  onTabClick: S
56
60
  }, {
57
61
  default: b(() => [
58
- (r(!0), p(E, null, R(C(o), (a) => (r(), V(s, {
62
+ (l(!0), p(E, null, R(C(o), (a) => (l(), V(s, {
59
63
  key: a.path
60
64
  }, {
61
65
  tab: b(() => [
62
66
  G,
63
67
  k("div", {
64
- class: h(["tab-item", { active: l.value === a.path }])
68
+ class: h(["tab-item", { active: r.value === a.path }])
65
69
  }, q(a.meta.title), 3),
66
- K(a) ? (r(), p("div", H, [
70
+ K(a) ? (l(), p("div", H, [
67
71
  _(C(O), {
68
72
  onClick: (T) => g(T, a.fullPath)
69
73
  }, null, 8, ["onClick"])
@@ -79,5 +83,5 @@ const G = /* @__PURE__ */ k("div", { class: "tab-dividers" }, null, -1), H = {
79
83
  }
80
84
  });
81
85
  export {
82
- oe as default
86
+ le as default
83
87
  };
@@ -2,8 +2,8 @@ import { defineComponent as L, useSlots as N, inject as R, computed as V, watch
2
2
  import { useRouter as P, useRoute as W } from "vue-router";
3
3
  import { useWindowScroll as q, useScrollLock as A } from "@vueuse/core";
4
4
  import { LeftOutlined as F } from "@ant-design/icons-vue";
5
- import { useNavTabsStore as G } from "../../store/modules/NavTab.esm.js";
6
- import { useSettingsStore as H } from "../../store/modules/Settings.esm.js";
5
+ import G from "../../store/modules/NavTab.esm.js";
6
+ import H from "../../store/modules/Settings.esm.js";
7
7
  import { storeToRefs as J } from "pinia";
8
8
  const K = { class: "ditari-show-layout" }, M = {
9
9
  key: 0,
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as j, inject as k, watchEffect as I, createVNode as r, Fragment as u, resolveComponent as c, isVNode as N, withDirectives as R, vShow as D, h as H } from "vue";
2
2
  import { useRouter as O, useRoute as P } from "vue-router";
3
3
  import { storeToRefs as g } from "pinia";
4
- import { useMenuStore as T } from "../../store/modules/Menu.esm.js";
5
- import { useSettingsStore as V } from "../../store/modules/Settings.esm.js";
4
+ import T from "../../store/modules/Menu.esm.js";
5
+ import V from "../../store/modules/Settings.esm.js";
6
6
  function _(l) {
7
7
  return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !N(l);
8
8
  }
@@ -1,8 +1,14 @@
1
- import { defineComponent as _, ref as p, watch as O, resolveComponent as V, openBlock as y, createBlock as M, unref as s, isRef as A } from "vue";
2
- import { useDataDicStore as F } from "../../store/modules/DataDictionary.esm.js";
1
+ import { defineComponent as _, ref as f, watch as O, resolveComponent as V, openBlock as y, createBlock as M, unref as s, isRef as A } from "vue";
2
+ import "../../store/modules/Breadcrumb.esm.js";
3
+ import F from "../../store/modules/DataDictionary.esm.js";
4
+ import "../../store/modules/KeepAlive.esm.js";
5
+ import "../../store/modules/Menu.esm.js";
6
+ import "../../store/modules/NavTab.esm.js";
7
+ import "../../store/modules/Settings.esm.js";
8
+ import "../../store/modules/User.esm.js";
3
9
  const H = {
4
10
  name: "DSelect"
5
- }, U = /* @__PURE__ */ _({
11
+ }, E = /* @__PURE__ */ _({
6
12
  ...H,
7
13
  props: {
8
14
  value: { default: null },
@@ -13,51 +19,51 @@ const H = {
13
19
  },
14
20
  emits: ["update:value", "change", "select"],
15
21
  setup(r, { emit: c }) {
16
- const u = r, { getDicByKey: f } = F(), { modelValue: i, data: h, onSearch: I, onSelect: v, onChange: m } = C();
22
+ const u = r, { getDicByKey: p } = F(), { modelValue: i, data: h, onSearch: I, onSelect: m, onChange: v } = C();
17
23
  function C() {
18
- const l = [...f(u.name)], n = p(l), t = p(u.value);
24
+ const a = [...p(u.name)], n = f(a), l = f(u.value);
19
25
  O(
20
26
  () => u.value,
21
27
  (e) => {
22
- t.value = e, L(e);
28
+ l.value = e, L(e);
23
29
  }
24
30
  );
25
31
  const d = (e) => {
26
32
  g(e);
27
33
  };
28
34
  function g(e) {
29
- e = e ?? "", n.value = l.filter((a) => a.value.toLowerCase().indexOf(e.toLowerCase()) !== -1 || a.label.toLowerCase().includes(e.toLowerCase())).splice(0, 10), n.value.length === 0 && (n.value = [...l].splice(0, 10));
35
+ e = e ?? "", n.value = a.filter((t) => t.value.toLowerCase().indexOf(e.toLowerCase()) !== -1 || t.label.toLowerCase().includes(e.toLowerCase())).splice(0, 10), n.value.length === 0 && (n.value = [...a].splice(0, 10));
30
36
  }
31
37
  function L(e) {
32
38
  e = e || "";
33
- const a = l.findIndex((o) => o.value.toLowerCase().indexOf(e.toLowerCase()) !== -1 || o.label.toLowerCase().includes(e));
34
- a === -1 ? n.value = [...l].splice(0, 10) : n.value = b(l, a);
39
+ const t = a.findIndex((o) => o.value.toLowerCase().indexOf(e.toLowerCase()) !== -1 || o.label.toLowerCase().includes(e));
40
+ t === -1 ? n.value = [...a].splice(0, 10) : n.value = b(a, t);
35
41
  }
36
- function b(e, a) {
37
- const o = Math.max(0, a - 5), D = Math.min(e.length, a + 6);
42
+ function b(e, t) {
43
+ const o = Math.max(0, t - 5), D = Math.min(e.length, t + 6);
38
44
  return e.slice(o, D);
39
45
  }
40
46
  const w = (e) => {
41
47
  c("update:value", e), B();
42
48
  }, x = () => {
43
- c("update:value", t.value), c("change", t.value);
49
+ c("update:value", l.value), c("change", l.value);
44
50
  };
45
51
  function B() {
46
- const a = f(u.name).find((o) => o.value === t.value);
47
- c("select", a);
52
+ const t = p(u.name).find((o) => o.value === l.value);
53
+ c("select", t);
48
54
  }
49
55
  return {
50
56
  data: n,
51
- modelValue: t,
57
+ modelValue: l,
52
58
  onSearch: d,
53
59
  onSelect: w,
54
60
  onChange: x
55
61
  };
56
62
  }
57
- const S = (l, n) => n.label.includes(l);
58
- return (l, n) => {
59
- const t = V("a-select");
60
- return y(), M(t, {
63
+ const S = (a, n) => n.label.includes(a);
64
+ return (a, n) => {
65
+ const l = V("a-select");
66
+ return y(), M(l, {
61
67
  value: s(i),
62
68
  "onUpdate:value": n[0] || (n[0] = (d) => A(i) ? i.value = d : null),
63
69
  "allow-clear": "",
@@ -66,12 +72,12 @@ const H = {
66
72
  placeholder: r.placeholder,
67
73
  disabled: r.disabled,
68
74
  "filter-option": S,
69
- onSelect: s(v),
70
- onChange: s(m)
75
+ onSelect: s(m),
76
+ onChange: s(v)
71
77
  }, null, 8, ["value", "options", "placeholder", "disabled", "onSelect", "onChange"]);
72
78
  };
73
79
  }
74
80
  });
75
81
  export {
76
- U as default
82
+ E as default
77
83
  };
@@ -1,8 +1,14 @@
1
- import { ref as f } from "vue";
2
- import { createRouterMatcher as m } from "vue-router";
3
- import { useBreadcrumbStore as v } from "../../store/modules/Breadcrumb.esm.js";
4
- const w = () => {
5
- const { saveBreadcrumb: c } = v(), e = f(null);
1
+ import { ref as p } from "vue";
2
+ import { createRouterMatcher as d } from "vue-router";
3
+ import v from "../../store/modules/Breadcrumb.esm.js";
4
+ import "../../store/modules/DataDictionary.esm.js";
5
+ import "../../store/modules/KeepAlive.esm.js";
6
+ import "../../store/modules/Menu.esm.js";
7
+ import "../../store/modules/NavTab.esm.js";
8
+ import "../../store/modules/Settings.esm.js";
9
+ import "../../store/modules/User.esm.js";
10
+ const D = () => {
11
+ const { saveBreadcrumb: c } = v(), e = p(null);
6
12
  return {
7
13
  getRoutes: async (u) => {
8
14
  const o = [];
@@ -10,35 +16,35 @@ const w = () => {
10
16
  const a = await r();
11
17
  o.push(...a.default);
12
18
  }
13
- return e.value = m(o, {}), p(o);
19
+ return e.value = d(o, {}), m(o);
14
20
  },
15
21
  setMatched: (u, o) => {
16
22
  var a;
17
- const r = f([]);
23
+ const r = p([]);
18
24
  try {
19
- const n = ((a = e.value) == null ? void 0 : a.resolve(u, o).matched) ?? [];
20
- r.value = n.reduce((h, l) => {
21
- var i;
22
- return h.some(
23
- (d) => d.path === l.path
24
- ) || h.push({
25
- path: l.path,
26
- title: ((i = l.meta) == null ? void 0 : i.title) ?? "未设置标题"
27
- }), h;
25
+ const i = ((a = e.value) == null ? void 0 : a.resolve(u, o).matched) ?? [];
26
+ r.value = i.reduce((n, h) => {
27
+ var l;
28
+ return n.some(
29
+ (f) => f.path === h.path
30
+ ) || n.push({
31
+ path: h.path,
32
+ title: ((l = h.meta) == null ? void 0 : l.title) ?? "未设置标题"
33
+ }), n;
28
34
  }, []);
29
- } catch (n) {
30
- console.log(n), r.value = [];
35
+ } catch (i) {
36
+ console.log(i), r.value = [];
31
37
  }
32
38
  c(r.value);
33
39
  }
34
40
  };
35
41
  };
36
- function p(c, e = "") {
42
+ function m(c, e = "") {
37
43
  const s = [];
38
44
  for (const t of c)
39
- t.path === "" ? t.path = e : t.path.startsWith("/") || (t.path = `${e}/${t.path}`), t.children && (s.push(...p(t.children, t.path)), delete t.children), s.push(t);
45
+ t.path === "" ? t.path = e : t.path.startsWith("/") || (t.path = `${e}/${t.path}`), t.children && (s.push(...m(t.children, t.path)), delete t.children), s.push(t);
40
46
  return s;
41
47
  }
42
48
  export {
43
- w as useDitariRoute
49
+ D as useDitariRoute
44
50
  };
@@ -1,7 +1,7 @@
1
- export { useBreadcrumbStore } from "./modules/Breadcrumb";
2
- export { useDataDicStore } from "./modules/DataDictionary";
3
- export { useKeepAliveStore } from "./modules/KeepAlive";
4
- export { useMenuStore } from "./modules/Menu";
5
- export { useNavTabsStore } from "./modules/NavTab";
6
- export { useSettingsStore } from "./modules/Settings";
7
- export { useUserStore } from "./modules/User";
1
+ export { default as useBreadcrumbStore } from "./modules/Breadcrumb";
2
+ export { default as useDataDicStore } from "./modules/DataDictionary";
3
+ export { default as useKeepAliveStore } from "./modules/KeepAlive";
4
+ export { default as useMenuStore } from "./modules/Menu";
5
+ export { default as useNavTabsStore } from "./modules/NavTab";
6
+ export { default as useSettingsStore } from "./modules/Settings";
7
+ export { default as useUserStore } from "./modules/User";
@@ -1,16 +1,16 @@
1
- import { useBreadcrumbStore as o } from "./modules/Breadcrumb.esm.js";
2
- import { useDataDicStore as s } from "./modules/DataDictionary.esm.js";
3
- import { useKeepAliveStore as m } from "./modules/KeepAlive.esm.js";
4
- import { useMenuStore as S } from "./modules/Menu.esm.js";
5
- import { useNavTabsStore as x } from "./modules/NavTab.esm.js";
6
- import { useSettingsStore as i } from "./modules/Settings.esm.js";
7
- import { useUserStore as c } from "./modules/User.esm.js";
1
+ import { default as t } from "./modules/Breadcrumb.esm.js";
2
+ import { default as a } from "./modules/DataDictionary.esm.js";
3
+ import { default as u } from "./modules/KeepAlive.esm.js";
4
+ import { default as d } from "./modules/Menu.esm.js";
5
+ import { default as m } from "./modules/NavTab.esm.js";
6
+ import { default as S } from "./modules/Settings.esm.js";
7
+ import { default as i } from "./modules/User.esm.js";
8
8
  export {
9
- o as useBreadcrumbStore,
10
- s as useDataDicStore,
11
- m as useKeepAliveStore,
12
- S as useMenuStore,
13
- x as useNavTabsStore,
14
- i as useSettingsStore,
15
- c as useUserStore
9
+ t as useBreadcrumbStore,
10
+ a as useDataDicStore,
11
+ u as useKeepAliveStore,
12
+ d as useMenuStore,
13
+ m as useNavTabsStore,
14
+ S as useSettingsStore,
15
+ i as useUserStore
16
16
  };
@@ -1,10 +1,11 @@
1
1
  export interface State {
2
2
  breadcrumbs: [];
3
3
  }
4
- export declare const useBreadcrumbStore: import("pinia").StoreDefinition<string, State, {
4
+ declare const _default: import("pinia").StoreDefinition<string, State, {
5
5
  getBreadcrumb: (state: {
6
6
  breadcrumbs: [];
7
7
  } & import("pinia").PiniaCustomStateProperties<State>) => [];
8
8
  }, {
9
9
  saveBreadcrumb(data: any): void;
10
10
  }>;
11
+ export default _default;
@@ -1,6 +1,6 @@
1
1
  import { defineStore as e } from "pinia";
2
2
  import { BREADCRUMB_ID as t } from "../types.esm.js";
3
- const a = e(t, {
3
+ const m = e(t, {
4
4
  state: () => ({
5
5
  breadcrumbs: []
6
6
  }),
@@ -15,5 +15,5 @@ const a = e(t, {
15
15
  persist: !0
16
16
  });
17
17
  export {
18
- a as useBreadcrumbStore
18
+ m as default
19
19
  };
@@ -2,7 +2,7 @@ interface State {
2
2
  someState: string;
3
3
  list: any;
4
4
  }
5
- declare const useDataDicStore: import("pinia").StoreDefinition<string, State, {
5
+ declare const _default: import("pinia").StoreDefinition<string, State, {
6
6
  /**
7
7
  * 根据key获取字典列表
8
8
  * @param state
@@ -30,4 +30,4 @@ declare const useDataDicStore: import("pinia").StoreDefinition<string, State, {
30
30
  */
31
31
  save(data: any): void;
32
32
  }>;
33
- export { useDataDicStore };
33
+ export default _default;
@@ -30,5 +30,5 @@ const u = a(l, {
30
30
  persist: !0
31
31
  });
32
32
  export {
33
- u as useDataDicStore
33
+ u as default
34
34
  };
@@ -1,5 +1,5 @@
1
1
  import { RouteLocationNormalized } from "vue-router";
2
- export declare const useKeepAliveStore: import("pinia").StoreDefinition<string, {
2
+ declare const _default: import("pinia").StoreDefinition<string, {
3
3
  list: string[];
4
4
  }, {
5
5
  get: (state: {
@@ -19,3 +19,4 @@ export declare const useKeepAliveStore: import("pinia").StoreDefinition<string,
19
19
  */
20
20
  save(route: RouteLocationNormalized): void;
21
21
  }>;
22
+ export default _default;
@@ -1,20 +1,20 @@
1
1
  import { defineStore as i } from "pinia";
2
2
  import { KEEP_ALIVE_ID as r } from "../types.esm.js";
3
- const f = i(r, {
3
+ const a = i(r, {
4
4
  state: () => ({
5
5
  list: []
6
6
  }),
7
7
  getters: {
8
- get: (e) => e.list
8
+ get: (t) => t.list
9
9
  },
10
10
  actions: {
11
11
  /**
12
12
  * 删除已经缓存的组件
13
13
  * @param name 组件名称(必须唯一)
14
14
  */
15
- deleteKeepAlive(e) {
15
+ deleteKeepAlive(t) {
16
16
  this.list.splice(
17
- this.list.findIndex((t) => t === e),
17
+ this.list.findIndex((e) => e === t),
18
18
  1
19
19
  );
20
20
  },
@@ -22,15 +22,15 @@ const f = i(r, {
22
22
  * 保存要缓存的组件名称
23
23
  * @param route
24
24
  */
25
- save(e) {
26
- const t = e.name;
27
- if (!t)
25
+ save(t) {
26
+ const e = t.name;
27
+ if (!e)
28
28
  return;
29
- this.list.some((s) => s === t) || this.list.push(t);
29
+ this.list.some((s) => s === e) || this.list.push(e);
30
30
  }
31
31
  },
32
32
  persist: !0
33
33
  });
34
34
  export {
35
- f as useKeepAliveStore
35
+ a as default
36
36
  };
@@ -1,4 +1,4 @@
1
- export declare const useMenuStore: import("pinia").StoreDefinition<string, {
1
+ declare const _default: import("pinia").StoreDefinition<string, {
2
2
  list: never[];
3
3
  openMenusKeys: any;
4
4
  selectedMenuKeys: any;
@@ -15,3 +15,4 @@ export declare const useMenuStore: import("pinia").StoreDefinition<string, {
15
15
  }, {
16
16
  save(data: any): void;
17
17
  }>;
18
+ export default _default;
@@ -1,6 +1,6 @@
1
1
  import { defineStore as t } from "pinia";
2
2
  import { MENU_ID as s } from "../types.esm.js";
3
- const o = t(s, {
3
+ const i = t(s, {
4
4
  state: () => ({
5
5
  // 菜单数据
6
6
  list: [],
@@ -20,5 +20,5 @@ const o = t(s, {
20
20
  persist: !0
21
21
  });
22
22
  export {
23
- o as useMenuStore
23
+ i as default
24
24
  };
@@ -7,7 +7,7 @@ export interface INavTab {
7
7
  meta: RouteMeta | any;
8
8
  name: string;
9
9
  }
10
- export declare const useNavTabsStore: import("pinia").StoreDefinition<string, {
10
+ declare const _default: import("pinia").StoreDefinition<string, {
11
11
  list: INavTab[];
12
12
  activeKey: string;
13
13
  }, {
@@ -17,7 +17,7 @@ export declare const useNavTabsStore: import("pinia").StoreDefinition<string, {
17
17
  fullPath: string;
18
18
  query: LocationQuery;
19
19
  params: RouteParams;
20
- meta: RouteMeta | any;
20
+ meta: any;
21
21
  name: string;
22
22
  }[];
23
23
  activeKey: string;
@@ -31,7 +31,7 @@ export declare const useNavTabsStore: import("pinia").StoreDefinition<string, {
31
31
  fullPath: string;
32
32
  query: LocationQuery;
33
33
  params: RouteParams;
34
- meta: RouteMeta | any;
34
+ meta: any;
35
35
  name: string;
36
36
  }[];
37
37
  activeKey: string;
@@ -62,3 +62,4 @@ export declare const useNavTabsStore: import("pinia").StoreDefinition<string, {
62
62
  */
63
63
  setNavTitle(title: string, path: string): void;
64
64
  }>;
65
+ export default _default;
@@ -1,6 +1,6 @@
1
1
  import { defineStore as l } from "pinia";
2
2
  import { NAV_TAB_ID as h } from "../types.esm.js";
3
- const n = l(h, {
3
+ const r = l(h, {
4
4
  state: () => ({
5
5
  // 多标签列表
6
6
  list: [],
@@ -69,5 +69,5 @@ const n = l(h, {
69
69
  persist: !0
70
70
  });
71
71
  export {
72
- n as useNavTabsStore
72
+ r as default
73
73
  };
@@ -5,7 +5,7 @@ export interface State {
5
5
  gridConfig: any;
6
6
  gridValue: any;
7
7
  }
8
- export declare const useSettingsStore: import("pinia").StoreDefinition<string, State, {
8
+ declare const _default: import("pinia").StoreDefinition<string, State, {
9
9
  getRefresh: (state: {
10
10
  refresh: boolean;
11
11
  collapsed: boolean;
@@ -41,3 +41,4 @@ export declare const useSettingsStore: import("pinia").StoreDefinition<string, S
41
41
  */
42
42
  gridMatching(): void;
43
43
  }>;
44
+ export default _default;
@@ -1,6 +1,6 @@
1
- import { defineStore as r } from "pinia";
2
- import { useMediaQuery as s } from "@vueuse/core";
3
- import { SETTINGS_ID as a } from "../types.esm.js";
1
+ import { defineStore as a } from "pinia";
2
+ import { useMediaQuery as r } from "@vueuse/core";
3
+ import { SETTINGS_ID as s } from "../types.esm.js";
4
4
  const d = [
5
5
  {
6
6
  key: "700",
@@ -58,7 +58,7 @@ const d = [
58
58
  col: 5,
59
59
  description: " 显示5列每列占20%宽"
60
60
  }
61
- ], c = r(a, {
61
+ ], c = a(s, {
62
62
  state: () => ({
63
63
  // 刷新状态
64
64
  refresh: !1,
@@ -93,7 +93,7 @@ const d = [
93
93
  */
94
94
  gridMatching() {
95
95
  const e = this.mediaRuleMap.filter(
96
- (i) => s(i.value).value
96
+ (i) => r(i.value).value
97
97
  )[0], t = this.gridConfig.filter(
98
98
  (i) => i.key === e.key
99
99
  )[0];
@@ -103,5 +103,5 @@ const d = [
103
103
  persist: !0
104
104
  });
105
105
  export {
106
- c as useSettingsStore
106
+ c as default
107
107
  };
@@ -2,7 +2,7 @@ export interface State {
2
2
  token: string | undefined;
3
3
  userInfo: any;
4
4
  }
5
- export declare const useUserStore: import("pinia").StoreDefinition<string, State, {
5
+ declare const _default: import("pinia").StoreDefinition<string, State, {
6
6
  getToken: (state: {
7
7
  token: string | undefined;
8
8
  userInfo: any;
@@ -19,3 +19,4 @@ export declare const useUserStore: import("pinia").StoreDefinition<string, State
19
19
  saveToken(token: string): void;
20
20
  saveUserInfo(data: any): void;
21
21
  }>;
22
+ export default _default;
@@ -24,5 +24,5 @@ const n = o(t, {
24
24
  persist: !0
25
25
  });
26
26
  export {
27
- n as useUserStore
27
+ n as default
28
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditari/bsui",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "files": [
5
5
  "dist/**",
6
6
  "src"
@@ -7,7 +7,7 @@ import { defineComponent, ref, watchEffect } from "vue";
7
7
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
8
8
  // @ts-ignore
9
9
  // import DicWorker from "./replace.worker?worker&inline";
10
- import { useDataDicStore } from "../../store/modules/DataDictionary";
10
+ import { useDataDicStore } from "../../store";
11
11
 
12
12
  export default defineComponent({
13
13
  name: "DicReplace",
@@ -4,7 +4,7 @@
4
4
  * @author 余老
5
5
  */
6
6
  import { computed } from "vue";
7
- import { useBreadcrumbStore } from "../../store/modules/Breadcrumb";
7
+ import useBreadcrumbStore from "../../store/modules/Breadcrumb";
8
8
  import { prefixName } from "../theme";
9
9
 
10
10
  const store = useBreadcrumbStore();
@@ -22,18 +22,18 @@ export default {
22
22
  <div class="breadcrumb">
23
23
  <transition-group name="breadcrumb">
24
24
  <div
25
- class="breadcrumb-item"
26
25
  v-for="(item, index) in breadCrumbs"
27
26
  :key="item.path"
27
+ class="breadcrumb-item"
28
28
  >
29
29
  <router-link
30
+ v-if="index + 1 !== breadCrumbs.length"
30
31
  class="breadcrumb-link"
31
32
  :to="{ path: item.path }"
32
- v-if="index + 1 !== breadCrumbs.length"
33
33
  >
34
34
  {{ item.title }}
35
35
  </router-link>
36
- <span class="breadcrumb-link" v-else>
36
+ <span v-else class="breadcrumb-link">
37
37
  {{ item.title }}
38
38
  </span>
39
39
  </div>
@@ -41,6 +41,4 @@ export default {
41
41
  </div>
42
42
  </div>
43
43
  </template>
44
- <style lang="scss">
45
-
46
- </style>
44
+ <style lang="scss"></style>
@@ -10,7 +10,7 @@ import {
10
10
  inject
11
11
  } from "vue";
12
12
  import { useDebounceFn, useElementSize } from "@vueuse/core";
13
- import { useSettingsStore } from "../../store/modules/Settings";
13
+ import { useSettingsStore } from "../../store";
14
14
  import { storeToRefs } from "pinia";
15
15
  import { useRoute } from "vue-router";
16
16