@duxweb/dvha-pro 0.0.5
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/app.cjs +1 -0
- package/dist/cjs/component.cjs +1 -0
- package/dist/cjs/components/card/card.cjs +1 -0
- package/dist/cjs/components/carousel/carousel.cjs +1 -0
- package/dist/cjs/components/dashboard/hello.cjs +1 -0
- package/dist/cjs/components/dashboard/helloBig.cjs +1 -0
- package/dist/cjs/components/dashboard/quick.cjs +1 -0
- package/dist/cjs/components/dialog/dialog.cjs +1 -0
- package/dist/cjs/components/draw/drawApps.cjs +1 -0
- package/dist/cjs/components/draw/drawAuth.cjs +1 -0
- package/dist/cjs/components/draw/drawEmpty.cjs +1 -0
- package/dist/cjs/components/draw/drawEmptyForm.cjs +1 -0
- package/dist/cjs/components/draw/drawError.cjs +1 -0
- package/dist/cjs/components/drawer/drawer.cjs +1 -0
- package/dist/cjs/components/drawer/drawerPage.cjs +1 -0
- package/dist/cjs/components/form/formItem.cjs +1 -0
- package/dist/cjs/components/form/formLayout.cjs +1 -0
- package/dist/cjs/components/form/modalForm.cjs +1 -0
- package/dist/cjs/components/form/pageForm.cjs +1 -0
- package/dist/cjs/components/form/settingForm.cjs +1 -0
- package/dist/cjs/components/layout/filter.cjs +1 -0
- package/dist/cjs/components/layout/list.cjs +1 -0
- package/dist/cjs/components/layout/table.cjs +1 -0
- package/dist/cjs/components/layout/tools.cjs +1 -0
- package/dist/cjs/components/list/card.cjs +1 -0
- package/dist/cjs/components/list/list.cjs +1 -0
- package/dist/cjs/components/media/media.cjs +1 -0
- package/dist/cjs/components/modal/modal.cjs +1 -0
- package/dist/cjs/components/modal/modalPage.cjs +1 -0
- package/dist/cjs/components/modal/modalTab.cjs +1 -0
- package/dist/cjs/components/panel/alert.cjs +1 -0
- package/dist/cjs/components/panel/setting.cjs +1 -0
- package/dist/cjs/components/status/blockEmpty.cjs +1 -0
- package/dist/cjs/components/table/tablePage.cjs +1 -0
- package/dist/cjs/components/widget/connect.cjs +1 -0
- package/dist/cjs/config/uno.cjs +1 -0
- package/dist/cjs/config/validate.cjs +1 -0
- package/dist/cjs/dvha-pro.css +1 -0
- package/dist/cjs/hooks/action.cjs +1 -0
- package/dist/cjs/hooks/dialog.cjs +1 -0
- package/dist/cjs/hooks/drawer.cjs +1 -0
- package/dist/cjs/hooks/modal.cjs +1 -0
- package/dist/cjs/hooks/table/column.cjs +1 -0
- package/dist/cjs/hooks/table/copy.cjs +1 -0
- package/dist/cjs/hooks/table/hidden.cjs +1 -0
- package/dist/cjs/hooks/table/image.cjs +1 -0
- package/dist/cjs/hooks/table/input.cjs +1 -0
- package/dist/cjs/hooks/table/map.cjs +1 -0
- package/dist/cjs/hooks/table/media.cjs +1 -0
- package/dist/cjs/hooks/table/status.cjs +1 -0
- package/dist/cjs/hooks/table/switch.cjs +1 -0
- package/dist/cjs/hooks/table.cjs +1 -0
- package/dist/cjs/hooks/ui.cjs +1 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/langs/en-US.json.cjs +1 -0
- package/dist/cjs/langs/zh-CN.json.cjs +1 -0
- package/dist/cjs/main.cjs +1 -0
- package/dist/cjs/node_modules/@iconify-json/tabler/icons.json.cjs +1 -0
- package/dist/cjs/node_modules/@overlastic/core/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/@overlastic/vue/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/@vee-validate/i18n/dist/locale/en.json.cjs +1 -0
- package/dist/cjs/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.cjs +1 -0
- package/dist/cjs/node_modules/@vueuse/integrations/useFocusTrap.cjs +1 -0
- package/dist/cjs/node_modules/@vueuse/shared/index.cjs +1 -0
- package/dist/cjs/node_modules/colorizr/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/focus-trap/dist/focus-trap.esm.cjs +5 -0
- package/dist/cjs/node_modules/lower-case/dist.es2015/index.cjs +1 -0
- package/dist/cjs/node_modules/no-case/dist.es2015/index.cjs +1 -0
- package/dist/cjs/node_modules/pascal-case/dist.es2015/index.cjs +1 -0
- package/dist/cjs/node_modules/tabbable/dist/index.esm.cjs +4 -0
- package/dist/cjs/node_modules/tslib/tslib.es6.cjs +1 -0
- package/dist/cjs/pages/authLayout.cjs +1 -0
- package/dist/cjs/pages/layout/global.cjs +1 -0
- package/dist/cjs/pages/layout/page.cjs +1 -0
- package/dist/cjs/pages/layout/tab.cjs +1 -0
- package/dist/cjs/pages/layout.cjs +1 -0
- package/dist/cjs/pages/loading.cjs +1 -0
- package/dist/cjs/pages/login.cjs +1 -0
- package/dist/cjs/pages/menu/avatar.cjs +1 -0
- package/dist/cjs/pages/menu/button.cjs +1 -0
- package/dist/cjs/pages/menu/cmd.cjs +1 -0
- package/dist/cjs/pages/menu/main.cjs +1 -0
- package/dist/cjs/pages/menu/mobile.cjs +1 -0
- package/dist/cjs/pages/page.cjs +1 -0
- package/dist/cjs/pages/page403.cjs +1 -0
- package/dist/cjs/pages/page404.cjs +1 -0
- package/dist/cjs/pages/page500.cjs +1 -0
- package/dist/cjs/pages/pageEmpty.cjs +1 -0
- package/dist/cjs/pages/pageLoading.cjs +1 -0
- package/dist/cjs/pages/pageStatus.cjs +1 -0
- package/dist/cjs/static/images/placeholder.png.cjs +1 -0
- package/dist/cjs/stores/ui.cjs +1 -0
- package/dist/cjs/theme/naiveTheme.cjs +1 -0
- package/dist/cjs/theme/presetTheme.cjs +1 -0
- package/dist/cjs/theme/uno.css.cjs +1285 -0
- package/dist/esm/app.js +20 -0
- package/dist/esm/component.js +59 -0
- package/dist/esm/components/card/card.js +114 -0
- package/dist/esm/components/carousel/carousel.js +37 -0
- package/dist/esm/components/dashboard/hello.js +40 -0
- package/dist/esm/components/dashboard/helloBig.js +344 -0
- package/dist/esm/components/dashboard/quick.js +59 -0
- package/dist/esm/components/dialog/dialog.js +118 -0
- package/dist/esm/components/draw/drawApps.js +145 -0
- package/dist/esm/components/draw/drawAuth.js +50 -0
- package/dist/esm/components/draw/drawEmpty.js +92 -0
- package/dist/esm/components/draw/drawEmptyForm.js +128 -0
- package/dist/esm/components/draw/drawError.js +242 -0
- package/dist/esm/components/drawer/drawer.js +73 -0
- package/dist/esm/components/drawer/drawerPage.js +28 -0
- package/dist/esm/components/form/formItem.js +77 -0
- package/dist/esm/components/form/formLayout.js +38 -0
- package/dist/esm/components/form/modalForm.js +108 -0
- package/dist/esm/components/form/pageForm.js +94 -0
- package/dist/esm/components/form/settingForm.js +104 -0
- package/dist/esm/components/layout/filter.js +27 -0
- package/dist/esm/components/layout/list.js +333 -0
- package/dist/esm/components/layout/table.js +292 -0
- package/dist/esm/components/layout/tools.js +78 -0
- package/dist/esm/components/list/card.js +78 -0
- package/dist/esm/components/list/list.js +38 -0
- package/dist/esm/components/media/media.js +77 -0
- package/dist/esm/components/modal/modal.js +116 -0
- package/dist/esm/components/modal/modalPage.js +56 -0
- package/dist/esm/components/modal/modalTab.js +70 -0
- package/dist/esm/components/panel/alert.js +57 -0
- package/dist/esm/components/panel/setting.js +49 -0
- package/dist/esm/components/status/blockEmpty.js +78 -0
- package/dist/esm/components/table/tablePage.js +41 -0
- package/dist/esm/components/widget/connect.js +119 -0
- package/dist/esm/config/uno.js +32 -0
- package/dist/esm/config/validate.js +15 -0
- package/dist/esm/dvha-pro.css +1 -0
- package/dist/esm/hooks/action.js +213 -0
- package/dist/esm/hooks/dialog.js +32 -0
- package/dist/esm/hooks/drawer.js +25 -0
- package/dist/esm/hooks/modal.js +14 -0
- package/dist/esm/hooks/table/column.js +31 -0
- package/dist/esm/hooks/table/copy.js +27 -0
- package/dist/esm/hooks/table/hidden.js +48 -0
- package/dist/esm/hooks/table/image.js +24 -0
- package/dist/esm/hooks/table/input.js +81 -0
- package/dist/esm/hooks/table/map.js +21 -0
- package/dist/esm/hooks/table/media.js +34 -0
- package/dist/esm/hooks/table/status.js +32 -0
- package/dist/esm/hooks/table/switch.js +33 -0
- package/dist/esm/hooks/table.js +74 -0
- package/dist/esm/hooks/ui.js +16 -0
- package/dist/esm/index.js +139 -0
- package/dist/esm/langs/en-US.json.js +11 -0
- package/dist/esm/langs/zh-CN.json.js +11 -0
- package/dist/esm/main.js +18 -0
- package/dist/esm/node_modules/@iconify-json/tabler/icons.json.js +17 -0
- package/dist/esm/node_modules/@overlastic/core/dist/index.js +76 -0
- package/dist/esm/node_modules/@overlastic/vue/dist/index.js +122 -0
- package/dist/esm/node_modules/@vee-validate/i18n/dist/locale/en.json.js +9 -0
- package/dist/esm/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.js +9 -0
- package/dist/esm/node_modules/@vueuse/integrations/useFocusTrap.js +43 -0
- package/dist/esm/node_modules/@vueuse/shared/index.js +6 -0
- package/dist/esm/node_modules/colorizr/dist/index.js +318 -0
- package/dist/esm/node_modules/focus-trap/dist/focus-trap.esm.js +473 -0
- package/dist/esm/node_modules/lower-case/dist.es2015/index.js +6 -0
- package/dist/esm/node_modules/no-case/dist.es2015/index.js +18 -0
- package/dist/esm/node_modules/pascal-case/dist.es2015/index.js +13 -0
- package/dist/esm/node_modules/tabbable/dist/index.esm.js +202 -0
- package/dist/esm/node_modules/tslib/tslib.es6.js +12 -0
- package/dist/esm/pages/authLayout.js +38 -0
- package/dist/esm/pages/layout/global.js +51 -0
- package/dist/esm/pages/layout/page.js +54 -0
- package/dist/esm/pages/layout/tab.js +110 -0
- package/dist/esm/pages/layout.js +14 -0
- package/dist/esm/pages/loading.js +14 -0
- package/dist/esm/pages/login.js +143 -0
- package/dist/esm/pages/menu/avatar.js +205 -0
- package/dist/esm/pages/menu/button.js +60 -0
- package/dist/esm/pages/menu/cmd.js +156 -0
- package/dist/esm/pages/menu/main.js +101 -0
- package/dist/esm/pages/menu/mobile.js +38 -0
- package/dist/esm/pages/page.js +47 -0
- package/dist/esm/pages/page403.js +46 -0
- package/dist/esm/pages/page404.js +57 -0
- package/dist/esm/pages/page500.js +45 -0
- package/dist/esm/pages/pageEmpty.js +25 -0
- package/dist/esm/pages/pageLoading.js +22 -0
- package/dist/esm/pages/pageStatus.js +50 -0
- package/dist/esm/static/images/placeholder.png.js +4 -0
- package/dist/esm/stores/ui.js +34 -0
- package/dist/esm/theme/naiveTheme.js +97 -0
- package/dist/esm/theme/presetTheme.js +12 -0
- package/dist/esm/theme/uno.css.js +1288 -0
- package/dist/types/app.d.ts +1 -0
- package/dist/types/component.d.ts +5 -0
- package/dist/types/components/card/card.d.ts +140 -0
- package/dist/types/components/card/index.d.ts +1 -0
- package/dist/types/components/carousel/carousel.d.ts +20 -0
- package/dist/types/components/carousel/index.d.ts +1 -0
- package/dist/types/components/dashboard/hello.d.ts +16 -0
- package/dist/types/components/dashboard/helloBig.d.ts +19 -0
- package/dist/types/components/dashboard/index.d.ts +3 -0
- package/dist/types/components/dashboard/quick.d.ts +33 -0
- package/dist/types/components/dialog/dialog.d.ts +35 -0
- package/dist/types/components/dialog/index.d.ts +1 -0
- package/dist/types/components/draw/drawApps.d.ts +1 -0
- package/dist/types/components/draw/drawAuth.d.ts +1 -0
- package/dist/types/components/draw/drawEmpty.d.ts +1 -0
- package/dist/types/components/draw/drawEmptyForm.d.ts +1 -0
- package/dist/types/components/draw/drawError.d.ts +1 -0
- package/dist/types/components/draw/index.d.ts +5 -0
- package/dist/types/components/drawer/drawer.d.ts +19 -0
- package/dist/types/components/drawer/drawerPage.d.ts +1 -0
- package/dist/types/components/drawer/index.d.ts +2 -0
- package/dist/types/components/form/formItem.d.ts +27 -0
- package/dist/types/components/form/formLayout.d.ts +38 -0
- package/dist/types/components/form/index.d.ts +5 -0
- package/dist/types/components/form/modalForm.d.ts +89 -0
- package/dist/types/components/form/pageForm.d.ts +51 -0
- package/dist/types/components/form/settingForm.d.ts +69 -0
- package/dist/types/components/index.d.ts +14 -0
- package/dist/types/components/layout/filter.d.ts +13 -0
- package/dist/types/components/layout/index.d.ts +4 -0
- package/dist/types/components/layout/list.d.ts +85 -0
- package/dist/types/components/layout/table.d.ts +72 -0
- package/dist/types/components/layout/tools.d.ts +37 -0
- package/dist/types/components/list/card.d.ts +117 -0
- package/dist/types/components/list/index.d.ts +2 -0
- package/dist/types/components/list/list.d.ts +87 -0
- package/dist/types/components/media/index.d.ts +1 -0
- package/dist/types/components/media/media.d.ts +95 -0
- package/dist/types/components/modal/index.d.ts +3 -0
- package/dist/types/components/modal/modal.d.ts +66 -0
- package/dist/types/components/modal/modalPage.d.ts +42 -0
- package/dist/types/components/modal/modalTab.d.ts +42 -0
- package/dist/types/components/panel/alert.d.ts +32 -0
- package/dist/types/components/panel/index.d.ts +2 -0
- package/dist/types/components/panel/setting.d.ts +29 -0
- package/dist/types/components/status/blockEmpty.d.ts +25 -0
- package/dist/types/components/status/index.d.ts +1 -0
- package/dist/types/components/table/index.d.ts +1 -0
- package/dist/types/components/table/tablePage.d.ts +73 -0
- package/dist/types/components/widget/connect.d.ts +11 -0
- package/dist/types/components/widget/index.d.ts +1 -0
- package/dist/types/config/index.d.ts +2 -0
- package/dist/types/config/uno.d.ts +2 -0
- package/dist/types/config/validate.d.ts +1 -0
- package/dist/types/hooks/action.d.ts +17 -0
- package/dist/types/hooks/dialog.d.ts +17 -0
- package/dist/types/hooks/drawer.d.ts +11 -0
- package/dist/types/hooks/index.d.ts +6 -0
- package/dist/types/hooks/modal.d.ts +9 -0
- package/dist/types/hooks/table/column.d.ts +14 -0
- package/dist/types/hooks/table/copy.d.ts +6 -0
- package/dist/types/hooks/table/hidden.d.ts +7 -0
- package/dist/types/hooks/table/image.d.ts +8 -0
- package/dist/types/hooks/table/index.d.ts +7 -0
- package/dist/types/hooks/table/input.d.ts +9 -0
- package/dist/types/hooks/table/map.d.ts +13 -0
- package/dist/types/hooks/table/media.d.ts +12 -0
- package/dist/types/hooks/table/status.d.ts +12 -0
- package/dist/types/hooks/table/switch.d.ts +7 -0
- package/dist/types/hooks/table/types.d.ts +74 -0
- package/dist/types/hooks/table.d.ts +2 -0
- package/dist/types/hooks/ui.d.ts +8 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/langs/index.d.ts +3 -0
- package/dist/types/main.d.ts +5 -0
- package/dist/types/pages/authLayout.d.ts +1 -0
- package/dist/types/pages/index.d.ts +12 -0
- package/dist/types/pages/layout/global.d.ts +1 -0
- package/dist/types/pages/layout/index.d.ts +3 -0
- package/dist/types/pages/layout/page.d.ts +1 -0
- package/dist/types/pages/layout/tab.d.ts +1 -0
- package/dist/types/pages/layout.d.ts +1 -0
- package/dist/types/pages/loading.d.ts +1 -0
- package/dist/types/pages/login.d.ts +1 -0
- package/dist/types/pages/menu/avatar.d.ts +14 -0
- package/dist/types/pages/menu/button.d.ts +41 -0
- package/dist/types/pages/menu/cmd.d.ts +7 -0
- package/dist/types/pages/menu/index.d.ts +4 -0
- package/dist/types/pages/menu/main.d.ts +13 -0
- package/dist/types/pages/menu/mobile.d.ts +1 -0
- package/dist/types/pages/page.d.ts +42 -0
- package/dist/types/pages/page403.d.ts +1 -0
- package/dist/types/pages/page404.d.ts +1 -0
- package/dist/types/pages/page500.d.ts +1 -0
- package/dist/types/pages/pageEmpty.d.ts +7 -0
- package/dist/types/pages/pageLoading.d.ts +1 -0
- package/dist/types/pages/pageStatus.d.ts +7 -0
- package/dist/types/stores/index.d.ts +1 -0
- package/dist/types/stores/ui.d.ts +28 -0
- package/dist/types/theme/index.d.ts +2 -0
- package/dist/types/theme/naiveTheme.d.ts +5 -0
- package/dist/types/theme/presetTheme.d.ts +7 -0
- package/package.json +73 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ref as p, createVNode as a, createTextVNode as m } from "vue";
|
|
2
|
+
import { useNaiveTable as d } from "@duxweb/dvha-naiveui";
|
|
3
|
+
import { useMessage as f, useNotification as g, NProgress as u } from "naive-ui";
|
|
4
|
+
function E(r) {
|
|
5
|
+
const n = f(), l = g(), t = p(null);
|
|
6
|
+
return d({
|
|
7
|
+
...r,
|
|
8
|
+
// 传递导出回调
|
|
9
|
+
onExportSuccess: (e) => {
|
|
10
|
+
var s, c;
|
|
11
|
+
(s = t.value) == null || s.destroy(), t.value = null, l.success({
|
|
12
|
+
title: "导出数据成功",
|
|
13
|
+
content: `成功导出 ${((c = e == null ? void 0 : e.pages) == null ? void 0 : c.reduce((i, o) => i + (o == null ? void 0 : o.data.length), 0)) || 0} 条数据`,
|
|
14
|
+
duration: 6e3
|
|
15
|
+
});
|
|
16
|
+
},
|
|
17
|
+
onExportProgress: (e) => {
|
|
18
|
+
!t.value && e && (t.value = l.create({
|
|
19
|
+
title: "导出数据中, 请稍后...",
|
|
20
|
+
content: () => `第 ${e.page || 1} 页数据`,
|
|
21
|
+
avatar: () => a(u, {
|
|
22
|
+
class: "size-10 text-sm",
|
|
23
|
+
type: "circle",
|
|
24
|
+
percentage: 50
|
|
25
|
+
}, {
|
|
26
|
+
default: () => [a("div", {
|
|
27
|
+
class: "text-xs"
|
|
28
|
+
}, [e.page || 1])]
|
|
29
|
+
}),
|
|
30
|
+
onClose: () => {
|
|
31
|
+
t.value = null;
|
|
32
|
+
}
|
|
33
|
+
}));
|
|
34
|
+
},
|
|
35
|
+
onExportError: (e) => {
|
|
36
|
+
var s;
|
|
37
|
+
(s = t.value) == null || s.destroy(), t.value = null, n.error(`导出数据失败:${(e == null ? void 0 : e.message) || "未知错误"}`);
|
|
38
|
+
},
|
|
39
|
+
// 传递导入回调
|
|
40
|
+
onImportSuccess: (e) => {
|
|
41
|
+
var s;
|
|
42
|
+
(s = t.value) == null || s.destroy(), t.value = null, l.success({
|
|
43
|
+
title: "导入数据成功",
|
|
44
|
+
content: `成功导入 ${(e == null ? void 0 : e.processedItems) || 0} 条数据`,
|
|
45
|
+
duration: 6e3
|
|
46
|
+
});
|
|
47
|
+
},
|
|
48
|
+
onImportProgress: (e) => {
|
|
49
|
+
t.value || (t.value = l.create({
|
|
50
|
+
title: "导入数据中, 请稍后...",
|
|
51
|
+
content: () => `${(e == null ? void 0 : e.processedItems) || 0} / ${(e == null ? void 0 : e.totalItems) || 0} 条数据`,
|
|
52
|
+
avatar: () => a(u, {
|
|
53
|
+
class: "size-10 text-sm",
|
|
54
|
+
type: "circle",
|
|
55
|
+
percentage: (e == null ? void 0 : e.percentage) || 0
|
|
56
|
+
}, {
|
|
57
|
+
default: () => [a("div", {
|
|
58
|
+
class: "text-xs"
|
|
59
|
+
}, [(e == null ? void 0 : e.percentage) || 0, m("%")])]
|
|
60
|
+
}),
|
|
61
|
+
onClose: () => {
|
|
62
|
+
t.value = null;
|
|
63
|
+
}
|
|
64
|
+
}));
|
|
65
|
+
},
|
|
66
|
+
onImportError: (e) => {
|
|
67
|
+
var s;
|
|
68
|
+
(s = t.value) == null || s.destroy(), t.value = null, n.error(`导入数据失败:${(e == null ? void 0 : e.message) || "未知错误"}`);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
E as useTable
|
|
74
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { storeToRefs as t } from "pinia";
|
|
2
|
+
import { useUIStore as i } from "../stores/ui.js";
|
|
3
|
+
function r() {
|
|
4
|
+
const e = i(), { menuCollapsed: o, cmdVisible: s, menuMobileCollapsed: l } = t(e);
|
|
5
|
+
return {
|
|
6
|
+
menuCollapsed: o,
|
|
7
|
+
setMenuCollapsed: e.setMenuCollapsed,
|
|
8
|
+
menuMobileCollapsed: l,
|
|
9
|
+
setMenuMobileCollapsed: e.setMenuMobileCollapsed,
|
|
10
|
+
cmdVisible: s,
|
|
11
|
+
setCmdVisible: e.setCmdVisible
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
r as useUI
|
|
16
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { DuxApp as e } from "./app.js";
|
|
2
|
+
import { DuxCard as t } from "./components/card/card.js";
|
|
3
|
+
import { DuxCarousel as m } from "./components/carousel/carousel.js";
|
|
4
|
+
import { DuxDashboardHello as p } from "./components/dashboard/hello.js";
|
|
5
|
+
import { DuxDashboardHelloBig as D } from "./components/dashboard/helloBig.js";
|
|
6
|
+
import { DuxDashboardQuick as s, DuxDashboardQuickItem as n } from "./components/dashboard/quick.js";
|
|
7
|
+
import { DuxDrawApps as i } from "./components/draw/drawApps.js";
|
|
8
|
+
import { DuxDrawAuth as b } from "./components/draw/drawAuth.js";
|
|
9
|
+
import { DuxDrawEmpty as M } from "./components/draw/drawEmpty.js";
|
|
10
|
+
import { DuxDrawEmptyForm as C } from "./components/draw/drawEmptyForm.js";
|
|
11
|
+
import { DuxDrawError as h } from "./components/draw/drawError.js";
|
|
12
|
+
import { default as y } from "./components/drawer/drawer.js";
|
|
13
|
+
import { DuxDrawerPage as L } from "./components/drawer/drawerPage.js";
|
|
14
|
+
import { DuxFormItem as S } from "./components/form/formItem.js";
|
|
15
|
+
import { DuxFormLayout as I } from "./components/form/formLayout.js";
|
|
16
|
+
import { DuxModalForm as k } from "./components/form/modalForm.js";
|
|
17
|
+
import { DuxPageForm as v } from "./components/form/pageForm.js";
|
|
18
|
+
import { DuxSettingForm as Q } from "./components/form/settingForm.js";
|
|
19
|
+
import { DuxTableFilter as z } from "./components/layout/filter.js";
|
|
20
|
+
import { DuxListLayout as O } from "./components/layout/list.js";
|
|
21
|
+
import { DuxTableLayout as j } from "./components/layout/table.js";
|
|
22
|
+
import { DuxTableTools as G } from "./components/layout/tools.js";
|
|
23
|
+
import { DuxCardPage as K } from "./components/list/card.js";
|
|
24
|
+
import { DuxListPage as X } from "./components/list/list.js";
|
|
25
|
+
import { DuxMedia as Z } from "./components/media/media.js";
|
|
26
|
+
import { DuxModal as $ } from "./components/modal/modal.js";
|
|
27
|
+
import { default as ro } from "./components/modal/modalPage.js";
|
|
28
|
+
import { default as xo } from "./components/modal/modalTab.js";
|
|
29
|
+
import { DuxPanelAlert as uo } from "./components/panel/alert.js";
|
|
30
|
+
import { DuxPanelCard as ao } from "./components/panel/setting.js";
|
|
31
|
+
import { DuxBlockEmpty as fo } from "./components/status/blockEmpty.js";
|
|
32
|
+
import { DuxTablePage as lo } from "./components/table/tablePage.js";
|
|
33
|
+
import { DuxWidgetConnect as no } from "./components/widget/connect.js";
|
|
34
|
+
import { DuxAuthLayout as go } from "./pages/authLayout.js";
|
|
35
|
+
import { DuxLayout as Po } from "./pages/layout.js";
|
|
36
|
+
import { DuxLoginPage as To } from "./pages/login.js";
|
|
37
|
+
import { default as co } from "./pages/menu/avatar.js";
|
|
38
|
+
import { default as wo } from "./pages/menu/button.js";
|
|
39
|
+
import { DuxMenuCmd as Ao } from "./pages/menu/cmd.js";
|
|
40
|
+
import { DuxMenuMain as Fo } from "./pages/menu/main.js";
|
|
41
|
+
import { DuxMobileMenu as Eo } from "./pages/menu/mobile.js";
|
|
42
|
+
import { DuxPage as Bo } from "./pages/page.js";
|
|
43
|
+
import { DuxPage403 as Uo } from "./pages/page403.js";
|
|
44
|
+
import { DuxPage404 as Ho } from "./pages/page404.js";
|
|
45
|
+
import { DuxPage500 as Vo } from "./pages/page500.js";
|
|
46
|
+
import { DuxPageEmpty as No } from "./pages/pageEmpty.js";
|
|
47
|
+
import { DuxPageLoading as Wo } from "./pages/pageLoading.js";
|
|
48
|
+
import { DuxPageStatus as qo } from "./pages/pageStatus.js";
|
|
49
|
+
import { config as Jo } from "./config/uno.js";
|
|
50
|
+
import { initVeeValidate as Ro } from "./config/validate.js";
|
|
51
|
+
import { useAction as Yo, useActionButton as Zo, useActionDropdown as _o } from "./hooks/action.js";
|
|
52
|
+
import { useDialog as or } from "./hooks/dialog.js";
|
|
53
|
+
import { useModal as er } from "./hooks/modal.js";
|
|
54
|
+
import { useTable as tr } from "./hooks/table.js";
|
|
55
|
+
import { useTableColumn as mr } from "./hooks/table/column.js";
|
|
56
|
+
import { useTableColumnImage as pr } from "./hooks/table/image.js";
|
|
57
|
+
import { useTableColumnMap as Dr } from "./hooks/table/map.js";
|
|
58
|
+
import { useTableColumnMedia as sr } from "./hooks/table/media.js";
|
|
59
|
+
import { useTableColumnStatus as dr } from "./hooks/table/status.js";
|
|
60
|
+
import { useTableColumnSwitch as gr } from "./hooks/table/switch.js";
|
|
61
|
+
import { useUI as Pr } from "./hooks/ui.js";
|
|
62
|
+
import { default as Tr } from "./langs/en-US.json.js";
|
|
63
|
+
import { default as cr } from "./langs/zh-CN.json.js";
|
|
64
|
+
import { createDuxPro as wr } from "./main.js";
|
|
65
|
+
import { useUIStore as Ar } from "./stores/ui.js";
|
|
66
|
+
import { themeOverrides as Fr } from "./theme/naiveTheme.js";
|
|
67
|
+
import { presetTheme as Er } from "./theme/presetTheme.js";
|
|
68
|
+
export {
|
|
69
|
+
e as DuxApp,
|
|
70
|
+
go as DuxAuthLayout,
|
|
71
|
+
fo as DuxBlockEmpty,
|
|
72
|
+
t as DuxCard,
|
|
73
|
+
K as DuxCardPage,
|
|
74
|
+
m as DuxCarousel,
|
|
75
|
+
p as DuxDashboardHello,
|
|
76
|
+
D as DuxDashboardHelloBig,
|
|
77
|
+
s as DuxDashboardQuick,
|
|
78
|
+
n as DuxDashboardQuickItem,
|
|
79
|
+
i as DuxDrawApps,
|
|
80
|
+
b as DuxDrawAuth,
|
|
81
|
+
M as DuxDrawEmpty,
|
|
82
|
+
C as DuxDrawEmptyForm,
|
|
83
|
+
h as DuxDrawError,
|
|
84
|
+
y as DuxDrawer,
|
|
85
|
+
L as DuxDrawerPage,
|
|
86
|
+
S as DuxFormItem,
|
|
87
|
+
I as DuxFormLayout,
|
|
88
|
+
Po as DuxLayout,
|
|
89
|
+
O as DuxListLayout,
|
|
90
|
+
X as DuxListPage,
|
|
91
|
+
To as DuxLoginPage,
|
|
92
|
+
Z as DuxMedia,
|
|
93
|
+
co as DuxMenuAvatar,
|
|
94
|
+
wo as DuxMenuButton,
|
|
95
|
+
Ao as DuxMenuCmd,
|
|
96
|
+
Fo as DuxMenuMain,
|
|
97
|
+
Eo as DuxMobileMenu,
|
|
98
|
+
$ as DuxModal,
|
|
99
|
+
k as DuxModalForm,
|
|
100
|
+
Bo as DuxPage,
|
|
101
|
+
Uo as DuxPage403,
|
|
102
|
+
Ho as DuxPage404,
|
|
103
|
+
Vo as DuxPage500,
|
|
104
|
+
No as DuxPageEmpty,
|
|
105
|
+
v as DuxPageForm,
|
|
106
|
+
Wo as DuxPageLoading,
|
|
107
|
+
qo as DuxPageStatus,
|
|
108
|
+
uo as DuxPanelAlert,
|
|
109
|
+
ao as DuxPanelCard,
|
|
110
|
+
Q as DuxSettingForm,
|
|
111
|
+
z as DuxTableFilter,
|
|
112
|
+
j as DuxTableLayout,
|
|
113
|
+
lo as DuxTablePage,
|
|
114
|
+
G as DuxTableTools,
|
|
115
|
+
no as DuxWidgetConnect,
|
|
116
|
+
ro as ModalPage,
|
|
117
|
+
xo as ModalTab,
|
|
118
|
+
Jo as config,
|
|
119
|
+
wr as createDuxPro,
|
|
120
|
+
Tr as enUS,
|
|
121
|
+
Ro as initVeeValidate,
|
|
122
|
+
Er as presetTheme,
|
|
123
|
+
Fr as themeOverrides,
|
|
124
|
+
Yo as useAction,
|
|
125
|
+
Zo as useActionButton,
|
|
126
|
+
_o as useActionDropdown,
|
|
127
|
+
or as useDialog,
|
|
128
|
+
er as useModal,
|
|
129
|
+
tr as useTable,
|
|
130
|
+
mr as useTableColumn,
|
|
131
|
+
pr as useTableColumnImage,
|
|
132
|
+
Dr as useTableColumnMap,
|
|
133
|
+
sr as useTableColumnMedia,
|
|
134
|
+
dr as useTableColumnStatus,
|
|
135
|
+
gr as useTableColumnSwitch,
|
|
136
|
+
Pr as useUI,
|
|
137
|
+
Ar as useUIStore,
|
|
138
|
+
cr as zhCN
|
|
139
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const e = { search: "Search", empty: "No data", menu: "Menu", theme: "Theme", dark: "Dark", light: "Light", back: "Back", loading: "Loading...", success: "Success", error: "Error" }, t = { tab: { lock: "Lock", closeOther: "Close Other", closeLeft: "Close Left", closeRight: "Close Right" }, dialog: { confirm: { title: "Confirm", content: "Are you sure you want to confirm?" }, cancel: { title: "Cancel", content: "Are you sure you want to cancel?" }, success: { title: "Success", content: "Your operation has been successful" }, error: { title: "Error", content: "Your operation has been failed" }, prompt: { title: "Prompt" } }, button: { confirm: "Confirm", cancel: "Cancel", submit: "Submit", reset: "Reset", delete: "Delete", search: "Search", advanced: "Advanced", export: "Export", import: "Import", autoRefresh: "Auto Refresh", filter: "Filter", refresh: "Refresh" }, form: { edit: "Edit", create: "Create" }, list: { selectAll: "Select All", columnSetting: "Column Setting", selectedItems: "Selected Items: {num}", total: "Total: {total}" } }, o = { 400: { title: "400", desc: "Request error" }, 401: { title: "401", desc: "You do not have permission to access this page" }, 403: { title: "403", desc: "You do not have permission to access this page" }, 404: { title: "404", desc: "Page not found" }, 500: { title: "500", desc: "Server error" }, empty: { title: "No data", desc: "No more data, please try again later" }, loading: { title: "Loading", desc: "Data is loading, please try again later" }, login: { success: "Login success", error: "Login failed, please check your username and password", placeholder: { username: "Please enter username", password: "Please enter password" }, buttons: { login: "Login" } } }, s = {
|
|
2
|
+
common: e,
|
|
3
|
+
components: t,
|
|
4
|
+
pages: o
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
e as common,
|
|
8
|
+
t as components,
|
|
9
|
+
s as default,
|
|
10
|
+
o as pages
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const e = { search: "搜索", empty: "暂无数据", menu: "菜单", theme: "主题", dark: "暗色模式", light: "亮色模式", back: "返回", loading: "加载中...", success: "操作成功", error: "操作失败" }, t = { tab: { lock: "锁定", closeOther: "关闭其他", closeLeft: "关闭左侧", closeRight: "关闭右侧" }, dialog: { confirm: { title: "确定", content: "确定要确认吗?" }, cancel: { title: "取消", content: "确定要取消吗?" }, success: { title: "成功", content: "您的操作已成功" }, error: { title: "错误", content: "您的操作已失败" }, prompt: { title: "提示" } }, button: { confirm: "确定", cancel: "取消", submit: "提交", reset: "重置", delete: "删除", search: "查询", advanced: "高级", export: "导出", import: "导入", autoRefresh: "自动刷新", filter: "筛选", refresh: "刷新" }, form: { edit: "编辑", create: "新增", success: "保存成功", error: "保存失败" }, list: { selectAll: "全选", columnSetting: "列设置", selectedItems: "选中项: {num}", total: "共 {total} 条" } }, c = { 400: { title: "400", desc: "请求错误" }, 401: { title: "401", desc: "您没有权限访问该页面" }, 403: { title: "403", desc: "您没有权限访问该页面" }, 404: { title: "404", desc: "页面不存在" }, 500: { title: "500", desc: "服务器错误" }, empty: { title: "暂无数据", desc: "暂无更多数据,请稍后再试" }, loading: { title: "加载中", desc: "数据正在加载中,请稍后..." }, login: { success: "登录成功", error: "登录失败,请检查用户名和密码", placeholder: { username: "请输入用户名", password: "请输入密码" }, buttons: { login: "登录" } } }, s = {
|
|
2
|
+
common: e,
|
|
3
|
+
components: t,
|
|
4
|
+
pages: c
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
e as common,
|
|
8
|
+
t as components,
|
|
9
|
+
s as default,
|
|
10
|
+
c as pages
|
|
11
|
+
};
|
package/dist/esm/main.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import o from "@unocss/runtime";
|
|
2
|
+
import e from "./component.js";
|
|
3
|
+
import { config as i } from "./config/uno.js";
|
|
4
|
+
import { initVeeValidate as r } from "./config/validate.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
function a() {
|
|
7
|
+
return r(), o({
|
|
8
|
+
defaults: i(!1),
|
|
9
|
+
bypassDefined: !0
|
|
10
|
+
}), {
|
|
11
|
+
install(t) {
|
|
12
|
+
t.use(e);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
a as createDuxPro
|
|
18
|
+
};
|