@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,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as x, useExtendForm as y } from "@duxweb/dvha-core";
|
|
3
|
-
import { useMessage as
|
|
1
|
+
import { defineComponent as s, ref as c, toRef as d, computed as f, createVNode as o } from "vue";
|
|
2
|
+
import { useI18n as g, useInvalidate as x, useExtendForm as y } from "@duxweb/dvha-core";
|
|
3
|
+
import { useMessage as v, NTabs as S } from "naive-ui";
|
|
4
4
|
import "@overlastic/vue";
|
|
5
5
|
import "vue-router";
|
|
6
6
|
import "clsx";
|
|
@@ -39,9 +39,9 @@ import "unocss/preset-wind4";
|
|
|
39
39
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
40
40
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
41
41
|
import "vue-command-palette";
|
|
42
|
-
import { DuxPage as
|
|
42
|
+
import { DuxPage as b } from "../../pages/page.js";
|
|
43
43
|
import "../../pages/page404.js";
|
|
44
|
-
const
|
|
44
|
+
const lt = /* @__PURE__ */ s({
|
|
45
45
|
name: "DuxSettingForm",
|
|
46
46
|
props: {
|
|
47
47
|
id: {
|
|
@@ -73,27 +73,30 @@ const ct = /* @__PURE__ */ f({
|
|
|
73
73
|
size: {
|
|
74
74
|
type: String,
|
|
75
75
|
default: "medium"
|
|
76
|
+
},
|
|
77
|
+
invalidate: {
|
|
78
|
+
type: String
|
|
76
79
|
}
|
|
77
80
|
},
|
|
78
81
|
setup(t, {
|
|
79
|
-
slots:
|
|
82
|
+
slots: i
|
|
80
83
|
}) {
|
|
81
|
-
const
|
|
82
|
-
t:
|
|
83
|
-
} =
|
|
84
|
+
const r = c(t.defaultTab), p = d(t, "data", {}), {
|
|
85
|
+
t: m
|
|
86
|
+
} = g(), a = v(), {
|
|
87
|
+
invalidate: u
|
|
88
|
+
} = x(), n = y({
|
|
84
89
|
id: t.id,
|
|
85
90
|
path: t.path,
|
|
86
|
-
form:
|
|
91
|
+
form: p,
|
|
87
92
|
action: t.action,
|
|
88
|
-
onError: (
|
|
89
|
-
|
|
90
|
-
n.error(r.message || o("components.form.error")), (m = t.onError) == null || m.call(t, r);
|
|
93
|
+
onError: (e) => {
|
|
94
|
+
a.error(e.message || m("components.form.error")), t.onError?.(e);
|
|
91
95
|
},
|
|
92
|
-
onSuccess: (
|
|
93
|
-
|
|
94
|
-
n.success(o("components.form.success")), (m = t.onSuccess) == null || m.call(t, r);
|
|
96
|
+
onSuccess: (e) => {
|
|
97
|
+
a.success(m("components.form.success")), t.onSuccess?.(e), t.invalidate && u(t.invalidate);
|
|
95
98
|
}
|
|
96
|
-
}),
|
|
99
|
+
}), l = f(() => {
|
|
97
100
|
switch (t.size) {
|
|
98
101
|
case "small":
|
|
99
102
|
return "lg:max-w-lg";
|
|
@@ -104,28 +107,22 @@ const ct = /* @__PURE__ */ f({
|
|
|
104
107
|
return "lg:max-w-2xl";
|
|
105
108
|
}
|
|
106
109
|
});
|
|
107
|
-
return () =>
|
|
108
|
-
default: () => {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
value
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
default: () => {
|
|
121
|
-
var m;
|
|
122
|
-
return [(m = e == null ? void 0 : e.default) == null ? void 0 : m.call(e, u)];
|
|
123
|
-
}
|
|
124
|
-
}) : (r = e == null ? void 0 : e.default) == null ? void 0 : r.call(e, u)])];
|
|
125
|
-
}
|
|
110
|
+
return () => o(b, null, {
|
|
111
|
+
default: () => [o("div", {
|
|
112
|
+
class: `flex flex-col gap-6 w-full ${l.value} mx-auto py-4`
|
|
113
|
+
}, [t.tabs ? o(S, {
|
|
114
|
+
defaultValue: t.defaultTab,
|
|
115
|
+
value: r.value,
|
|
116
|
+
onUpdateValue: (e) => {
|
|
117
|
+
r.value = e;
|
|
118
|
+
},
|
|
119
|
+
type: "segment"
|
|
120
|
+
}, {
|
|
121
|
+
default: () => [i?.default?.(n)]
|
|
122
|
+
}) : i?.default?.(n)])]
|
|
126
123
|
});
|
|
127
124
|
}
|
|
128
125
|
});
|
|
129
126
|
export {
|
|
130
|
-
|
|
127
|
+
lt as DuxSettingForm
|
|
131
128
|
};
|
|
@@ -1,83 +1,79 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { icons as
|
|
4
|
-
import { useOffsetPagination as
|
|
5
|
-
import { NInput as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as m, ref as l, onMounted as P, watch as h, createVNode as a } from "vue";
|
|
2
|
+
import { useI18n as C } from "@duxweb/dvha-core";
|
|
3
|
+
import { icons as v } from "@iconify-json/tabler/icons.json";
|
|
4
|
+
import { useOffsetPagination as y } from "@vueuse/core";
|
|
5
|
+
import { NInput as b, NPagination as k } from "naive-ui";
|
|
6
|
+
const I = /* @__PURE__ */ m({
|
|
7
7
|
name: "DuxIconPicker",
|
|
8
8
|
props: {
|
|
9
9
|
onConfirm: Function,
|
|
10
10
|
onClose: Function
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
function
|
|
15
|
-
currentPage:
|
|
16
|
-
currentPageSize:
|
|
12
|
+
setup(d) {
|
|
13
|
+
const i = Object.keys(v), u = l(i), t = l(""), c = l([]), s = l(i.length);
|
|
14
|
+
function n({
|
|
15
|
+
currentPage: e,
|
|
16
|
+
currentPageSize: r
|
|
17
17
|
}) {
|
|
18
|
-
|
|
18
|
+
c.value = u.value.slice((e - 1) * r, e * r);
|
|
19
19
|
}
|
|
20
20
|
const {
|
|
21
21
|
currentPage: o,
|
|
22
|
-
currentPageSize:
|
|
23
|
-
pageCount:
|
|
24
|
-
} =
|
|
25
|
-
total: () =>
|
|
22
|
+
currentPageSize: p,
|
|
23
|
+
pageCount: g
|
|
24
|
+
} = y({
|
|
25
|
+
total: () => s.value,
|
|
26
26
|
page: 1,
|
|
27
27
|
pageSize: 42,
|
|
28
|
-
onPageChange:
|
|
29
|
-
onPageSizeChange:
|
|
30
|
-
onPageCountChange:
|
|
28
|
+
onPageChange: n,
|
|
29
|
+
onPageSizeChange: n,
|
|
30
|
+
onPageCountChange: n
|
|
31
31
|
});
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
P(() => {
|
|
33
|
+
n({
|
|
34
34
|
currentPage: o.value,
|
|
35
35
|
currentPageSize: 42
|
|
36
36
|
});
|
|
37
|
-
}),
|
|
38
|
-
|
|
37
|
+
}), h(t, () => {
|
|
38
|
+
u.value = Object.keys(v).filter((e) => e.includes(t.value)), s.value = u.value.length, o.value = 1, n({
|
|
39
39
|
currentPage: o.value,
|
|
40
|
-
currentPageSize:
|
|
40
|
+
currentPageSize: p.value
|
|
41
41
|
});
|
|
42
42
|
}, {
|
|
43
43
|
immediate: !0
|
|
44
44
|
});
|
|
45
45
|
const {
|
|
46
|
-
t:
|
|
47
|
-
} =
|
|
48
|
-
return () => {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
pageCount: m.value,
|
|
76
|
-
onUpdatePage: (e) => o.value = e
|
|
77
|
-
}, null)])]);
|
|
78
|
-
};
|
|
46
|
+
t: f
|
|
47
|
+
} = C();
|
|
48
|
+
return () => a("div", {
|
|
49
|
+
class: "p-4 flex flex-col gap-4"
|
|
50
|
+
}, [a(b, {
|
|
51
|
+
placeholder: f("common.keyword"),
|
|
52
|
+
value: t.value,
|
|
53
|
+
"onUpdate:value": (e) => t.value = e,
|
|
54
|
+
clearable: !0
|
|
55
|
+
}, null), a("div", {
|
|
56
|
+
class: "grid grid-cols-6"
|
|
57
|
+
}, [c.value?.map((e, r) => a("div", {
|
|
58
|
+
key: r,
|
|
59
|
+
class: "flex justify-center items-center",
|
|
60
|
+
onClick: () => {
|
|
61
|
+
d.onConfirm?.(`i-tabler:${e}`);
|
|
62
|
+
}
|
|
63
|
+
}, [a("div", {
|
|
64
|
+
class: "py-2 px-3 hover:bg-primary/10 border border-transparent hover:border-primary-hover rounded cursor-pointer transition-all"
|
|
65
|
+
}, [a("div", {
|
|
66
|
+
class: `i-tabler:${e} size-6`
|
|
67
|
+
}, null)])]))]), a("div", {
|
|
68
|
+
class: "flex justify-center"
|
|
69
|
+
}, [a(k, {
|
|
70
|
+
page: o.value,
|
|
71
|
+
pageSize: p.value,
|
|
72
|
+
pageCount: g.value,
|
|
73
|
+
onUpdatePage: (e) => o.value = e
|
|
74
|
+
}, null)])]);
|
|
79
75
|
}
|
|
80
76
|
});
|
|
81
77
|
export {
|
|
82
|
-
|
|
78
|
+
I as default
|
|
83
79
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as f, inject as n, createVNode as e } from "vue";
|
|
2
|
+
const s = /* @__PURE__ */ f({
|
|
3
3
|
name: "DuxTableFilter",
|
|
4
4
|
props: {
|
|
5
5
|
label: {
|
|
@@ -7,25 +7,22 @@ const c = /* @__PURE__ */ n({
|
|
|
7
7
|
default: ""
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
slots:
|
|
10
|
+
setup(l, {
|
|
11
|
+
slots: a
|
|
12
12
|
}) {
|
|
13
|
-
const t =
|
|
13
|
+
const t = n("dux.filter", {
|
|
14
14
|
showLabel: !1,
|
|
15
15
|
labelPlacement: "left"
|
|
16
16
|
});
|
|
17
|
-
return () => {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class: "flex-1 min-w-60"
|
|
25
|
-
}, [(f = e.default) == null ? void 0 : f.call(e)])]);
|
|
26
|
-
};
|
|
17
|
+
return () => e("div", {
|
|
18
|
+
class: ["flex gap-2 gap-2 flex-nowrap", t.labelPlacement === "left" ? "flex-row items-center" : "flex-col"]
|
|
19
|
+
}, [t.showLabel && l.label && e("div", {
|
|
20
|
+
class: "text-sm text-default whitespace-nowrap"
|
|
21
|
+
}, [l.label]), e("div", {
|
|
22
|
+
class: "flex-1 min-w-60"
|
|
23
|
+
}, [a.default?.()])]);
|
|
27
24
|
}
|
|
28
25
|
});
|
|
29
26
|
export {
|
|
30
|
-
|
|
27
|
+
s as DuxTableFilter
|
|
31
28
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as t, provide as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as t, provide as a, createVNode as o } from "vue";
|
|
2
|
+
const n = /* @__PURE__ */ t({
|
|
3
3
|
name: "DuxFilterLayout",
|
|
4
4
|
props: {
|
|
5
5
|
showLabel: {
|
|
@@ -18,17 +18,14 @@ const r = /* @__PURE__ */ t({
|
|
|
18
18
|
setup(e, {
|
|
19
19
|
slots: l
|
|
20
20
|
}) {
|
|
21
|
-
return
|
|
21
|
+
return a("dux.filter", {
|
|
22
22
|
showLabel: e.showLabel,
|
|
23
23
|
labelPlacement: e.labelPlacement
|
|
24
|
-
}), () => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class: ["flex flex-col gap-2", e.horizontal ? "flex-row" : "flex-col"]
|
|
28
|
-
}, [(a = l.default) == null ? void 0 : a.call(l)]);
|
|
29
|
-
};
|
|
24
|
+
}), () => o("div", {
|
|
25
|
+
class: ["flex flex-col gap-2", e.horizontal ? "flex-row" : "flex-col"]
|
|
26
|
+
}, [l.default?.()]);
|
|
30
27
|
}
|
|
31
28
|
});
|
|
32
29
|
export {
|
|
33
|
-
|
|
30
|
+
n as DuxFilterLayout
|
|
34
31
|
};
|