@duxweb/dvha-pro 0.0.6 → 0.0.8

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 (121) hide show
  1. package/dist/cjs/component.cjs +1 -1
  2. package/dist/cjs/components/card/card.cjs +1 -1
  3. package/dist/cjs/components/chart/echart.cjs +1 -0
  4. package/dist/cjs/components/dialog/dialog.cjs +1 -1
  5. package/dist/cjs/components/drawer/drawer.cjs +1 -1
  6. package/dist/cjs/components/form/modalForm.cjs +1 -1
  7. package/dist/cjs/components/form/pageForm.cjs +1 -1
  8. package/dist/cjs/components/form/settingForm.cjs +1 -1
  9. package/dist/cjs/components/layout/list.cjs +1 -1
  10. package/dist/cjs/components/layout/table.cjs +1 -1
  11. package/dist/cjs/components/list/card.cjs +1 -1
  12. package/dist/cjs/components/list/list.cjs +1 -1
  13. package/dist/cjs/components/modal/modal.cjs +1 -1
  14. package/dist/cjs/components/modal/modalPage.cjs +1 -1
  15. package/dist/cjs/components/modal/modalTab.cjs +1 -1
  16. package/dist/cjs/components/select/cardSelect.cjs +1 -0
  17. package/dist/cjs/components/table/tablePage.cjs +1 -1
  18. package/dist/cjs/config/echart.cjs +1 -0
  19. package/dist/cjs/dvha-pro.css +1 -1
  20. package/dist/cjs/hooks/action.cjs +1 -1
  21. package/dist/cjs/hooks/dialog.cjs +1 -1
  22. package/dist/cjs/hooks/drawer.cjs +1 -1
  23. package/dist/cjs/hooks/echart.cjs +1 -0
  24. package/dist/cjs/hooks/modal.cjs +1 -1
  25. package/dist/cjs/hooks/table/media.cjs +1 -1
  26. package/dist/cjs/index.cjs +1 -1
  27. package/dist/cjs/main.cjs +1 -1
  28. package/dist/cjs/pages/authLayout.cjs +1 -1
  29. package/dist/cjs/pages/layout/global.cjs +1 -1
  30. package/dist/cjs/pages/layout/page.cjs +1 -1
  31. package/dist/cjs/pages/login.cjs +1 -1
  32. package/dist/cjs/pages/menu/avatar.cjs +1 -1
  33. package/dist/cjs/pages/menu/button.cjs +1 -1
  34. package/dist/cjs/pages/menu/cmd.cjs +1 -1
  35. package/dist/cjs/pages/menu/main.cjs +1 -1
  36. package/dist/cjs/pages/menu/mobile.cjs +1 -1
  37. package/dist/cjs/pages/page.cjs +1 -1
  38. package/dist/cjs/pages/page404.cjs +1 -1
  39. package/dist/cjs/pages/pageStatus.cjs +1 -1
  40. package/dist/cjs/theme/naiveTheme.cjs +1 -1
  41. package/dist/cjs/theme/uno.css.cjs +28 -7
  42. package/dist/esm/component.js +43 -41
  43. package/dist/esm/components/card/card.js +1 -1
  44. package/dist/esm/components/chart/echart.js +75 -0
  45. package/dist/esm/components/dialog/dialog.js +87 -93
  46. package/dist/esm/components/drawer/drawer.js +34 -32
  47. package/dist/esm/components/form/modalForm.js +1 -1
  48. package/dist/esm/components/form/pageForm.js +23 -19
  49. package/dist/esm/components/form/settingForm.js +22 -18
  50. package/dist/esm/components/layout/list.js +203 -142
  51. package/dist/esm/components/layout/table.js +210 -145
  52. package/dist/esm/components/list/card.js +42 -32
  53. package/dist/esm/components/list/list.js +27 -16
  54. package/dist/esm/components/modal/modal.js +46 -86
  55. package/dist/esm/components/modal/modalPage.js +23 -18
  56. package/dist/esm/components/modal/modalTab.js +11 -11
  57. package/dist/esm/components/select/cardSelect.js +103 -0
  58. package/dist/esm/components/table/tablePage.js +21 -18
  59. package/dist/esm/config/echart.js +456 -0
  60. package/dist/esm/dvha-pro.css +1 -1
  61. package/dist/esm/hooks/action.js +46 -45
  62. package/dist/esm/hooks/dialog.js +24 -7
  63. package/dist/esm/hooks/drawer.js +12 -8
  64. package/dist/esm/hooks/echart.js +469 -0
  65. package/dist/esm/hooks/modal.js +25 -9
  66. package/dist/esm/hooks/table/media.js +18 -14
  67. package/dist/esm/index.js +158 -135
  68. package/dist/esm/main.js +11 -8
  69. package/dist/esm/pages/authLayout.js +3 -2
  70. package/dist/esm/pages/layout/global.js +46 -33
  71. package/dist/esm/pages/layout/page.js +13 -9
  72. package/dist/esm/pages/login.js +25 -21
  73. package/dist/esm/pages/menu/avatar.js +14 -14
  74. package/dist/esm/pages/menu/button.js +14 -10
  75. package/dist/esm/pages/menu/cmd.js +26 -22
  76. package/dist/esm/pages/menu/main.js +26 -22
  77. package/dist/esm/pages/menu/mobile.js +11 -7
  78. package/dist/esm/pages/page.js +16 -16
  79. package/dist/esm/pages/page404.js +24 -20
  80. package/dist/esm/pages/pageStatus.js +12 -8
  81. package/dist/esm/theme/naiveTheme.js +57 -51
  82. package/dist/esm/theme/uno.css.js +28 -7
  83. package/dist/types/components/chart/echart.d.ts +284 -0
  84. package/dist/types/components/chart/index.d.ts +1 -0
  85. package/dist/types/components/dialog/dialog.d.ts +1 -20
  86. package/dist/types/components/drawer/drawer.d.ts +14 -4
  87. package/dist/types/components/form/formLayout.d.ts +1 -1
  88. package/dist/types/components/form/modalForm.d.ts +1 -1
  89. package/dist/types/components/index.d.ts +3 -0
  90. package/dist/types/components/layout/list.d.ts +18 -0
  91. package/dist/types/components/layout/table.d.ts +22 -1
  92. package/dist/types/components/list/card.d.ts +38 -0
  93. package/dist/types/components/list/list.d.ts +43 -2
  94. package/dist/types/components/modal/modal.d.ts +13 -31
  95. package/dist/types/components/modal/modalPage.d.ts +3 -6
  96. package/dist/types/components/panel/alert.d.ts +1 -1
  97. package/dist/types/components/select/cardSelect.d.ts +88 -0
  98. package/dist/types/components/select/index.d.ts +1 -0
  99. package/dist/types/components/table/tablePage.d.ts +28 -2
  100. package/dist/types/config/echart.d.ts +4 -0
  101. package/dist/types/config/index.d.ts +1 -0
  102. package/dist/types/hooks/drawer.d.ts +3 -2
  103. package/dist/types/hooks/echart.d.ts +166 -0
  104. package/dist/types/hooks/index.d.ts +2 -0
  105. package/dist/types/hooks/modal.d.ts +10 -5
  106. package/dist/types/hooks/table/types.d.ts +1 -0
  107. package/dist/types/main.d.ts +1 -0
  108. package/dist/types/pages/layout/global.d.ts +1 -0
  109. package/dist/types/pages/menu/avatar.d.ts +3 -3
  110. package/dist/types/pages/menu/button.d.ts +3 -3
  111. package/dist/types/pages/menu/main.d.ts +3 -3
  112. package/dist/types/pages/page.d.ts +1 -1
  113. package/package.json +8 -3
  114. package/dist/cjs/node_modules/.pnpm/@vueuse_integrations@13.3.0_async-validator@4.2.5_axios@1.10.0_focus-trap@7.6.5_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/integrations/useFocusTrap.cjs +0 -1
  115. package/dist/cjs/node_modules/.pnpm/@vueuse_shared@13.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.cjs +0 -1
  116. package/dist/cjs/node_modules/.pnpm/focus-trap@7.6.5/node_modules/focus-trap/dist/focus-trap.esm.cjs +0 -5
  117. package/dist/cjs/node_modules/.pnpm/tabbable@6.2.0/node_modules/tabbable/dist/index.esm.cjs +0 -4
  118. package/dist/esm/node_modules/.pnpm/@vueuse_integrations@13.3.0_async-validator@4.2.5_axios@1.10.0_focus-trap@7.6.5_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/integrations/useFocusTrap.js +0 -43
  119. package/dist/esm/node_modules/.pnpm/@vueuse_shared@13.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.js +0 -6
  120. package/dist/esm/node_modules/.pnpm/focus-trap@7.6.5/node_modules/focus-trap/dist/focus-trap.esm.js +0 -473
  121. package/dist/esm/node_modules/.pnpm/tabbable@6.2.0/node_modules/tabbable/dist/index.esm.js +0 -202
