@ditari/bsui 1.1.3 → 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 (123) hide show
  1. package/dist/cjs/components/layout/Breadcrumb.vue.cjs.js +1 -1
  2. package/dist/cjs/components/layout/FuckMain.vue.cjs.js +1 -1
  3. package/dist/cjs/components/layout/List.vue.cjs.js +1 -1
  4. package/dist/cjs/components/layout/Main.vue.cjs.js +1 -1
  5. package/dist/cjs/components/layout/NavTabs.vue.cjs.js +1 -1
  6. package/dist/cjs/components/layout/Show.vue.cjs.js +1 -1
  7. package/dist/cjs/components/select/Select.vue.cjs.js +1 -1
  8. package/dist/esm/components/layout/Breadcrumb.vue.esm.js +24 -24
  9. package/dist/esm/components/layout/FuckMain.vue.esm.js +48 -48
  10. package/dist/esm/components/layout/List.vue.esm.js +40 -38
  11. package/dist/esm/components/layout/Main.vue.esm.js +43 -43
  12. package/dist/esm/components/layout/NavTabs.vue.esm.js +17 -17
  13. package/dist/esm/components/layout/Show.vue.esm.js +20 -20
  14. package/dist/esm/components/select/Select.vue.esm.js +31 -31
  15. package/package.json +1 -1
  16. package/src/components/layout/List.vue +8 -3
  17. package/{dist/cjs → src/dist}/components/components.d.ts +11 -11
  18. package/{dist/esm → src/dist}/components/date/RangePicker.d.ts +30 -30
  19. package/{dist/esm → src/dist}/components/date/index.d.ts +53 -53
  20. package/{dist/esm → src/dist}/components/desensitize/Desensitize.d.ts +39 -39
  21. package/{dist/cjs → src/dist}/components/desensitize/index.d.ts +39 -39
  22. package/{dist/cjs → src/dist}/components/dic/DicReplace.d.ts +23 -23
  23. package/{dist/esm → src/dist}/components/dic/index.d.ts +23 -23
  24. package/src/dist/components/dic/replace.worker.d.ts +4 -0
  25. package/{dist/cjs → src/dist}/components/form/DQueryForm.d.ts +47 -47
  26. package/{dist/esm → src/dist}/components/form/index.d.ts +89 -89
  27. package/{dist/esm → src/dist}/components/grid/Grid.d.ts +32 -32
  28. package/{dist/cjs → src/dist}/components/grid/GridItem.d.ts +2 -2
  29. package/{dist/cjs → src/dist}/components/grid/index.d.ts +32 -32
  30. package/{dist/esm → src/dist}/components/index.d.ts +15 -15
  31. package/{dist/cjs → src/dist}/components/json-scheme-render/JsonSchemeRender.d.ts +23 -23
  32. package/{dist/cjs → src/dist}/components/json-scheme-render/index.d.ts +47 -47
  33. package/src/dist/components/layout/Breadcrumb.vue.d.ts +2 -0
  34. package/src/dist/components/layout/FuckMain.vue.d.ts +23 -0
  35. package/src/dist/components/layout/List.vue.d.ts +18 -0
  36. package/src/dist/components/layout/Main.vue.d.ts +29 -0
  37. package/src/dist/components/layout/NavTabs.vue.d.ts +2 -0
  38. package/src/dist/components/layout/Show.vue.d.ts +35 -0
  39. package/src/dist/components/layout/index.d.ts +328 -0
  40. package/{dist/esm → src/dist}/components/menu/Menu.d.ts +2 -2
  41. package/{dist/cjs → src/dist}/components/modal/Modal.d.ts +43 -43
  42. package/{dist/esm → src/dist}/components/modal/index.d.ts +43 -43
  43. package/src/dist/components/select/Select.vue.d.ts +62 -0
  44. package/src/dist/components/select/dic.worker.d.ts +4 -0
  45. package/src/dist/components/select/index.d.ts +62 -0
  46. package/{dist/esm → src/dist}/components/table/Table.d.ts +80 -80
  47. package/{dist/cjs → src/dist}/components/table/index.d.ts +75 -75
  48. package/{dist/cjs → src/dist}/components/table/interface/table.d.ts +36 -36
  49. package/{dist/cjs → src/dist}/components/theme/index.d.ts +1 -1
  50. package/{dist/cjs → src/dist}/directive/trim.d.ts +5 -5
  51. package/{dist/cjs → src/dist}/hooks/http/index.d.ts +28 -28
  52. package/{dist/cjs → src/dist}/hooks/index.d.ts +2 -2
  53. package/{dist/esm → src/dist}/hooks/route/index.d.ts +8 -8
  54. package/{dist/cjs → src/dist}/store/index.d.ts +7 -7
  55. package/{dist/esm → src/dist}/store/modules/Breadcrumb.d.ts +11 -11
  56. package/{dist/cjs → src/dist}/store/modules/DataDictionary.d.ts +33 -33
  57. package/{dist/esm → src/dist}/store/modules/KeepAlive.d.ts +22 -22
  58. package/{dist/cjs → src/dist}/store/modules/Menu.d.ts +18 -18
  59. package/{dist/cjs → src/dist}/store/modules/NavTab.d.ts +65 -65
  60. package/{dist/cjs → src/dist}/store/modules/Settings.d.ts +44 -44
  61. package/{dist/esm → src/dist}/store/modules/User.d.ts +22 -22
  62. package/{dist/cjs → src/dist}/store/types.d.ts +7 -7
  63. package/{dist/cjs → src/dist}/utils/get.d.ts +1 -1
  64. package/{dist/cjs → src/dist}/utils/html.d.ts +1 -1
  65. package/{dist/cjs → src/dist}/utils/index.d.ts +3 -3
  66. package/{dist/cjs → src/dist}/utils/install.d.ts +4 -4
  67. package/dist/cjs/components/date/RangePicker.d.ts +0 -30
  68. package/dist/cjs/components/date/index.d.ts +0 -53
  69. package/dist/cjs/components/desensitize/Desensitize.d.ts +0 -39
  70. package/dist/cjs/components/dic/index.d.ts +0 -23
  71. package/dist/cjs/components/form/index.d.ts +0 -89
  72. package/dist/cjs/components/grid/Grid.d.ts +0 -32
  73. package/dist/cjs/components/index.d.ts +0 -15
  74. package/dist/cjs/components/layout/Breadcrumb.vue.d.ts +0 -2
  75. package/dist/cjs/components/layout/FuckMain.vue.d.ts +0 -17
  76. package/dist/cjs/components/layout/List.vue.d.ts +0 -4
  77. package/dist/cjs/components/layout/Main.vue.d.ts +0 -25
  78. package/dist/cjs/components/layout/NavTabs.vue.d.ts +0 -2
  79. package/dist/cjs/components/layout/Show.vue.d.ts +0 -30
  80. package/dist/cjs/components/layout/index.d.ts +0 -70
  81. package/dist/cjs/components/menu/Menu.d.ts +0 -2
  82. package/dist/cjs/components/modal/index.d.ts +0 -43
  83. package/dist/cjs/components/select/Select.vue.d.ts +0 -65
  84. package/dist/cjs/components/select/index.d.ts +0 -64
  85. package/dist/cjs/components/table/Table.d.ts +0 -80
  86. package/dist/cjs/hooks/route/index.d.ts +0 -8
  87. package/dist/cjs/store/modules/Breadcrumb.d.ts +0 -11
  88. package/dist/cjs/store/modules/KeepAlive.d.ts +0 -22
  89. package/dist/cjs/store/modules/User.d.ts +0 -22
  90. package/dist/esm/components/components.d.ts +0 -11
  91. package/dist/esm/components/desensitize/index.d.ts +0 -39
  92. package/dist/esm/components/dic/DicReplace.d.ts +0 -23
  93. package/dist/esm/components/form/DQueryForm.d.ts +0 -47
  94. package/dist/esm/components/grid/GridItem.d.ts +0 -2
  95. package/dist/esm/components/grid/index.d.ts +0 -32
  96. package/dist/esm/components/json-scheme-render/JsonSchemeRender.d.ts +0 -23
  97. package/dist/esm/components/json-scheme-render/index.d.ts +0 -47
  98. package/dist/esm/components/layout/Breadcrumb.vue.d.ts +0 -2
  99. package/dist/esm/components/layout/FuckMain.vue.d.ts +0 -17
  100. package/dist/esm/components/layout/List.vue.d.ts +0 -4
  101. package/dist/esm/components/layout/Main.vue.d.ts +0 -25
  102. package/dist/esm/components/layout/NavTabs.vue.d.ts +0 -2
  103. package/dist/esm/components/layout/Show.vue.d.ts +0 -30
  104. package/dist/esm/components/layout/index.d.ts +0 -70
  105. package/dist/esm/components/modal/Modal.d.ts +0 -43
  106. package/dist/esm/components/select/Select.vue.d.ts +0 -65
  107. package/dist/esm/components/select/index.d.ts +0 -64
  108. package/dist/esm/components/table/index.d.ts +0 -75
  109. package/dist/esm/components/table/interface/table.d.ts +0 -36
  110. package/dist/esm/components/theme/index.d.ts +0 -1
  111. package/dist/esm/directive/trim.d.ts +0 -5
  112. package/dist/esm/hooks/http/index.d.ts +0 -28
  113. package/dist/esm/hooks/index.d.ts +0 -2
  114. package/dist/esm/store/index.d.ts +0 -7
  115. package/dist/esm/store/modules/DataDictionary.d.ts +0 -33
  116. package/dist/esm/store/modules/Menu.d.ts +0 -18
  117. package/dist/esm/store/modules/NavTab.d.ts +0 -65
  118. package/dist/esm/store/modules/Settings.d.ts +0 -44
  119. package/dist/esm/store/types.d.ts +0 -7
  120. package/dist/esm/utils/get.d.ts +0 -1
  121. package/dist/esm/utils/html.d.ts +0 -1
  122. package/dist/esm/utils/index.d.ts +0 -3
  123. package/dist/esm/utils/install.d.ts +0 -4
