@duxweb/dvha-pro 1.0.23 → 1.0.25
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/card/store.cjs +1 -1
- package/dist/cjs/components/carousel/carousel.cjs +1 -1
- package/dist/cjs/components/chart/echart.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/icon.cjs +1 -1
- package/dist/cjs/components/icon/iconPicker.cjs +1 -1
- package/dist/cjs/components/image/components/CanvasRuler.cjs +1 -0
- package/dist/cjs/components/image/elements/circle.cjs +1 -0
- package/dist/cjs/components/image/elements/image.cjs +1 -0
- package/dist/cjs/components/image/elements/index.cjs +1 -0
- package/dist/cjs/components/image/elements/rect.cjs +1 -0
- package/dist/cjs/components/image/elements/text.cjs +1 -0
- package/dist/cjs/components/image/hooks/usePosterEditor.cjs +1 -0
- package/dist/cjs/components/image/pages/LeftToolbar.cjs +1 -0
- package/dist/cjs/components/image/pages/Panel.cjs +1 -0
- package/dist/cjs/components/image/pages/PanelItem.cjs +1 -0
- package/dist/cjs/components/image/pages/RightPanel.cjs +1 -0
- package/dist/cjs/components/image/posterEditor.cjs +1 -0
- 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/level/level.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/table.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/dialog.cjs +1 -1
- package/dist/cjs/hooks/download.cjs +1 -1
- package/dist/cjs/hooks/drawer.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/modal.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/media.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/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/layout/tab.cjs +1 -1
- package/dist/cjs/pages/layout.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/stores/ui.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +26 -1
- package/dist/esm/component.js +49 -47
- 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/chart/echart.js +15 -13
- package/dist/esm/components/crop/imageCrop.js +45 -46
- 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 +42 -42
- package/dist/esm/components/data/selectModal.js +58 -60
- 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 +61 -59
- 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 +63 -61
- package/dist/esm/components/form/pageForm.js +56 -57
- package/dist/esm/components/form/settingForm.js +43 -44
- package/dist/esm/components/icon/icon.js +15 -13
- package/dist/esm/components/icon/iconPicker.js +54 -58
- package/dist/esm/components/image/components/CanvasRuler.js +113 -0
- package/dist/esm/components/image/elements/circle.js +127 -0
- package/dist/esm/components/image/elements/image.js +131 -0
- package/dist/esm/components/image/elements/index.js +46 -0
- package/dist/esm/components/image/elements/rect.js +171 -0
- package/dist/esm/components/image/elements/text.js +206 -0
- package/dist/esm/components/image/hooks/usePosterEditor.js +434 -0
- package/dist/esm/components/image/pages/LeftToolbar.js +40 -0
- package/dist/esm/components/image/pages/Panel.js +31 -0
- package/dist/esm/components/image/pages/PanelItem.js +22 -0
- package/dist/esm/components/image/pages/RightPanel.js +421 -0
- package/dist/esm/components/image/posterEditor.js +227 -0
- 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 +312 -337
- package/dist/esm/components/layout/table.js +281 -294
- package/dist/esm/components/layout/tools.js +38 -41
- package/dist/esm/components/level/level.js +15 -13
- 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/table.js +15 -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 +115 -109
- package/dist/esm/components/upload/image.js +135 -130
- package/dist/esm/components/upload/manage/item.js +59 -60
- package/dist/esm/components/upload/manager.js +203 -218
- 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/dialog.js +15 -13
- package/dist/esm/hooks/download.js +55 -56
- package/dist/esm/hooks/drawer.js +15 -13
- 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/modal.js +15 -13
- 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 +17 -15
- package/dist/esm/hooks/table/input.js +28 -28
- package/dist/esm/hooks/table/map.js +7 -7
- package/dist/esm/hooks/table/media.js +15 -13
- 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 +213 -200
- package/dist/esm/pages/authLayout.js +15 -13
- package/dist/esm/pages/layout/global.js +12 -15
- package/dist/esm/pages/layout/page.js +15 -13
- package/dist/esm/pages/layout/tab.js +58 -71
- package/dist/esm/pages/layout.js +7 -6
- package/dist/esm/pages/login.js +95 -98
- package/dist/esm/pages/menu/avatar.js +151 -162
- package/dist/esm/pages/menu/button.js +29 -31
- package/dist/esm/pages/menu/cmd.js +83 -87
- package/dist/esm/pages/menu/main.js +25 -23
- package/dist/esm/pages/menu/mobile.js +15 -13
- package/dist/esm/pages/page.js +21 -25
- package/dist/esm/pages/page404.js +13 -11
- package/dist/esm/pages/pageStatus.js +33 -34
- package/dist/esm/stores/ui.js +15 -15
- package/dist/esm/theme/uno.css.js +26 -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/image/components/CanvasRuler.d.ts +43 -0
- package/dist/types/components/image/components/index.d.ts +1 -0
- package/dist/types/components/image/elements/circle.d.ts +3 -0
- package/dist/types/components/image/elements/image.d.ts +3 -0
- package/dist/types/components/image/elements/index.d.ts +15 -0
- package/dist/types/components/image/elements/rect.d.ts +3 -0
- package/dist/types/components/image/elements/text.d.ts +3 -0
- package/dist/types/components/image/elements/types.d.ts +51 -0
- package/dist/types/components/image/hooks/index.d.ts +1 -0
- package/dist/types/components/image/hooks/usePosterEditor.d.ts +48 -0
- package/dist/types/components/image/index.d.ts +4 -0
- package/dist/types/components/image/pages/LeftToolbar.d.ts +33 -0
- package/dist/types/components/image/pages/Panel.d.ts +11 -0
- package/dist/types/components/image/pages/PanelItem.d.ts +11 -0
- package/dist/types/components/image/pages/RightPanel.d.ts +208 -0
- package/dist/types/components/image/pages/index.d.ts +4 -0
- package/dist/types/components/image/posterEditor.d.ts +61 -0
- package/dist/types/components/image/types/editor.d.ts +47 -0
- package/dist/types/components/index.d.ts +2 -2
- package/dist/types/components/layout/table.d.ts +9 -0
- package/dist/types/components/stats/number.d.ts +1 -1
- package/dist/types/components/table/tablePage.d.ts +9 -0
- package/dist/types/components/upload/file.d.ts +5 -3
- 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/dist/types/index.d.ts +1 -0
- package/dist/types/pages/layout/global.d.ts +0 -1
- package/package.json +6 -3
|
@@ -1,13 +1,24 @@
|
|
|
1
|
-
import { defineComponent as M, ref as
|
|
1
|
+
import { defineComponent as M, ref as c, watch as s, computed as w, createVNode as t, Fragment as V, createTextVNode as B } from "vue";
|
|
2
2
|
import { useRouteStore as D, useTheme as T, useI18n as K } from "@duxweb/dvha-core";
|
|
3
3
|
import { useMagicKeys as R, watchThrottled as j } from "@vueuse/core";
|
|
4
4
|
import { cloneDeep as E } from "lodash-es";
|
|
5
|
-
import { NTag as
|
|
6
|
-
import { Command as
|
|
5
|
+
import { NTag as k, NButton as G } from "naive-ui";
|
|
6
|
+
import { Command as o } from "vue-command-palette";
|
|
7
7
|
import { useRouter as L } from "vue-router";
|
|
8
8
|
import "@overlastic/vue";
|
|
9
9
|
import "clsx";
|
|
10
10
|
import "vue-echarts";
|
|
11
|
+
import "vue3-ace-editor";
|
|
12
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
13
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
14
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
15
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
16
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
17
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
18
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
19
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
20
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
21
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
11
22
|
import "vue-cropper";
|
|
12
23
|
import "jinrishici";
|
|
13
24
|
import "vue-draggable-plus";
|
|
@@ -25,90 +36,78 @@ import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
|
25
36
|
import "@duxweb/dvha-naiveui";
|
|
26
37
|
import "../page404.js";
|
|
27
38
|
import "@iconify-json/tabler/icons.json";
|
|
39
|
+
import "../../components/image/elements/index.js";
|
|
40
|
+
import "fabric";
|
|
28
41
|
import "mime";
|
|
29
|
-
import "vue3-ace-editor";
|
|
30
|
-
import "ace-builds/src-noconflict/mode-vue";
|
|
31
|
-
import "ace-builds/src-noconflict/mode-javascript";
|
|
32
|
-
import "ace-builds/src-noconflict/mode-html";
|
|
33
|
-
import "ace-builds/src-noconflict/mode-json";
|
|
34
|
-
import "ace-builds/src-noconflict/mode-json5";
|
|
35
|
-
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
36
|
-
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
37
|
-
import "ace-builds/src-noconflict/ext-searchbox";
|
|
38
|
-
import "ace-builds/src-noconflict/ext-language_tools";
|
|
39
|
-
import "ace-builds/src-noconflict/mode-snippets";
|
|
40
42
|
import "dayjs";
|
|
41
43
|
import "@tanstack/vue-query";
|
|
42
44
|
import { useUI as q } from "../../hooks/ui.js";
|
|
43
|
-
const
|
|
45
|
+
const Be = /* @__PURE__ */ M({
|
|
44
46
|
name: "DuxMenuCmd",
|
|
45
47
|
setup() {
|
|
46
48
|
const {
|
|
47
|
-
cmdVisible:
|
|
48
|
-
setCmdVisible:
|
|
49
|
-
} = q(),
|
|
50
|
-
setMode:
|
|
51
|
-
} = T(),
|
|
52
|
-
t:
|
|
53
|
-
} = K(),
|
|
54
|
-
const l =
|
|
55
|
-
|
|
49
|
+
cmdVisible: h,
|
|
50
|
+
setCmdVisible: m
|
|
51
|
+
} = q(), p = R(), y = p["Meta+K"], u = c(), a = c([]), S = L(), i = D(), {
|
|
52
|
+
setMode: v
|
|
53
|
+
} = T(), n = c(""), {
|
|
54
|
+
t: r
|
|
55
|
+
} = K(), b = c(), g = (e) => {
|
|
56
|
+
const l = i.routes.filter((I) => I.parent === e);
|
|
57
|
+
u.value = e, a.value = l;
|
|
58
|
+
}, C = () => {
|
|
59
|
+
m(!0);
|
|
56
60
|
}, N = () => {
|
|
57
|
-
|
|
58
|
-
}, z = () => {
|
|
59
|
-
|
|
60
|
-
}, I = (e) => {
|
|
61
|
-
e ? n.value = [...E(o.routes).filter((l) => {
|
|
62
|
-
var r;
|
|
63
|
-
return (r = l.label) == null ? void 0 : r.includes(e);
|
|
64
|
-
})] : n.value = o.routes.filter((l) => !l.parent);
|
|
61
|
+
m(!1);
|
|
62
|
+
}, z = (e) => {
|
|
63
|
+
e ? a.value = [...E(i.routes).filter((l) => l.label?.includes(e))] : a.value = i.routes.filter((l) => !l.parent);
|
|
65
64
|
};
|
|
66
|
-
|
|
67
|
-
e ?
|
|
68
|
-
}), j(
|
|
69
|
-
|
|
65
|
+
s(h, (e) => {
|
|
66
|
+
e ? a.value = i.routes.filter((l) => !l.parent) : a.value = i.routes.filter((l) => !l.parent);
|
|
67
|
+
}), j(n, () => {
|
|
68
|
+
z(n.value);
|
|
70
69
|
}, {
|
|
71
70
|
throttle: 500
|
|
72
71
|
});
|
|
73
|
-
const
|
|
74
|
-
const e =
|
|
75
|
-
|
|
72
|
+
const x = () => {
|
|
73
|
+
const e = i.routes.find((l) => l.name === u.value);
|
|
74
|
+
g(e?.parent);
|
|
76
75
|
};
|
|
77
|
-
|
|
78
|
-
e &&
|
|
79
|
-
}),
|
|
80
|
-
e &&
|
|
81
|
-
}),
|
|
82
|
-
e &&
|
|
83
|
-
}),
|
|
76
|
+
s(y, (e) => {
|
|
77
|
+
e && C();
|
|
78
|
+
}), s(p.Escape, (e) => {
|
|
79
|
+
e && m(!1);
|
|
80
|
+
}), s(p.Backspace, (e) => {
|
|
81
|
+
e && n.value === "" && u.value && x();
|
|
82
|
+
}), s(b, (e) => {
|
|
84
83
|
e && e.focus();
|
|
85
84
|
});
|
|
86
|
-
const
|
|
87
|
-
onSelect: e
|
|
85
|
+
const d = w(() => a.value.filter((e) => e.hidden === void 0 || e.hidden === !1)), f = (e) => t(o.Item, {
|
|
86
|
+
onSelect: e?.onSelect
|
|
88
87
|
}, {
|
|
89
88
|
default: () => [t("div", {
|
|
90
89
|
class: "flex items-center justify-between flex-1"
|
|
91
90
|
}, [t("div", {
|
|
92
91
|
class: "flex items-center gap-2"
|
|
93
92
|
}, [t("div", {
|
|
94
|
-
class: ["size-4", e
|
|
95
|
-
}, null), t("div", null, [e
|
|
93
|
+
class: ["size-4", e?.icon]
|
|
94
|
+
}, null), t("div", null, [e?.label])]), t("div", null, [e?.keyName && t(k, {
|
|
96
95
|
size: "small"
|
|
97
96
|
}, {
|
|
98
|
-
default: () => [e
|
|
97
|
+
default: () => [e?.keyName]
|
|
99
98
|
})])])]
|
|
100
99
|
});
|
|
101
|
-
return () => t(
|
|
102
|
-
visible:
|
|
100
|
+
return () => t(o.Dialog, {
|
|
101
|
+
visible: h.value,
|
|
103
102
|
theme: "command-palette"
|
|
104
103
|
}, {
|
|
105
104
|
header: () => t("div", {
|
|
106
105
|
class: "relative"
|
|
107
106
|
}, [t("input", {
|
|
108
|
-
ref:
|
|
109
|
-
placeholder:
|
|
107
|
+
ref: b,
|
|
108
|
+
placeholder: r("common.search"),
|
|
110
109
|
onInput: (e) => {
|
|
111
|
-
|
|
110
|
+
n.value = e.target.value;
|
|
112
111
|
},
|
|
113
112
|
class: "w-full h-12 text-base/5 rounded-md border-0 placeholder:text-dimmed outline-0 px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-10 pe-10"
|
|
114
113
|
}, null), t("span", {
|
|
@@ -118,7 +117,7 @@ const we = /* @__PURE__ */ M({
|
|
|
118
117
|
"aria-hidden": "true"
|
|
119
118
|
}, null)]), t("span", {
|
|
120
119
|
class: "absolute inset-y-0 end-0 flex items-center gap-2 pe-3"
|
|
121
|
-
}, [t(
|
|
120
|
+
}, [t(k, {
|
|
122
121
|
size: "small"
|
|
123
122
|
}, {
|
|
124
123
|
default: () => [B("Esc")]
|
|
@@ -126,51 +125,48 @@ const we = /* @__PURE__ */ M({
|
|
|
126
125
|
quaternary: !0,
|
|
127
126
|
circle: !0,
|
|
128
127
|
size: "small",
|
|
129
|
-
onClick: () =>
|
|
128
|
+
onClick: () => m(!1)
|
|
130
129
|
}, {
|
|
131
130
|
icon: () => t("div", {
|
|
132
131
|
class: "i-tabler:x size-5",
|
|
133
132
|
"aria-hidden": "true"
|
|
134
133
|
}, null)
|
|
135
134
|
})])]),
|
|
136
|
-
body: () => t(V, null, [
|
|
135
|
+
body: () => t(V, null, [d.value.length === 0 && n.value && t("div", {
|
|
137
136
|
class: "flex items-center justify-center h-20 border-t border-muted"
|
|
138
|
-
}, [
|
|
139
|
-
default: () => [t(
|
|
140
|
-
heading:
|
|
137
|
+
}, [r("common.empty")]), d.value.length > 0 && t(o.List, null, {
|
|
138
|
+
default: () => [t(o.Group, {
|
|
139
|
+
heading: r("common.menu")
|
|
141
140
|
}, {
|
|
142
|
-
default: () => {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}))];
|
|
154
|
-
}
|
|
155
|
-
}), t(i.Separator, null, null), c.value ? t(p, {
|
|
141
|
+
default: () => [d.value?.map((e, l) => t(o.Item, {
|
|
142
|
+
key: l,
|
|
143
|
+
onSelect: () => {
|
|
144
|
+
e.path ? (S.push(e.path), N()) : g(e.name);
|
|
145
|
+
}
|
|
146
|
+
}, {
|
|
147
|
+
default: () => [t("div", {
|
|
148
|
+
class: e.path ? "i-tabler:link" : "i-tabler:folder"
|
|
149
|
+
}, null), e.label]
|
|
150
|
+
}))]
|
|
151
|
+
}), t(o.Separator, null, null), u.value ? t(f, {
|
|
156
152
|
icon: "i-tabler:arrow-left",
|
|
157
|
-
label:
|
|
158
|
-
onSelect:
|
|
153
|
+
label: r("common.back"),
|
|
154
|
+
onSelect: x,
|
|
159
155
|
keyName: "Backspace"
|
|
160
|
-
}, null) : t(
|
|
161
|
-
heading:
|
|
156
|
+
}, null) : t(o.Group, {
|
|
157
|
+
heading: r("common.theme")
|
|
162
158
|
}, {
|
|
163
|
-
default: () => [t(
|
|
159
|
+
default: () => [t(f, {
|
|
164
160
|
icon: "i-tabler:moon",
|
|
165
|
-
label:
|
|
161
|
+
label: r("common.dark"),
|
|
166
162
|
onSelect: () => {
|
|
167
|
-
|
|
163
|
+
v("dark");
|
|
168
164
|
}
|
|
169
|
-
}, null), t(
|
|
165
|
+
}, null), t(f, {
|
|
170
166
|
icon: "i-tabler:sun",
|
|
171
|
-
label:
|
|
167
|
+
label: r("common.light"),
|
|
172
168
|
onSelect: () => {
|
|
173
|
-
|
|
169
|
+
v("light");
|
|
174
170
|
}
|
|
175
171
|
}, null)]
|
|
176
172
|
})]
|
|
@@ -179,5 +175,5 @@ const we = /* @__PURE__ */ M({
|
|
|
179
175
|
}
|
|
180
176
|
});
|
|
181
177
|
export {
|
|
182
|
-
|
|
178
|
+
Be as DuxMenuCmd
|
|
183
179
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, createVNode as e, createTextVNode as
|
|
1
|
+
import { defineComponent as c, createVNode as e, createTextVNode as l } from "vue";
|
|
2
2
|
import { useManage as f, useI18n as v, DuxLogoIcon as x } from "@duxweb/dvha-core";
|
|
3
3
|
import { useNaiveMenu as g } from "@duxweb/dvha-naiveui";
|
|
4
4
|
import { NTag as r, NScrollbar as h, NMenu as b } from "naive-ui";
|
|
@@ -7,6 +7,17 @@ import "@overlastic/vue";
|
|
|
7
7
|
import "clsx";
|
|
8
8
|
import "vue-echarts";
|
|
9
9
|
import "@vueuse/core";
|
|
10
|
+
import "vue3-ace-editor";
|
|
11
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
12
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
13
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
14
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
15
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
16
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
17
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
18
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
19
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
20
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
10
21
|
import "vue-cropper";
|
|
11
22
|
import "jinrishici";
|
|
12
23
|
import "lodash-es";
|
|
@@ -27,22 +38,13 @@ import p from "./button.js";
|
|
|
27
38
|
import "vue-command-palette";
|
|
28
39
|
import "../page404.js";
|
|
29
40
|
import "@iconify-json/tabler/icons.json";
|
|
41
|
+
import "../../components/image/elements/index.js";
|
|
42
|
+
import "fabric";
|
|
30
43
|
import "mime";
|
|
31
|
-
import "vue3-ace-editor";
|
|
32
|
-
import "ace-builds/src-noconflict/mode-vue";
|
|
33
|
-
import "ace-builds/src-noconflict/mode-javascript";
|
|
34
|
-
import "ace-builds/src-noconflict/mode-html";
|
|
35
|
-
import "ace-builds/src-noconflict/mode-json";
|
|
36
|
-
import "ace-builds/src-noconflict/mode-json5";
|
|
37
|
-
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
38
|
-
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
39
|
-
import "ace-builds/src-noconflict/ext-searchbox";
|
|
40
|
-
import "ace-builds/src-noconflict/ext-language_tools";
|
|
41
|
-
import "ace-builds/src-noconflict/mode-snippets";
|
|
42
44
|
import "dayjs";
|
|
43
45
|
import "@tanstack/vue-query";
|
|
44
46
|
import { useUI as y } from "../../hooks/ui.js";
|
|
45
|
-
const
|
|
47
|
+
const fe = /* @__PURE__ */ c({
|
|
46
48
|
name: "DuxMenuMain",
|
|
47
49
|
props: {
|
|
48
50
|
collapsed: {
|
|
@@ -52,12 +54,12 @@ const ue = /* @__PURE__ */ c({
|
|
|
52
54
|
},
|
|
53
55
|
setup(o) {
|
|
54
56
|
const {
|
|
55
|
-
options:
|
|
56
|
-
active:
|
|
57
|
+
options: m,
|
|
58
|
+
active: a
|
|
57
59
|
} = g({}), {
|
|
58
60
|
menuCollapsed: t,
|
|
59
61
|
setCmdVisible: s,
|
|
60
|
-
menuMobileCollapsed:
|
|
62
|
+
menuMobileCollapsed: i,
|
|
61
63
|
setMenuCollapsed: d
|
|
62
64
|
} = y(), {
|
|
63
65
|
config: n
|
|
@@ -99,21 +101,21 @@ const ue = /* @__PURE__ */ c({
|
|
|
99
101
|
bordered: !1,
|
|
100
102
|
type: "primary"
|
|
101
103
|
}, {
|
|
102
|
-
default: () => [
|
|
104
|
+
default: () => [l("⌘")]
|
|
103
105
|
}), e(r, {
|
|
104
106
|
size: "small",
|
|
105
107
|
bordered: !1,
|
|
106
108
|
type: "primary"
|
|
107
109
|
}, {
|
|
108
|
-
default: () => [
|
|
110
|
+
default: () => [l("K")]
|
|
109
111
|
})])])
|
|
110
112
|
})]), e("div", {
|
|
111
|
-
class: ["flex-1 min-h-0",
|
|
113
|
+
class: ["flex-1 min-h-0", i.value ? "border-t border-muted" : ""]
|
|
112
114
|
}, [e(h, null, {
|
|
113
115
|
default: () => [e(b, {
|
|
114
|
-
options:
|
|
115
|
-
value:
|
|
116
|
-
collapsed: t.value && !
|
|
116
|
+
options: m.value,
|
|
117
|
+
value: a.value,
|
|
118
|
+
collapsed: t.value && !i.value,
|
|
117
119
|
indent: 20,
|
|
118
120
|
collapsedWidth: 60,
|
|
119
121
|
collapsedIconSize: 20
|
|
@@ -126,5 +128,5 @@ const ue = /* @__PURE__ */ c({
|
|
|
126
128
|
}
|
|
127
129
|
});
|
|
128
130
|
export {
|
|
129
|
-
|
|
131
|
+
fe as DuxMenuMain
|
|
130
132
|
};
|
|
@@ -6,6 +6,17 @@ import "@overlastic/vue";
|
|
|
6
6
|
import "clsx";
|
|
7
7
|
import "vue-echarts";
|
|
8
8
|
import "@vueuse/core";
|
|
9
|
+
import "vue3-ace-editor";
|
|
10
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
11
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
12
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
13
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
14
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
15
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
16
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
17
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
18
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
19
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
9
20
|
import "vue-cropper";
|
|
10
21
|
import "jinrishici";
|
|
11
22
|
import "lodash-es";
|
|
@@ -26,22 +37,13 @@ import { DuxMenuMain as i } from "./main.js";
|
|
|
26
37
|
import "@duxweb/dvha-naiveui";
|
|
27
38
|
import "../page404.js";
|
|
28
39
|
import "@iconify-json/tabler/icons.json";
|
|
40
|
+
import "../../components/image/elements/index.js";
|
|
41
|
+
import "fabric";
|
|
29
42
|
import "mime";
|
|
30
|
-
import "vue3-ace-editor";
|
|
31
|
-
import "ace-builds/src-noconflict/mode-vue";
|
|
32
|
-
import "ace-builds/src-noconflict/mode-javascript";
|
|
33
|
-
import "ace-builds/src-noconflict/mode-html";
|
|
34
|
-
import "ace-builds/src-noconflict/mode-json";
|
|
35
|
-
import "ace-builds/src-noconflict/mode-json5";
|
|
36
|
-
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
37
|
-
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
38
|
-
import "ace-builds/src-noconflict/ext-searchbox";
|
|
39
|
-
import "ace-builds/src-noconflict/ext-language_tools";
|
|
40
|
-
import "ace-builds/src-noconflict/mode-snippets";
|
|
41
43
|
import "dayjs";
|
|
42
44
|
import "@tanstack/vue-query";
|
|
43
45
|
import { useUI as e } from "../../hooks/ui.js";
|
|
44
|
-
const
|
|
46
|
+
const $ = /* @__PURE__ */ p({
|
|
45
47
|
name: "DuxMobileMenu",
|
|
46
48
|
props: {},
|
|
47
49
|
setup(l) {
|
|
@@ -61,5 +63,5 @@ const Y = /* @__PURE__ */ p({
|
|
|
61
63
|
}
|
|
62
64
|
});
|
|
63
65
|
export {
|
|
64
|
-
|
|
66
|
+
$ as DuxMobileMenu
|
|
65
67
|
};
|
package/dist/esm/pages/page.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { NScrollbar as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as d, ref as s, createVNode as o } from "vue";
|
|
2
|
+
import { NScrollbar as i } from "naive-ui";
|
|
3
|
+
const p = /* @__PURE__ */ d({
|
|
4
4
|
name: "DuxPage",
|
|
5
5
|
props: {
|
|
6
6
|
padding: {
|
|
@@ -20,35 +20,31 @@ const x = /* @__PURE__ */ m({
|
|
|
20
20
|
default: !0
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
slots:
|
|
23
|
+
setup(e, {
|
|
24
|
+
slots: l
|
|
25
25
|
}) {
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
|
|
26
|
+
const r = s(!1), c = (t) => {
|
|
27
|
+
const a = t.target;
|
|
28
|
+
r.value = a.scrollTop > 0;
|
|
29
29
|
};
|
|
30
30
|
return () => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return c("div", {
|
|
31
|
+
const t = e.card ? "bg-default dark:bg-muted rounded shadow-xs lg:dark:border lg:dark:border-muted" : "", a = e.card && e.padding ? "p-3" : "", n = e.scrollbar ? "" : "h-full";
|
|
32
|
+
return o("div", {
|
|
34
33
|
class: "h-full flex-1 flex gap-2 relative"
|
|
35
|
-
}, [
|
|
36
|
-
class: `z-1 absolute top-0 left-0 w-full h-10 bg-linear-to-b from-[color-mix(in_oklch,theme(colors.primary.DEFAULT),white_95%)] dark:from-[color-mix(in_oklch,theme(colors.primary.DEFAULT),theme(colors.gray.950)_95%)] to-transparent pointer-events-none transition-opacity duration-300 ${
|
|
37
|
-
}, null),
|
|
38
|
-
class: [
|
|
39
|
-
contentClass: `${
|
|
40
|
-
onScroll:
|
|
34
|
+
}, [o("div", {
|
|
35
|
+
class: `z-1 absolute top-0 left-0 w-full h-10 bg-linear-to-b from-[color-mix(in_oklch,theme(colors.primary.DEFAULT),white_95%)] dark:from-[color-mix(in_oklch,theme(colors.primary.DEFAULT),theme(colors.gray.950)_95%)] to-transparent pointer-events-none transition-opacity duration-300 ${r.value ? "opacity-100" : "opacity-0"}`
|
|
36
|
+
}, null), l?.sideLeft?.(), e.scrollbar ? o(i, {
|
|
37
|
+
class: [t, "flex-1 min-w-0"],
|
|
38
|
+
contentClass: `${a} ${n}`,
|
|
39
|
+
onScroll: c
|
|
41
40
|
}, {
|
|
42
|
-
default: () =>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}) : c("div", {
|
|
47
|
-
class: `${r} ${n} ${l} flex-1 min-w-0`
|
|
48
|
-
}, [(o = e.default) == null ? void 0 : o.call(e)]), (i = e == null ? void 0 : e.sideRight) == null ? void 0 : i.call(e)]);
|
|
41
|
+
default: () => [l.default?.()]
|
|
42
|
+
}) : o("div", {
|
|
43
|
+
class: `${t} ${a} ${n} flex-1 min-w-0`
|
|
44
|
+
}, [l.default?.()]), l?.sideRight?.()]);
|
|
49
45
|
};
|
|
50
46
|
}
|
|
51
47
|
});
|
|
52
48
|
export {
|
|
53
|
-
|
|
49
|
+
p as DuxPage
|
|
54
50
|
};
|
|
@@ -12,6 +12,17 @@ import "@tanstack/vue-query";
|
|
|
12
12
|
import "@duxweb/dvha-naiveui";
|
|
13
13
|
import "@vueuse/core";
|
|
14
14
|
import "pinia";
|
|
15
|
+
import "vue3-ace-editor";
|
|
16
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
17
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
18
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
19
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
20
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
21
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
22
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
23
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
24
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
25
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
15
26
|
import "vue-cropper";
|
|
16
27
|
import "jinrishici";
|
|
17
28
|
import "vue-draggable-plus";
|
|
@@ -30,17 +41,8 @@ import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
|
30
41
|
import "vue-command-palette";
|
|
31
42
|
import { DuxPageStatus as d } from "./pageStatus.js";
|
|
32
43
|
import "@iconify-json/tabler/icons.json";
|
|
33
|
-
import "
|
|
34
|
-
import "
|
|
35
|
-
import "ace-builds/src-noconflict/mode-javascript";
|
|
36
|
-
import "ace-builds/src-noconflict/mode-html";
|
|
37
|
-
import "ace-builds/src-noconflict/mode-json";
|
|
38
|
-
import "ace-builds/src-noconflict/mode-json5";
|
|
39
|
-
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
40
|
-
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
41
|
-
import "ace-builds/src-noconflict/ext-searchbox";
|
|
42
|
-
import "ace-builds/src-noconflict/ext-language_tools";
|
|
43
|
-
import "ace-builds/src-noconflict/mode-snippets";
|
|
44
|
+
import "../components/image/elements/index.js";
|
|
45
|
+
import "fabric";
|
|
44
46
|
function g(o) {
|
|
45
47
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !u(o);
|
|
46
48
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DuxCard as
|
|
1
|
+
import { defineComponent as e, createVNode as t } from "vue";
|
|
2
|
+
import { DuxCard as o } from "../components/card/card.js";
|
|
3
3
|
import "clsx";
|
|
4
4
|
import "naive-ui";
|
|
5
5
|
import "vue-echarts";
|
|
@@ -13,6 +13,17 @@ import "@tanstack/vue-query";
|
|
|
13
13
|
import "@duxweb/dvha-naiveui";
|
|
14
14
|
import "@vueuse/core";
|
|
15
15
|
import "pinia";
|
|
16
|
+
import "vue3-ace-editor";
|
|
17
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
18
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
19
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
20
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
21
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
22
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
23
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
24
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
25
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
26
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
16
27
|
import "vue-cropper";
|
|
17
28
|
import "jinrishici";
|
|
18
29
|
import "vue-draggable-plus";
|
|
@@ -30,18 +41,9 @@ import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
|
30
41
|
import "vue-command-palette";
|
|
31
42
|
import "./page404.js";
|
|
32
43
|
import "@iconify-json/tabler/icons.json";
|
|
33
|
-
import "
|
|
34
|
-
import "
|
|
35
|
-
|
|
36
|
-
import "ace-builds/src-noconflict/mode-html";
|
|
37
|
-
import "ace-builds/src-noconflict/mode-json";
|
|
38
|
-
import "ace-builds/src-noconflict/mode-json5";
|
|
39
|
-
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
40
|
-
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
41
|
-
import "ace-builds/src-noconflict/ext-searchbox";
|
|
42
|
-
import "ace-builds/src-noconflict/ext-language_tools";
|
|
43
|
-
import "ace-builds/src-noconflict/mode-snippets";
|
|
44
|
-
const Y = /* @__PURE__ */ o({
|
|
44
|
+
import "../components/image/elements/index.js";
|
|
45
|
+
import "fabric";
|
|
46
|
+
const Y = /* @__PURE__ */ e({
|
|
45
47
|
name: "DuxPageStatus",
|
|
46
48
|
props: {
|
|
47
49
|
title: String,
|
|
@@ -51,29 +53,26 @@ const Y = /* @__PURE__ */ o({
|
|
|
51
53
|
default: !0
|
|
52
54
|
}
|
|
53
55
|
},
|
|
54
|
-
setup(
|
|
55
|
-
slots:
|
|
56
|
+
setup(r, {
|
|
57
|
+
slots: i
|
|
56
58
|
}) {
|
|
57
|
-
return () =>
|
|
59
|
+
return () => t(o, {
|
|
58
60
|
class: "size-full flex items-center justify-center",
|
|
59
|
-
bordered:
|
|
61
|
+
bordered: r.bordered
|
|
60
62
|
}, {
|
|
61
|
-
default: () => {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
class: "flex justify-center items-center gap-4"
|
|
75
|
-
}, [(m = e.action) == null ? void 0 : m.call(e)])])];
|
|
76
|
-
}
|
|
63
|
+
default: () => [t("div", {
|
|
64
|
+
class: "flex flex-col gap-6 justify-center items-center py-10"
|
|
65
|
+
}, [t("div", {
|
|
66
|
+
class: "w-40"
|
|
67
|
+
}, [i.default?.()]), t("div", {
|
|
68
|
+
class: "flex flex-col items-center justify-center gap-2"
|
|
69
|
+
}, [t("div", {
|
|
70
|
+
class: "text-lg text-default font-bold"
|
|
71
|
+
}, [r?.title]), t("div", {
|
|
72
|
+
class: "text-muted"
|
|
73
|
+
}, [r?.desc])]), t("div", {
|
|
74
|
+
class: "flex justify-center items-center gap-4"
|
|
75
|
+
}, [i.action?.()])])]
|
|
77
76
|
});
|
|
78
77
|
}
|
|
79
78
|
});
|
package/dist/esm/stores/ui.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { defineStore as u } from "pinia";
|
|
2
|
-
import { inject as c, ref as
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
if (e || (e =
|
|
2
|
+
import { inject as c, ref as s } from "vue";
|
|
3
|
+
function m(e) {
|
|
4
|
+
const t = c("dux.manage");
|
|
5
|
+
if (e || (e = t?.value || ""), !e)
|
|
6
6
|
throw new Error("manage not found");
|
|
7
7
|
return d(e)();
|
|
8
8
|
}
|
|
9
9
|
function d(e) {
|
|
10
10
|
return u(`ui-${e}`, () => {
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
}, l = (
|
|
14
|
-
|
|
15
|
-
},
|
|
11
|
+
const t = s(!0), n = s(!1), i = (o) => {
|
|
12
|
+
t.value = o;
|
|
13
|
+
}, l = (o) => {
|
|
14
|
+
n.value = o;
|
|
15
|
+
}, r = s(!1);
|
|
16
16
|
return {
|
|
17
|
-
menuCollapsed:
|
|
17
|
+
menuCollapsed: t,
|
|
18
18
|
setMenuCollapsed: i,
|
|
19
|
-
cmdVisible:
|
|
20
|
-
setCmdVisible: (
|
|
21
|
-
|
|
19
|
+
cmdVisible: r,
|
|
20
|
+
setCmdVisible: (o) => {
|
|
21
|
+
r.value = o;
|
|
22
22
|
},
|
|
23
|
-
menuMobileCollapsed:
|
|
23
|
+
menuMobileCollapsed: n,
|
|
24
24
|
setMenuMobileCollapsed: l
|
|
25
25
|
};
|
|
26
26
|
}, {
|
|
@@ -30,5 +30,5 @@ function d(e) {
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
m as useUIStore
|
|
34
34
|
};
|