@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
package/dist/esm/index.js
CHANGED
|
@@ -1,139 +1,162 @@
|
|
|
1
1
|
import { DuxApp as e } from "./app.js";
|
|
2
|
-
import { DuxCard as
|
|
3
|
-
import { DuxCarousel as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
2
|
+
import { DuxCard as x } from "./components/card/card.js";
|
|
3
|
+
import { DuxCarousel as a } from "./components/carousel/carousel.js";
|
|
4
|
+
import { DuxChart as p } from "./components/chart/echart.js";
|
|
5
|
+
import { DuxDashboardHello as D } from "./components/dashboard/hello.js";
|
|
6
|
+
import { DuxDashboardHelloBig as s } from "./components/dashboard/helloBig.js";
|
|
7
|
+
import { DuxDashboardQuick as d, DuxDashboardQuickItem as i } from "./components/dashboard/quick.js";
|
|
8
|
+
import { default as h } from "./components/dialog/dialog.js";
|
|
9
|
+
import { DuxDrawApps as b } from "./components/draw/drawApps.js";
|
|
10
|
+
import { DuxDrawAuth as C } from "./components/draw/drawAuth.js";
|
|
11
|
+
import { DuxDrawEmpty as T } from "./components/draw/drawEmpty.js";
|
|
12
|
+
import { DuxDrawEmptyForm as w } from "./components/draw/drawEmptyForm.js";
|
|
13
|
+
import { DuxDrawError as L } from "./components/draw/drawError.js";
|
|
14
|
+
import { default as F } from "./components/drawer/drawer.js";
|
|
15
|
+
import { DuxDrawerPage as B } from "./components/drawer/drawerPage.js";
|
|
16
|
+
import { DuxFormItem as R } from "./components/form/formItem.js";
|
|
17
|
+
import { DuxFormLayout as U } from "./components/form/formLayout.js";
|
|
18
|
+
import { DuxModalForm as H } from "./components/form/modalForm.js";
|
|
19
|
+
import { DuxPageForm as V } from "./components/form/pageForm.js";
|
|
20
|
+
import { DuxSettingForm as N } from "./components/form/settingForm.js";
|
|
21
|
+
import { DuxTableFilter as W } from "./components/layout/filter.js";
|
|
22
|
+
import { DuxListLayout as q } from "./components/layout/list.js";
|
|
23
|
+
import { DuxTableLayout as J } from "./components/layout/table.js";
|
|
24
|
+
import { DuxTableTools as X } from "./components/layout/tools.js";
|
|
25
|
+
import { DuxCardPage as Z } from "./components/list/card.js";
|
|
26
|
+
import { DuxListPage as $ } from "./components/list/list.js";
|
|
27
|
+
import { DuxMedia as or } from "./components/media/media.js";
|
|
28
|
+
import { DuxModal as tr } from "./components/modal/modal.js";
|
|
29
|
+
import { default as ur } from "./components/modal/modalPage.js";
|
|
30
|
+
import { default as mr } from "./components/modal/modalTab.js";
|
|
31
|
+
import { DuxPanelAlert as fr } from "./components/panel/alert.js";
|
|
32
|
+
import { DuxPanelCard as lr } from "./components/panel/setting.js";
|
|
33
|
+
import { DuxSelectCard as nr } from "./components/select/cardSelect.js";
|
|
34
|
+
import { DuxBlockEmpty as ir } from "./components/status/blockEmpty.js";
|
|
35
|
+
import { DuxTablePage as hr } from "./components/table/tablePage.js";
|
|
36
|
+
import { DuxWidgetConnect as br } from "./components/widget/connect.js";
|
|
37
|
+
import { DuxAuthLayout as Cr } from "./pages/authLayout.js";
|
|
38
|
+
import { DuxLayout as Tr } from "./pages/layout.js";
|
|
39
|
+
import { DuxLoginPage as wr } from "./pages/login.js";
|
|
40
|
+
import { default as Lr } from "./pages/menu/avatar.js";
|
|
41
|
+
import { default as Fr } from "./pages/menu/button.js";
|
|
42
|
+
import { DuxMenuCmd as Br } from "./pages/menu/cmd.js";
|
|
43
|
+
import { DuxMenuMain as Rr } from "./pages/menu/main.js";
|
|
44
|
+
import { DuxMobileMenu as Ur } from "./pages/menu/mobile.js";
|
|
45
|
+
import { DuxPage as Hr } from "./pages/page.js";
|
|
46
|
+
import { DuxPage403 as Vr } from "./pages/page403.js";
|
|
47
|
+
import { DuxPage404 as Nr } from "./pages/page404.js";
|
|
48
|
+
import { DuxPage500 as Wr } from "./pages/page500.js";
|
|
49
|
+
import { DuxPageEmpty as qr } from "./pages/pageEmpty.js";
|
|
50
|
+
import { DuxPageLoading as Jr } from "./pages/pageLoading.js";
|
|
51
|
+
import { DuxPageStatus as Xr } from "./pages/pageStatus.js";
|
|
52
|
+
import { generateRainbowFromColor as Zr, getTheme as _r } from "./config/echart.js";
|
|
53
|
+
import { config as ro } from "./config/uno.js";
|
|
54
|
+
import { initVeeValidate as eo } from "./config/validate.js";
|
|
55
|
+
import { useAction as xo, useActionButton as uo, useActionDropdown as ao } from "./hooks/action.js";
|
|
56
|
+
import { useDialog as po } from "./hooks/dialog.js";
|
|
57
|
+
import { useDrawer as Do } from "./hooks/drawer.js";
|
|
58
|
+
import { useEchartBar as so, useEchartCommon as no, useEchartFunnel as io, useEchartLine as go, useEchartMap as ho, useEchartPie as co, useEchartRadar as bo, useEchartRing as Po, useEchartRose as Co, useEchartTreeMap as Mo, useEchartType as To } from "./hooks/echart.js";
|
|
59
|
+
import { useModal as wo } from "./hooks/modal.js";
|
|
60
|
+
import { useTable as Lo } from "./hooks/table.js";
|
|
61
|
+
import { useTableColumn as Fo } from "./hooks/table/column.js";
|
|
62
|
+
import { useTableColumnImage as Bo } from "./hooks/table/image.js";
|
|
63
|
+
import { useTableColumnMap as Ro } from "./hooks/table/map.js";
|
|
64
|
+
import { useTableColumnMedia as Uo } from "./hooks/table/media.js";
|
|
65
|
+
import { useTableColumnStatus as Ho } from "./hooks/table/status.js";
|
|
66
|
+
import { useTableColumnSwitch as Vo } from "./hooks/table/switch.js";
|
|
67
|
+
import { useUI as No } from "./hooks/ui.js";
|
|
68
|
+
import { default as Wo } from "./langs/en-US.json.js";
|
|
69
|
+
import { default as qo } from "./langs/zh-CN.json.js";
|
|
70
|
+
import { createDuxPro as Jo } from "./main.js";
|
|
71
|
+
import { useUIStore as Xo } from "./stores/ui.js";
|
|
72
|
+
import { themeOverrides as Zo } from "./theme/naiveTheme.js";
|
|
73
|
+
import { presetTheme as $o } from "./theme/presetTheme.js";
|
|
68
74
|
export {
|
|
69
75
|
e as DuxApp,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
p as
|
|
76
|
-
D as
|
|
77
|
-
s as
|
|
78
|
-
|
|
79
|
-
i as
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
C as
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
L as
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
76
|
+
Cr as DuxAuthLayout,
|
|
77
|
+
ir as DuxBlockEmpty,
|
|
78
|
+
x as DuxCard,
|
|
79
|
+
Z as DuxCardPage,
|
|
80
|
+
a as DuxCarousel,
|
|
81
|
+
p as DuxChart,
|
|
82
|
+
D as DuxDashboardHello,
|
|
83
|
+
s as DuxDashboardHelloBig,
|
|
84
|
+
d as DuxDashboardQuick,
|
|
85
|
+
i as DuxDashboardQuickItem,
|
|
86
|
+
h as DuxDialog,
|
|
87
|
+
b as DuxDrawApps,
|
|
88
|
+
C as DuxDrawAuth,
|
|
89
|
+
T as DuxDrawEmpty,
|
|
90
|
+
w as DuxDrawEmptyForm,
|
|
91
|
+
L as DuxDrawError,
|
|
92
|
+
F as DuxDrawer,
|
|
93
|
+
B as DuxDrawerPage,
|
|
94
|
+
R as DuxFormItem,
|
|
95
|
+
U as DuxFormLayout,
|
|
96
|
+
Tr as DuxLayout,
|
|
97
|
+
q as DuxListLayout,
|
|
98
|
+
$ as DuxListPage,
|
|
99
|
+
wr as DuxLoginPage,
|
|
100
|
+
or as DuxMedia,
|
|
101
|
+
Lr as DuxMenuAvatar,
|
|
102
|
+
Fr as DuxMenuButton,
|
|
103
|
+
Br as DuxMenuCmd,
|
|
104
|
+
Rr as DuxMenuMain,
|
|
105
|
+
Ur as DuxMobileMenu,
|
|
106
|
+
tr as DuxModal,
|
|
107
|
+
H as DuxModalForm,
|
|
108
|
+
Hr as DuxPage,
|
|
109
|
+
Vr as DuxPage403,
|
|
110
|
+
Nr as DuxPage404,
|
|
111
|
+
Wr as DuxPage500,
|
|
112
|
+
qr as DuxPageEmpty,
|
|
113
|
+
V as DuxPageForm,
|
|
114
|
+
Jr as DuxPageLoading,
|
|
115
|
+
Xr as DuxPageStatus,
|
|
116
|
+
fr as DuxPanelAlert,
|
|
117
|
+
lr as DuxPanelCard,
|
|
118
|
+
nr as DuxSelectCard,
|
|
119
|
+
N as DuxSettingForm,
|
|
120
|
+
W as DuxTableFilter,
|
|
121
|
+
J as DuxTableLayout,
|
|
122
|
+
hr as DuxTablePage,
|
|
123
|
+
X as DuxTableTools,
|
|
124
|
+
br as DuxWidgetConnect,
|
|
125
|
+
ur as ModalPage,
|
|
126
|
+
mr as ModalTab,
|
|
127
|
+
ro as config,
|
|
128
|
+
Jo as createDuxPro,
|
|
129
|
+
Wo as enUS,
|
|
130
|
+
Zr as generateRainbowFromColor,
|
|
131
|
+
_r as getTheme,
|
|
132
|
+
eo as initVeeValidate,
|
|
133
|
+
$o as presetTheme,
|
|
134
|
+
Zo as themeOverrides,
|
|
135
|
+
xo as useAction,
|
|
136
|
+
uo as useActionButton,
|
|
137
|
+
ao as useActionDropdown,
|
|
138
|
+
po as useDialog,
|
|
139
|
+
Do as useDrawer,
|
|
140
|
+
so as useEchartBar,
|
|
141
|
+
no as useEchartCommon,
|
|
142
|
+
io as useEchartFunnel,
|
|
143
|
+
go as useEchartLine,
|
|
144
|
+
ho as useEchartMap,
|
|
145
|
+
co as useEchartPie,
|
|
146
|
+
bo as useEchartRadar,
|
|
147
|
+
Po as useEchartRing,
|
|
148
|
+
Co as useEchartRose,
|
|
149
|
+
Mo as useEchartTreeMap,
|
|
150
|
+
To as useEchartType,
|
|
151
|
+
wo as useModal,
|
|
152
|
+
Lo as useTable,
|
|
153
|
+
Fo as useTableColumn,
|
|
154
|
+
Bo as useTableColumnImage,
|
|
155
|
+
Ro as useTableColumnMap,
|
|
156
|
+
Uo as useTableColumnMedia,
|
|
157
|
+
Ho as useTableColumnStatus,
|
|
158
|
+
Vo as useTableColumnSwitch,
|
|
159
|
+
No as useUI,
|
|
160
|
+
Xo as useUIStore,
|
|
161
|
+
qo as zhCN
|
|
139
162
|
};
|
package/dist/esm/main.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import o from "@unocss/runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import r from "vue-echarts";
|
|
3
|
+
import i from "./component.js";
|
|
4
|
+
import "@ant-design/colors";
|
|
5
|
+
import { config as e } from "./config/uno.js";
|
|
6
|
+
import { initVeeValidate as m } from "./config/validate.js";
|
|
7
|
+
import "echarts";
|
|
5
8
|
/* empty css */
|
|
6
|
-
function
|
|
7
|
-
return
|
|
8
|
-
defaults:
|
|
9
|
+
function d() {
|
|
10
|
+
return m(), o({
|
|
11
|
+
defaults: e(!1),
|
|
9
12
|
bypassDefined: !0
|
|
10
13
|
}), {
|
|
11
14
|
install(t) {
|
|
12
|
-
t.use(
|
|
15
|
+
t.component("v-chart", r), t.use(i);
|
|
13
16
|
}
|
|
14
17
|
};
|
|
15
18
|
}
|
|
16
19
|
export {
|
|
17
|
-
|
|
20
|
+
d as createDuxPro
|
|
18
21
|
};
|
|
@@ -3,6 +3,7 @@ import { OverlaysProvider as t } from "@overlastic/vue";
|
|
|
3
3
|
import "@duxweb/dvha-core";
|
|
4
4
|
import "naive-ui";
|
|
5
5
|
import "vue-router";
|
|
6
|
+
import "vue-echarts";
|
|
6
7
|
import "clsx";
|
|
7
8
|
import "jinrishici";
|
|
8
9
|
import "lodash-es";
|
|
@@ -16,7 +17,7 @@ import { DuxMobileMenu as i } from "./menu/mobile.js";
|
|
|
16
17
|
import "./page404.js";
|
|
17
18
|
import "@duxweb/dvha-naiveui";
|
|
18
19
|
import { useUI as p } from "../hooks/ui.js";
|
|
19
|
-
const
|
|
20
|
+
const G = /* @__PURE__ */ r({
|
|
20
21
|
name: "DuxAuthLayout",
|
|
21
22
|
setup() {
|
|
22
23
|
const {
|
|
@@ -34,5 +35,5 @@ const k = /* @__PURE__ */ r({
|
|
|
34
35
|
}
|
|
35
36
|
});
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
G as DuxAuthLayout
|
|
38
39
|
};
|
|
@@ -1,51 +1,64 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import { setLocale as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { defineComponent as N, inject as T, onBeforeMount as L, computed as n, watch as i, onMounted as y, createVNode as o } from "vue";
|
|
2
|
+
import { useTheme as b, useI18n as k } from "@duxweb/dvha-core";
|
|
3
|
+
import { setLocale as x } from "@vee-validate/i18n";
|
|
4
|
+
import { hex2hsl as M } from "colorizr";
|
|
5
|
+
import { registerTheme as O } from "echarts";
|
|
6
|
+
import { useLoadingBar as P, zhCN as w, enUS as z, dateZhCN as B, dateEnUS as D, NConfigProvider as S, darkTheme as G, lightTheme as I, NModalProvider as U, NNotificationProvider as j, NMessageProvider as E } from "naive-ui";
|
|
7
|
+
import { generateRainbowFromColor as F, getTheme as R } from "../../config/echart.js";
|
|
8
|
+
import "@unocss/preset-typography";
|
|
9
|
+
import { themeOverrides as V } from "../../theme/naiveTheme.js";
|
|
10
|
+
import "vee-validate";
|
|
11
|
+
const $ = /* @__PURE__ */ N({
|
|
7
12
|
name: "DuxGlobalLayout",
|
|
8
|
-
setup(
|
|
9
|
-
slots:
|
|
13
|
+
setup(Z, {
|
|
14
|
+
slots: r
|
|
10
15
|
}) {
|
|
11
16
|
const {
|
|
12
|
-
isDark:
|
|
13
|
-
cssInit:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
isDark: t,
|
|
18
|
+
cssInit: l,
|
|
19
|
+
getSceneColor: m
|
|
20
|
+
} = b(), u = T("pageLoading"), d = P(), {
|
|
21
|
+
lightTheme: c,
|
|
22
|
+
darkTheme: s
|
|
23
|
+
} = V();
|
|
24
|
+
L(() => {
|
|
25
|
+
l();
|
|
20
26
|
});
|
|
21
27
|
const {
|
|
22
28
|
getLocale: a
|
|
23
|
-
} =
|
|
24
|
-
return
|
|
25
|
-
|
|
29
|
+
} = k(), h = n(() => a() === "zh-CN" ? w : z), f = n(() => a() === "zh-CN" ? B : D);
|
|
30
|
+
return i(a, (e) => {
|
|
31
|
+
x(e);
|
|
26
32
|
}, {
|
|
27
33
|
immediate: !0
|
|
28
|
-
}),
|
|
34
|
+
}), y(async () => {
|
|
29
35
|
setTimeout(() => {
|
|
30
|
-
|
|
36
|
+
d.finish(), u.value = !1;
|
|
31
37
|
}, 500);
|
|
32
|
-
}), () =>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
theme: r.value ? B : D,
|
|
36
|
-
themeOverrides: r.value ? m.value : d.value
|
|
38
|
+
}), i(t, (e) => {
|
|
39
|
+
const g = m("primary"), p = M(g), v = F(p, 10), C = R(v, e);
|
|
40
|
+
O("default", C);
|
|
37
41
|
}, {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
immediate: !0
|
|
43
|
+
}), () => o(S, {
|
|
44
|
+
locale: h.value,
|
|
45
|
+
dateLocale: f.value,
|
|
46
|
+
theme: t.value ? G : I,
|
|
47
|
+
themeOverrides: t.value ? s.value : c.value
|
|
48
|
+
}, {
|
|
49
|
+
default: () => [o(U, null, {
|
|
50
|
+
default: () => [o(j, null, {
|
|
51
|
+
default: () => [o(E, null, {
|
|
52
|
+
default: () => {
|
|
53
|
+
var e;
|
|
54
|
+
return [(e = r.default) == null ? void 0 : e.call(r)];
|
|
55
|
+
}
|
|
56
|
+
})]
|
|
44
57
|
})]
|
|
45
58
|
})]
|
|
46
59
|
});
|
|
47
60
|
}
|
|
48
61
|
});
|
|
49
62
|
export {
|
|
50
|
-
|
|
63
|
+
$ as DuxGlobalLayout
|
|
51
64
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent as i, createVNode as e } from "vue";
|
|
2
2
|
import { useManage as r, DuxTabRouterView as m } from "@duxweb/dvha-core";
|
|
3
|
-
import { NButton as
|
|
3
|
+
import { NButton as s } from "naive-ui";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
import "@overlastic/vue";
|
|
6
|
+
import "vue-echarts";
|
|
6
7
|
import "clsx";
|
|
7
8
|
import "jinrishici";
|
|
8
9
|
import "lodash-es";
|
|
@@ -10,20 +11,23 @@ import "@vueuse/core";
|
|
|
10
11
|
import "vee-validate";
|
|
11
12
|
import "@vee-validate/i18n";
|
|
12
13
|
import "colorizr";
|
|
13
|
-
import
|
|
14
|
+
import "echarts";
|
|
15
|
+
import "@ant-design/colors";
|
|
16
|
+
import "@unocss/preset-typography";
|
|
17
|
+
import n from "../menu/avatar.js";
|
|
14
18
|
import "vue-command-palette";
|
|
15
19
|
import "@duxweb/dvha-naiveui";
|
|
16
20
|
import { DuxPageTab as u } from "./tab.js";
|
|
17
21
|
import "../page404.js";
|
|
18
|
-
import { useUI as
|
|
19
|
-
const
|
|
22
|
+
import { useUI as p } from "../../hooks/ui.js";
|
|
23
|
+
const A = /* @__PURE__ */ i({
|
|
20
24
|
name: "DuxLayoutPage",
|
|
21
25
|
props: {},
|
|
22
26
|
setup() {
|
|
23
27
|
const {
|
|
24
28
|
menuMobileCollapsed: t,
|
|
25
29
|
setMenuMobileCollapsed: l
|
|
26
|
-
} =
|
|
30
|
+
} = p(), {
|
|
27
31
|
config: o
|
|
28
32
|
} = r();
|
|
29
33
|
return () => e("div", {
|
|
@@ -32,7 +36,7 @@ const N = /* @__PURE__ */ i({
|
|
|
32
36
|
class: "flex flex-col lg:flex-row lg:justify-between lg:items-center lg:h-13"
|
|
33
37
|
}, [e("div", {
|
|
34
38
|
class: "flex lg:hidden justify-between items-center px-2 py-2 bg-default dark:bg-muted shadow-xs relative"
|
|
35
|
-
}, [e(
|
|
39
|
+
}, [e(s, {
|
|
36
40
|
text: !0,
|
|
37
41
|
onClick: () => l(!t.value)
|
|
38
42
|
}, {
|
|
@@ -41,8 +45,8 @@ const N = /* @__PURE__ */ i({
|
|
|
41
45
|
}, null)]
|
|
42
46
|
}), e("div", {
|
|
43
47
|
class: "w-full absolute inset-0 flex items-center justify-center text-base pointer-events-none"
|
|
44
|
-
}, [o.title]), e("div", null, [e(
|
|
45
|
-
|
|
48
|
+
}, [o.title]), e("div", null, [e(n, {
|
|
49
|
+
collapsed: !0
|
|
46
50
|
}, null)])]), e("div", {
|
|
47
51
|
class: "flex-1 py-2"
|
|
48
52
|
}, [e(u, null, null)])]), e("div", {
|
|
@@ -51,5 +55,5 @@ const N = /* @__PURE__ */ i({
|
|
|
51
55
|
}
|
|
52
56
|
});
|
|
53
57
|
export {
|
|
54
|
-
|
|
58
|
+
A as DuxLayoutPage
|
|
55
59
|
};
|
package/dist/esm/pages/login.js
CHANGED
|
@@ -2,28 +2,32 @@ import { defineComponent as k, ref as j, reactive as D, createVNode as e, isVNod
|
|
|
2
2
|
import { useTheme as N, useManage as F, useI18n as P, useLogin as S, DuxLogo as V } from "@duxweb/dvha-core";
|
|
3
3
|
import z from "clsx";
|
|
4
4
|
import { useMessage as A, NForm as C, NFormItem as h, NInput as v, NButton as I } from "naive-ui";
|
|
5
|
-
import "
|
|
6
|
-
import "lodash-es";
|
|
7
|
-
import { DuxDrawApps as M } from "../components/draw/drawApps.js";
|
|
8
|
-
import "@overlastic/vue";
|
|
9
|
-
import "@vueuse/core";
|
|
10
|
-
import "vee-validate";
|
|
5
|
+
import "vue-echarts";
|
|
11
6
|
import "vue-router";
|
|
7
|
+
import "@overlastic/vue";
|
|
8
|
+
import "lodash-es";
|
|
12
9
|
import "@duxweb/dvha-naiveui";
|
|
10
|
+
import "@vueuse/core";
|
|
13
11
|
import "pinia";
|
|
12
|
+
import "jinrishici";
|
|
13
|
+
import { DuxDrawApps as M } from "../components/draw/drawApps.js";
|
|
14
|
+
import "vee-validate";
|
|
14
15
|
import "@vee-validate/i18n";
|
|
15
16
|
import "colorizr";
|
|
17
|
+
import "echarts";
|
|
18
|
+
import "@ant-design/colors";
|
|
19
|
+
import "@unocss/preset-typography";
|
|
16
20
|
import "vue-command-palette";
|
|
17
21
|
import "./page404.js";
|
|
18
22
|
function O(r) {
|
|
19
23
|
return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !L(r);
|
|
20
24
|
}
|
|
21
|
-
const
|
|
25
|
+
const se = /* @__PURE__ */ k({
|
|
22
26
|
name: "DuxLoginPage",
|
|
23
27
|
setup(r, {
|
|
24
28
|
slots: i
|
|
25
29
|
}) {
|
|
26
|
-
const
|
|
30
|
+
const s = N(), o = F(), {
|
|
27
31
|
t: a
|
|
28
32
|
} = P(), w = j(), u = A(), t = D({
|
|
29
33
|
username: "",
|
|
@@ -42,41 +46,41 @@ const ee = /* @__PURE__ */ k({
|
|
|
42
46
|
x(t);
|
|
43
47
|
};
|
|
44
48
|
return () => {
|
|
45
|
-
var
|
|
49
|
+
var m, c, d, p, g;
|
|
46
50
|
let l;
|
|
47
51
|
return e("div", {
|
|
48
52
|
"un-cloak": !0,
|
|
49
|
-
class: z(["h-screen w-screen flex items-start justify-center text-secondary md:items-center",
|
|
53
|
+
class: z(["h-screen w-screen flex items-start justify-center text-secondary md:items-center", s.isDark.value ? "app-login-dark-bg" : "app-login-bg"])
|
|
50
54
|
}, [e("div", {
|
|
51
55
|
class: "relative md:m-4 max-w-180 w-full h-full md:h-auto grid-cols-1 md:grid-cols-2 gap-12 overflow-hidden md:rounded-lg p-8 md:shadow bg-default dark:bg-muted grid"
|
|
52
56
|
}, [e("div", {
|
|
53
57
|
class: "flex justify-center tex absolute h-30 w-30 rotate-45 cursor-pointer items-end p-3 text-white bg-primary -right-15 -top-15 hover:bg-primary-hover",
|
|
54
|
-
onClick: () =>
|
|
55
|
-
}, [
|
|
58
|
+
onClick: () => s.toggle()
|
|
59
|
+
}, [s.mode.value === "auto" && e("div", {
|
|
56
60
|
class: "i-tabler:brightness-half h-5 w-5"
|
|
57
|
-
}, null),
|
|
61
|
+
}, null), s.mode.value === "light" && e("div", {
|
|
58
62
|
class: "h-5 w-5 i-tabler:sun"
|
|
59
|
-
}, null),
|
|
63
|
+
}, null), s.mode.value === "dark" && e("div", {
|
|
60
64
|
class: "h-5 w-5 i-tabler:moon"
|
|
61
65
|
}, null)]), e("div", {
|
|
62
66
|
class: "justify-center hidden md:flex flex-row items-center"
|
|
63
|
-
}, [(
|
|
67
|
+
}, [(m = o.config.theme) != null && m.banner ? e("img", {
|
|
64
68
|
class: "w-full h-auto",
|
|
65
|
-
src: (
|
|
69
|
+
src: (c = o.config.theme) == null ? void 0 : c.banner
|
|
66
70
|
}, null) : e("div", {
|
|
67
71
|
class: "w-full h-auto"
|
|
68
72
|
}, [e(M, null, null)])]), e("div", {
|
|
69
73
|
class: "flex flex-col"
|
|
70
74
|
}, [e("div", {
|
|
71
75
|
class: "flex flex-col items-center justify-center mt-4"
|
|
72
|
-
}, [e("div", null, [(d =
|
|
76
|
+
}, [e("div", null, [(d = o.config.theme) != null && d.logo ? e("img", {
|
|
73
77
|
class: "w-auto h-16",
|
|
74
|
-
src: (p =
|
|
78
|
+
src: (p = o.config.theme) == null ? void 0 : p.logo
|
|
75
79
|
}, null) : e("div", {
|
|
76
80
|
class: "h-10"
|
|
77
81
|
}, [e(V, null, null)])]), e("div", {
|
|
78
82
|
class: "mt-4 text-lg text-muted"
|
|
79
|
-
}, [
|
|
83
|
+
}, [o.config.title || "Dux Admin Manage"])]), e("div", {
|
|
80
84
|
class: "my-6"
|
|
81
85
|
}, [e(C, {
|
|
82
86
|
ref: w,
|
|
@@ -135,10 +139,10 @@ const ee = /* @__PURE__ */ k({
|
|
|
135
139
|
}
|
|
136
140
|
})]), e("div", {
|
|
137
141
|
class: "text-center text-sm text-gray-5"
|
|
138
|
-
}, [((g =
|
|
142
|
+
}, [((g = o.config) == null ? void 0 : g.copyright) || "All rights reserved © duxweb 2024"])])])]);
|
|
139
143
|
};
|
|
140
144
|
}
|
|
141
145
|
});
|
|
142
146
|
export {
|
|
143
|
-
|
|
147
|
+
se as DuxLoginPage
|
|
144
148
|
};
|