@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.
- package/dist/cjs/components/dic/DicReplace.cjs.js +1 -1
- package/dist/cjs/components/grid/Grid.cjs.js +1 -1
- package/dist/cjs/components/layout/Breadcrumb.vue.cjs.js +1 -1
- package/dist/cjs/components/layout/FuckMain.vue.cjs.js +1 -1
- package/dist/cjs/components/layout/List.vue.cjs.js +1 -1
- package/dist/cjs/components/layout/Main.vue.cjs.js +1 -1
- package/dist/cjs/components/layout/NavTabs.vue.cjs.js +1 -1
- package/dist/cjs/components/layout/Show.vue.cjs.js +1 -1
- package/dist/cjs/components/menu/Menu.cjs.js +1 -1
- package/dist/cjs/components/select/Select.vue.cjs.js +1 -1
- package/dist/cjs/hooks/route/index.cjs.js +1 -1
- package/dist/cjs/store/index.cjs.js +1 -1
- package/dist/cjs/store/index.d.ts +7 -7
- package/dist/cjs/store/modules/Breadcrumb.cjs.js +1 -1
- package/dist/cjs/store/modules/Breadcrumb.d.ts +2 -1
- package/dist/cjs/store/modules/DataDictionary.cjs.js +1 -1
- package/dist/cjs/store/modules/DataDictionary.d.ts +2 -2
- package/dist/cjs/store/modules/KeepAlive.cjs.js +1 -1
- package/dist/cjs/store/modules/KeepAlive.d.ts +2 -1
- package/dist/cjs/store/modules/Menu.cjs.js +1 -1
- package/dist/cjs/store/modules/Menu.d.ts +2 -1
- package/dist/cjs/store/modules/NavTab.cjs.js +1 -1
- package/dist/cjs/store/modules/NavTab.d.ts +4 -3
- package/dist/cjs/store/modules/Settings.cjs.js +1 -1
- package/dist/cjs/store/modules/Settings.d.ts +2 -1
- package/dist/cjs/store/modules/User.cjs.js +1 -1
- package/dist/cjs/store/modules/User.d.ts +2 -1
- package/dist/esm/components/dic/DicReplace.esm.js +15 -9
- package/dist/esm/components/grid/Grid.esm.js +1 -1
- package/dist/esm/components/layout/Breadcrumb.vue.esm.js +3 -3
- package/dist/esm/components/layout/FuckMain.vue.esm.js +2 -2
- package/dist/esm/components/layout/List.vue.esm.js +27 -21
- package/dist/esm/components/layout/Main.vue.esm.js +2 -2
- package/dist/esm/components/layout/NavTabs.vue.esm.js +18 -14
- package/dist/esm/components/layout/Show.vue.esm.js +2 -2
- package/dist/esm/components/menu/Menu.esm.js +2 -2
- package/dist/esm/components/select/Select.vue.esm.js +28 -22
- package/dist/esm/hooks/route/index.esm.js +27 -21
- package/dist/esm/store/index.d.ts +7 -7
- package/dist/esm/store/index.esm.js +14 -14
- package/dist/esm/store/modules/Breadcrumb.d.ts +2 -1
- package/dist/esm/store/modules/Breadcrumb.esm.js +2 -2
- package/dist/esm/store/modules/DataDictionary.d.ts +2 -2
- package/dist/esm/store/modules/DataDictionary.esm.js +1 -1
- package/dist/esm/store/modules/KeepAlive.d.ts +2 -1
- package/dist/esm/store/modules/KeepAlive.esm.js +9 -9
- package/dist/esm/store/modules/Menu.d.ts +2 -1
- package/dist/esm/store/modules/Menu.esm.js +2 -2
- package/dist/esm/store/modules/NavTab.d.ts +4 -3
- package/dist/esm/store/modules/NavTab.esm.js +2 -2
- package/dist/esm/store/modules/Settings.d.ts +2 -1
- package/dist/esm/store/modules/Settings.esm.js +6 -6
- package/dist/esm/store/modules/User.d.ts +2 -1
- package/dist/esm/store/modules/User.esm.js +1 -1
- package/package.json +1 -1
- package/src/components/dic/DicReplace.tsx +1 -1
- package/src/components/layout/Breadcrumb.vue +5 -7
- package/src/components/layout/List.vue +1 -1
- package/src/components/layout/NavTabs.vue +1 -3
- package/src/components/layout/Show.vue +2 -2
- package/src/components/menu/Menu.tsx +2 -2
- package/src/components/select/Select.vue +1 -1
- package/src/hooks/route/index.ts +1 -1
- package/src/store/index.ts +7 -7
- package/src/store/modules/Breadcrumb.ts +2 -2
- package/src/store/modules/DataDictionary.ts +1 -2
- package/src/store/modules/KeepAlive.ts +1 -1
- package/src/store/modules/Menu.ts +1 -1
- package/src/store/modules/NavTab.ts +1 -1
- package/src/store/modules/Settings.ts +1 -1
- package/src/store/modules/User.ts +1 -1
- 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
|
|
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
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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
|
-
},
|
|
18
|
+
}, le = /* @__PURE__ */ P({
|
|
15
19
|
...I,
|
|
16
20
|
setup(J) {
|
|
17
|
-
const n = L(), m = M(), u =
|
|
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
|
-
|
|
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
|
|
52
|
+
return l(), p("div", {
|
|
49
53
|
class: h(N)
|
|
50
54
|
}, [
|
|
51
55
|
_(i, {
|
|
52
|
-
activeKey:
|
|
53
|
-
"onUpdate:activeKey": e[0] || (e[0] = (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
|
-
(
|
|
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:
|
|
68
|
+
class: h(["tab-item", { active: r.value === a.path }])
|
|
65
69
|
}, q(a.meta.title), 3),
|
|
66
|
-
K(a) ? (
|
|
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
|
-
|
|
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
|
|
6
|
-
import
|
|
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
|
|
5
|
-
import
|
|
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
|
|
2
|
-
import
|
|
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
|
-
},
|
|
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:
|
|
22
|
+
const u = r, { getDicByKey: p } = F(), { modelValue: i, data: h, onSearch: I, onSelect: m, onChange: v } = C();
|
|
17
23
|
function C() {
|
|
18
|
-
const
|
|
24
|
+
const a = [...p(u.name)], n = f(a), l = f(u.value);
|
|
19
25
|
O(
|
|
20
26
|
() => u.value,
|
|
21
27
|
(e) => {
|
|
22
|
-
|
|
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 =
|
|
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
|
|
34
|
-
|
|
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,
|
|
37
|
-
const o = Math.max(0,
|
|
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",
|
|
49
|
+
c("update:value", l.value), c("change", l.value);
|
|
44
50
|
};
|
|
45
51
|
function B() {
|
|
46
|
-
const
|
|
47
|
-
c("select",
|
|
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:
|
|
57
|
+
modelValue: l,
|
|
52
58
|
onSearch: d,
|
|
53
59
|
onSelect: w,
|
|
54
60
|
onChange: x
|
|
55
61
|
};
|
|
56
62
|
}
|
|
57
|
-
const S = (
|
|
58
|
-
return (
|
|
59
|
-
const
|
|
60
|
-
return y(), M(
|
|
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(
|
|
70
|
-
onChange: s(
|
|
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
|
-
|
|
82
|
+
E as default
|
|
77
83
|
};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { createRouterMatcher as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
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 =
|
|
19
|
+
return e.value = d(o, {}), m(o);
|
|
14
20
|
},
|
|
15
21
|
setMatched: (u, o) => {
|
|
16
22
|
var a;
|
|
17
|
-
const r =
|
|
23
|
+
const r = p([]);
|
|
18
24
|
try {
|
|
19
|
-
const
|
|
20
|
-
r.value =
|
|
21
|
-
var
|
|
22
|
-
return
|
|
23
|
-
(
|
|
24
|
-
) ||
|
|
25
|
-
path:
|
|
26
|
-
title: ((
|
|
27
|
-
}),
|
|
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 (
|
|
30
|
-
console.log(
|
|
35
|
+
} catch (i) {
|
|
36
|
+
console.log(i), r.value = [];
|
|
31
37
|
}
|
|
32
38
|
c(r.value);
|
|
33
39
|
}
|
|
34
40
|
};
|
|
35
41
|
};
|
|
36
|
-
function
|
|
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(...
|
|
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
|
-
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
33
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RouteLocationNormalized } from "vue-router";
|
|
2
|
-
|
|
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
|
|
3
|
+
const a = i(r, {
|
|
4
4
|
state: () => ({
|
|
5
5
|
list: []
|
|
6
6
|
}),
|
|
7
7
|
getters: {
|
|
8
|
-
get: (
|
|
8
|
+
get: (t) => t.list
|
|
9
9
|
},
|
|
10
10
|
actions: {
|
|
11
11
|
/**
|
|
12
12
|
* 删除已经缓存的组件
|
|
13
13
|
* @param name 组件名称(必须唯一)
|
|
14
14
|
*/
|
|
15
|
-
deleteKeepAlive(
|
|
15
|
+
deleteKeepAlive(t) {
|
|
16
16
|
this.list.splice(
|
|
17
|
-
this.list.findIndex((
|
|
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(
|
|
26
|
-
const
|
|
27
|
-
if (!
|
|
25
|
+
save(t) {
|
|
26
|
+
const e = t.name;
|
|
27
|
+
if (!e)
|
|
28
28
|
return;
|
|
29
|
-
this.list.some((s) => s ===
|
|
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
|
-
|
|
35
|
+
a as default
|
|
36
36
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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
|
|
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
|
-
|
|
72
|
+
r as default
|
|
73
73
|
};
|
|
@@ -5,7 +5,7 @@ export interface State {
|
|
|
5
5
|
gridConfig: any;
|
|
6
6
|
gridValue: any;
|
|
7
7
|
}
|
|
8
|
-
|
|
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
|
|
2
|
-
import { useMediaQuery as
|
|
3
|
-
import { SETTINGS_ID as
|
|
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 =
|
|
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) =>
|
|
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
|
|
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
|
-
|
|
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;
|
package/package.json
CHANGED
|
@@ -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
|
|
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
|
|
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"
|
|
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
|
|
13
|
+
import { useSettingsStore } from "../../store";
|
|
14
14
|
import { storeToRefs } from "pinia";
|
|
15
15
|
import { useRoute } from "vue-router";
|
|
16
16
|
|