@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.
- package/dist/cjs/component.cjs +1 -1
- package/dist/cjs/components/card/card.cjs +1 -1
- package/dist/cjs/components/chart/echart.cjs +1 -0
- package/dist/cjs/components/dialog/dialog.cjs +1 -1
- package/dist/cjs/components/drawer/drawer.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/layout/list.cjs +1 -1
- package/dist/cjs/components/layout/table.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/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/select/cardSelect.cjs +1 -0
- package/dist/cjs/components/table/tablePage.cjs +1 -1
- package/dist/cjs/config/echart.cjs +1 -0
- package/dist/cjs/dvha-pro.css +1 -1
- package/dist/cjs/hooks/action.cjs +1 -1
- package/dist/cjs/hooks/dialog.cjs +1 -1
- package/dist/cjs/hooks/drawer.cjs +1 -1
- package/dist/cjs/hooks/echart.cjs +1 -0
- package/dist/cjs/hooks/modal.cjs +1 -1
- package/dist/cjs/hooks/table/media.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/main.cjs +1 -1
- package/dist/cjs/pages/authLayout.cjs +1 -1
- package/dist/cjs/pages/layout/global.cjs +1 -1
- package/dist/cjs/pages/layout/page.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/menu/main.cjs +1 -1
- package/dist/cjs/pages/menu/mobile.cjs +1 -1
- package/dist/cjs/pages/page.cjs +1 -1
- package/dist/cjs/pages/page404.cjs +1 -1
- package/dist/cjs/pages/pageStatus.cjs +1 -1
- package/dist/cjs/theme/naiveTheme.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +28 -7
- package/dist/esm/component.js +43 -41
- package/dist/esm/components/card/card.js +1 -1
- package/dist/esm/components/chart/echart.js +75 -0
- package/dist/esm/components/dialog/dialog.js +87 -93
- package/dist/esm/components/drawer/drawer.js +34 -32
- package/dist/esm/components/form/modalForm.js +1 -1
- package/dist/esm/components/form/pageForm.js +23 -19
- package/dist/esm/components/form/settingForm.js +22 -18
- package/dist/esm/components/layout/list.js +203 -142
- package/dist/esm/components/layout/table.js +210 -145
- package/dist/esm/components/list/card.js +42 -32
- package/dist/esm/components/list/list.js +27 -16
- package/dist/esm/components/modal/modal.js +46 -86
- package/dist/esm/components/modal/modalPage.js +23 -18
- package/dist/esm/components/modal/modalTab.js +11 -11
- package/dist/esm/components/select/cardSelect.js +103 -0
- package/dist/esm/components/table/tablePage.js +21 -18
- package/dist/esm/config/echart.js +456 -0
- package/dist/esm/dvha-pro.css +1 -1
- package/dist/esm/hooks/action.js +46 -45
- package/dist/esm/hooks/dialog.js +24 -7
- package/dist/esm/hooks/drawer.js +12 -8
- package/dist/esm/hooks/echart.js +469 -0
- package/dist/esm/hooks/modal.js +25 -9
- package/dist/esm/hooks/table/media.js +18 -14
- package/dist/esm/index.js +158 -135
- package/dist/esm/main.js +11 -8
- package/dist/esm/pages/authLayout.js +3 -2
- package/dist/esm/pages/layout/global.js +46 -33
- package/dist/esm/pages/layout/page.js +13 -9
- package/dist/esm/pages/login.js +25 -21
- package/dist/esm/pages/menu/avatar.js +14 -14
- package/dist/esm/pages/menu/button.js +14 -10
- package/dist/esm/pages/menu/cmd.js +26 -22
- package/dist/esm/pages/menu/main.js +26 -22
- package/dist/esm/pages/menu/mobile.js +11 -7
- package/dist/esm/pages/page.js +16 -16
- package/dist/esm/pages/page404.js +24 -20
- package/dist/esm/pages/pageStatus.js +12 -8
- package/dist/esm/theme/naiveTheme.js +57 -51
- package/dist/esm/theme/uno.css.js +28 -7
- package/dist/types/components/chart/echart.d.ts +284 -0
- package/dist/types/components/chart/index.d.ts +1 -0
- package/dist/types/components/dialog/dialog.d.ts +1 -20
- package/dist/types/components/drawer/drawer.d.ts +14 -4
- package/dist/types/components/form/formLayout.d.ts +1 -1
- package/dist/types/components/form/modalForm.d.ts +1 -1
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/components/layout/list.d.ts +18 -0
- package/dist/types/components/layout/table.d.ts +22 -1
- package/dist/types/components/list/card.d.ts +38 -0
- package/dist/types/components/list/list.d.ts +43 -2
- package/dist/types/components/modal/modal.d.ts +13 -31
- package/dist/types/components/modal/modalPage.d.ts +3 -6
- package/dist/types/components/panel/alert.d.ts +1 -1
- package/dist/types/components/select/cardSelect.d.ts +88 -0
- package/dist/types/components/select/index.d.ts +1 -0
- package/dist/types/components/table/tablePage.d.ts +28 -2
- package/dist/types/config/echart.d.ts +4 -0
- package/dist/types/config/index.d.ts +1 -0
- package/dist/types/hooks/drawer.d.ts +3 -2
- package/dist/types/hooks/echart.d.ts +166 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/modal.d.ts +10 -5
- package/dist/types/hooks/table/types.d.ts +1 -0
- package/dist/types/main.d.ts +1 -0
- package/dist/types/pages/layout/global.d.ts +1 -0
- package/dist/types/pages/menu/avatar.d.ts +3 -3
- package/dist/types/pages/menu/button.d.ts +3 -3
- package/dist/types/pages/menu/main.d.ts +3 -3
- package/dist/types/pages/page.d.ts +1 -1
- package/package.json +8 -3
- 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
- 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
- package/dist/cjs/node_modules/.pnpm/focus-trap@7.6.5/node_modules/focus-trap/dist/focus-trap.esm.cjs +0 -5
- package/dist/cjs/node_modules/.pnpm/tabbable@6.2.0/node_modules/tabbable/dist/index.esm.cjs +0 -4
- 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
- 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
- package/dist/esm/node_modules/.pnpm/focus-trap@7.6.5/node_modules/focus-trap/dist/focus-trap.esm.js +0 -473
- package/dist/esm/node_modules/.pnpm/tabbable@6.2.0/node_modules/tabbable/dist/index.esm.js +0 -202
|
@@ -1,118 +1,112 @@
|
|
|
1
|
-
import { defineComponent as y, reactive as
|
|
1
|
+
import { defineComponent as y, reactive as v, createVNode as n, h as x, isVNode as p } from "vue";
|
|
2
2
|
import { useI18n as h, useJsonSchema as w } from "@duxweb/dvha-core";
|
|
3
|
-
import {
|
|
4
|
-
import { NForm as
|
|
5
|
-
function
|
|
6
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !
|
|
3
|
+
import { useExtendOverlay as S } from "@overlastic/vue";
|
|
4
|
+
import { NModal as k, NForm as j, NButton as s } from "naive-ui";
|
|
5
|
+
function c(t) {
|
|
6
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !p(t);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const A = /* @__PURE__ */ y({
|
|
9
9
|
name: "DuxDialog",
|
|
10
10
|
props: {
|
|
11
11
|
title: String,
|
|
12
12
|
content: String,
|
|
13
13
|
type: String,
|
|
14
14
|
formSchema: Array,
|
|
15
|
-
onClose: {
|
|
16
|
-
type: Function,
|
|
17
|
-
default: () => {
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
onConfirm: {
|
|
21
|
-
type: Function,
|
|
22
|
-
default: () => {
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
15
|
render: Function
|
|
26
16
|
},
|
|
27
17
|
setup(t) {
|
|
28
18
|
const {
|
|
29
|
-
t:
|
|
30
|
-
} = h(),
|
|
19
|
+
t: o
|
|
20
|
+
} = h(), {
|
|
21
|
+
visible: d,
|
|
22
|
+
resolve: u,
|
|
23
|
+
reject: f,
|
|
24
|
+
vanish: m
|
|
25
|
+
} = S({
|
|
26
|
+
duration: 1e3
|
|
27
|
+
}), e = v({
|
|
31
28
|
title: t == null ? void 0 : t.title,
|
|
32
29
|
content: t == null ? void 0 : t.content,
|
|
33
30
|
button: "default"
|
|
34
31
|
});
|
|
35
|
-
t.type === "confirm" && (e.title = e.title ||
|
|
32
|
+
t.type === "confirm" && (e.title = e.title || o("components.dialog.confirm.title"), e.content = e.content || o("components.dialog.confirm.content"), e.button = "primary"), t.type === "success" && (e.title = e.title || o("components.dialog.success.title"), e.content = e.content || o("components.dialog.success.content"), e.button = "success"), t.type === "error" && (e.title = e.title || o("components.dialog.error.title"), e.content = e.content || o("components.dialog.error.content"), e.button = "error"), t.type === "prompt" && (e.title = e.title || o("components.dialog.prompt.title"), e.button = "primary");
|
|
36
33
|
const {
|
|
37
34
|
render: b
|
|
38
35
|
} = w({
|
|
39
36
|
data: t.formSchema || []
|
|
40
|
-
})
|
|
41
|
-
return
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
37
|
+
});
|
|
38
|
+
return () => n(k, {
|
|
39
|
+
displayDirective: "show",
|
|
40
|
+
show: d.value,
|
|
41
|
+
onAfterLeave: () => {
|
|
42
|
+
m();
|
|
43
|
+
},
|
|
44
|
+
role: "dialog",
|
|
45
|
+
"aria-modal": "true",
|
|
46
|
+
draggable: !0
|
|
47
|
+
}, {
|
|
48
|
+
default: ({
|
|
49
|
+
draggableClass: g
|
|
50
|
+
}) => {
|
|
51
|
+
var r;
|
|
52
|
+
let l, i, a;
|
|
53
|
+
return n("div", {
|
|
54
|
+
class: ["w-400px rounded border border-muted max-w-full shadow-lg shadow-gray-950/10 bg-white/70 dark:shadow-gray-950/80 dark:bg-gray-900/70 backdrop-blur"]
|
|
55
|
+
}, [t.type !== "node" ? n("div", {
|
|
56
|
+
class: ["p-6 pb-2 flex gap-4", g]
|
|
57
|
+
}, [n("div", null, [(t.type === "confirm" || t.type === "prompt") && n("div", {
|
|
58
|
+
class: "bg-warning bg-opacity-10 text-warning rounded-full p-2"
|
|
59
|
+
}, [n("div", {
|
|
60
|
+
class: "i-tabler:info-circle size-5"
|
|
61
|
+
}, null)]), t.type === "success" && n("div", {
|
|
62
|
+
class: "bg-success bg-opacity-10 text-success rounded-full p-2"
|
|
63
|
+
}, [n("div", {
|
|
64
|
+
class: "i-tabler:check size-5"
|
|
65
|
+
}, null)]), t.type === "error" && n("div", {
|
|
66
|
+
class: "bg-error bg-opacity-10 text-error rounded-full p-2"
|
|
67
|
+
}, [n("div", {
|
|
68
|
+
class: "i-tabler:alert-triangle size-5"
|
|
69
|
+
}, null)])]), n("div", {
|
|
70
|
+
class: "flex flex-1 flex-col gap-2"
|
|
71
|
+
}, [n("div", {
|
|
72
|
+
class: "text-base font-bold"
|
|
73
|
+
}, [e.title]), t.type === "prompt" ? n(j, {
|
|
74
|
+
labelAlign: "left",
|
|
75
|
+
showLabel: !1,
|
|
76
|
+
showFeedback: !1,
|
|
77
|
+
class: "py-2"
|
|
78
|
+
}, c(l = x(b)) ? l : {
|
|
79
|
+
default: () => [l]
|
|
80
|
+
}) : n("div", {
|
|
81
|
+
class: "text-sm text-gray-500"
|
|
82
|
+
}, [e.content])])]) : n("div", {
|
|
83
|
+
class: "p-4 flex flex-col gap-4"
|
|
84
|
+
}, [n("div", {
|
|
85
|
+
class: "text-base font-bold"
|
|
86
|
+
}, [e.title]), (r = t.render) == null ? void 0 : r.call(t)]), n("div", {
|
|
87
|
+
class: "px-4 pb-4 flex justify-end gap-2"
|
|
88
|
+
}, [(t.type === "confirm" || t.type === "prompt") && n(s, {
|
|
89
|
+
tertiary: !0,
|
|
90
|
+
"aria-label": o("components.button.cancel"),
|
|
91
|
+
type: e.button,
|
|
92
|
+
onClick: () => {
|
|
93
|
+
f();
|
|
94
|
+
}
|
|
95
|
+
}, c(i = o("components.button.cancel")) ? i : {
|
|
96
|
+
default: () => [i]
|
|
97
|
+
}), n(s, {
|
|
98
|
+
"aria-label": o("components.button.confirm"),
|
|
99
|
+
type: e.button,
|
|
100
|
+
onClick: () => {
|
|
101
|
+
u();
|
|
102
|
+
}
|
|
103
|
+
}, c(a = o("components.button.confirm")) ? a : {
|
|
104
|
+
default: () => [a]
|
|
105
|
+
})])]);
|
|
48
106
|
}
|
|
49
|
-
})
|
|
50
|
-
var d;
|
|
51
|
-
let o, c, a;
|
|
52
|
-
return n("div", {
|
|
53
|
-
class: "flex justify-center items-center size-full",
|
|
54
|
-
role: "dialog",
|
|
55
|
-
"aria-modal": "true"
|
|
56
|
-
}, [n("div", {
|
|
57
|
-
ref: u,
|
|
58
|
-
class: "w-400px rounded border border-muted max-w-full shadow-lg shadow-gray-950/10 bg-white/80 dark:shadow-gray-950/80 dark:bg-gray-900/70 backdrop-blur"
|
|
59
|
-
}, [t.type !== "node" ? n("div", {
|
|
60
|
-
class: "p-6 pb-2 flex gap-4"
|
|
61
|
-
}, [n("div", null, [(t.type === "confirm" || t.type === "prompt") && n("div", {
|
|
62
|
-
class: "bg-primary bg-opacity-10 text-primary rounded-full p-2"
|
|
63
|
-
}, [n("div", {
|
|
64
|
-
class: "i-tabler:info-circle size-5"
|
|
65
|
-
}, null)]), t.type === "success" && n("div", {
|
|
66
|
-
class: "bg-success bg-opacity-10 text-success rounded-full p-2"
|
|
67
|
-
}, [n("div", {
|
|
68
|
-
class: "i-tabler:check size-5"
|
|
69
|
-
}, null)]), t.type === "error" && n("div", {
|
|
70
|
-
class: "bg-error bg-opacity-10 text-error rounded-full p-2"
|
|
71
|
-
}, [n("div", {
|
|
72
|
-
class: "i-tabler:alert-triangle size-5"
|
|
73
|
-
}, null)])]), n("div", {
|
|
74
|
-
class: "flex flex-1 flex-col gap-2"
|
|
75
|
-
}, [n("div", {
|
|
76
|
-
class: "text-base font-bold"
|
|
77
|
-
}, [e.title]), t.type === "prompt" ? n(S, {
|
|
78
|
-
labelAlign: "left",
|
|
79
|
-
showLabel: !1,
|
|
80
|
-
showFeedback: !1,
|
|
81
|
-
class: "py-2"
|
|
82
|
-
}, r(o = v(b)) ? o : {
|
|
83
|
-
default: () => [o]
|
|
84
|
-
}) : n("div", {
|
|
85
|
-
class: "text-sm text-gray-500"
|
|
86
|
-
}, [e.content])])]) : n("div", {
|
|
87
|
-
class: "p-4 flex flex-col gap-4"
|
|
88
|
-
}, [n("div", {
|
|
89
|
-
class: "text-base font-bold"
|
|
90
|
-
}, [e.title]), (d = t.render) == null ? void 0 : d.call(t)]), n("div", {
|
|
91
|
-
class: "px-4 pb-4 flex justify-end gap-2"
|
|
92
|
-
}, [(t.type === "confirm" || t.type === "prompt") && n(m, {
|
|
93
|
-
tertiary: !0,
|
|
94
|
-
"aria-label": l("components.button.cancel"),
|
|
95
|
-
type: e.button,
|
|
96
|
-
onClick: () => {
|
|
97
|
-
var i;
|
|
98
|
-
(i = t.onClose) == null || i.call(t);
|
|
99
|
-
}
|
|
100
|
-
}, r(c = l("components.button.cancel")) ? c : {
|
|
101
|
-
default: () => [c]
|
|
102
|
-
}), n(m, {
|
|
103
|
-
ref: s,
|
|
104
|
-
"aria-label": l("components.button.confirm"),
|
|
105
|
-
type: e.button,
|
|
106
|
-
onClick: () => {
|
|
107
|
-
var i;
|
|
108
|
-
(i = t.onConfirm) == null || i.call(t);
|
|
109
|
-
}
|
|
110
|
-
}, r(a = l("components.button.confirm")) ? a : {
|
|
111
|
-
default: () => [a]
|
|
112
|
-
})])])]);
|
|
113
|
-
};
|
|
107
|
+
});
|
|
114
108
|
}
|
|
115
109
|
});
|
|
116
110
|
export {
|
|
117
|
-
|
|
111
|
+
A as default
|
|
118
112
|
};
|
|
@@ -1,66 +1,68 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useExtendOverlay as
|
|
3
|
-
import { NDrawer as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as u, defineAsyncComponent as r, createVNode as t, Suspense as d } from "vue";
|
|
2
|
+
import { useExtendOverlay as s } from "@overlastic/vue";
|
|
3
|
+
import { NDrawer as f, NButton as m, NSpin as b } from "naive-ui";
|
|
4
|
+
const w = /* @__PURE__ */ u({
|
|
5
5
|
name: "DuxDrawer",
|
|
6
6
|
props: {
|
|
7
7
|
title: String,
|
|
8
8
|
width: [Number, String],
|
|
9
|
+
placement: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: "right"
|
|
12
|
+
},
|
|
9
13
|
component: {
|
|
10
|
-
type: Function,
|
|
14
|
+
type: [Function, Object],
|
|
11
15
|
required: !0
|
|
12
16
|
},
|
|
13
17
|
componentProps: Object
|
|
14
18
|
},
|
|
15
|
-
setup(
|
|
19
|
+
setup(e) {
|
|
16
20
|
const {
|
|
17
|
-
visible:
|
|
21
|
+
visible: i,
|
|
18
22
|
resolve: l,
|
|
19
|
-
reject:
|
|
20
|
-
vanish:
|
|
21
|
-
} =
|
|
23
|
+
reject: a,
|
|
24
|
+
vanish: o
|
|
25
|
+
} = s({
|
|
22
26
|
duration: 1e3
|
|
23
|
-
}),
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
return () =>
|
|
27
|
+
}), n = (e == null ? void 0 : e.componentProps) || {};
|
|
28
|
+
n.onConfirm = l, n.onClose = a;
|
|
29
|
+
const c = typeof e.component == "function" ? r(e.component) : e.component;
|
|
30
|
+
return () => t(f, {
|
|
27
31
|
closeOnEsc: !1,
|
|
28
32
|
maskClosable: !1,
|
|
29
33
|
minWidth: 400,
|
|
30
|
-
defaultWidth: (
|
|
34
|
+
defaultWidth: (e == null ? void 0 : e.width) || 400,
|
|
31
35
|
resizable: !0,
|
|
32
|
-
|
|
36
|
+
placement: e.placement,
|
|
37
|
+
show: i.value,
|
|
33
38
|
onUpdateShow: () => l(),
|
|
34
39
|
onAfterLeave: () => {
|
|
35
|
-
|
|
40
|
+
o();
|
|
36
41
|
},
|
|
37
42
|
class: ""
|
|
38
43
|
}, {
|
|
39
|
-
default: () => [
|
|
44
|
+
default: () => [t("div", {
|
|
40
45
|
class: "h-full flex flex-col"
|
|
41
|
-
}, [
|
|
42
|
-
class: "flex justify-between items-center px-4 py-3 border-b border-
|
|
43
|
-
}, [
|
|
46
|
+
}, [t("div", {
|
|
47
|
+
class: "flex justify-between items-center px-4 py-3 border-b border-default"
|
|
48
|
+
}, [t("div", {
|
|
44
49
|
class: "text-base"
|
|
45
|
-
}, [
|
|
50
|
+
}, [e == null ? void 0 : e.title]), t("div", null, [t(m, {
|
|
46
51
|
quaternary: !0,
|
|
47
52
|
size: "small",
|
|
48
53
|
color: "default",
|
|
49
54
|
class: "!px-1 h-6",
|
|
50
|
-
onClick: () =>
|
|
55
|
+
onClick: () => a()
|
|
51
56
|
}, {
|
|
52
|
-
default: () => [
|
|
57
|
+
default: () => [t("div", {
|
|
53
58
|
class: "i-tabler:x w-5 h-5"
|
|
54
59
|
}, null)]
|
|
55
|
-
})])]),
|
|
56
|
-
default: () =>
|
|
57
|
-
|
|
58
|
-
onClose: n
|
|
59
|
-
}), null),
|
|
60
|
-
fallback: () => e(h, {
|
|
60
|
+
})])]), t(d, null, {
|
|
61
|
+
default: () => t(c, n, null),
|
|
62
|
+
fallback: () => t(b, {
|
|
61
63
|
show: !0
|
|
62
64
|
}, {
|
|
63
|
-
default: () => [
|
|
65
|
+
default: () => [t("div", {
|
|
64
66
|
class: "flex-1 min-h-1"
|
|
65
67
|
}, null)]
|
|
66
68
|
})
|
|
@@ -69,5 +71,5 @@ const y = /* @__PURE__ */ s({
|
|
|
69
71
|
}
|
|
70
72
|
});
|
|
71
73
|
export {
|
|
72
|
-
|
|
74
|
+
w as default
|
|
73
75
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as C, computed as F, toRef as x, createVNode as i, Fragment as E, resolveComponent as r, mergeProps as v, isVNode as h } from "vue";
|
|
2
2
|
import { useI18n as j, useExtendForm as M } from "@duxweb/dvha-core";
|
|
3
3
|
import { useMessage as D } from "naive-ui";
|
|
4
|
-
import "@
|
|
4
|
+
import "@overlastic/vue";
|
|
5
5
|
import N from "../modal/modalPage.js";
|
|
6
6
|
import { DuxFormLayout as l } from "./formLayout.js";
|
|
7
7
|
function d(t) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent as d, toRef as f, createVNode as
|
|
1
|
+
import { defineComponent as d, toRef as f, createVNode as i } from "vue";
|
|
2
2
|
import { useI18n as p, useExtendForm as g } from "@duxweb/dvha-core";
|
|
3
3
|
import { useMessage as y, NButton as c } from "naive-ui";
|
|
4
4
|
import "@overlastic/vue";
|
|
5
5
|
import "vue-router";
|
|
6
|
+
import "vue-echarts";
|
|
6
7
|
import "clsx";
|
|
7
8
|
import "jinrishici";
|
|
8
9
|
import "lodash-es";
|
|
@@ -12,10 +13,13 @@ import "@duxweb/dvha-naiveui";
|
|
|
12
13
|
import "pinia";
|
|
13
14
|
import "@vee-validate/i18n";
|
|
14
15
|
import "colorizr";
|
|
16
|
+
import "echarts";
|
|
17
|
+
import "@ant-design/colors";
|
|
18
|
+
import "@unocss/preset-typography";
|
|
15
19
|
import "vue-command-palette";
|
|
16
20
|
import { DuxPage as b } from "../../pages/page.js";
|
|
17
21
|
import "../../pages/page404.js";
|
|
18
|
-
const
|
|
22
|
+
const q = /* @__PURE__ */ d({
|
|
19
23
|
name: "DuxPageForm",
|
|
20
24
|
props: {
|
|
21
25
|
id: {
|
|
@@ -51,38 +55,38 @@ const O = /* @__PURE__ */ d({
|
|
|
51
55
|
path: e.path,
|
|
52
56
|
form: u,
|
|
53
57
|
action: e.action,
|
|
54
|
-
onError: (
|
|
55
|
-
var
|
|
56
|
-
o.error(
|
|
58
|
+
onError: (r) => {
|
|
59
|
+
var n;
|
|
60
|
+
o.error(r.message || m("components.form.error")), (n = e.onError) == null || n.call(e, r);
|
|
57
61
|
},
|
|
58
|
-
onSuccess: (
|
|
59
|
-
var
|
|
60
|
-
o.success(m("components.form.success")), (
|
|
62
|
+
onSuccess: (r) => {
|
|
63
|
+
var n;
|
|
64
|
+
o.success(m("components.form.success")), (n = e.onSuccess) == null || n.call(e, r);
|
|
61
65
|
}
|
|
62
66
|
});
|
|
63
|
-
return () =>
|
|
67
|
+
return () => i(b, {
|
|
64
68
|
card: !1
|
|
65
69
|
}, {
|
|
66
70
|
default: () => {
|
|
67
|
-
var
|
|
68
|
-
return (
|
|
71
|
+
var r;
|
|
72
|
+
return (r = t == null ? void 0 : t.default) == null ? void 0 : r.call(t, a);
|
|
69
73
|
},
|
|
70
74
|
actions: () => {
|
|
71
|
-
var
|
|
72
|
-
return
|
|
75
|
+
var r;
|
|
76
|
+
return i("div", {
|
|
73
77
|
class: "flex gap-6 items-center"
|
|
74
|
-
}, [(
|
|
78
|
+
}, [(r = t == null ? void 0 : t.actions) == null ? void 0 : r.call(t, a), i("div", {
|
|
75
79
|
class: "flex gap-2"
|
|
76
|
-
}, [
|
|
80
|
+
}, [i(c, null, {
|
|
77
81
|
default: () => m("components.button.reset"),
|
|
78
|
-
icon: () =>
|
|
82
|
+
icon: () => i("i", {
|
|
79
83
|
class: "i-tabler:refresh"
|
|
80
84
|
}, null)
|
|
81
|
-
}),
|
|
85
|
+
}), i(c, {
|
|
82
86
|
type: "primary"
|
|
83
87
|
}, {
|
|
84
88
|
default: () => m("components.button.submit"),
|
|
85
|
-
icon: () =>
|
|
89
|
+
icon: () => i("i", {
|
|
86
90
|
class: "i-tabler:send"
|
|
87
91
|
}, null)
|
|
88
92
|
})])]);
|
|
@@ -91,5 +95,5 @@ const O = /* @__PURE__ */ d({
|
|
|
91
95
|
}
|
|
92
96
|
});
|
|
93
97
|
export {
|
|
94
|
-
|
|
98
|
+
q as DuxPageForm
|
|
95
99
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent as d, ref as l, toRef as g, computed as x, createVNode as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useMessage as
|
|
1
|
+
import { defineComponent as d, ref as l, toRef as g, computed as x, createVNode as r } from "vue";
|
|
2
|
+
import { useI18n as p, useExtendForm as y } from "@duxweb/dvha-core";
|
|
3
|
+
import { useMessage as S, NTabs as b } from "naive-ui";
|
|
4
4
|
import "@overlastic/vue";
|
|
5
5
|
import "vue-router";
|
|
6
|
+
import "vue-echarts";
|
|
6
7
|
import "clsx";
|
|
7
8
|
import "jinrishici";
|
|
8
9
|
import "lodash-es";
|
|
@@ -12,10 +13,13 @@ import "@duxweb/dvha-naiveui";
|
|
|
12
13
|
import "pinia";
|
|
13
14
|
import "@vee-validate/i18n";
|
|
14
15
|
import "colorizr";
|
|
16
|
+
import "echarts";
|
|
17
|
+
import "@ant-design/colors";
|
|
18
|
+
import "@unocss/preset-typography";
|
|
15
19
|
import "vue-command-palette";
|
|
16
20
|
import { DuxPage as v } from "../../pages/page.js";
|
|
17
21
|
import "../../pages/page404.js";
|
|
18
|
-
const
|
|
22
|
+
const A = /* @__PURE__ */ d({
|
|
19
23
|
name: "DuxSettingForm",
|
|
20
24
|
props: {
|
|
21
25
|
id: {
|
|
@@ -52,20 +56,20 @@ const U = /* @__PURE__ */ d({
|
|
|
52
56
|
setup(e, {
|
|
53
57
|
slots: t
|
|
54
58
|
}) {
|
|
55
|
-
const
|
|
56
|
-
t:
|
|
57
|
-
} =
|
|
59
|
+
const i = l(e.defaultTab), c = g(e, "data", {}), {
|
|
60
|
+
t: n
|
|
61
|
+
} = p(), u = S(), o = y({
|
|
58
62
|
id: e.id,
|
|
59
63
|
path: e.path,
|
|
60
|
-
form:
|
|
64
|
+
form: c,
|
|
61
65
|
action: e.action,
|
|
62
66
|
onError: (m) => {
|
|
63
67
|
var a;
|
|
64
|
-
|
|
68
|
+
u.error(m.message || n("components.form.error")), (a = e.onError) == null || a.call(e, m);
|
|
65
69
|
},
|
|
66
70
|
onSuccess: (m) => {
|
|
67
71
|
var a;
|
|
68
|
-
|
|
72
|
+
u.success(n("components.form.success")), (a = e.onSuccess) == null || a.call(e, m);
|
|
69
73
|
}
|
|
70
74
|
}), f = x(() => {
|
|
71
75
|
switch (e.size) {
|
|
@@ -78,28 +82,28 @@ const U = /* @__PURE__ */ d({
|
|
|
78
82
|
return "lg:max-w-2xl";
|
|
79
83
|
}
|
|
80
84
|
});
|
|
81
|
-
return () =>
|
|
85
|
+
return () => r(v, null, {
|
|
82
86
|
default: () => {
|
|
83
87
|
var m;
|
|
84
|
-
return [
|
|
88
|
+
return [r("div", {
|
|
85
89
|
class: `flex flex-col gap-6 w-full ${f.value} mx-auto py-4`
|
|
86
|
-
}, [e.tabs ?
|
|
90
|
+
}, [e.tabs ? r(b, {
|
|
87
91
|
defaultValue: e.defaultTab,
|
|
88
|
-
value:
|
|
92
|
+
value: i.value,
|
|
89
93
|
onUpdateValue: (a) => {
|
|
90
|
-
|
|
94
|
+
i.value = a;
|
|
91
95
|
},
|
|
92
96
|
type: "segment"
|
|
93
97
|
}, {
|
|
94
98
|
default: () => {
|
|
95
99
|
var a;
|
|
96
|
-
return [(a = t == null ? void 0 : t.default) == null ? void 0 : a.call(t,
|
|
100
|
+
return [(a = t == null ? void 0 : t.default) == null ? void 0 : a.call(t, o)];
|
|
97
101
|
}
|
|
98
|
-
}) : (m = t == null ? void 0 : t.default) == null ? void 0 : m.call(t,
|
|
102
|
+
}) : (m = t == null ? void 0 : t.default) == null ? void 0 : m.call(t, o)])];
|
|
99
103
|
}
|
|
100
104
|
});
|
|
101
105
|
}
|
|
102
106
|
});
|
|
103
107
|
export {
|
|
104
|
-
|
|
108
|
+
A as DuxSettingForm
|
|
105
109
|
};
|