@ditari/bsui 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/modules/Breadcrumb.cjs.js +1 -1
- package/dist/cjs/store/modules/DataDictionary.cjs.js +1 -1
- package/dist/cjs/store/modules/KeepAlive.cjs.js +1 -1
- package/dist/cjs/store/modules/Menu.cjs.js +1 -1
- package/dist/cjs/store/modules/NavTab.cjs.js +1 -1
- package/dist/cjs/store/modules/Settings.cjs.js +1 -1
- package/dist/cjs/store/modules/User.cjs.js +1 -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 +25 -25
- package/dist/esm/components/layout/FuckMain.vue.esm.js +48 -48
- package/dist/esm/components/layout/List.vue.esm.js +57 -49
- package/dist/esm/components/layout/Main.vue.esm.js +43 -43
- package/dist/esm/components/layout/NavTabs.vue.esm.js +30 -26
- package/dist/esm/components/layout/Show.vue.esm.js +22 -22
- package/dist/esm/components/menu/Menu.esm.js +2 -2
- package/dist/esm/components/select/Select.vue.esm.js +41 -35
- package/dist/esm/hooks/route/index.esm.js +27 -21
- package/dist/esm/store/index.esm.js +14 -14
- package/dist/esm/store/modules/Breadcrumb.esm.js +2 -2
- package/dist/esm/store/modules/DataDictionary.esm.js +1 -1
- package/dist/esm/store/modules/KeepAlive.esm.js +9 -9
- package/dist/esm/store/modules/Menu.esm.js +2 -2
- package/dist/esm/store/modules/NavTab.esm.js +2 -2
- package/dist/esm/store/modules/Settings.esm.js +6 -6
- 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 +9 -4
- 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/{dist/cjs → src/dist}/components/components.d.ts +11 -11
- package/{dist/esm → src/dist}/components/date/RangePicker.d.ts +30 -30
- package/{dist/esm → src/dist}/components/date/index.d.ts +53 -53
- package/{dist/esm → src/dist}/components/desensitize/Desensitize.d.ts +39 -39
- package/{dist/cjs → src/dist}/components/desensitize/index.d.ts +39 -39
- package/{dist/cjs → src/dist}/components/dic/DicReplace.d.ts +23 -23
- package/{dist/esm → src/dist}/components/dic/index.d.ts +23 -23
- package/src/dist/components/dic/replace.worker.d.ts +4 -0
- package/{dist/cjs → src/dist}/components/form/DQueryForm.d.ts +47 -47
- package/{dist/esm → src/dist}/components/form/index.d.ts +89 -89
- package/{dist/esm → src/dist}/components/grid/Grid.d.ts +32 -32
- package/{dist/esm → src/dist}/components/grid/GridItem.d.ts +2 -2
- package/{dist/cjs → src/dist}/components/grid/index.d.ts +32 -32
- package/{dist/esm → src/dist}/components/index.d.ts +15 -15
- package/{dist/cjs → src/dist}/components/json-scheme-render/JsonSchemeRender.d.ts +23 -23
- package/{dist/cjs → src/dist}/components/json-scheme-render/index.d.ts +47 -47
- package/src/dist/components/layout/Breadcrumb.vue.d.ts +2 -0
- package/src/dist/components/layout/FuckMain.vue.d.ts +23 -0
- package/src/dist/components/layout/List.vue.d.ts +18 -0
- package/src/dist/components/layout/Main.vue.d.ts +29 -0
- package/src/dist/components/layout/NavTabs.vue.d.ts +2 -0
- package/src/dist/components/layout/Show.vue.d.ts +35 -0
- package/src/dist/components/layout/index.d.ts +328 -0
- package/{dist/esm → src/dist}/components/menu/Menu.d.ts +2 -2
- package/{dist/cjs → src/dist}/components/modal/Modal.d.ts +43 -43
- package/{dist/esm → src/dist}/components/modal/index.d.ts +43 -43
- package/src/dist/components/select/Select.vue.d.ts +62 -0
- package/src/dist/components/select/dic.worker.d.ts +4 -0
- package/src/dist/components/select/index.d.ts +62 -0
- package/{dist/esm → src/dist}/components/table/Table.d.ts +80 -80
- package/{dist/cjs → src/dist}/components/table/index.d.ts +75 -75
- package/{dist/cjs → src/dist}/components/table/interface/table.d.ts +36 -36
- package/{dist/cjs → src/dist}/components/theme/index.d.ts +1 -1
- package/{dist/cjs → src/dist}/directive/trim.d.ts +5 -5
- package/{dist/cjs → src/dist}/hooks/http/index.d.ts +28 -28
- package/{dist/cjs → src/dist}/hooks/index.d.ts +2 -2
- package/{dist/esm → src/dist}/hooks/route/index.d.ts +8 -8
- package/src/dist/store/index.d.ts +7 -0
- package/{dist/esm → src/dist}/store/modules/Breadcrumb.d.ts +11 -10
- package/{dist/cjs → src/dist}/store/modules/DataDictionary.d.ts +33 -33
- package/{dist/esm → src/dist}/store/modules/KeepAlive.d.ts +22 -21
- package/{dist/cjs → src/dist}/store/modules/Menu.d.ts +18 -17
- package/{dist/cjs → src/dist}/store/modules/NavTab.d.ts +65 -64
- package/{dist/cjs → src/dist}/store/modules/Settings.d.ts +44 -43
- package/{dist/cjs → src/dist}/store/modules/User.d.ts +22 -21
- package/{dist/cjs → src/dist}/store/types.d.ts +7 -7
- package/{dist/cjs → src/dist}/utils/get.d.ts +1 -1
- package/{dist/cjs → src/dist}/utils/html.d.ts +1 -1
- package/{dist/cjs → src/dist}/utils/index.d.ts +3 -3
- package/{dist/cjs → src/dist}/utils/install.d.ts +4 -4
- 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/dist/cjs/components/date/RangePicker.d.ts +0 -30
- package/dist/cjs/components/date/index.d.ts +0 -53
- package/dist/cjs/components/desensitize/Desensitize.d.ts +0 -39
- package/dist/cjs/components/dic/index.d.ts +0 -23
- package/dist/cjs/components/form/index.d.ts +0 -89
- package/dist/cjs/components/grid/Grid.d.ts +0 -32
- package/dist/cjs/components/grid/GridItem.d.ts +0 -2
- package/dist/cjs/components/index.d.ts +0 -15
- package/dist/cjs/components/layout/Breadcrumb.vue.d.ts +0 -2
- package/dist/cjs/components/layout/FuckMain.vue.d.ts +0 -17
- package/dist/cjs/components/layout/List.vue.d.ts +0 -4
- package/dist/cjs/components/layout/Main.vue.d.ts +0 -25
- package/dist/cjs/components/layout/NavTabs.vue.d.ts +0 -2
- package/dist/cjs/components/layout/Show.vue.d.ts +0 -30
- package/dist/cjs/components/layout/index.d.ts +0 -70
- package/dist/cjs/components/menu/Menu.d.ts +0 -2
- package/dist/cjs/components/modal/index.d.ts +0 -43
- package/dist/cjs/components/select/Select.vue.d.ts +0 -65
- package/dist/cjs/components/select/index.d.ts +0 -64
- package/dist/cjs/components/table/Table.d.ts +0 -80
- package/dist/cjs/hooks/route/index.d.ts +0 -8
- package/dist/cjs/store/index.d.ts +0 -7
- package/dist/cjs/store/modules/Breadcrumb.d.ts +0 -10
- package/dist/cjs/store/modules/KeepAlive.d.ts +0 -21
- package/dist/esm/components/components.d.ts +0 -11
- package/dist/esm/components/desensitize/index.d.ts +0 -39
- package/dist/esm/components/dic/DicReplace.d.ts +0 -23
- package/dist/esm/components/form/DQueryForm.d.ts +0 -47
- package/dist/esm/components/grid/index.d.ts +0 -32
- package/dist/esm/components/json-scheme-render/JsonSchemeRender.d.ts +0 -23
- package/dist/esm/components/json-scheme-render/index.d.ts +0 -47
- package/dist/esm/components/layout/Breadcrumb.vue.d.ts +0 -2
- package/dist/esm/components/layout/FuckMain.vue.d.ts +0 -17
- package/dist/esm/components/layout/List.vue.d.ts +0 -4
- package/dist/esm/components/layout/Main.vue.d.ts +0 -25
- package/dist/esm/components/layout/NavTabs.vue.d.ts +0 -2
- package/dist/esm/components/layout/Show.vue.d.ts +0 -30
- package/dist/esm/components/layout/index.d.ts +0 -70
- package/dist/esm/components/modal/Modal.d.ts +0 -43
- package/dist/esm/components/select/Select.vue.d.ts +0 -65
- package/dist/esm/components/select/index.d.ts +0 -64
- package/dist/esm/components/table/index.d.ts +0 -75
- package/dist/esm/components/table/interface/table.d.ts +0 -36
- package/dist/esm/components/theme/index.d.ts +0 -1
- package/dist/esm/directive/trim.d.ts +0 -5
- package/dist/esm/hooks/http/index.d.ts +0 -28
- package/dist/esm/hooks/index.d.ts +0 -2
- package/dist/esm/store/index.d.ts +0 -7
- package/dist/esm/store/modules/DataDictionary.d.ts +0 -33
- package/dist/esm/store/modules/Menu.d.ts +0 -17
- package/dist/esm/store/modules/NavTab.d.ts +0 -64
- package/dist/esm/store/modules/Settings.d.ts +0 -43
- package/dist/esm/store/modules/User.d.ts +0 -21
- package/dist/esm/store/types.d.ts +0 -7
- package/dist/esm/utils/get.d.ts +0 -1
- package/dist/esm/utils/html.d.ts +0 -1
- package/dist/esm/utils/index.d.ts +0 -3
- package/dist/esm/utils/install.d.ts +0 -4
- package/src/components/layout/Header.vue +0 -0
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as D, 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 "../../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__ */ D({
|
|
6
12
|
...H,
|
|
7
13
|
props: {
|
|
8
14
|
value: { default: null },
|
|
@@ -12,66 +18,66 @@ const H = {
|
|
|
12
18
|
include: { default: [] }
|
|
13
19
|
},
|
|
14
20
|
emits: ["update:value", "change", "select"],
|
|
15
|
-
setup(
|
|
16
|
-
const u =
|
|
21
|
+
setup(f, { emit: c }) {
|
|
22
|
+
const u = f, { getDicByKey: d } = F(), { modelValue: r, data: h, onSearch: I, onSelect: m, onChange: v } = C();
|
|
17
23
|
function C() {
|
|
18
|
-
const
|
|
24
|
+
const n = [...d(u.name)], t = p(n), a = p(u.value);
|
|
19
25
|
O(
|
|
20
26
|
() => u.value,
|
|
21
27
|
(e) => {
|
|
22
|
-
|
|
28
|
+
a.value = e, L(e);
|
|
23
29
|
}
|
|
24
30
|
);
|
|
25
|
-
const
|
|
31
|
+
const i = (e) => {
|
|
26
32
|
g(e);
|
|
27
33
|
};
|
|
28
34
|
function g(e) {
|
|
29
|
-
e = e ?? "",
|
|
35
|
+
e = e ?? "", t.value = n.filter((o) => o.value.toLowerCase().indexOf(e.toLowerCase()) !== -1 || o.label.toLowerCase().includes(e.toLowerCase())).splice(0, 10), t.value.length === 0 && (t.value = [...n].splice(0, 10));
|
|
30
36
|
}
|
|
31
37
|
function L(e) {
|
|
32
38
|
e = e || "";
|
|
33
|
-
const
|
|
34
|
-
|
|
39
|
+
const o = n.findIndex((l) => l.value.toLowerCase().indexOf(e.toLowerCase()) !== -1 || l.label.toLowerCase().includes(e));
|
|
40
|
+
o === -1 ? t.value = [...n].splice(0, 10) : t.value = b(n, o);
|
|
35
41
|
}
|
|
36
|
-
function b(e,
|
|
37
|
-
const
|
|
38
|
-
return e.slice(
|
|
42
|
+
function b(e, o) {
|
|
43
|
+
const l = Math.max(0, o - 5), B = Math.min(e.length, o + 6);
|
|
44
|
+
return e.slice(l, B);
|
|
39
45
|
}
|
|
40
46
|
const w = (e) => {
|
|
41
|
-
c("update:value", e),
|
|
42
|
-
},
|
|
43
|
-
c("update:value",
|
|
47
|
+
c("update:value", e), x();
|
|
48
|
+
}, _ = () => {
|
|
49
|
+
c("update:value", a.value), c("change", a.value);
|
|
44
50
|
};
|
|
45
|
-
function
|
|
46
|
-
const
|
|
47
|
-
c("select",
|
|
51
|
+
function x() {
|
|
52
|
+
const o = d(u.name).find((l) => l.value === a.value);
|
|
53
|
+
c("select", o);
|
|
48
54
|
}
|
|
49
55
|
return {
|
|
50
|
-
data:
|
|
51
|
-
modelValue:
|
|
52
|
-
onSearch:
|
|
56
|
+
data: t,
|
|
57
|
+
modelValue: a,
|
|
58
|
+
onSearch: i,
|
|
53
59
|
onSelect: w,
|
|
54
|
-
onChange:
|
|
60
|
+
onChange: _
|
|
55
61
|
};
|
|
56
62
|
}
|
|
57
|
-
const S = (
|
|
58
|
-
return (
|
|
59
|
-
const
|
|
60
|
-
return y(), M(
|
|
61
|
-
value: s(
|
|
62
|
-
"onUpdate:value":
|
|
63
|
+
const S = (n, t) => t.label.includes(n);
|
|
64
|
+
return (n, t) => {
|
|
65
|
+
const a = V("a-select");
|
|
66
|
+
return y(), M(a, {
|
|
67
|
+
value: s(r),
|
|
68
|
+
"onUpdate:value": t[0] || (t[0] = (i) => A(r) ? r.value = i : null),
|
|
63
69
|
"allow-clear": "",
|
|
64
70
|
"show-search": "",
|
|
65
71
|
options: s(h),
|
|
66
|
-
placeholder:
|
|
67
|
-
disabled:
|
|
72
|
+
placeholder: n.placeholder,
|
|
73
|
+
disabled: n.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,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,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
|
};
|
|
@@ -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,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
|
};
|
|
@@ -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
|
};
|
|
@@ -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
|
};
|
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>
|
|
@@ -7,10 +7,11 @@ import {
|
|
|
7
7
|
onDeactivated,
|
|
8
8
|
onUnmounted,
|
|
9
9
|
WatchStopHandle,
|
|
10
|
-
inject
|
|
10
|
+
inject,
|
|
11
|
+
nextTick
|
|
11
12
|
} from "vue";
|
|
12
13
|
import { useDebounceFn, useElementSize } from "@vueuse/core";
|
|
13
|
-
import { useSettingsStore } from "../../store
|
|
14
|
+
import { useSettingsStore } from "../../store";
|
|
14
15
|
import { storeToRefs } from "pinia";
|
|
15
16
|
import { useRoute } from "vue-router";
|
|
16
17
|
|
|
@@ -37,7 +38,7 @@ let stopHandleWatch: WatchStopHandle;
|
|
|
37
38
|
|
|
38
39
|
watch(
|
|
39
40
|
() => configProvider?.componentSize,
|
|
40
|
-
(
|
|
41
|
+
() => {
|
|
41
42
|
calcHeight();
|
|
42
43
|
}
|
|
43
44
|
);
|
|
@@ -87,7 +88,7 @@ const formRef = ref(null);
|
|
|
87
88
|
const { height: formHeight } = useElementSize(formRef);
|
|
88
89
|
watch(
|
|
89
90
|
() => formHeight.value,
|
|
90
|
-
(
|
|
91
|
+
() => {
|
|
91
92
|
calcHeight();
|
|
92
93
|
}
|
|
93
94
|
);
|
|
@@ -107,6 +108,10 @@ function calcHeight() {
|
|
|
107
108
|
show.value = true;
|
|
108
109
|
}, 10);
|
|
109
110
|
}
|
|
111
|
+
|
|
112
|
+
nextTick(() => {
|
|
113
|
+
calcHeight();
|
|
114
|
+
});
|
|
110
115
|
</script>
|
|
111
116
|
<script lang="ts">
|
|
112
117
|
export default {
|
|
@@ -7,9 +7,7 @@ import { useRoute, useRouter } from "vue-router";
|
|
|
7
7
|
import { CloseOutlined } from "@ant-design/icons-vue";
|
|
8
8
|
import { storeToRefs } from "pinia";
|
|
9
9
|
|
|
10
|
-
import { useNavTabsStore } from "../../store
|
|
11
|
-
import { useKeepAliveStore } from "../../store/modules/KeepAlive";
|
|
12
|
-
import { useMenuStore } from "../../store/modules/Menu";
|
|
10
|
+
import { useNavTabsStore, useKeepAliveStore, useMenuStore } from "../../store";
|
|
13
11
|
import type { INavTab } from "../../store/modules/NavTab";
|
|
14
12
|
import { prefixName } from "../theme";
|
|
15
13
|
|
|
@@ -6,8 +6,8 @@ import { computed, inject, useSlots, watch, h, resolveComponent } from "vue";
|
|
|
6
6
|
import { useRoute, useRouter } from "vue-router";
|
|
7
7
|
import { useScrollLock, useWindowScroll } from "@vueuse/core";
|
|
8
8
|
import { LeftOutlined } from "@ant-design/icons-vue";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import useNavTabsStore from "../../store/modules/NavTab";
|
|
10
|
+
import useSettingsStore from "../../store/modules/Settings";
|
|
11
11
|
|
|
12
12
|
import { storeToRefs } from "pinia";
|
|
13
13
|
|
|
@@ -3,8 +3,8 @@ import { useRouter, useRoute } from "vue-router";
|
|
|
3
3
|
|
|
4
4
|
import { storeToRefs } from "pinia";
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import useMenuStore from "../../store/modules/Menu";
|
|
7
|
+
import useSettingsStore from "../../store/modules/Settings";
|
|
8
8
|
|
|
9
9
|
export default defineComponent({
|
|
10
10
|
name: "DMenu",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { ref, watch } from "vue";
|
|
3
|
-
import { useDataDicStore } from "../../store
|
|
3
|
+
import { useDataDicStore } from "../../store";
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
// import DicWorker from "./dic.worker?worker&inline";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { default as DForm } from "./form";
|
|
2
|
-
export * from "./layout";
|
|
3
|
-
export { default as DTable } from "./table";
|
|
4
|
-
export { DGrid, DGridItem } from "./grid";
|
|
5
|
-
export { default as DSelect } from "./select";
|
|
6
|
-
export { default as DDesensitize } from "./desensitize";
|
|
7
|
-
export { default as DicReplace } from "./dic";
|
|
8
|
-
export { default as DModal } from "./modal";
|
|
9
|
-
export { DQueryForm } from "./form";
|
|
10
|
-
export { DJsonSchemeRender } from "./json-scheme-render";
|
|
11
|
-
export { DRangePicker } from "./date";
|
|
1
|
+
export { default as DForm } from "./form";
|
|
2
|
+
export * from "./layout";
|
|
3
|
+
export { default as DTable } from "./table";
|
|
4
|
+
export { DGrid, DGridItem } from "./grid";
|
|
5
|
+
export { default as DSelect } from "./select";
|
|
6
|
+
export { default as DDesensitize } from "./desensitize";
|
|
7
|
+
export { default as DicReplace } from "./dic";
|
|
8
|
+
export { default as DModal } from "./modal";
|
|
9
|
+
export { DQueryForm } from "./form";
|
|
10
|
+
export { DJsonSchemeRender } from "./json-scheme-render";
|
|
11
|
+
export { DRangePicker } from "./date";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import type { PropType } from "vue";
|
|
2
|
-
/**
|
|
3
|
-
* 日期范围控件
|
|
4
|
-
*/
|
|
5
|
-
declare const _default: import("vue").DefineComponent<{
|
|
6
|
-
value: {
|
|
7
|
-
type: PropType<{
|
|
8
|
-
[name: string]: unknown;
|
|
9
|
-
}>;
|
|
10
|
-
};
|
|
11
|
-
field: {
|
|
12
|
-
required: true;
|
|
13
|
-
default: string[];
|
|
14
|
-
};
|
|
15
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
-
value: {
|
|
17
|
-
type: PropType<{
|
|
18
|
-
[name: string]: unknown;
|
|
19
|
-
}>;
|
|
20
|
-
};
|
|
21
|
-
field: {
|
|
22
|
-
required: true;
|
|
23
|
-
default: string[];
|
|
24
|
-
};
|
|
25
|
-
}>> & {
|
|
26
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
27
|
-
}, {
|
|
28
|
-
field: string[];
|
|
29
|
-
}>;
|
|
30
|
-
export default _default;
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
/**
|
|
3
|
+
* 日期范围控件
|
|
4
|
+
*/
|
|
5
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
value: {
|
|
7
|
+
type: PropType<{
|
|
8
|
+
[name: string]: unknown;
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
field: {
|
|
12
|
+
required: true;
|
|
13
|
+
default: string[];
|
|
14
|
+
};
|
|
15
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
value: {
|
|
17
|
+
type: PropType<{
|
|
18
|
+
[name: string]: unknown;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
field: {
|
|
22
|
+
required: true;
|
|
23
|
+
default: string[];
|
|
24
|
+
};
|
|
25
|
+
}>> & {
|
|
26
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
field: string[];
|
|
29
|
+
}>;
|
|
30
|
+
export default _default;
|