@@ -1,8 +1,7 @@
1
- import { defineComponent as p, defineAsyncComponent as x, ref as l, watch as C, createVNode as t, Suspense as k, mergeProps as D } from "vue";
2
- import { useWindowSize as M, useElementSize as F, useDraggable as S, useThrottleFn as N } from "@vueuse/core";
3
- import { useFocusTrap as P } from "../../node_modules/.pnpm/@vueuse_integrations@13.3.0_async-validator@4.2.5_axios@1.10.0_focus-trap@7.6.5_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/integrations/useFocusTrap.js";
4
- import { useMessage as j, NCard as z, NSpin as O } from "naive-ui";
5
- const A = /* @__PURE__ */ p({
1
+ import { defineComponent as c, defineAsyncComponent as s, createVNode as t, mergeProps as a, Suspense as m } from "vue";
2
+ import { useExtendOverlay as f } from "@overlastic/vue";
3
+ import { NModal as g, NSpin as b } from "naive-ui";
4
+ const w = /* @__PURE__ */ c({
6
5
  name: "DuxModal",
7
6
  props: {
8
7
  title: {
@@ -10,107 +9,68 @@ const A = /* @__PURE__ */ p({
10
9
  default: ""
11
10
  },
12
11
  component: {
13
- type: Function
14
- },
15
- componentProps: {
16
- type: Object,
17
- default: () => ({})
12
+ type: [Function, Object]
18
13
  },
14
+ componentProps: Object,
19
15
  width: {
20
- type: Number,
16
+ type: [Number, String],
21
17
  default: 500
22
18
  },
23
- onClose: {
24
- type: Function,
25
- default: () => {
26
- }
27
- },
28
- onConfirm: {
29
- type: Function,
30
- default: () => {
31
- }
19
+ modalProps: {
20
+ type: Object
32
21
  },
33
22
  draggable: {
34
23
  type: Boolean,
35
- default: !1
24
+ default: !0
36
25
  }
37
26
  },
38
27
  setup(e) {
39
- const u = x(e.component), c = j(), s = l(), r = l(), o = l(), {
40
- width: f,
41
- height: g
42
- } = M(), {
43
- width: m,
44
- height: h
45
- } = F(o), {
46
- style: w,
47
- x: y,
48
- y: v
49
- } = S(s, {
50
- initialValue: {
51
- x: -1e3,
52
- y: -1e3
28
+ const {
29
+ visible: n,
30
+ resolve: l,
31
+ reject: d,
32
+ vanish: r
33
+ } = f({
34
+ duration: 1e3
35
+ }), o = (e == null ? void 0 : e.componentProps) || {};
36
+ o.onConfirm = l, o.onClose = d;
37
+ const u = typeof e.component == "function" ? s(e.component) : e.component;
38
+ return () => t(g, a({
39
+ displayDirective: "show",
40
+ show: n.value,
41
+ onAfterLeave: () => {
42
+ r();
53
43
  },
54
- preventDefault: !0,
55
- handle: r,
56
- disabled: !e.draggable
57
- }), i = l(!1);
58
- C([m, h, i], ([n, a]) => {
59
- !n || !a || i.value || (i.value = !0, y.value = Math.max(0, (f.value - n) / 2), v.value = Math.max(0, (g.value - a) / 2));
60
- });
61
- const d = l(), b = N(() => {
62
- c.warning("请先关闭当前窗口再操作其他窗口");
63
- }, 3e3);
64
- return P(d, {
65
- immediate: !0,
66
- escapeDeactivates: !0,
67
- clickOutsideDeactivates: !1,
68
- allowOutsideClick: (n) => {
69
- const a = n.target.closest('[role="dialog"]');
70
- return a && a !== o.value ? (b(), !1) : !0;
71
- },
72
- onDeactivate: () => {
73
- e.onClose();
74
- }
75
- }), () => t("div", {
76
- class: `fixed inset-0 overflow-auto flex items-center justify-center p-4 ${e.draggable ? "pointer-events-none" : ""}`,
77
- style: "align-items: safe center;"
78
- }, [t("div", {
79
- ref: s,
80
- style: w.value,
81
- class: e.draggable ? "fixed pointer-events-auto" : "w-full max-w-none flex justify-center"
82
- }, [t(z, {
83
- ref: o,
84
- contentClass: "p-0!",
85
- bordered: !!e.draggable,
86
- size: "small",
44
+ draggable: e.draggable,
45
+ class: "bg-white rounded dark:shadow-gray-950/80 dark:bg-gray-900/90 backdrop-blur",
87
46
  role: "dialog",
88
- "aria-modal": "true",
89
- class: [" max-w-full shadow-lg shadow-gray-950/10 bg-white/80 dark:shadow-gray-950/80 dark:bg-gray-900/90 backdrop-blur"],
90
- style: {
91
- width: `${e.width}px`
92
- }
93
- }, {
94
- default: () => [t(k, null, {
95
- default: () => t(u, D(e.componentProps, {
96
- ref: d,
97
- handle: r,
98
- draggable: e.draggable,
99
- onClose: e.onClose,
100
- onConfirm: e.onConfirm
47
+ "aria-modal": "true"
48
+ }, e.modalProps, {
49
+ autoFocus: !1
50
+ }), {
51
+ default: ({
52
+ draggableClass: i
53
+ }) => t("div", {
54
+ class: ["max-w-full shadow-lg"],
55
+ style: {
56
+ width: `${e.width}px`
57
+ }
58
+ }, [t(m, null, {
59
+ default: () => t(u, a(e.componentProps, {
60
+ handle: i
101
61
  }), null),
102
- fallback: () => t(O, {
62
+ fallback: () => t(b, {
103
63
  show: !0
104
64
  }, {
105
65
  default: () => [t("div", {
106
66
  class: "h-100"
107
67
  }, null)]
108
68
  })
109
- })]
110
- })])]);
69
+ })])
70
+ });
111
71
  }
112
72
  });
113
73
  export {
114
- A as DuxModal,
115
- A as default
74
+ w as DuxModal,
75
+ w as default
116
76
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as f, ref as n, createVNode as a } from "vue";
2
- import { NButton as i } from "naive-ui";
3
- const u = /* @__PURE__ */ f({
1
+ import { defineComponent as f, ref as l, watch as o, nextTick as c, createVNode as a } from "vue";
2
+ import { NButton as u } from "naive-ui";
3
+ const p = /* @__PURE__ */ f({
4
4
  name: "ModalPage",
5
5
  props: {
6
6
  title: {
@@ -12,8 +12,7 @@ const u = /* @__PURE__ */ f({
12
12
  default: !1
13
13
  },
14
14
  handle: {
15
- type: Object,
16
- default: () => n()
15
+ type: String
17
16
  },
18
17
  onClose: {
19
18
  type: Function,
@@ -21,36 +20,42 @@ const u = /* @__PURE__ */ f({
21
20
  }
22
21
  }
23
22
  },
24
- setup(r, {
23
+ setup(n, {
25
24
  slots: e
26
25
  }) {
27
- return () => {
28
- var d, t, l;
26
+ const i = l();
27
+ return o(i, (t) => {
28
+ t && c(() => {
29
+ var d, r;
30
+ (r = (d = t.$el) == null ? void 0 : d.focus) == null || r.call(d);
31
+ });
32
+ }), () => {
33
+ var t, d, r;
29
34
  return a("div", {
30
35
  class: "flex flex-col gap-2"
31
36
  }, [a("div", {
32
- class: ["px-4 py-3 border-b border-muted flex justify-between items-center bg-gray-200/20 dark:bg-gray-800/50", r.draggable && "cursor-move"],
33
- ref: r.handle
37
+ class: ["px-4 py-3 border-b border-muted rounded-t flex justify-between items-center bg-white dark:bg-gray-800/50", n.draggable && "cursor-move", n.handle]
34
38
  }, [a("div", {
35
39
  class: "text-base font-bold"
36
- }, [r.title]), a("div", {
40
+ }, [n.title]), a("div", {
37
41
  class: "flex justify-end gap-2"
38
- }, [a(i, {
42
+ }, [a(u, {
39
43
  text: !0,
40
- onClick: r.onClose,
41
- "aria-label": "close"
44
+ onClick: n.onClose,
45
+ "aria-label": "close",
46
+ ref: i
42
47
  }, {
43
48
  icon: () => a("div", {
44
49
  class: "i-tabler:x"
45
50
  }, null)
46
51
  })])]), a("div", {
47
52
  class: "px-4 py-2"
48
- }, [(d = e.default) == null ? void 0 : d.call(e)]), ((t = e.footer) == null ? void 0 : t.call(e)) && a("div", {
49
- class: "flex justify-end gap-2 p-3 border-t border-muted bg-gray-200/20 dark:bg-gray-800/50"
50
- }, [(l = e.footer) == null ? void 0 : l.call(e)])]);
53
+ }, [(t = e.default) == null ? void 0 : t.call(e)]), ((d = e.footer) == null ? void 0 : d.call(e)) && a("div", {
54
+ class: "flex justify-end gap-2 p-3 rounded-b border-t border-muted bg-muted dark:bg-gray-800/50"
55
+ }, [(r = e.footer) == null ? void 0 : r.call(e)])]);
51
56
  };
52
57
  }
53
58
  });
54
59
  export {
55
- u as default
60
+ p as default
56
61
  };
@@ -21,16 +21,16 @@ const o = /* @__PURE__ */ n({
21
21
  }
22
22
  }
23
23
  },
24
- setup(l, {
24
+ setup(d, {
25
25
  slots: e
26
26
  }) {
27
27
  return () => {
28
- var d, r;
28
+ var l, t;
29
29
  return a("div", {
30
30
  class: "flex flex-col"
31
31
  }, [a(f, {
32
32
  type: "line",
33
- defaultValue: l.defaultTab,
33
+ defaultValue: d.defaultTab,
34
34
  class: "app-modal-tabs",
35
35
  size: "large",
36
36
  style: {
@@ -39,12 +39,12 @@ const o = /* @__PURE__ */ n({
39
39
  }
40
40
  }, {
41
41
  default: () => {
42
- var t;
43
- return (t = e.default) == null ? void 0 : t.call(e);
42
+ var r;
43
+ return (r = e.default) == null ? void 0 : r.call(e);
44
44
  },
45
- prefix: () => l.draggable ? a("div", {
45
+ prefix: () => d.draggable ? a("div", {
46
46
  class: "pl-4 cursor-move flex items-center",
47
- ref: l.handle
47
+ ref: d.handle
48
48
  }, [a("div", {
49
49
  class: "i-tabler:grid-dots size-4"
50
50
  }, null)]) : null,
@@ -52,16 +52,16 @@ const o = /* @__PURE__ */ n({
52
52
  class: "pr-4 flex items-center"
53
53
  }, [a(u, {
54
54
  text: !0,
55
- onClick: l.onClose,
55
+ onClick: d.onClose,
56
56
  "aria-label": "close"
57
57
  }, {
58
58
  icon: () => a("div", {
59
59
  class: "i-tabler:x size-4"
60
60
  }, null)
61
61
  })])
62
- }), ((d = e.footer) == null ? void 0 : d.call(e)) && a("div", {
63
- class: "flex justify-end gap-2 p-3 border-t border-muted bg-gray-200/20 dark:bg-gray-800/50"
64
- }, [(r = e.footer) == null ? void 0 : r.call(e)])]);
62
+ }), ((l = e.footer) == null ? void 0 : l.call(e)) && a("div", {
63
+ class: "flex justify-end gap-2 p-3 rounded-b border-t border-muted bg-muted dark:bg-gray-800/50"
64
+ }, [(t = e.footer) == null ? void 0 : t.call(e)])]);
65
65
  };
66
66
  }
67
67
  });
@@ -0,0 +1,103 @@
1
+ import { defineComponent as f, createVNode as a } from "vue";
2
+ import { useVModel as m } from "@vueuse/core";
3
+ const y = /* @__PURE__ */ f({
4
+ name: "DuxSelectCard",
5
+ props: {
6
+ options: {
7
+ type: Array,
8
+ default: () => []
9
+ },
10
+ value: {
11
+ type: [String, Number, Array],
12
+ default: void 0
13
+ },
14
+ defaultValue: {
15
+ type: [String, Number, Array],
16
+ default: void 0
17
+ },
18
+ multiple: {
19
+ type: Boolean,
20
+ default: !1
21
+ },
22
+ disabled: {
23
+ type: Boolean,
24
+ default: !1
25
+ },
26
+ minWidth: {
27
+ type: String,
28
+ default: "150px"
29
+ },
30
+ maxWidth: {
31
+ type: String,
32
+ default: "200px"
33
+ },
34
+ onUpdateValue: {
35
+ type: Function,
36
+ default: void 0
37
+ }
38
+ },
39
+ emits: ["update:value", "change"],
40
+ setup(l, {
41
+ emit: u
42
+ }) {
43
+ const t = m(l, "value", u, {
44
+ passive: !0,
45
+ defaultValue: l.defaultValue
46
+ }), s = (e) => {
47
+ var i;
48
+ if (!l.disabled) {
49
+ if (l.multiple) {
50
+ const d = Array.isArray(t.value) ? t.value : [];
51
+ t.value = d.includes(e) ? d.filter((n) => n !== e) : [...d, e];
52
+ } else
53
+ t.value = e;
54
+ (i = l.onUpdateValue) == null || i.call(l, t.value), u("update:value", t.value);
55
+ }
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", {
60
+ key: e.value,
61
+ class: ["relative cursor-pointer border rounded p-2.5 transition-all duration-200 hover:border-primary", {
62
+ "border-primary bg-primary/10": r(e.value),
63
+ "border-muted": !r(e.value),
64
+ "opacity-50 cursor-not-allowed": e.disabled || l.disabled
65
+ }],
66
+ onClick: () => !e.disabled && s(e.value)
67
+ }, [r(e.value) && a("div", {
68
+ class: "absolute top-2 right-2 size-4 bg-primary rounded-full flex items-center justify-center"
69
+ }, [a("svg", {
70
+ class: "size-3 text-white",
71
+ fill: "currentColor",
72
+ viewBox: "0 0 20 20"
73
+ }, [a("path", {
74
+ "fill-rule": "evenodd",
75
+ 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
+ "clip-rule": "evenodd"
77
+ }, null)])]), a("div", {
78
+ class: ["flex gap-3 px-2 items-center", {
79
+ "flex-col items-center text-center": !e.icon,
80
+ "flex-row items-start text-left": e.icon
81
+ }]
82
+ }, [e.icon && a("div", {
83
+ class: ["flex items-center justify-center p-3 rounded-lg", `bg-${e.iconColor}/10`, `text-${e.iconColor}`]
84
+ }, [a("div", {
85
+ class: `${e.icon} size-4`
86
+ }, null)]), a("div", {
87
+ class: "flex flex-col flex-1"
88
+ }, [a("div", {
89
+ class: ["text-sm font-medium", {
90
+ "text-primary": r(e.value),
91
+ "text-default": !r(e.value)
92
+ }]
93
+ }, [e.label]), e.description && a("div", {
94
+ class: ["text-sm", {
95
+ "text-primary": r(e.value),
96
+ "text-muted": !r(e.value)
97
+ }]
98
+ }, [e.description])])])]))]);
99
+ }
100
+ });
101
+ export {
102
+ y as DuxSelectCard
103
+ };
@@ -1,41 +1,44 @@
1
- import { defineComponent as m, computed as n, createVNode as o, mergeProps as p } from "vue";
2
- import { NDataTable as i } from "naive-ui";
3
- import { DuxTableLayout as u } from "../layout/table.js";
4
- const l = /* @__PURE__ */ m({
1
+ import { defineComponent as d, computed as m, createVNode as i, mergeProps as n } from "vue";
2
+ import { NDataTable as p } from "naive-ui";
3
+ import { DuxTableLayout as b } from "../layout/table.js";
4
+ const g = /* @__PURE__ */ d({
5
5
  name: "DuxTablePage",
6
6
  props: {
7
7
  tableProps: {
8
8
  type: Object
9
9
  }
10
10
  },
11
- extends: u,
12
- setup(r, {
11
+ extends: b,
12
+ slots: Object,
13
+ setup(t, {
13
14
  slots: e
14
15
  }) {
15
- const b = n(() => {
16
+ const u = m(() => {
16
17
  const {
17
- tableProps: t,
18
- ...a
19
- } = r;
20
- return a;
18
+ tableProps: a,
19
+ ...r
20
+ } = t;
21
+ return r;
21
22
  });
22
- return () => o(u, b.value, {
23
- default: (t) => o(i, p({
23
+ return () => i(b, u.value, {
24
+ default: (a) => i(p, n({
24
25
  remote: !0,
25
26
  class: "h-full",
26
27
  minHeight: 200,
27
28
  tableLayout: "fixed",
28
29
  flexHeight: !0,
29
- rowKey: (a) => a.id,
30
+ rowKey: (r) => r.id,
30
31
  bordered: !1,
31
- scrollX: t.width
32
- }, t.table.value, r.tableProps), null),
32
+ scrollX: a.width
33
+ }, a.table.value, t.tableProps), null),
33
34
  bottom: e == null ? void 0 : e.bottom,
34
35
  tools: e == null ? void 0 : e.tools,
35
- actions: e == null ? void 0 : e.actions
36
+ actions: e == null ? void 0 : e.actions,
37
+ sideLeft: e == null ? void 0 : e.sideLeft,
38
+ sideRight: e == null ? void 0 : e.sideRight
36
39
  });
37
40
  }
38
41
  });
39
42
  export {
40
- l as DuxTablePage
43
+ g as DuxTablePage
41
44
  };