@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,89 +1,97 @@
|
|
|
1
|
-
import { defineComponent as E, useSlots as H, inject as $, ref as t, watch as
|
|
2
|
-
import { useElementSize as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import { defineComponent as E, useSlots as H, inject as $, ref as t, watch as m, onUnmounted as B, onActivated as L, onDeactivated as T, nextTick as N, resolveComponent as R, openBlock as V, createElementBlock as W, createElementVNode as o, createVNode as u, normalizeClass as j, unref as d, normalizeStyle as S, withCtx as p, renderSlot as l, withDirectives as A, vShow as F } from "vue";
|
|
2
|
+
import { useElementSize as U, useDebounceFn as q } from "@vueuse/core";
|
|
3
|
+
import "../../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 G from "../../store/modules/Settings.esm.js";
|
|
9
|
+
import "../../store/modules/User.esm.js";
|
|
10
|
+
import { storeToRefs as I } from "pinia";
|
|
11
|
+
import { useRoute as J } from "vue-router";
|
|
12
|
+
const K = { class: "ditari-list-layout" }, M = {
|
|
7
13
|
ref: "contentRef",
|
|
8
14
|
class: "wrapper"
|
|
9
|
-
},
|
|
15
|
+
}, O = { style: { height: "100%" } }, P = { class: "ditari-content-extra" }, Q = {
|
|
10
16
|
name: "DListLayout"
|
|
11
|
-
},
|
|
12
|
-
...
|
|
17
|
+
}, fe = /* @__PURE__ */ E({
|
|
18
|
+
...Q,
|
|
13
19
|
emits: ["refresh"],
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
20
|
+
setup(X, { emit: h }) {
|
|
21
|
+
const a = H(), b = G(), k = J(), i = $("configProvider"), { refresh: c } = I(b), x = t(), s = t(), _ = 16, f = t(!1), v = t(0);
|
|
16
22
|
let r;
|
|
17
|
-
|
|
18
|
-
() =>
|
|
19
|
-
(
|
|
20
|
-
|
|
23
|
+
m(
|
|
24
|
+
() => i == null ? void 0 : i.componentSize,
|
|
25
|
+
() => {
|
|
26
|
+
n();
|
|
21
27
|
}
|
|
22
|
-
),
|
|
23
|
-
function
|
|
28
|
+
), z();
|
|
29
|
+
function z() {
|
|
24
30
|
k.name ? (L(() => {
|
|
25
|
-
|
|
26
|
-
}),
|
|
31
|
+
c.value && (c.value = !1, h("refresh")), r = g();
|
|
32
|
+
}), T(() => {
|
|
27
33
|
r();
|
|
28
34
|
})) : (r = g(), B(() => {
|
|
29
35
|
r();
|
|
30
36
|
}));
|
|
31
37
|
}
|
|
32
38
|
function g() {
|
|
33
|
-
return
|
|
34
|
-
() =>
|
|
39
|
+
return m(
|
|
40
|
+
() => c.value,
|
|
35
41
|
(e) => {
|
|
36
|
-
e &&
|
|
42
|
+
e && h("refresh");
|
|
37
43
|
}
|
|
38
44
|
);
|
|
39
45
|
}
|
|
40
|
-
const y = t(null), { height: C } =
|
|
41
|
-
|
|
46
|
+
const y = t(null), { height: C } = U(y);
|
|
47
|
+
m(
|
|
42
48
|
() => C.value,
|
|
43
|
-
(
|
|
44
|
-
|
|
49
|
+
() => {
|
|
50
|
+
n();
|
|
45
51
|
}
|
|
46
52
|
), window.addEventListener(
|
|
47
53
|
"resize",
|
|
48
|
-
|
|
49
|
-
|
|
54
|
+
q(() => {
|
|
55
|
+
n();
|
|
50
56
|
})
|
|
51
57
|
);
|
|
52
|
-
function
|
|
53
|
-
|
|
58
|
+
function n() {
|
|
59
|
+
f.value = !1, setTimeout(() => {
|
|
54
60
|
var e;
|
|
55
|
-
|
|
61
|
+
v.value = (e = s == null ? void 0 : s.value) == null ? void 0 : e.offsetHeight, f.value = !0;
|
|
56
62
|
}, 10);
|
|
57
63
|
}
|
|
58
|
-
return (
|
|
64
|
+
return N(() => {
|
|
65
|
+
n();
|
|
66
|
+
}), (e, Y) => {
|
|
59
67
|
const w = R("a-card"), D = R("a-space");
|
|
60
|
-
return
|
|
61
|
-
o("div",
|
|
62
|
-
|
|
68
|
+
return V(), W("div", K, [
|
|
69
|
+
o("div", M, [
|
|
70
|
+
u(w, {
|
|
63
71
|
ref_key: "formRef",
|
|
64
72
|
ref: y,
|
|
65
73
|
bordered: !1,
|
|
66
|
-
class:
|
|
67
|
-
style: S({ "margin-bottom": d(
|
|
74
|
+
class: j({ "ditari-list-form": d(a).form }),
|
|
75
|
+
style: S({ "margin-bottom": d(a).form ? _ + "px" : 0 })
|
|
68
76
|
}, {
|
|
69
|
-
default:
|
|
77
|
+
default: p(() => [
|
|
70
78
|
l(e.$slots, "form")
|
|
71
79
|
]),
|
|
72
80
|
_: 3
|
|
73
81
|
}, 8, ["class", "style"]),
|
|
74
|
-
|
|
82
|
+
u(w, {
|
|
75
83
|
class: "ditari-list-table",
|
|
76
84
|
bordered: !1
|
|
77
85
|
}, {
|
|
78
|
-
default:
|
|
86
|
+
default: p(() => [
|
|
79
87
|
o("div", {
|
|
80
88
|
ref_key: "toolsRef",
|
|
81
|
-
ref:
|
|
89
|
+
ref: x,
|
|
82
90
|
class: "xi-tools",
|
|
83
|
-
style: S({ "margin-bottom": d(
|
|
91
|
+
style: S({ "margin-bottom": d(a).tools ? _ + "px" : 0 })
|
|
84
92
|
}, [
|
|
85
|
-
|
|
86
|
-
default:
|
|
93
|
+
u(D, null, {
|
|
94
|
+
default: p(() => [
|
|
87
95
|
l(e.$slots, "tools")
|
|
88
96
|
]),
|
|
89
97
|
_: 3
|
|
@@ -94,17 +102,17 @@ const J = { class: "ditari-list-layout" }, K = {
|
|
|
94
102
|
ref: s,
|
|
95
103
|
style: { flex: "1" }
|
|
96
104
|
}, [
|
|
97
|
-
|
|
98
|
-
l(e.$slots, "table", { height:
|
|
105
|
+
A(o("div", O, [
|
|
106
|
+
l(e.$slots, "table", { height: v.value })
|
|
99
107
|
], 512), [
|
|
100
|
-
[
|
|
108
|
+
[F, f.value]
|
|
101
109
|
])
|
|
102
110
|
], 512)
|
|
103
111
|
]),
|
|
104
112
|
_: 3
|
|
105
113
|
})
|
|
106
114
|
], 512),
|
|
107
|
-
o("div",
|
|
115
|
+
o("div", P, [
|
|
108
116
|
l(e.$slots, "default")
|
|
109
117
|
])
|
|
110
118
|
]);
|
|
@@ -112,5 +120,5 @@ const J = { class: "ditari-list-layout" }, K = {
|
|
|
112
120
|
}
|
|
113
121
|
});
|
|
114
122
|
export {
|
|
115
|
-
|
|
123
|
+
fe as default
|
|
116
124
|
};
|
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import { defineComponent as $, computed as f, provide as x, resolveComponent as
|
|
2
|
-
import { MenuUnfoldOutlined as
|
|
1
|
+
import { defineComponent as $, computed as f, provide as x, resolveComponent as s, openBlock as a, createElementBlock as B, Fragment as A, createVNode as t, withCtx as o, createElementVNode as e, renderSlot as c, unref as n, normalizeStyle as y, createBlock as u, Transition as M, KeepAlive as z, resolveDynamicComponent as L } from "vue";
|
|
2
|
+
import { MenuUnfoldOutlined as N, MenuFoldOutlined as O } from "@ant-design/icons-vue";
|
|
3
3
|
import "../../store/modules/Breadcrumb.esm.js";
|
|
4
4
|
import "../../store/modules/DataDictionary.esm.js";
|
|
5
|
-
import
|
|
5
|
+
import D from "../../store/modules/KeepAlive.esm.js";
|
|
6
6
|
import "../../store/modules/Menu.esm.js";
|
|
7
7
|
import "../../store/modules/NavTab.esm.js";
|
|
8
|
-
import
|
|
8
|
+
import E from "../../store/modules/Settings.esm.js";
|
|
9
9
|
import "../../store/modules/User.esm.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import F from "./NavTabs.vue.esm.js";
|
|
11
|
+
import K from "./Breadcrumb.vue.esm.js";
|
|
12
12
|
import U from "../menu/Menu.esm.js";
|
|
13
|
-
const V = { class: "ditari-logo" },
|
|
13
|
+
const V = { class: "ditari-logo" }, R = { class: "ditari-menu" }, T = { class: "ditari-layout-header" }, j = { class: "ditari-layout-header-left" }, q = { class: "ditari-user-menu" }, G = {
|
|
14
14
|
name: "DMainLayout"
|
|
15
|
-
},
|
|
16
|
-
...
|
|
15
|
+
}, lt = /* @__PURE__ */ $({
|
|
16
|
+
...G,
|
|
17
17
|
props: {
|
|
18
18
|
showConfig: { default: { backBtn: "LeftOutlined" } },
|
|
19
19
|
breadcrumbStatus: { type: Boolean }
|
|
20
20
|
},
|
|
21
21
|
setup(v) {
|
|
22
|
-
const g = v, h =
|
|
22
|
+
const g = v, h = D(), k = f(() => h.get), p = E(), { switchCollapsed: m } = p, l = f(() => p.getCollapsed);
|
|
23
23
|
return x("showConfig", g.showConfig), (r, d) => {
|
|
24
|
-
const b =
|
|
24
|
+
const b = s("a-layout-sider"), C = s("router-view"), w = s("a-layout-content"), _ = s("a-layout"), S = s("a-back-top");
|
|
25
25
|
return a(), B(A, null, [
|
|
26
26
|
t(_, { class: "ditari-layout" }, {
|
|
27
|
-
default:
|
|
27
|
+
default: o(() => [
|
|
28
28
|
t(b, {
|
|
29
|
-
collapsed:
|
|
30
|
-
"onUpdate:collapsed": d[0] || (d[0] = (
|
|
29
|
+
collapsed: l.value,
|
|
30
|
+
"onUpdate:collapsed": d[0] || (d[0] = (i) => l.value = i),
|
|
31
31
|
trigger: null,
|
|
32
32
|
collapsible: "",
|
|
33
33
|
class: "ditari-layout-sider"
|
|
34
34
|
}, {
|
|
35
|
-
default:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
default: o(() => [
|
|
36
|
+
e("div", null, [
|
|
37
|
+
e("div", V, [
|
|
38
|
+
c(r.$slots, "logo")
|
|
39
39
|
]),
|
|
40
|
-
|
|
41
|
-
t(
|
|
40
|
+
e("div", R, [
|
|
41
|
+
t(n(U))
|
|
42
42
|
])
|
|
43
43
|
])
|
|
44
44
|
]),
|
|
45
45
|
_: 3
|
|
46
46
|
}, 8, ["collapsed"]),
|
|
47
47
|
t(_, null, {
|
|
48
|
-
default:
|
|
49
|
-
|
|
48
|
+
default: o(() => [
|
|
49
|
+
e("div", {
|
|
50
50
|
class: "ditari-top-layout",
|
|
51
|
-
style: y({ left:
|
|
51
|
+
style: y({ left: l.value ? "80px" : "200px" })
|
|
52
52
|
}, [
|
|
53
|
-
t(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
t(F),
|
|
54
|
+
e("div", T, [
|
|
55
|
+
e("div", j, [
|
|
56
|
+
e("div", {
|
|
57
57
|
class: "ditari-side-collapsed",
|
|
58
58
|
onClick: d[1] || (d[1] = //@ts-ignore
|
|
59
|
-
(...
|
|
59
|
+
(...i) => n(m) && n(m)(...i))
|
|
60
60
|
}, [
|
|
61
|
-
|
|
61
|
+
l.value ? (a(), u(n(N), {
|
|
62
62
|
key: 0,
|
|
63
63
|
class: "trigger",
|
|
64
64
|
style: { "font-size": "16px", "font-weight": "bold", cursor: "pointer" }
|
|
65
|
-
})) : (a(),
|
|
65
|
+
})) : (a(), u(n(O), {
|
|
66
66
|
key: 1,
|
|
67
67
|
style: { "font-size": "16px", "font-weight": "bold", cursor: "pointer" }
|
|
68
68
|
}))
|
|
69
69
|
]),
|
|
70
|
-
t(
|
|
70
|
+
t(K)
|
|
71
71
|
]),
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
e("div", q, [
|
|
73
|
+
c(r.$slots, "operation")
|
|
74
74
|
])
|
|
75
75
|
])
|
|
76
76
|
], 4),
|
|
77
77
|
t(w, {
|
|
78
78
|
class: "ditari-layout-content",
|
|
79
|
-
style: y({ marginLeft:
|
|
79
|
+
style: y({ marginLeft: l.value ? "80px" : "200px" })
|
|
80
80
|
}, {
|
|
81
|
-
default:
|
|
81
|
+
default: o(() => [
|
|
82
82
|
t(C, null, {
|
|
83
|
-
default:
|
|
84
|
-
t(
|
|
83
|
+
default: o(({ Component: i }) => [
|
|
84
|
+
t(M, {
|
|
85
85
|
name: "main",
|
|
86
86
|
mode: "out-in",
|
|
87
87
|
appear: ""
|
|
88
88
|
}, {
|
|
89
|
-
default:
|
|
90
|
-
(a(),
|
|
89
|
+
default: o(() => [
|
|
90
|
+
(a(), u(z, {
|
|
91
91
|
ref: "keepAliveRef",
|
|
92
|
-
include:
|
|
92
|
+
include: k.value
|
|
93
93
|
}, [
|
|
94
|
-
(a(),
|
|
94
|
+
(a(), u(L(i), {
|
|
95
95
|
key: r.$route.path
|
|
96
96
|
}))
|
|
97
97
|
], 1032, ["include"]))
|
|
@@ -101,7 +101,7 @@ const V = { class: "ditari-logo" }, T = { class: "ditari-menu" }, j = { class: "
|
|
|
101
101
|
]),
|
|
102
102
|
_: 1
|
|
103
103
|
}),
|
|
104
|
-
|
|
104
|
+
c(r.$slots, "micro")
|
|
105
105
|
]),
|
|
106
106
|
_: 3
|
|
107
107
|
}, 8, ["style"])
|
|
@@ -120,5 +120,5 @@ const V = { class: "ditari-logo" }, T = { class: "ditari-menu" }, j = { class: "
|
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
122
|
export {
|
|
123
|
-
|
|
123
|
+
lt as default
|
|
124
124
|
};
|
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as T, computed as P, ref as x, watchEffect as w, watch as A, resolveComponent as d, openBlock as l, createElementBlock as p, normalizeClass as h, createVNode as _, withCtx as b, Fragment as B, renderList as E, createBlock as R, createElementVNode as C, toDisplayString as V, unref 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
|
-
const G = /* @__PURE__ */
|
|
13
|
+
const G = /* @__PURE__ */ C("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__ */ T({
|
|
15
19
|
...I,
|
|
16
20
|
setup(J) {
|
|
17
|
-
const n = L(), m = M(), u =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}), f(),
|
|
21
|
+
const n = L(), m = M(), u = $(), v = F(), k = U(), y = `${j}-nav`, o = P(() => u.getList), { selectedMenuKeys: c } = z(k), r = x("");
|
|
22
|
+
w(() => {
|
|
23
|
+
r.value = c.value.length > 0 ? c.value[0] : "";
|
|
24
|
+
}), f(), A(
|
|
21
25
|
() => n.path,
|
|
22
26
|
() => {
|
|
23
27
|
f();
|
|
@@ -26,7 +30,7 @@ const G = /* @__PURE__ */ k("div", { class: "tab-dividers" }, null, -1), H = {
|
|
|
26
30
|
function f() {
|
|
27
31
|
u.save(n), c.value = [n.path], v.save(n);
|
|
28
32
|
}
|
|
29
|
-
const
|
|
33
|
+
const N = (t) => {
|
|
30
34
|
if (t !== n.path) {
|
|
31
35
|
const e = o.value.filter((s) => s.path === t)[0];
|
|
32
36
|
m.push({
|
|
@@ -36,36 +40,36 @@ const G = /* @__PURE__ */ k("div", { class: "tab-dividers" }, null, -1), H = {
|
|
|
36
40
|
fullPath: e.fullPath
|
|
37
41
|
});
|
|
38
42
|
}
|
|
39
|
-
},
|
|
43
|
+
}, S = (t, e) => {
|
|
40
44
|
const s = o.value.find((i) => i.fullPath === e);
|
|
41
45
|
t.stopPropagation(), u.deleteTabs(e), m.push(o.value[o.value.length - 1].fullPath), s.name && v.deleteKeepAlive(s.name);
|
|
42
|
-
},
|
|
46
|
+
}, g = (t) => {
|
|
43
47
|
var e;
|
|
44
48
|
return (e = t.meta) != null && e.keepOpen ? !1 : o.value.length !== 1;
|
|
45
49
|
};
|
|
46
50
|
return (t, e) => {
|
|
47
51
|
const s = d("a-tab-pane"), i = d("a-tabs");
|
|
48
|
-
return
|
|
49
|
-
class: h(
|
|
52
|
+
return l(), p("div", {
|
|
53
|
+
class: h(y)
|
|
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
|
-
onTabClick:
|
|
59
|
+
onTabClick: N
|
|
56
60
|
}, {
|
|
57
61
|
default: b(() => [
|
|
58
|
-
(
|
|
62
|
+
(l(!0), p(B, null, E(o.value, (a) => (l(), R(s, {
|
|
59
63
|
key: a.path
|
|
60
64
|
}, {
|
|
61
65
|
tab: b(() => [
|
|
62
66
|
G,
|
|
63
|
-
|
|
64
|
-
class: h(["tab-item", { active:
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
_(
|
|
68
|
-
onClick: (
|
|
67
|
+
C("div", {
|
|
68
|
+
class: h(["tab-item", { active: r.value === a.path }])
|
|
69
|
+
}, V(a.meta.title), 3),
|
|
70
|
+
g(a) ? (l(), p("div", H, [
|
|
71
|
+
_(q(O), {
|
|
72
|
+
onClick: (K) => S(K, a.fullPath)
|
|
69
73
|
}, null, 8, ["onClick"])
|
|
70
74
|
])) : D("", !0)
|
|
71
75
|
]),
|
|
@@ -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
|
};
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as B, useSlots as L, inject as N, computed as R, watch as V, resolveComponent as a, openBlock as d, createElementBlock as p, createVNode as r, withCtx as o, normalizeClass as z, unref as D, createTextVNode as E, toDisplayString as j, renderSlot as t, createElementVNode as I, createCommentVNode as O, h as u } from "vue";
|
|
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,
|
|
10
10
|
class: "ditari-show-footer"
|
|
11
11
|
}, Q = {
|
|
12
12
|
name: "DShowLayout"
|
|
13
|
-
}, ne = /* @__PURE__ */
|
|
13
|
+
}, ne = /* @__PURE__ */ B({
|
|
14
14
|
...Q,
|
|
15
15
|
props: {
|
|
16
16
|
close: { type: Boolean, default: !1 },
|
|
17
17
|
loading: { type: Boolean, default: !1 }
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const s =
|
|
21
|
-
padding: `10px 10px ${
|
|
19
|
+
setup(f, { expose: m }) {
|
|
20
|
+
const s = f, n = P(), l = W(), g = L(), i = G(), h = H(), c = N("showConfig"), _ = () => c ? u(a(c.backBtn)) : u(F), { refresh: y } = J(h), S = R(() => s.loading), b = {
|
|
21
|
+
padding: `10px 10px ${g.footer ? "70px" : "10px"} 10px`
|
|
22
22
|
}, v = () => {
|
|
23
23
|
s.close && i.deleteTabs(l.path), n.go(-1);
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
}, { y:
|
|
27
|
-
|
|
24
|
+
}, w = () => {
|
|
25
|
+
y.value = !0, i.deleteTabs(l.path), n.go(-1);
|
|
26
|
+
}, { y: T } = q(), k = A(document.body);
|
|
27
|
+
V(
|
|
28
28
|
() => s.loading,
|
|
29
29
|
(e) => {
|
|
30
|
-
|
|
30
|
+
k.value = e;
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
|
-
const
|
|
34
|
-
return
|
|
35
|
-
closePage:
|
|
33
|
+
const C = 200;
|
|
34
|
+
return m({
|
|
35
|
+
closePage: w
|
|
36
36
|
}), (e, U) => {
|
|
37
|
-
const
|
|
37
|
+
const $ = a("a-page-header"), x = a("a-spin");
|
|
38
38
|
return d(), p("div", K, [
|
|
39
39
|
r(x, {
|
|
40
40
|
tip: "正在处理...",
|
|
41
|
-
spinning:
|
|
42
|
-
delay:
|
|
41
|
+
spinning: S.value,
|
|
42
|
+
delay: C,
|
|
43
43
|
size: "large"
|
|
44
44
|
}, {
|
|
45
45
|
default: o(() => [
|
|
46
|
-
r(
|
|
47
|
-
class:
|
|
46
|
+
r($, {
|
|
47
|
+
class: z(["ditari-page-header", { active: D(T) > 0 }]),
|
|
48
48
|
ghost: !1,
|
|
49
49
|
onBack: v
|
|
50
50
|
}, {
|
|
51
51
|
backIcon: o(() => [
|
|
52
|
-
r(
|
|
52
|
+
r(_)
|
|
53
53
|
]),
|
|
54
54
|
title: o(() => [
|
|
55
55
|
E(j(e.$route.meta.title), 1)
|
|
@@ -64,7 +64,7 @@ const K = { class: "ditari-show-layout" }, M = {
|
|
|
64
64
|
}, 8, ["class"]),
|
|
65
65
|
I("div", {
|
|
66
66
|
class: "ditari-show-content",
|
|
67
|
-
style:
|
|
67
|
+
style: b
|
|
68
68
|
}, [
|
|
69
69
|
t(e.$slots, "default")
|
|
70
70
|
]),
|
|
@@ -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
|
}
|