@duxweb/dvha-pro 1.0.23 → 1.0.24

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 (152) hide show
  1. package/dist/cjs/components/card/card.cjs +1 -1
  2. package/dist/cjs/components/card/store.cjs +1 -1
  3. package/dist/cjs/components/carousel/carousel.cjs +1 -1
  4. package/dist/cjs/components/crop/imageCrop.cjs +1 -1
  5. package/dist/cjs/components/crop/imageCropModal.cjs +1 -1
  6. package/dist/cjs/components/dashboard/hello.cjs +1 -1
  7. package/dist/cjs/components/dashboard/helloBig.cjs +1 -1
  8. package/dist/cjs/components/dashboard/quick.cjs +1 -1
  9. package/dist/cjs/components/data/dynamicData.cjs +1 -1
  10. package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
  11. package/dist/cjs/components/data/selectModal.cjs +1 -1
  12. package/dist/cjs/components/dialog/dialog.cjs +1 -1
  13. package/dist/cjs/components/drawer/drawer.cjs +1 -1
  14. package/dist/cjs/components/drawer/drawerPage.cjs +1 -1
  15. package/dist/cjs/components/editor/aiEditor.cjs +1 -1
  16. package/dist/cjs/components/form/drawerForm.cjs +1 -1
  17. package/dist/cjs/components/form/formItem.cjs +1 -1
  18. package/dist/cjs/components/form/formLayout.cjs +1 -1
  19. package/dist/cjs/components/form/modalForm.cjs +1 -1
  20. package/dist/cjs/components/form/pageForm.cjs +1 -1
  21. package/dist/cjs/components/form/settingForm.cjs +1 -1
  22. package/dist/cjs/components/icon/iconPicker.cjs +1 -1
  23. package/dist/cjs/components/layout/filter.cjs +1 -1
  24. package/dist/cjs/components/layout/filterLayout.cjs +1 -1
  25. package/dist/cjs/components/layout/list.cjs +1 -1
  26. package/dist/cjs/components/layout/table.cjs +1 -1
  27. package/dist/cjs/components/layout/tools.cjs +1 -1
  28. package/dist/cjs/components/list/card.cjs +1 -1
  29. package/dist/cjs/components/list/list.cjs +1 -1
  30. package/dist/cjs/components/media/media.cjs +1 -1
  31. package/dist/cjs/components/modal/modal.cjs +1 -1
  32. package/dist/cjs/components/modal/modalPage.cjs +1 -1
  33. package/dist/cjs/components/modal/modalTab.cjs +1 -1
  34. package/dist/cjs/components/panel/alert.cjs +1 -1
  35. package/dist/cjs/components/panel/collapse.cjs +1 -1
  36. package/dist/cjs/components/panel/setting.cjs +1 -1
  37. package/dist/cjs/components/select/cardSelect.cjs +1 -1
  38. package/dist/cjs/components/status/listEmpty.cjs +1 -1
  39. package/dist/cjs/components/table/tablePage.cjs +1 -1
  40. package/dist/cjs/components/tree/treeFilter.cjs +1 -1
  41. package/dist/cjs/components/upload/config.cjs +1 -1
  42. package/dist/cjs/components/upload/file.cjs +1 -1
  43. package/dist/cjs/components/upload/image.cjs +1 -1
  44. package/dist/cjs/components/upload/manage/item.cjs +1 -1
  45. package/dist/cjs/components/upload/manager.cjs +1 -1
  46. package/dist/cjs/components/widget/connect.cjs +1 -1
  47. package/dist/cjs/dvha-pro.css +1 -1
  48. package/dist/cjs/hooks/action.cjs +1 -1
  49. package/dist/cjs/hooks/download.cjs +1 -1
  50. package/dist/cjs/hooks/echart.cjs +1 -1
  51. package/dist/cjs/hooks/image.cjs +1 -1
  52. package/dist/cjs/hooks/level.cjs +1 -1
  53. package/dist/cjs/hooks/table/color.cjs +1 -0
  54. package/dist/cjs/hooks/table/column.cjs +1 -1
  55. package/dist/cjs/hooks/table/image.cjs +1 -1
  56. package/dist/cjs/hooks/table/input.cjs +1 -1
  57. package/dist/cjs/hooks/table/map.cjs +1 -1
  58. package/dist/cjs/hooks/table/status.cjs +1 -1
  59. package/dist/cjs/hooks/table/switch.cjs +1 -1
  60. package/dist/cjs/hooks/table.cjs +1 -1
  61. package/dist/cjs/index.cjs +1 -1
  62. package/dist/cjs/pages/layout/global.cjs +1 -1
  63. package/dist/cjs/pages/layout/tab.cjs +1 -1
  64. package/dist/cjs/pages/login.cjs +1 -1
  65. package/dist/cjs/pages/menu/avatar.cjs +1 -1
  66. package/dist/cjs/pages/menu/button.cjs +1 -1
  67. package/dist/cjs/pages/menu/cmd.cjs +1 -1
  68. package/dist/cjs/pages/page.cjs +1 -1
  69. package/dist/cjs/pages/pageStatus.cjs +1 -1
  70. package/dist/cjs/stores/ui.cjs +1 -1
  71. package/dist/cjs/theme/uno.css.cjs +2 -1
  72. package/dist/esm/components/card/card.js +24 -27
  73. package/dist/esm/components/card/store.js +33 -39
  74. package/dist/esm/components/carousel/carousel.js +16 -19
  75. package/dist/esm/components/crop/imageCrop.js +32 -35
  76. package/dist/esm/components/crop/imageCropModal.js +36 -37
  77. package/dist/esm/components/dashboard/hello.js +27 -30
  78. package/dist/esm/components/dashboard/helloBig.js +328 -331
  79. package/dist/esm/components/dashboard/quick.js +30 -33
  80. package/dist/esm/components/data/dynamicData.js +86 -98
  81. package/dist/esm/components/data/dynamicSelect.js +29 -31
  82. package/dist/esm/components/data/selectModal.js +45 -49
  83. package/dist/esm/components/dialog/dialog.js +54 -55
  84. package/dist/esm/components/drawer/drawer.js +23 -23
  85. package/dist/esm/components/drawer/drawerPage.js +39 -49
  86. package/dist/esm/components/editor/aiEditor.js +64 -70
  87. package/dist/esm/components/form/drawerForm.js +48 -48
  88. package/dist/esm/components/form/formItem.js +45 -51
  89. package/dist/esm/components/form/formLayout.js +7 -10
  90. package/dist/esm/components/form/modalForm.js +50 -50
  91. package/dist/esm/components/form/pageForm.js +47 -50
  92. package/dist/esm/components/form/settingForm.js +34 -37
  93. package/dist/esm/components/icon/iconPicker.js +54 -58
  94. package/dist/esm/components/layout/filter.js +13 -16
  95. package/dist/esm/components/layout/filterLayout.js +7 -10
  96. package/dist/esm/components/layout/list.js +299 -326
  97. package/dist/esm/components/layout/table.js +268 -283
  98. package/dist/esm/components/layout/tools.js +38 -41
  99. package/dist/esm/components/list/card.js +35 -38
  100. package/dist/esm/components/list/list.js +15 -18
  101. package/dist/esm/components/media/media.js +35 -36
  102. package/dist/esm/components/modal/modal.js +10 -10
  103. package/dist/esm/components/modal/modalPage.js +32 -36
  104. package/dist/esm/components/modal/modalTab.js +39 -45
  105. package/dist/esm/components/panel/alert.js +19 -22
  106. package/dist/esm/components/panel/collapse.js +33 -36
  107. package/dist/esm/components/panel/setting.js +25 -31
  108. package/dist/esm/components/select/cardSelect.js +27 -28
  109. package/dist/esm/components/status/listEmpty.js +13 -13
  110. package/dist/esm/components/table/tablePage.js +25 -25
  111. package/dist/esm/components/tree/treeFilter.js +137 -147
  112. package/dist/esm/components/upload/config.js +15 -27
  113. package/dist/esm/components/upload/file.js +90 -94
  114. package/dist/esm/components/upload/image.js +116 -123
  115. package/dist/esm/components/upload/manage/item.js +44 -47
  116. package/dist/esm/components/upload/manager.js +190 -207
  117. package/dist/esm/components/widget/connect.js +103 -106
  118. package/dist/esm/dvha-pro.css +1 -1
  119. package/dist/esm/hooks/action.js +115 -131
  120. package/dist/esm/hooks/download.js +55 -56
  121. package/dist/esm/hooks/echart.js +156 -179
  122. package/dist/esm/hooks/image.js +14 -15
  123. package/dist/esm/hooks/level.js +7 -7
  124. package/dist/esm/hooks/table/color.js +19 -0
  125. package/dist/esm/hooks/table/column.js +25 -23
  126. package/dist/esm/hooks/table/image.js +2 -2
  127. package/dist/esm/hooks/table/input.js +28 -28
  128. package/dist/esm/hooks/table/map.js +7 -7
  129. package/dist/esm/hooks/table/status.js +8 -9
  130. package/dist/esm/hooks/table/switch.js +19 -19
  131. package/dist/esm/hooks/table.js +27 -31
  132. package/dist/esm/index.js +167 -165
  133. package/dist/esm/pages/layout/global.js +12 -15
  134. package/dist/esm/pages/layout/tab.js +58 -71
  135. package/dist/esm/pages/login.js +81 -85
  136. package/dist/esm/pages/menu/avatar.js +136 -149
  137. package/dist/esm/pages/menu/button.js +16 -20
  138. package/dist/esm/pages/menu/cmd.js +68 -74
  139. package/dist/esm/pages/page.js +21 -25
  140. package/dist/esm/pages/pageStatus.js +21 -24
  141. package/dist/esm/stores/ui.js +15 -15
  142. package/dist/esm/theme/uno.css.js +2 -1
  143. package/dist/types/components/form/drawerForm.d.ts +6 -0
  144. package/dist/types/components/form/modalForm.d.ts +6 -0
  145. package/dist/types/components/form/pageForm.d.ts +6 -0
  146. package/dist/types/components/form/settingForm.d.ts +6 -0
  147. package/dist/types/components/layout/table.d.ts +9 -0
  148. package/dist/types/components/table/tablePage.d.ts +9 -0
  149. package/dist/types/hooks/table/color.d.ts +13 -0
  150. package/dist/types/hooks/table/column.d.ts +1 -0
  151. package/dist/types/hooks/table/index.d.ts +1 -0
  152. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
