@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.
Files changed (164) 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/modules/Breadcrumb.cjs.js +1 -1
  14. package/dist/cjs/store/modules/DataDictionary.cjs.js +1 -1
  15. package/dist/cjs/store/modules/KeepAlive.cjs.js +1 -1
  16. package/dist/cjs/store/modules/Menu.cjs.js +1 -1
  17. package/dist/cjs/store/modules/NavTab.cjs.js +1 -1
  18. package/dist/cjs/store/modules/Settings.cjs.js +1 -1
  19. package/dist/cjs/store/modules/User.cjs.js +1 -1
  20. package/dist/esm/components/dic/DicReplace.esm.js +15 -9
  21. package/dist/esm/components/grid/Grid.esm.js +1 -1
  22. package/dist/esm/components/layout/Breadcrumb.vue.esm.js +25 -25
  23. package/dist/esm/components/layout/FuckMain.vue.esm.js +48 -48
  24. package/dist/esm/components/layout/List.vue.esm.js +57 -49
  25. package/dist/esm/components/layout/Main.vue.esm.js +43 -43
  26. package/dist/esm/components/layout/NavTabs.vue.esm.js +30 -26
  27. package/dist/esm/components/layout/Show.vue.esm.js +22 -22
  28. package/dist/esm/components/menu/Menu.esm.js +2 -2
  29. package/dist/esm/components/select/Select.vue.esm.js +41 -35
  30. package/dist/esm/hooks/route/index.esm.js +27 -21
  31. package/dist/esm/store/index.esm.js +14 -14
  32. package/dist/esm/store/modules/Breadcrumb.esm.js +2 -2
  33. package/dist/esm/store/modules/DataDictionary.esm.js +1 -1
  34. package/dist/esm/store/modules/KeepAlive.esm.js +9 -9
  35. package/dist/esm/store/modules/Menu.esm.js +2 -2
  36. package/dist/esm/store/modules/NavTab.esm.js +2 -2
  37. package/dist/esm/store/modules/Settings.esm.js +6 -6
  38. package/dist/esm/store/modules/User.esm.js +1 -1
  39. package/package.json +1 -1
  40. package/src/components/dic/DicReplace.tsx +1 -1
  41. package/src/components/layout/Breadcrumb.vue +5 -7
  42. package/src/components/layout/List.vue +9 -4
  43. package/src/components/layout/NavTabs.vue +1 -3
  44. package/src/components/layout/Show.vue +2 -2
  45. package/src/components/menu/Menu.tsx +2 -2
  46. package/src/components/select/Select.vue +1 -1
  47. package/{dist/cjs → src/dist}/components/components.d.ts +11 -11
  48. package/{dist/esm → src/dist}/components/date/RangePicker.d.ts +30 -30
  49. package/{dist/esm → src/dist}/components/date/index.d.ts +53 -53
  50. package/{dist/esm → src/dist}/components/desensitize/Desensitize.d.ts +39 -39
  51. package/{dist/cjs → src/dist}/components/desensitize/index.d.ts +39 -39
  52. package/{dist/cjs → src/dist}/components/dic/DicReplace.d.ts +23 -23
  53. package/{dist/esm → src/dist}/components/dic/index.d.ts +23 -23
  54. package/src/dist/components/dic/replace.worker.d.ts +4 -0
  55. package/{dist/cjs → src/dist}/components/form/DQueryForm.d.ts +47 -47
  56. package/{dist/esm → src/dist}/components/form/index.d.ts +89 -89
  57. package/{dist/esm → src/dist}/components/grid/Grid.d.ts +32 -32
  58. package/{dist/esm → src/dist}/components/grid/GridItem.d.ts +2 -2
  59. package/{dist/cjs → src/dist}/components/grid/index.d.ts +32 -32
  60. package/{dist/esm → src/dist}/components/index.d.ts +15 -15
  61. package/{dist/cjs → src/dist}/components/json-scheme-render/JsonSchemeRender.d.ts +23 -23
  62. package/{dist/cjs → src/dist}/components/json-scheme-render/index.d.ts +47 -47
  63. package/src/dist/components/layout/Breadcrumb.vue.d.ts +2 -0
  64. package/src/dist/components/layout/FuckMain.vue.d.ts +23 -0
  65. package/src/dist/components/layout/List.vue.d.ts +18 -0
  66. package/src/dist/components/layout/Main.vue.d.ts +29 -0
  67. package/src/dist/components/layout/NavTabs.vue.d.ts +2 -0
  68. package/src/dist/components/layout/Show.vue.d.ts +35 -0
  69. package/src/dist/components/layout/index.d.ts +328 -0
  70. package/{dist/esm → src/dist}/components/menu/Menu.d.ts +2 -2
  71. package/{dist/cjs → src/dist}/components/modal/Modal.d.ts +43 -43
  72. package/{dist/esm → src/dist}/components/modal/index.d.ts +43 -43
  73. package/src/dist/components/select/Select.vue.d.ts +62 -0
  74. package/src/dist/components/select/dic.worker.d.ts +4 -0
  75. package/src/dist/components/select/index.d.ts +62 -0
  76. package/{dist/esm → src/dist}/components/table/Table.d.ts +80 -80
  77. package/{dist/cjs → src/dist}/components/table/index.d.ts +75 -75
  78. package/{dist/cjs → src/dist}/components/table/interface/table.d.ts +36 -36
  79. package/{dist/cjs → src/dist}/components/theme/index.d.ts +1 -1
  80. package/{dist/cjs → src/dist}/directive/trim.d.ts +5 -5
  81. package/{dist/cjs → src/dist}/hooks/http/index.d.ts +28 -28
  82. package/{dist/cjs → src/dist}/hooks/index.d.ts +2 -2
  83. package/{dist/esm → src/dist}/hooks/route/index.d.ts +8 -8
  84. package/src/dist/store/index.d.ts +7 -0
  85. package/{dist/esm → src/dist}/store/modules/Breadcrumb.d.ts +11 -10
  86. package/{dist/cjs → src/dist}/store/modules/DataDictionary.d.ts +33 -33
  87. package/{dist/esm → src/dist}/store/modules/KeepAlive.d.ts +22 -21
  88. package/{dist/cjs → src/dist}/store/modules/Menu.d.ts +18 -17
  89. package/{dist/cjs → src/dist}/store/modules/NavTab.d.ts +65 -64
  90. package/{dist/cjs → src/dist}/store/modules/Settings.d.ts +44 -43
  91. package/{dist/cjs → src/dist}/store/modules/User.d.ts +22 -21
  92. package/{dist/cjs → src/dist}/store/types.d.ts +7 -7
  93. package/{dist/cjs → src/dist}/utils/get.d.ts +1 -1
  94. package/{dist/cjs → src/dist}/utils/html.d.ts +1 -1
  95. package/{dist/cjs → src/dist}/utils/index.d.ts +3 -3
  96. package/{dist/cjs → src/dist}/utils/install.d.ts +4 -4
  97. package/src/hooks/route/index.ts +1 -1
  98. package/src/store/index.ts +7 -7
  99. package/src/store/modules/Breadcrumb.ts +2 -2
  100. package/src/store/modules/DataDictionary.ts +1 -2
  101. package/src/store/modules/KeepAlive.ts +1 -1
  102. package/src/store/modules/Menu.ts +1 -1
  103. package/src/store/modules/NavTab.ts +1 -1
  104. package/src/store/modules/Settings.ts +1 -1
  105. package/src/store/modules/User.ts +1 -1
  106. package/dist/cjs/components/date/RangePicker.d.ts +0 -30
  107. package/dist/cjs/components/date/index.d.ts +0 -53
  108. package/dist/cjs/components/desensitize/Desensitize.d.ts +0 -39
  109. package/dist/cjs/components/dic/index.d.ts +0 -23
  110. package/dist/cjs/components/form/index.d.ts +0 -89
  111. package/dist/cjs/components/grid/Grid.d.ts +0 -32
  112. package/dist/cjs/components/grid/GridItem.d.ts +0 -2
  113. package/dist/cjs/components/index.d.ts +0 -15
  114. package/dist/cjs/components/layout/Breadcrumb.vue.d.ts +0 -2
  115. package/dist/cjs/components/layout/FuckMain.vue.d.ts +0 -17
  116. package/dist/cjs/components/layout/List.vue.d.ts +0 -4
  117. package/dist/cjs/components/layout/Main.vue.d.ts +0 -25
  118. package/dist/cjs/components/layout/NavTabs.vue.d.ts +0 -2
  119. package/dist/cjs/components/layout/Show.vue.d.ts +0 -30
  120. package/dist/cjs/components/layout/index.d.ts +0 -70
  121. package/dist/cjs/components/menu/Menu.d.ts +0 -2
  122. package/dist/cjs/components/modal/index.d.ts +0 -43
  123. package/dist/cjs/components/select/Select.vue.d.ts +0 -65
  124. package/dist/cjs/components/select/index.d.ts +0 -64
  125. package/dist/cjs/components/table/Table.d.ts +0 -80
  126. package/dist/cjs/hooks/route/index.d.ts +0 -8
  127. package/dist/cjs/store/index.d.ts +0 -7
  128. package/dist/cjs/store/modules/Breadcrumb.d.ts +0 -10
  129. package/dist/cjs/store/modules/KeepAlive.d.ts +0 -21
  130. package/dist/esm/components/components.d.ts +0 -11
  131. package/dist/esm/components/desensitize/index.d.ts +0 -39
  132. package/dist/esm/components/dic/DicReplace.d.ts +0 -23
  133. package/dist/esm/components/form/DQueryForm.d.ts +0 -47
  134. package/dist/esm/components/grid/index.d.ts +0 -32
  135. package/dist/esm/components/json-scheme-render/JsonSchemeRender.d.ts +0 -23
  136. package/dist/esm/components/json-scheme-render/index.d.ts +0 -47
  137. package/dist/esm/components/layout/Breadcrumb.vue.d.ts +0 -2
  138. package/dist/esm/components/layout/FuckMain.vue.d.ts +0 -17
  139. package/dist/esm/components/layout/List.vue.d.ts +0 -4
  140. package/dist/esm/components/layout/Main.vue.d.ts +0 -25
  141. package/dist/esm/components/layout/NavTabs.vue.d.ts +0 -2
  142. package/dist/esm/components/layout/Show.vue.d.ts +0 -30
  143. package/dist/esm/components/layout/index.d.ts +0 -70
  144. package/dist/esm/components/modal/Modal.d.ts +0 -43
  145. package/dist/esm/components/select/Select.vue.d.ts +0 -65
  146. package/dist/esm/components/select/index.d.ts +0 -64
  147. package/dist/esm/components/table/index.d.ts +0 -75
  148. package/dist/esm/components/table/interface/table.d.ts +0 -36
  149. package/dist/esm/components/theme/index.d.ts +0 -1
  150. package/dist/esm/directive/trim.d.ts +0 -5
  151. package/dist/esm/hooks/http/index.d.ts +0 -28
  152. package/dist/esm/hooks/index.d.ts +0 -2
  153. package/dist/esm/store/index.d.ts +0 -7
  154. package/dist/esm/store/modules/DataDictionary.d.ts +0 -33
  155. package/dist/esm/store/modules/Menu.d.ts +0 -17
  156. package/dist/esm/store/modules/NavTab.d.ts +0 -64
  157. package/dist/esm/store/modules/Settings.d.ts +0 -43
  158. package/dist/esm/store/modules/User.d.ts +0 -21
  159. package/dist/esm/store/types.d.ts +0 -7
  160. package/dist/esm/utils/get.d.ts +0 -1
  161. package/dist/esm/utils/html.d.ts +0 -1
  162. package/dist/esm/utils/index.d.ts +0 -3
  163. package/dist/esm/utils/install.d.ts +0 -4
  164. 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 u, onUnmounted as B, onActivated as L, onDeactivated as N, resolveComponent as R, openBlock as T, createElementBlock as V, createElementVNode as o, createVNode as m, normalizeClass as W, unref as d, normalizeStyle as S, withCtx as h, renderSlot as l, withDirectives as j, vShow as A } from "vue";