@@ -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 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 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,4 +1,4 @@
1
- import { defineComponent as P, computed as x, ref as w, watchEffect as A, watch as B, resolveComponent as d, openBlock as l, createElementBlock as p, normalizeClass as h, createVNode as _, withCtx as b, Fragment as E, renderList as R, unref as C, createBlock as V, createElementVNode as k, toDisplayString as q, createCommentVNode as D } from "vue";
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";
@@ -10,18 +10,18 @@ import $ from "../../store/modules/NavTab.esm.js";
10
10
  import "../../store/modules/Settings.esm.js";
11
11
  import "../../store/modules/User.esm.js";
12
12
  import { prefixName as j } from "../theme/index.esm.js";
13
- const G = /* @__PURE__ */ k("div", { class: "tab-dividers" }, null, -1), H = {
13
+ const G = /* @__PURE__ */ C("div", { class: "tab-dividers" }, null, -1), H = {
14
14
  key: 0,
15
15
  class: "tab-close"
16
16
  }, I = {
17
17
  name: "DNavTabs"
18
- }, le = /* @__PURE__ */ P({
18
+ }, le = /* @__PURE__ */ T({
19
19
  ...I,
20
20
  setup(J) {
21
- const n = L(), m = M(), u = $(), v = F(), y = U(), N = `${j}-nav`, o = x(() => u.getList), { selectedMenuKeys: c } = z(y), r = w("");
22
- A(() => {
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
23
  r.value = c.value.length > 0 ? c.value[0] : "";
24
- }), f(), B(
24
+ }), f(), A(
25
25
  () => n.path,
26
26
  () => {
27
27
  f();
@@ -30,7 +30,7 @@ const G = /* @__PURE__ */ k("div", { class: "tab-dividers" }, null, -1), H = {
30
30
  function f() {
31
31
  u.save(n), c.value = [n.path], v.save(n);
32
32
  }
33
- const S = (t) => {
33
+ const N = (t) => {
34
34
  if (t !== n.path) {
35
35
  const e = o.value.filter((s) => s.path === t)[0];
36
36
  m.push({
@@ -40,36 +40,36 @@ const G = /* @__PURE__ */ k("div", { class: "tab-dividers" }, null, -1), H = {
40
40
  fullPath: e.fullPath
41
41
  });
42
42
  }
43
- }, g = (t, e) => {
43
+ }, S = (t, e) => {
44
44
  const s = o.value.find((i) => i.fullPath === e);
45
45
  t.stopPropagation(), u.deleteTabs(e), m.push(o.value[o.value.length - 1].fullPath), s.name && v.deleteKeepAlive(s.name);
46
- }, K = (t) => {
46
+ }, g = (t) => {
47
47
  var e;
48
48
  return (e = t.meta) != null && e.keepOpen ? !1 : o.value.length !== 1;
49
49
  };
50
50
  return (t, e) => {
51
51
  const s = d("a-tab-pane"), i = d("a-tabs");
52
52
  return l(), p("div", {
53
- class: h(N)
53
+ class: h(y)
54
54
  }, [
55
55
  _(i, {
56
56
  activeKey: r.value,
57
57
  "onUpdate:activeKey": e[0] || (e[0] = (a) => r.value = a),
58
58
  type: "card",
59
- onTabClick: S
59
+ onTabClick: N
60
60
  }, {
61
61
  default: b(() => [
62
- (l(!0), p(E, null, R(C(o), (a) => (l(), V(s, {
62
+ (l(!0), p(B, null, E(o.value, (a) => (l(), R(s, {
63
63
  key: a.path
64
64
  }, {
65
65
  tab: b(() => [
66
66
  G,
67
- k("div", {
67
+ C("div", {
68
68
  class: h(["tab-item", { active: r.value === a.path }])
69
- }, q(a.meta.title), 3),
70
- K(a) ? (l(), p("div", H, [
71
- _(C(O), {
72
- onClick: (T) => g(T, a.fullPath)
69
+ }, V(a.meta.title), 3),
70
+ g(a) ? (l(), p("div", H, [
71
+ _(q(O), {
72
+ onClick: (K) => S(K, a.fullPath)
73
73
  }, null, 8, ["onClick"])
74
74
  ])) : D("", !0)
75
75
  ]),
@@ -1,4 +1,4 @@
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";
@@ -10,46 +10,46 @@ const K = { class: "ditari-show-layout" }, M = {
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,4 +1,4 @@
1
- import { defineComponent as _, ref as f, watch as O, resolveComponent as V, openBlock as y, createBlock as M, unref as s, isRef as A } from "vue";
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
2
  import "../../store/modules/Breadcrumb.esm.js";
3
3
  import F from "../../store/modules/DataDictionary.esm.js";
4
4
  import "../../store/modules/KeepAlive.esm.js";
@@ -8,7 +8,7 @@ import "../../store/modules/Settings.esm.js";
8
8
  import "../../store/modules/User.esm.js";
9
9
  const H = {
10
10
  name: "DSelect"
11
- }, E = /* @__PURE__ */ _({
11
+ }, E = /* @__PURE__ */ D({
12
12
  ...H,
13
13
  props: {
14
14
  value: { default: null },
@@ -18,59 +18,59 @@ const H = {
18
18
  include: { default: [] }
19
19
  },
20
20
  emits: ["update:value", "change", "select"],
21
- setup(r, { emit: c }) {
22
- const u = r, { getDicByKey: p } = F(), { modelValue: i, data: h, onSearch: I, onSelect: m, onChange: v } = C();
21
+ setup(f, { emit: c }) {
22
+ const u = f, { getDicByKey: d } = F(), { modelValue: r, data: h, onSearch: I, onSelect: m, onChange: v } = C();
23
23
  function C() {
24
- const a = [...p(u.name)], n = f(a), l = f(u.value);
24
+ const n = [...d(u.name)], t = p(n), a = p(u.value);
25
25
  O(
26
26
  () => u.value,
27
27
  (e) => {
28
- l.value = e, L(e);
28
+ a.value = e, L(e);
29
29
  }
30
30
  );
31
- const d = (e) => {
31
+ const i = (e) => {
32
32
  g(e);
33
33
  };
34
34
  function g(e) {
35
- e = e ?? "", n.value = a.filter((t) => t.value.toLowerCase().indexOf(e.toLowerCase()) !== -1 || t.label.toLowerCase().includes(e.toLowerCase())).splice(0, 10), n.value.length === 0 && (n.value = [...a].splice(0, 10));
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));
36
36
  }
37
37
  function L(e) {
38
38
  e = e || "";
39
- const t = a.findIndex((o) => o.value.toLowerCase().indexOf(e.toLowerCase()) !== -1 || o.label.toLowerCase().includes(e));
40
- t === -1 ? n.value = [...a].splice(0, 10) : n.value = b(a, t);
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);
41
41
  }
42
- function b(e, t) {
43
- const o = Math.max(0, t - 5), D = Math.min(e.length, t + 6);
44
- 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);
45
45
  }
46
46
  const w = (e) => {
47
- c("update:value", e), B();
48
- }, x = () => {
49
- c("update:value", l.value), c("change", l.value);
47
+ c("update:value", e), x();
48
+ }, _ = () => {
49
+ c("update:value", a.value), c("change", a.value);
50
50
  };
51
- function B() {
52
- const t = p(u.name).find((o) => o.value === l.value);
53
- c("select", t);
51
+ function x() {
52
+ const o = d(u.name).find((l) => l.value === a.value);
53
+ c("select", o);
54
54
  }
55
55
  return {
56
- data: n,
57
- modelValue: l,
58
- onSearch: d,
56
+ data: t,
57
+ modelValue: a,
58
+ onSearch: i,
59
59
  onSelect: w,
60
- onChange: x
60
+ onChange: _
61
61
  };
62
62
  }
63
- const S = (a, n) => n.label.includes(a);
64
- return (a, n) => {
65
- const l = V("a-select");
66
- return y(), M(l, {
67
- value: s(i),
68
- "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),
69
69
  "allow-clear": "",
70
70
  "show-search": "",
71
71
  options: s(h),
72
- placeholder: r.placeholder,
73
- disabled: r.disabled,
72
+ placeholder: n.placeholder,
73
+ disabled: n.disabled,
74
74
  "filter-option": S,
75
75
  onSelect: s(m),
76
76
  onChange: s(v)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditari/bsui",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "files": [
5
5
  "dist/**",
6
6
  "src"
@@ -7,7 +7,8 @@ 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
14
  import { useSettingsStore } from "../../store";
@@ -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 {
@@ -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;