- import { defineComponent as d, computed as l, createVNode as t } from "vue";
2
- const p = /* @__PURE__ */ d({
1
+ import { defineComponent as i, computed as l, createVNode as t } from "vue";
2
+ const s = /* @__PURE__ */ i({
3
3
  name: "DuxPanelAlert",
4
4
  props: {
5
5
  type: {
@@ -18,7 +18,7 @@ const p = /* @__PURE__ */ d({
18
18
  setup(r, {
19
19
  slots: e
20
20
  }) {
21
- const c = l(() => {
21
+ const a = l(() => {
22
22
  switch (r.type) {
23
23
  case "error":
24
24
  return "to-error/20";
@@ -32,26 +32,23 @@ const p = /* @__PURE__ */ d({
32
32
  return "to-gray/20";
33
33
  }
34
34
  });
35
- return () => {
36
- var a, i, n;
37
- return t("div", {
38
- class: `relative flex rounded-lg ring ring-muted bg-linear-to-br from-transparent ${c.value}`
39
- }, [t("div", {
40
- class: "relative flex flex-col flex-1 lg:grid gap-x-8 gap-y-4 p-4 sm:p-6"
41
- }, [t("div", {
42
- class: "flex flex-col flex-1 items-start"
43
- }, [t("div", {
44
- class: "flex-1"
45
- }, [t("div", {
46
- class: "text-base text-pretty text-highlighted"
47
- }, [((a = e.title) == null ? void 0 : a.call(e)) || r.title]), t("div", {
48
- class: "text-sm text-pretty text-muted mt-1"
49
- }, [((i = e.description) == null ? void 0 : i.call(e)) || r.description])]), e.actions && t("div", {
50
- class: "pt-4 mt-auto"
51
- }, [(n = e.actions) == null ? void 0 : n.call(e)])])])]);
52
- };
35
+ return () => t("div", {
36
+ class: `relative flex rounded-lg ring ring-muted bg-linear-to-br from-transparent ${a.value}`
37
+ }, [t("div", {
38
+ class: "relative flex flex-col flex-1 lg:grid gap-x-8 gap-y-4 p-4 sm:p-6"
39
+ }, [t("div", {
40
+ class: "flex flex-col flex-1 items-start"
41
+ }, [t("div", {
42
+ class: "flex-1"
43
+ }, [t("div", {
44
+ class: "text-base text-pretty text-highlighted"
45
+ }, [e.title?.() || r.title]), t("div", {
46
+ class: "text-sm text-pretty text-muted mt-1"
47
+ }, [e.description?.() || r.description])]), e.actions && t("div", {
48
+ class: "pt-4 mt-auto"
49
+ }, [e.actions?.()])])])]);
53
50
  }
54
51
  });
55
52
  export {
56
- p as DuxPanelAlert
53
+ s as DuxPanelAlert
57
54
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as n, ref as c, createVNode as a } from "vue";
2
- import t from "clsx";
3
- const h = /* @__PURE__ */ n({
1
+ import { defineComponent as r, ref as s, createVNode as e } from "vue";
2
+ import a from "clsx";
3
+ const n = /* @__PURE__ */ r({
4
4
  name: "DuxCollapsePanel",
5
5
  props: {
6
6
  title: String,
@@ -8,42 +8,39 @@ const h = /* @__PURE__ */ n({
8
8
  defaultShow: Boolean,
9
9
  highlight: Boolean
10
10
  },
11
- setup(e, {
11
+ setup(l, {
12
12
  slots: i
13
13
  }) {
14
- const l = c(!!e.defaultShow);
15
- return () => {
16
- var d, r;
17
- return a("div", {
18
- class: t(["border rounded-sm", e.highlight ? "border-primary" : "border-muted"])
19
- }, [a("div", {
20
- class: t(["px-4 py-3 flex justify-between items-center", e.highlight ? "bg-primary/10" : "bg-gray/5"])
21
- }, [a("div", {
22
- class: "flex gap-2 items-start"
23
- }, [a("div", {
24
- class: "pt-0.5"
25
- }, [(d = i.suffix) == null ? void 0 : d.call(i)]), a("div", {
26
- class: "flex flex-col"
27
- }, [a("div", {
28
- class: "font-medium text-base"
29
- }, [e == null ? void 0 : e.title]), (e == null ? void 0 : e.desc) && a("div", {
30
- class: "text-muted"
31
- }, [e.desc])])]), a("div", {
32
- class: t(["p-2 rounded-full text-primary cursor-pointer", e.highlight ? "bg-primary/10" : "bg-gray/5"]),
33
- onClick: () => l.value = !l.value
34
- }, [a("div", {
35
- class: t(["i-tabler:arrow-down size-4 transition-all", l.value ? "" : "rotate-180"])
36
- }, null)])]), a("div", {
37
- class: t("transition-all overflow-hidden", {
38
- "max-h-0": !l.value,
39
- "max-h-500": l.value
40
- })
41
- }, [a("div", {
42
- class: "p-4"
43
- }, [(r = i.default) == null ? void 0 : r.call(i)])])]);
44
- };
14
+ const t = s(!!l.defaultShow);
15
+ return () => e("div", {
16
+ class: a(["border rounded-sm", l.highlight ? "border-primary" : "border-muted"])
17
+ }, [e("div", {
18
+ class: a(["px-4 py-3 flex justify-between items-center", l.highlight ? "bg-primary/10" : "bg-gray/5"])
19
+ }, [e("div", {
20
+ class: "flex gap-2 items-start"
21
+ }, [e("div", {
22
+ class: "pt-0.5"
23
+ }, [i.suffix?.()]), e("div", {
24
+ class: "flex flex-col"
25
+ }, [e("div", {
26
+ class: "font-medium text-base"
27
+ }, [l?.title]), l?.desc && e("div", {
28
+ class: "text-muted"
29
+ }, [l.desc])])]), e("div", {
30
+ class: a(["p-2 rounded-full text-primary cursor-pointer", l.highlight ? "bg-primary/10" : "bg-gray/5"]),
31
+ onClick: () => t.value = !t.value
32
+ }, [e("div", {
33
+ class: a(["i-tabler:arrow-down size-4 transition-all", t.value ? "" : "rotate-180"])
34
+ }, null)])]), e("div", {
35
+ class: a("transition-all overflow-hidden", {
36
+ "max-h-0": !t.value,
37
+ "max-h-500": t.value
38
+ })
39
+ }, [e("div", {
40
+ class: "p-4"
41
+ }, [i.default?.()])])]);
45
42
  }
46
43
  });
47
44
  export {
48
- h as DuxCollapsePanel
45
+ n as DuxCollapsePanel
49
46
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as r, createVNode as e } from "vue";
2
- import { DuxCard as n } from "../card/card.js";
1
+ import { defineComponent as i, createVNode as e } from "vue";
2
+ import { DuxCard as a } from "../card/card.js";
3
3
  import "clsx";
4
4
  import "naive-ui";
5
- const m = /* @__PURE__ */ r({
5
+ const s = /* @__PURE__ */ i({
6
6
  name: "DuxPanelCard",
7
7
  props: {
8
8
  title: {
@@ -21,36 +21,30 @@ const m = /* @__PURE__ */ r({
21
21
  default: !0
22
22
  }
23
23
  },
24
- setup(d, {
25
- slots: t
24
+ setup(t, {
25
+ slots: d
26
26
  }) {
27
- return () => {
28
- var i;
29
- return e("div", {
30
- class: "flex flex-col gap-4"
31
- }, [e("div", {
32
- class: "flex items-center px-2"
33
- }, [e("div", {
34
- class: "flex-1 flex flex-col"
35
- }, [e("div", {
36
- class: "text-base"
37
- }, [d.title]), d.description && e("div", {
38
- class: "text-sm text-muted"
39
- }, [d.description])]), e("div", {
40
- class: "flex-none flex items-center"
41
- }, [(i = t.actions) == null ? void 0 : i.call(t)])]), e(n, {
42
- size: d.padding,
43
- shadow: !1,
44
- bordered: d.bordered
45
- }, {
46
- default: () => {
47
- var a;
48
- return [(a = t.default) == null ? void 0 : a.call(t)];
49
- }
50
- })]);
51
- };
27
+ return () => e("div", {
28
+ class: "flex flex-col gap-4"
29
+ }, [e("div", {
30
+ class: "flex items-center px-2"
31
+ }, [e("div", {
32
+ class: "flex-1 flex flex-col"
33
+ }, [e("div", {
34
+ class: "text-base"
35
+ }, [t.title]), t.description && e("div", {
36
+ class: "text-sm text-muted"
37
+ }, [t.description])]), e("div", {
38
+ class: "flex-none flex items-center"
39
+ }, [d.actions?.()])]), e(a, {
40
+ size: t.padding,
41
+ shadow: !1,
42
+ bordered: t.bordered
43
+ }, {
44
+ default: () => [d.default?.()]
45
+ })]);
52
46
  }
53
47
  });
54
48
  export {
55
- m as DuxPanelCard
49
+ s as DuxPanelCard
56
50
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as f, createVNode as a } from "vue";
2
- import { useVModel as m } from "@vueuse/core";
3
- const y = /* @__PURE__ */ f({
1
+ import { defineComponent as n, createVNode as l } from "vue";
2
+ import { useVModel as f } from "@vueuse/core";
3
+ const x = /* @__PURE__ */ n({
4
4
  name: "DuxSelectCard",
5
5
  props: {
6
6
  options: {
@@ -37,60 +37,59 @@ const y = /* @__PURE__ */ f({
37
37
  }
38
38
  },
39
39
  emits: ["update:value", "change"],
40
- setup(l, {
40
+ setup(a, {
41
41
  emit: u
42
42
  }) {
43
- const t = m(l, "value", u, {
43
+ const t = f(a, "value", u, {
44
44
  passive: !0,
45
- defaultValue: l.defaultValue
46
- }), s = (e) => {
47
- var i;
48
- if (!l.disabled) {
49
- if (l.multiple) {
45
+ defaultValue: a.defaultValue
46
+ }), i = (e) => {
47
+ if (!a.disabled) {
48
+ if (a.multiple) {
50
49
  const d = Array.isArray(t.value) ? t.value : [];
51
- t.value = d.includes(e) ? d.filter((n) => n !== e) : [...d, e];
50
+ t.value = d.includes(e) ? d.filter((c) => c !== e) : [...d, e];
52
51
  } else
53
52
  t.value = e;
54
- (i = l.onUpdateValue) == null || i.call(l, t.value), u("update:value", t.value);
53
+ a.onUpdateValue?.(t.value), u("update:value", t.value);
55
54
  }
56
- }, r = (e) => l.multiple ? Array.isArray(t.value) && t.value.includes(e) : t.value === e, c = ["grid gap-4", "grid-cols-2", `lg:grid-cols-[repeat(auto-fit,minmax(${l.minWidth},${l.maxWidth}))]`];
57
- return () => a("div", {
58
- class: c
59
- }, [l.options.map((e) => a("div", {
55
+ }, r = (e) => a.multiple ? Array.isArray(t.value) && t.value.includes(e) : t.value === e, s = ["grid gap-4", "grid-cols-2", `lg:grid-cols-[repeat(auto-fit,minmax(${a.minWidth},${a.maxWidth}))]`];
56
+ return () => l("div", {
57
+ class: s
58
+ }, [a.options.map((e) => l("div", {
60
59
  key: e.value,
61
60
  class: ["relative cursor-pointer border rounded p-2.5 transition-all duration-200 hover:border-primary", {
62
61
  "border-primary bg-primary/10": r(e.value),
63
62
  "border-muted": !r(e.value),
64
- "opacity-50 cursor-not-allowed": e.disabled || l.disabled
63
+ "opacity-50 cursor-not-allowed": e.disabled || a.disabled
65
64
  }],
66
- onClick: () => !e.disabled && s(e.value)
67
- }, [r(e.value) && a("div", {
65
+ onClick: () => !e.disabled && i(e.value)
66
+ }, [r(e.value) && l("div", {
68
67
  class: "absolute top-2 right-2 size-4 bg-primary rounded-full flex items-center justify-center"
69
- }, [a("svg", {
68
+ }, [l("svg", {
70
69
  class: "size-3 text-white",
71
70
  fill: "currentColor",
72
71
  viewBox: "0 0 20 20"
73
- }, [a("path", {
72
+ }, [l("path", {
74
73
  "fill-rule": "evenodd",
75
74
  d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
76
75
  "clip-rule": "evenodd"
77
- }, null)])]), a("div", {
76
+ }, null)])]), l("div", {
78
77
  class: ["flex gap-3 px-2 items-center", {
79
78
  "flex-col items-center text-center": !e.icon,
80
79
  "flex-row items-start text-left": e.icon
81
80
  }]
82
- }, [e.icon && a("div", {
81
+ }, [e.icon && l("div", {
83
82
  class: ["flex items-center justify-center p-3 rounded-lg", `bg-${e.iconColor}/10`, `text-${e.iconColor}`]
84
- }, [a("div", {
83
+ }, [l("div", {
85
84
  class: `${e.icon} size-4`
86
- }, null)]), a("div", {
85
+ }, null)]), l("div", {
87
86
  class: "flex flex-col flex-1"
88
- }, [a("div", {
87
+ }, [l("div", {
89
88
  class: ["text-sm font-medium", {
90
89
  "text-primary": r(e.value),
91
90
  "text-default": !r(e.value)
92
91
  }]
93
- }, [e.label]), e.description && a("div", {
92
+ }, [e.label]), e.description && l("div", {
94
93
  class: ["text-sm", {
95
94
  "text-primary": r(e.value),
96
95
  "text-muted": !r(e.value)
@@ -99,5 +98,5 @@ const y = /* @__PURE__ */ f({
99
98
  }
100
99
  });
101
100
  export {
102
- y as DuxSelectCard
101
+ x as DuxSelectCard
103
102
  };
@@ -1,28 +1,28 @@
1
- import { defineComponent as m, createVNode as e } from "vue";
2
- import { useI18n as i } from "@duxweb/dvha-core";
3
- import { DuxDrawEmptyForm as n } from "../draw/drawEmptyForm.js";
4
- const s = /* @__PURE__ */ m({
1
+ import { defineComponent as o, createVNode as t } from "vue";
2
+ import { useI18n as l } from "@duxweb/dvha-core";
3
+ import { DuxDrawEmptyForm as r } from "../draw/drawEmptyForm.js";
4
+ const p = /* @__PURE__ */ o({
5
5
  name: "DuxListEmpty",
6
6
  props: {
7
7
  title: String,
8
8
  desc: String,
9
9
  bordered: Boolean
10
10
  },
11
- setup(t) {
11
+ setup(e) {
12
12
  const {
13
- t: l
14
- } = i();
15
- return () => e("div", {
13
+ t: s
14
+ } = l();
15
+ return () => t("div", {
16
16
  class: "flex flex-col items-center justify-center gap-2 h-full"
17
- }, [e(n, {
17
+ }, [t(r, {
18
18
  class: "max-h-120px"
19
- }, null), e("div", {
19
+ }, null), t("div", {
20
20
  class: "text-lg text-default font-bold"
21
- }, [(t == null ? void 0 : t.title) || l("pages.empty.title")]), e("div", {
21
+ }, [e?.title || s("pages.empty.title")]), t("div", {
22
22
  class: "text-muted"
23
- }, [(t == null ? void 0 : t.desc) || l("pages.empty.desc")])]);
23
+ }, [e?.desc || s("pages.empty.desc")])]);
24
24
  }
25
25
  });
26
26
  export {
27
- s as DuxListEmpty
27
+ p as DuxListEmpty
28
28
  };
@@ -1,51 +1,51 @@
1
- import { defineComponent as n, computed as p, createVNode as a, mergeProps as b } from "vue";
2
- import { NDataTable as o } from "naive-ui";
3
- import { DuxTableLayout as d } from "../layout/table.js";
1
+ import { defineComponent as d, computed as m, createVNode as r, mergeProps as n } from "vue";
2
+ import { NDataTable as p } from "naive-ui";
3
+ import { DuxTableLayout as i } from "../layout/table.js";
4
4
  import "@duxweb/dvha-core";
5
5
  import "clsx";
6
- import { DuxListEmpty as u } from "../status/listEmpty.js";
7
- const y = /* @__PURE__ */ n({
6
+ import { DuxListEmpty as s } from "../status/listEmpty.js";
7
+ const P = /* @__PURE__ */ d({
8
8
  name: "DuxTablePage",
9
9
  props: {
10
10
  tableProps: {
11
11
  type: Object
12
12
  }
13
13
  },
14
- extends: d,
14
+ extends: i,
15
15
  slots: Object,
16
- setup(i, {
17
- slots: e
16
+ setup(a, {
17
+ slots: t
18
18
  }) {
19
- const m = p(() => {
19
+ const l = m(() => {
20
20
  const {
21
- tableProps: t,
22
- ...r
23
- } = i;
24
- return r;
21
+ tableProps: o,
22
+ ...e
23
+ } = a;
24
+ return e;
25
25
  });
26
- return () => a(d, m.value, {
27
- default: (t) => a(o, b(t.table.value, i.tableProps, {
26
+ return () => r(i, l.value, {
27
+ default: (o) => r(p, n(o.table.value, a.tableProps, {
28
28
  class: "h-full",
29
29
  minHeight: 200,
30
30
  tableLayout: "fixed",
31
31
  flexHeight: !0,
32
- rowKey: (r) => r.id,
32
+ rowKey: (e) => e.id,
33
33
  bordered: !1,
34
- scrollX: t.width,
35
- renderCell: (r) => r == null || r === "" ? "-" : r
34
+ scrollX: o.width,
35
+ renderCell: (e) => e == null || e === "" ? "-" : e
36
36
  }), {
37
- empty: () => a(u, {
37
+ empty: () => r(s, {
38
38
  bordered: !1
39
39
  }, null)
40
40
  }),
41
- bottom: e == null ? void 0 : e.bottom,
42
- tools: e == null ? void 0 : e.tools,
43
- actions: e == null ? void 0 : e.actions,
44
- sideLeft: e == null ? void 0 : e.sideLeft,
45
- sideRight: e == null ? void 0 : e.sideRight
41
+ bottom: t?.bottom,
42
+ tools: t?.tools,
43
+ actions: t?.actions,
44
+ sideLeft: t?.sideLeft,
45
+ sideRight: t?.sideRight
46
46
  });
47
47
  }
48
48
  });
49
49
  export {
50
- y as DuxTablePage
50
+ P as DuxTablePage
51
51
  };