2
- import { useElementSize as F, useDebounceFn as U } from "@vueuse/core";
3
- import { useSettingsStore as q } from "../../store/modules/Settings.esm.js";
4
- import { storeToRefs as G } from "pinia";
5
- import { useRoute as I } from "vue-router";
6
- const J = { class: "ditari-list-layout" }, K = {
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
- }, M = { style: { height: "100%" } }, O = { class: "ditari-content-extra" }, P = {
15
+ }, O = { style: { height: "100%" } }, P = { class: "ditari-content-extra" }, Q = {
10
16
  name: "DListLayout"
11
- }, se = /* @__PURE__ */ E({
12
- ...P,
17
+ }, fe = /* @__PURE__ */ E({
18
+ ...Q,
13
19
  emits: ["refresh"],
14
- setup(Q, { emit: _ }) {
15
- const n = H(), b = q(), k = I(), a = $("configProvider"), { refresh: i } = G(b), z = t(), s = t(), v = 16, c = t(!1), p = t(0);
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
- u(
18
- () => a == null ? void 0 : a.componentSize,
19
- (e) => {
20
- f();
23
+ m(
24
+ () => i == null ? void 0 : i.componentSize,
25
+ () => {
26
+ n();
21
27
  }
22
- ), x();
23
- function x() {
28
+ ), z();
29
+ function z() {
24
30
  k.name ? (L(() => {
25
- i.value && (i.value = !1, _("refresh")), r = g();
26
- }), N(() => {
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 u(
34
- () => i.value,
39
+ return m(
40
+ () => c.value,
35
41
  (e) => {
36
- e && _("refresh");
42
+ e && h("refresh");
37
43
  }
38
44
  );
39
45
  }
40
- const y = t(null), { height: C } = F(y);
41
- u(
46
+ const y = t(null), { height: C } = U(y);
47
+ m(
42
48
  () => C.value,
43
- (e) => {
44
- f();
49
+ () => {
50
+ n();
45
51
  }
46
52
  ), window.addEventListener(
47
53
  "resize",
48
- U(() => {
49
- f();
54
+ q(() => {
55
+ n();
50
56
  })
51
57
  );
52
- function f() {
53
- c.value = !1, setTimeout(() => {
58
+ function n() {
59
+ f.value = !1, setTimeout(() => {
54
60
  var e;
55
- p.value = (e = s == null ? void 0 : s.value) == null ? void 0 : e.offsetHeight, c.value = !0;
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 (e, X) => {
64
+ return N(() => {
65
+ n();
66
+ }), (e, Y) => {
59
67
  const w = R("a-card"), D = R("a-space");
60
- return T(), V("div", J, [
61
- o("div", K, [
62
- m(w, {
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: W({ "ditari-list-form": d(n).form }),
67
- style: S({ "margin-bottom": d(n).form ? v + "px" : 0 })
74
+ class: j({ "ditari-list-form": d(a).form }),
75
+ style: S({ "margin-bottom": d(a).form ? _ + "px" : 0 })
68
76
  }, {
69
- default: h(() => [
77
+ default: p(() => [
70
78
  l(e.$slots, "form")
71
79
  ]),
72
80
  _: 3
73
81
  }, 8, ["class", "style"]),
74
- m(w, {
82
+ u(w, {
75
83
  class: "ditari-list-table",
76
84
  bordered: !1
77
85
  }, {
78
- default: h(() => [
86
+ default: p(() => [
79
87
  o("div", {
80
88
  ref_key: "toolsRef",
81
- ref: z,
89
+ ref: x,
82
90
  class: "xi-tools",
83
- style: S({ "margin-bottom": d(n).tools ? v + "px" : 0 })
91
+ style: S({ "margin-bottom": d(a).tools ? _ + "px" : 0 })
84
92
  }, [
85
- m(D, null, {
86
- default: h(() => [
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
- j(o("div", M, [
98
- l(e.$slots, "table", { height: p.value })
105
+ A(o("div", O, [
106
+ l(e.$slots, "table", { height: v.value })
99
107
  ], 512), [
100
- [A, c.value]
108
+ [F, f.value]
101
109
  ])
102
110
  ], 512)
103
111
  ]),
104
112
  _: 3
105
113
  })
106
114
  ], 512),
107
- o("div", O, [
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
- se as default
123
+ fe as default
116
124
  };
@@ -1,97 +1,97 @@
1
- import { defineComponent as $, computed as f, provide as x, resolveComponent as n, openBlock as a, createElementBlock as B, Fragment as A, createVNode as t, withCtx as i, unref as e, isRef as M, createElementVNode as o, renderSlot as p, normalizeStyle as y, createBlock as c, Transition as z, KeepAlive as L, resolveDynamicComponent as N } from "vue";
2
- import { MenuUnfoldOutlined as O, MenuFoldOutlined as D } from "@ant-design/icons-vue";
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 { useKeepAliveStore as E } from "../../store/modules/KeepAlive.esm.js";
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 { useSettingsStore as F } from "../../store/modules/Settings.esm.js";
8
+ import E from "../../store/modules/Settings.esm.js";
9
9
  import "../../store/modules/User.esm.js";
10
- import K from "./NavTabs.vue.esm.js";
11
- import R from "./Breadcrumb.vue.esm.js";
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" }, T = { class: "ditari-menu" }, j = { class: "ditari-layout-header" }, q = { class: "ditari-layout-header-left" }, G = { class: "ditari-user-menu" }, H = {
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
- }, it = /* @__PURE__ */ $({
16
- ...H,
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 = E(), k = f(() => h.get), u = F(), { switchCollapsed: m } = u, l = f(() => u.getCollapsed);
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 = n("a-layout-sider"), C = n("router-view"), w = n("a-layout-content"), _ = n("a-layout"), S = n("a-back-top");
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: i(() => [
27
+ default: o(() => [
28
28
  t(b, {
29
- collapsed: e(l),
30
- "onUpdate:collapsed": d[0] || (d[0] = (s) => M(l) ? l.value = s : null),
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: i(() => [
36
- o("div", null, [
37
- o("div", V, [
38
- p(r.$slots, "logo")
35
+ default: o(() => [
36
+ e("div", null, [
37
+ e("div", V, [
38
+ c(r.$slots, "logo")
39
39
  ]),
40
- o("div", T, [
41
- t(e(U))
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: i(() => [
49
- o("div", {
48
+ default: o(() => [
49
+ e("div", {
50
50
  class: "ditari-top-layout",
51
- style: y({ left: e(l) ? "80px" : "200px" })
51
+ style: y({ left: l.value ? "80px" : "200px" })
52
52
  }, [
53
- t(K),
54
- o("div", j, [
55
- o("div", q, [
56
- o("div", {
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
- (...s) => e(m) && e(m)(...s))
59
+ (...i) => n(m) && n(m)(...i))
60
60
  }, [
61
- e(l) ? (a(), c(e(O), {
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(), c(e(D), {
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(R)
70
+ t(K)
71
71
  ]),
72
- o("div", G, [
73
- p(r.$slots, "operation")
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: e(l) ? "80px" : "200px" })
79
+ style: y({ marginLeft: l.value ? "80px" : "200px" })
80
80
  }, {
81
- default: i(() => [
81
+ default: o(() => [
82
82
  t(C, null, {
83
- default: i(({ Component: s }) => [
84
- t(z, {
83
+ default: o(({ Component: i }) => [
84
+ t(M, {
85
85
  name: "main",
86
86
  mode: "out-in",
87
87
  appear: ""
88
88
  }, {
89
- default: i(() => [
90
- (a(), c(L, {
89
+ default: o(() => [
90
+ (a(), u(z, {
91
91
  ref: "keepAliveRef",
92
- include: e(k)
92
+ include: k.value
93
93
  }, [
94
- (a(), c(N(s), {
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
- p(r.$slots, "micro")
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
- it as default
123
+ lt as default
124
124
  };
@@ -1,23 +1,27 @@
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 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 { 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
- const G = /* @__PURE__ */ k("div", { class: "tab-dividers" }, null, -1), H = {
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
- }, oe = /* @__PURE__ */ P({
18
+ }, le = /* @__PURE__ */ T({
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("");
18
- A(() => {
19
- l.value = c.value.length > 0 ? c.value[0] : "";
20
- }), f(), B(
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 S = (t) => {
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
- }, g = (t, e) => {
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
- }, K = (t) => {
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 r(), p("div", {
49
- class: h(N)
52
+ return l(), p("div", {
53
+ class: h(y)
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
- onTabClick: S
59
+ onTabClick: N
56
60
  }, {
57
61
  default: b(() => [
58
- (r(!0), p(E, null, R(C(o), (a) => (r(), V(s, {
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
- k("div", {
64
- class: h(["tab-item", { active: l.value === a.path }])
65
- }, q(a.meta.title), 3),
66
- K(a) ? (r(), p("div", H, [
67
- _(C(O), {
68
- onClick: (T) => g(T, a.fullPath)
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
- oe as default
86
+ le as default
83
87
  };
@@ -1,55 +1,55 @@
1
- import { defineComponent as L, useSlots as N, inject as R, computed as V, watch as z, resolveComponent as a, openBlock as d, createElementBlock as p, createVNode as r, unref as u, withCtx as o, normalizeClass as D, createTextVNode as E, toDisplayString as j, renderSlot as t, createElementVNode as I, createCommentVNode as O, h as f } from "vue";
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 { 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,
10
10
  class: "ditari-show-footer"
11
11
  }, Q = {
12
12
  name: "DShowLayout"
13
- }, ne = /* @__PURE__ */ L({
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(m, { expose: g }) {
20
- const s = m, n = P(), l = W(), h = N(), i = G(), _ = H(), c = R("showConfig"), y = () => c ? f(a(c.backBtn)) : f(F), { refresh: S } = J(_), b = V(() => s.loading), w = {
21
- padding: `10px 10px ${h.footer ? "70px" : "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
- }, T = () => {
25
- S.value = !0, i.deleteTabs(l.path), n.go(-1);
26
- }, { y: k } = q(), C = A(document.body);
27
- z(
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
- C.value = e;
30
+ k.value = e;
31
31
  }
32
32
  );
33
- const $ = 200;
34
- return g({
35
- closePage: T
33
+ const C = 200;
34
+ return m({
35
+ closePage: w
36
36
  }), (e, U) => {
37
- const B = a("a-page-header"), x = a("a-spin");
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: u(b),
42
- delay: $,
41
+ spinning: S.value,
42
+ delay: C,
43
43
  size: "large"
44
44
  }, {
45
45
  default: o(() => [
46
- r(B, {
47
- class: D(["ditari-page-header", { active: u(k) > 0 }]),
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(y)
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: w
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 { 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
  }