@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.
- package/dist/cjs/components/card/card.cjs +1 -1
- package/dist/cjs/components/card/store.cjs +1 -1
- package/dist/cjs/components/carousel/carousel.cjs +1 -1
- package/dist/cjs/components/crop/imageCrop.cjs +1 -1
- package/dist/cjs/components/crop/imageCropModal.cjs +1 -1
- package/dist/cjs/components/dashboard/hello.cjs +1 -1
- package/dist/cjs/components/dashboard/helloBig.cjs +1 -1
- package/dist/cjs/components/dashboard/quick.cjs +1 -1
- package/dist/cjs/components/data/dynamicData.cjs +1 -1
- package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
- package/dist/cjs/components/data/selectModal.cjs +1 -1
- package/dist/cjs/components/dialog/dialog.cjs +1 -1
- package/dist/cjs/components/drawer/drawer.cjs +1 -1
- package/dist/cjs/components/drawer/drawerPage.cjs +1 -1
- package/dist/cjs/components/editor/aiEditor.cjs +1 -1
- package/dist/cjs/components/form/drawerForm.cjs +1 -1
- package/dist/cjs/components/form/formItem.cjs +1 -1
- package/dist/cjs/components/form/formLayout.cjs +1 -1
- package/dist/cjs/components/form/modalForm.cjs +1 -1
- package/dist/cjs/components/form/pageForm.cjs +1 -1
- package/dist/cjs/components/form/settingForm.cjs +1 -1
- package/dist/cjs/components/icon/iconPicker.cjs +1 -1
- package/dist/cjs/components/layout/filter.cjs +1 -1
- package/dist/cjs/components/layout/filterLayout.cjs +1 -1
- package/dist/cjs/components/layout/list.cjs +1 -1
- package/dist/cjs/components/layout/table.cjs +1 -1
- package/dist/cjs/components/layout/tools.cjs +1 -1
- package/dist/cjs/components/list/card.cjs +1 -1
- package/dist/cjs/components/list/list.cjs +1 -1
- package/dist/cjs/components/media/media.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/modal/modalPage.cjs +1 -1
- package/dist/cjs/components/modal/modalTab.cjs +1 -1
- package/dist/cjs/components/panel/alert.cjs +1 -1
- package/dist/cjs/components/panel/collapse.cjs +1 -1
- package/dist/cjs/components/panel/setting.cjs +1 -1
- package/dist/cjs/components/select/cardSelect.cjs +1 -1
- package/dist/cjs/components/status/listEmpty.cjs +1 -1
- package/dist/cjs/components/table/tablePage.cjs +1 -1
- package/dist/cjs/components/tree/treeFilter.cjs +1 -1
- package/dist/cjs/components/upload/config.cjs +1 -1
- package/dist/cjs/components/upload/file.cjs +1 -1
- package/dist/cjs/components/upload/image.cjs +1 -1
- package/dist/cjs/components/upload/manage/item.cjs +1 -1
- package/dist/cjs/components/upload/manager.cjs +1 -1
- package/dist/cjs/components/widget/connect.cjs +1 -1
- package/dist/cjs/dvha-pro.css +1 -1
- package/dist/cjs/hooks/action.cjs +1 -1
- package/dist/cjs/hooks/download.cjs +1 -1
- package/dist/cjs/hooks/echart.cjs +1 -1
- package/dist/cjs/hooks/image.cjs +1 -1
- package/dist/cjs/hooks/level.cjs +1 -1
- package/dist/cjs/hooks/table/color.cjs +1 -0
- package/dist/cjs/hooks/table/column.cjs +1 -1
- package/dist/cjs/hooks/table/image.cjs +1 -1
- package/dist/cjs/hooks/table/input.cjs +1 -1
- package/dist/cjs/hooks/table/map.cjs +1 -1
- package/dist/cjs/hooks/table/status.cjs +1 -1
- package/dist/cjs/hooks/table/switch.cjs +1 -1
- package/dist/cjs/hooks/table.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/pages/layout/global.cjs +1 -1
- package/dist/cjs/pages/layout/tab.cjs +1 -1
- package/dist/cjs/pages/login.cjs +1 -1
- package/dist/cjs/pages/menu/avatar.cjs +1 -1
- package/dist/cjs/pages/menu/button.cjs +1 -1
- package/dist/cjs/pages/menu/cmd.cjs +1 -1
- package/dist/cjs/pages/page.cjs +1 -1
- package/dist/cjs/pages/pageStatus.cjs +1 -1
- package/dist/cjs/stores/ui.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +2 -1
- package/dist/esm/components/card/card.js +24 -27
- package/dist/esm/components/card/store.js +33 -39
- package/dist/esm/components/carousel/carousel.js +16 -19
- package/dist/esm/components/crop/imageCrop.js +32 -35
- package/dist/esm/components/crop/imageCropModal.js +36 -37
- package/dist/esm/components/dashboard/hello.js +27 -30
- package/dist/esm/components/dashboard/helloBig.js +328 -331
- package/dist/esm/components/dashboard/quick.js +30 -33
- package/dist/esm/components/data/dynamicData.js +86 -98
- package/dist/esm/components/data/dynamicSelect.js +29 -31
- package/dist/esm/components/data/selectModal.js +45 -49
- package/dist/esm/components/dialog/dialog.js +54 -55
- package/dist/esm/components/drawer/drawer.js +23 -23
- package/dist/esm/components/drawer/drawerPage.js +39 -49
- package/dist/esm/components/editor/aiEditor.js +64 -70
- package/dist/esm/components/form/drawerForm.js +48 -48
- package/dist/esm/components/form/formItem.js +45 -51
- package/dist/esm/components/form/formLayout.js +7 -10
- package/dist/esm/components/form/modalForm.js +50 -50
- package/dist/esm/components/form/pageForm.js +47 -50
- package/dist/esm/components/form/settingForm.js +34 -37
- package/dist/esm/components/icon/iconPicker.js +54 -58
- package/dist/esm/components/layout/filter.js +13 -16
- package/dist/esm/components/layout/filterLayout.js +7 -10
- package/dist/esm/components/layout/list.js +299 -326
- package/dist/esm/components/layout/table.js +268 -283
- package/dist/esm/components/layout/tools.js +38 -41
- package/dist/esm/components/list/card.js +35 -38
- package/dist/esm/components/list/list.js +15 -18
- package/dist/esm/components/media/media.js +35 -36
- package/dist/esm/components/modal/modal.js +10 -10
- package/dist/esm/components/modal/modalPage.js +32 -36
- package/dist/esm/components/modal/modalTab.js +39 -45
- package/dist/esm/components/panel/alert.js +19 -22
- package/dist/esm/components/panel/collapse.js +33 -36
- package/dist/esm/components/panel/setting.js +25 -31
- package/dist/esm/components/select/cardSelect.js +27 -28
- package/dist/esm/components/status/listEmpty.js +13 -13
- package/dist/esm/components/table/tablePage.js +25 -25
- package/dist/esm/components/tree/treeFilter.js +137 -147
- package/dist/esm/components/upload/config.js +15 -27
- package/dist/esm/components/upload/file.js +90 -94
- package/dist/esm/components/upload/image.js +116 -123
- package/dist/esm/components/upload/manage/item.js +44 -47
- package/dist/esm/components/upload/manager.js +190 -207
- package/dist/esm/components/widget/connect.js +103 -106
- package/dist/esm/dvha-pro.css +1 -1
- package/dist/esm/hooks/action.js +115 -131
- package/dist/esm/hooks/download.js +55 -56
- package/dist/esm/hooks/echart.js +156 -179
- package/dist/esm/hooks/image.js +14 -15
- package/dist/esm/hooks/level.js +7 -7
- package/dist/esm/hooks/table/color.js +19 -0
- package/dist/esm/hooks/table/column.js +25 -23
- package/dist/esm/hooks/table/image.js +2 -2
- package/dist/esm/hooks/table/input.js +28 -28
- package/dist/esm/hooks/table/map.js +7 -7
- package/dist/esm/hooks/table/status.js +8 -9
- package/dist/esm/hooks/table/switch.js +19 -19
- package/dist/esm/hooks/table.js +27 -31
- package/dist/esm/index.js +167 -165
- package/dist/esm/pages/layout/global.js +12 -15
- package/dist/esm/pages/layout/tab.js +58 -71
- package/dist/esm/pages/login.js +81 -85
- package/dist/esm/pages/menu/avatar.js +136 -149
- package/dist/esm/pages/menu/button.js +16 -20
- package/dist/esm/pages/menu/cmd.js +68 -74
- package/dist/esm/pages/page.js +21 -25
- package/dist/esm/pages/pageStatus.js +21 -24
- package/dist/esm/stores/ui.js +15 -15
- package/dist/esm/theme/uno.css.js +2 -1
- package/dist/types/components/form/drawerForm.d.ts +6 -0
- package/dist/types/components/form/modalForm.d.ts +6 -0
- package/dist/types/components/form/pageForm.d.ts +6 -0
- package/dist/types/components/form/settingForm.d.ts +6 -0
- package/dist/types/components/layout/table.d.ts +9 -0
- package/dist/types/components/table/tablePage.d.ts +9 -0
- package/dist/types/hooks/table/color.d.ts +13 -0
- package/dist/types/hooks/table/column.d.ts +1 -0
- package/dist/types/hooks/table/index.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
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
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
53
|
+
s as DuxPanelAlert
|
|
57
54
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
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(
|
|
11
|
+
setup(l, {
|
|
12
12
|
slots: i
|
|
13
13
|
}) {
|
|
14
|
-
const
|
|
15
|
-
return () => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
45
|
+
n as DuxCollapsePanel
|
|
49
46
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DuxCard as
|
|
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
|
|
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(
|
|
25
|
-
slots:
|
|
24
|
+
setup(t, {
|
|
25
|
+
slots: d
|
|
26
26
|
}) {
|
|
27
|
-
return () => {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
|
|
49
|
+
s as DuxPanelCard
|
|
56
50
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useVModel as
|
|
3
|
-
const
|
|
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(
|
|
40
|
+
setup(a, {
|
|
41
41
|
emit: u
|
|
42
42
|
}) {
|
|
43
|
-
const t =
|
|
43
|
+
const t = f(a, "value", u, {
|
|
44
44
|
passive: !0,
|
|
45
|
-
defaultValue:
|
|
46
|
-
}),
|
|
47
|
-
|
|
48
|
-
|
|
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((
|
|
50
|
+
t.value = d.includes(e) ? d.filter((c) => c !== e) : [...d, e];
|
|
52
51
|
} else
|
|
53
52
|
t.value = e;
|
|
54
|
-
|
|
53
|
+
a.onUpdateValue?.(t.value), u("update:value", t.value);
|
|
55
54
|
}
|
|
56
|
-
}, r = (e) =>
|
|
57
|
-
return () =>
|
|
58
|
-
class:
|
|
59
|
-
}, [
|
|
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 ||
|
|
63
|
+
"opacity-50 cursor-not-allowed": e.disabled || a.disabled
|
|
65
64
|
}],
|
|
66
|
-
onClick: () => !e.disabled &&
|
|
67
|
-
}, [r(e.value) &&
|
|
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
|
-
}, [
|
|
68
|
+
}, [l("svg", {
|
|
70
69
|
class: "size-3 text-white",
|
|
71
70
|
fill: "currentColor",
|
|
72
71
|
viewBox: "0 0 20 20"
|
|
73
|
-
}, [
|
|
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)])]),
|
|
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 &&
|
|
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
|
-
}, [
|
|
83
|
+
}, [l("div", {
|
|
85
84
|
class: `${e.icon} size-4`
|
|
86
|
-
}, null)]),
|
|
85
|
+
}, null)]), l("div", {
|
|
87
86
|
class: "flex flex-col flex-1"
|
|
88
|
-
}, [
|
|
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 &&
|
|
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
|
-
|
|
101
|
+
x as DuxSelectCard
|
|
103
102
|
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { DuxDrawEmptyForm as
|
|
4
|
-
const
|
|
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(
|
|
11
|
+
setup(e) {
|
|
12
12
|
const {
|
|
13
|
-
t:
|
|
14
|
-
} =
|
|
15
|
-
return () =>
|
|
13
|
+
t: s
|
|
14
|
+
} = l();
|
|
15
|
+
return () => t("div", {
|
|
16
16
|
class: "flex flex-col items-center justify-center gap-2 h-full"
|
|
17
|
-
}, [
|
|
17
|
+
}, [t(r, {
|
|
18
18
|
class: "max-h-120px"
|
|
19
|
-
}, null),
|
|
19
|
+
}, null), t("div", {
|
|
20
20
|
class: "text-lg text-default font-bold"
|
|
21
|
-
}, [
|
|
21
|
+
}, [e?.title || s("pages.empty.title")]), t("div", {
|
|
22
22
|
class: "text-muted"
|
|
23
|
-
}, [
|
|
23
|
+
}, [e?.desc || s("pages.empty.desc")])]);
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
p as DuxListEmpty
|
|
28
28
|
};
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { NDataTable as
|
|
3
|
-
import { DuxTableLayout as
|
|
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
|
|
7
|
-
const
|
|
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:
|
|
14
|
+
extends: i,
|
|
15
15
|
slots: Object,
|
|
16
|
-
setup(
|
|
17
|
-
slots:
|
|
16
|
+
setup(a, {
|
|
17
|
+
slots: t
|
|
18
18
|
}) {
|
|
19
|
-
const
|
|
19
|
+
const l = m(() => {
|
|
20
20
|
const {
|
|
21
|
-
tableProps:
|
|
22
|
-
...
|
|
23
|
-
} =
|
|
24
|
-
return
|
|
21
|
+
tableProps: o,
|
|
22
|
+
...e
|
|
23
|
+
} = a;
|
|
24
|
+
return e;
|
|
25
25
|
});
|
|
26
|
-
return () =>
|
|
27
|
-
default: (
|
|
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: (
|
|
32
|
+
rowKey: (e) => e.id,
|
|
33
33
|
bordered: !1,
|
|
34
|
-
scrollX:
|
|
35
|
-
renderCell: (
|
|
34
|
+
scrollX: o.width,
|
|
35
|
+
renderCell: (e) => e == null || e === "" ? "-" : e
|
|
36
36
|
}), {
|
|
37
|
-
empty: () =>
|
|
37
|
+
empty: () => r(s, {
|
|
38
38
|
bordered: !1
|
|
39
39
|
}, null)
|
|
40
40
|
}),
|
|
41
|
-
bottom:
|
|
42
|
-
tools:
|
|
43
|
-
actions:
|
|
44
|
-
sideLeft:
|
|
45
|
-
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
|
-
|
|
50
|
+
P as DuxTablePage
|
|
51
51
|
};
|