@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,8 +1,14 @@
1
- import { defineComponent as _, ref as p, watch as O, resolveComponent as V, openBlock as y, createBlock as M, unref as s, isRef as A } from "vue";
2
- import { useDataDicStore as F } from "../../store/modules/DataDictionary.esm.js";
1
+ import { defineComponent as 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
- }, U = /* @__PURE__ */ _({
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(r, { emit: c }) {
16
- const u = r, { getDicByKey: f } = F(), { modelValue: i, data: h, onSearch: I, onSelect: v, onChange: m } = C();
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 l = [...f(u.name)], n = p(l), t = p(u.value);
24
+ const n = [...d(u.name)], t = p(n), a = p(u.value);
19
25
  O(
20
26
  () => u.value,
21
27
  (e) => {
22
- t.value = e, L(e);
28
+ a.value = e, L(e);
23
29
  }
24
30
  );
25
- const d = (e) => {
31
+ const i = (e) => {
26
32
  g(e);
27
33
  };
28
34
  function g(e) {
29
- e = e ?? "", n.value = l.filter((a) => a.value.toLowerCase().indexOf(e.toLowerCase()) !== -1 || a.label.toLowerCase().includes(e.toLowerCase())).splice(0, 10), n.value.length === 0 && (n.value = [...l].splice(0, 10));
35
+ e = e ?? "", 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 a = l.findIndex((o) => o.value.toLowerCase().indexOf(e.toLowerCase()) !== -1 || o.label.toLowerCase().includes(e));
34
- a === -1 ? n.value = [...l].splice(0, 10) : n.value = b(l, a);
39
+ const 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, a) {
37
- const o = Math.max(0, a - 5), D = Math.min(e.length, a + 6);
38
- return e.slice(o, D);
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), B();
42
- }, x = () => {
43
- c("update:value", t.value), c("change", t.value);
47
+ c("update:value", e), x();
48
+ }, _ = () => {
49
+ c("update:value", a.value), c("change", a.value);
44
50
  };
45
- function B() {
46
- const a = f(u.name).find((o) => o.value === t.value);
47
- c("select", a);
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: n,
51
- modelValue: t,
52
- onSearch: d,
56
+ data: t,
57
+ modelValue: a,
58
+ onSearch: i,
53
59
  onSelect: w,
54
- onChange: x
60
+ onChange: _
55
61
  };
56
62
  }
57
- const S = (l, n) => n.label.includes(l);
58
- return (l, n) => {
59
- const t = V("a-select");
60
- return y(), M(t, {
61
- value: s(i),
62
- "onUpdate:value": n[0] || (n[0] = (d) => A(i) ? i.value = d : null),
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: r.placeholder,
67
- disabled: r.disabled,
72
+ placeholder: n.placeholder,
73
+ disabled: n.disabled,
68
74
  "filter-option": S,
69
- onSelect: s(v),
70
- onChange: s(m)
75
+ onSelect: s(m),
76
+ onChange: s(v)
71
77
  }, null, 8, ["value", "options", "placeholder", "disabled", "onSelect", "onChange"]);
72
78
  };
73
79
  }
74
80
  });
75
81
  export {
76
- U as default
82
+ E as default
77
83
  };
@@ -1,8 +1,14 @@
1
- import { ref as f } from "vue";
2
- import { createRouterMatcher as m } from "vue-router";
3
- import { useBreadcrumbStore as v } from "../../store/modules/Breadcrumb.esm.js";
4
- const w = () => {
5
- const { saveBreadcrumb: c } = v(), e = f(null);
1
+ import { ref as p } from "vue";
2
+ import { createRouterMatcher as d } from "vue-router";
3
+ import v from "../../store/modules/Breadcrumb.esm.js";
4
+ import "../../store/modules/DataDictionary.esm.js";
5
+ import "../../store/modules/KeepAlive.esm.js";
6
+ import "../../store/modules/Menu.esm.js";
7
+ import "../../store/modules/NavTab.esm.js";
8
+ import "../../store/modules/Settings.esm.js";
9
+ import "../../store/modules/User.esm.js";
10
+ const D = () => {
11
+ const { saveBreadcrumb: c } = v(), e = p(null);
6
12
  return {
7
13
  getRoutes: async (u) => {
8
14
  const o = [];
@@ -10,35 +16,35 @@ const w = () => {
10
16
  const a = await r();
11
17
  o.push(...a.default);
12
18
  }
13
- return e.value = m(o, {}), p(o);
19
+ return e.value = d(o, {}), m(o);
14
20
  },
15
21
  setMatched: (u, o) => {
16
22
  var a;
17
- const r = f([]);
23
+ const r = p([]);
18
24
  try {
19
- const n = ((a = e.value) == null ? void 0 : a.resolve(u, o).matched) ?? [];
20
- r.value = n.reduce((h, l) => {
21
- var i;
22
- return h.some(
23
- (d) => d.path === l.path
24
- ) || h.push({
25
- path: l.path,
26
- title: ((i = l.meta) == null ? void 0 : i.title) ?? "未设置标题"
27
- }), h;
25
+ const i = ((a = e.value) == null ? void 0 : a.resolve(u, o).matched) ?? [];
26
+ r.value = i.reduce((n, h) => {
27
+ var l;
28
+ return n.some(
29
+ (f) => f.path === h.path
30
+ ) || n.push({
31
+ path: h.path,
32
+ title: ((l = h.meta) == null ? void 0 : l.title) ?? "未设置标题"
33
+ }), n;
28
34
  }, []);
29
- } catch (n) {
30
- console.log(n), r.value = [];
35
+ } catch (i) {
36
+ console.log(i), r.value = [];
31
37
  }
32
38
  c(r.value);
33
39
  }
34
40
  };
35
41
  };
36
- function p(c, e = "") {
42
+ function m(c, e = "") {
37
43
  const s = [];
38
44
  for (const t of c)
39
- t.path === "" ? t.path = e : t.path.startsWith("/") || (t.path = `${e}/${t.path}`), t.children && (s.push(...p(t.children, t.path)), delete t.children), s.push(t);
45
+ t.path === "" ? t.path = e : t.path.startsWith("/") || (t.path = `${e}/${t.path}`), t.children && (s.push(...m(t.children, t.path)), delete t.children), s.push(t);
40
46
  return s;
41
47
  }
42
48
  export {
43
- w as useDitariRoute
49
+ D as useDitariRoute
44
50
  };
@@ -1,16 +1,16 @@
1
- import { useBreadcrumbStore as o } from "./modules/Breadcrumb.esm.js";
2
- import { useDataDicStore as s } from "./modules/DataDictionary.esm.js";
3
- import { useKeepAliveStore as m } from "./modules/KeepAlive.esm.js";
4
- import { useMenuStore as S } from "./modules/Menu.esm.js";
5
- import { useNavTabsStore as x } from "./modules/NavTab.esm.js";
6
- import { useSettingsStore as i } from "./modules/Settings.esm.js";
7
- import { useUserStore as c } from "./modules/User.esm.js";
1
+ import { default as t } from "./modules/Breadcrumb.esm.js";
2
+ import { default as a } from "./modules/DataDictionary.esm.js";
3
+ import { default as u } from "./modules/KeepAlive.esm.js";
4
+ import { default as d } from "./modules/Menu.esm.js";
5
+ import { default as m } from "./modules/NavTab.esm.js";
6
+ import { default as S } from "./modules/Settings.esm.js";
7
+ import { default as i } from "./modules/User.esm.js";
8
8
  export {
9
- o as useBreadcrumbStore,
10
- s as useDataDicStore,
11
- m as useKeepAliveStore,
12
- S as useMenuStore,
13
- x as useNavTabsStore,
14
- i as useSettingsStore,
15
- c as useUserStore
9
+ t as useBreadcrumbStore,
10
+ a as useDataDicStore,
11
+ u as useKeepAliveStore,
12
+ d as useMenuStore,
13
+ m as useNavTabsStore,
14
+ S as useSettingsStore,
15
+ i as useUserStore
16
16
  };
@@ -1,6 +1,6 @@
1
1
  import { defineStore as e } from "pinia";
2
2
  import { BREADCRUMB_ID as t } from "../types.esm.js";
3
- const a = e(t, {
3
+ const m = e(t, {
4
4
  state: () => ({
5
5
  breadcrumbs: []
6
6
  }),
@@ -15,5 +15,5 @@ const a = e(t, {
15
15
  persist: !0
16
16
  });
17
17
  export {
18
- a as useBreadcrumbStore
18
+ m as default
19
19
  };
@@ -30,5 +30,5 @@ const u = a(l, {
30
30
  persist: !0
31
31
  });
32
32
  export {
33
- u as useDataDicStore
33
+ u as default
34
34
  };
@@ -1,20 +1,20 @@
1
1
  import { defineStore as i } from "pinia";
2
2
  import { KEEP_ALIVE_ID as r } from "../types.esm.js";
3
- const f = i(r, {
3
+ const a = i(r, {
4
4
  state: () => ({
5
5
  list: []
6
6
  }),
7
7
  getters: {
8
- get: (e) => e.list
8
+ get: (t) => t.list
9
9
  },
10
10
  actions: {
11
11
  /**
12
12
  * 删除已经缓存的组件
13
13
  * @param name 组件名称(必须唯一)
14
14
  */
15
- deleteKeepAlive(e) {
15
+ deleteKeepAlive(t) {
16
16
  this.list.splice(
17
- this.list.findIndex((t) => t === e),
17
+ this.list.findIndex((e) => e === t),
18
18
  1
19
19
  );
20
20
  },
@@ -22,15 +22,15 @@ const f = i(r, {
22
22
  * 保存要缓存的组件名称
23
23
  * @param route
24
24
  */
25
- save(e) {
26
- const t = e.name;
27
- if (!t)
25
+ save(t) {
26
+ const e = t.name;
27
+ if (!e)
28
28
  return;
29
- this.list.some((s) => s === t) || this.list.push(t);
29
+ this.list.some((s) => s === e) || this.list.push(e);
30
30
  }
31
31
  },
32
32
  persist: !0
33
33
  });
34
34
  export {
35
- f as useKeepAliveStore
35
+ a as default
36
36
  };
@@ -1,6 +1,6 @@
1
1
  import { defineStore as t } from "pinia";
2
2
  import { MENU_ID as s } from "../types.esm.js";
3
- const o = t(s, {
3
+ const i = t(s, {
4
4
  state: () => ({
5
5
  // 菜单数据
6
6
  list: [],
@@ -20,5 +20,5 @@ const o = t(s, {
20
20
  persist: !0
21
21
  });
22
22
  export {
23
- o as useMenuStore
23
+ i as default
24
24
  };
@@ -1,6 +1,6 @@
1
1
  import { defineStore as l } from "pinia";
2
2
  import { NAV_TAB_ID as h } from "../types.esm.js";
3
- const n = l(h, {
3
+ const r = l(h, {
4
4
  state: () => ({
5
5
  // 多标签列表
6
6
  list: [],
@@ -69,5 +69,5 @@ const n = l(h, {
69
69
  persist: !0
70
70
  });
71
71
  export {
72
- n as useNavTabsStore
72
+ r as default
73
73
  };
@@ -1,6 +1,6 @@
1
- import { defineStore as r } from "pinia";
2
- import { useMediaQuery as s } from "@vueuse/core";
3
- import { SETTINGS_ID as a } from "../types.esm.js";
1
+ import { defineStore as a } from "pinia";
2
+ import { useMediaQuery as r } from "@vueuse/core";
3
+ import { SETTINGS_ID as s } from "../types.esm.js";
4
4
  const d = [
5
5
  {
6
6
  key: "700",
@@ -58,7 +58,7 @@ const d = [
58
58
  col: 5,
59
59
  description: " 显示5列每列占20%宽"
60
60
  }
61
- ], c = r(a, {
61
+ ], c = a(s, {
62
62
  state: () => ({
63
63
  // 刷新状态
64
64
  refresh: !1,
@@ -93,7 +93,7 @@ const d = [
93
93
  */
94
94
  gridMatching() {
95
95
  const e = this.mediaRuleMap.filter(
96
- (i) => s(i.value).value
96
+ (i) => r(i.value).value
97
97
  )[0], t = this.gridConfig.filter(
98
98
  (i) => i.key === e.key
99
99
  )[0];
@@ -103,5 +103,5 @@ const d = [
103
103
  persist: !0
104
104
  });
105
105
  export {
106
- c as useSettingsStore
106
+ c as default
107
107
  };
@@ -24,5 +24,5 @@ const n = o(t, {
24
24
  persist: !0
25
25
  });
26
26
  export {
27
- n as useUserStore
27
+ n as default
28
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditari/bsui",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "files": [
5
5
  "dist/**",
6
6
  "src"
@@ -7,7 +7,7 @@ import { defineComponent, ref, watchEffect } from "vue";
7
7
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
8
8
  // @ts-ignore
9
9
  // import DicWorker from "./replace.worker?worker&inline";
10
- import { useDataDicStore } from "../../store/modules/DataDictionary";
10
+ import { useDataDicStore } from "../../store";
11
11
 
12
12
  export default defineComponent({
13
13
  name: "DicReplace",
@@ -4,7 +4,7 @@
4
4
  * @author 余老
5
5
  */
6
6
  import { computed } from "vue";
7
- import { useBreadcrumbStore } from "../../store/modules/Breadcrumb";
7
+ import useBreadcrumbStore from "../../store/modules/Breadcrumb";
8
8
  import { prefixName } from "../theme";
9
9
 
10
10
  const store = useBreadcrumbStore();
@@ -22,18 +22,18 @@ export default {
22
22
  <div class="breadcrumb">
23
23
  <transition-group name="breadcrumb">
24
24
  <div
25
- class="breadcrumb-item"
26
25
  v-for="(item, index) in breadCrumbs"
27
26
  :key="item.path"
27
+ class="breadcrumb-item"
28
28
  >
29
29
  <router-link
30
+ v-if="index + 1 !== breadCrumbs.length"
30
31
  class="breadcrumb-link"
31
32
  :to="{ path: item.path }"
32
- v-if="index + 1 !== breadCrumbs.length"
33
33
  >
34
34
  {{ item.title }}
35
35
  </router-link>
36
- <span class="breadcrumb-link" v-else>
36
+ <span v-else class="breadcrumb-link">
37
37
  {{ item.title }}
38
38
  </span>
39
39
  </div>
@@ -41,6 +41,4 @@ export default {
41
41
  </div>
42
42
  </div>
43
43
  </template>
44
- <style lang="scss">
45
-
46
- </style>
44
+ <style lang="scss"></style>
@@ -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/modules/Settings";
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
- (val) => {
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
- (val) => {
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/modules/NavTab";
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 { useNavTabsStore } from "../../store/modules/NavTab";
10
- import { useSettingsStore } from "../../store/modules/Settings";
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 { useMenuStore } from "../../store/modules/Menu";
7
- import { useSettingsStore } from "../../store/modules/Settings";
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/modules/DataDictionary";
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;