@duxweb/dvha-pro 1.2.4 → 1.2.6
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 -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/cascaderPanel/cascaderPanel.cjs +1 -1
- package/dist/cjs/components/chart/echart.cjs +1 -1
- package/dist/cjs/components/code/code.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/designEditor/editor/preview.cjs +1 -1
- package/dist/cjs/components/designEditor/editor/setting.cjs +1 -1
- package/dist/cjs/components/designEditor/editor.cjs +1 -1
- package/dist/cjs/components/draw/drawApps.cjs +1 -1
- package/dist/cjs/components/draw/drawAuth.cjs +1 -1
- package/dist/cjs/components/draw/drawEmpty.cjs +1 -1
- package/dist/cjs/components/draw/drawEmptyForm.cjs +1 -1
- package/dist/cjs/components/draw/drawError.cjs +1 -1
- package/dist/cjs/components/drawer/drawerPage.cjs +1 -1
- package/dist/cjs/components/editor/aiEditor.cjs +2 -2
- package/dist/cjs/components/flowEditor/components/fieldConfig.cjs +1 -1
- package/dist/cjs/components/flowEditor/components/kvInput.cjs +1 -1
- package/dist/cjs/components/flowEditor/components/nodeCard.cjs +1 -1
- package/dist/cjs/components/flowEditor/components/note.cjs +1 -1
- package/dist/cjs/components/flowEditor/components/setting.cjs +1 -1
- package/dist/cjs/components/flowEditor/components/toolbar.cjs +1 -1
- package/dist/cjs/components/flowEditor/flowEditor.cjs +1 -1
- package/dist/cjs/components/flowEditor/nodes/endNode.cjs +1 -1
- package/dist/cjs/components/flowEditor/nodes/index.cjs +1 -1
- package/dist/cjs/components/flowEditor/nodes/processNode.cjs +1 -1
- package/dist/cjs/components/flowEditor/nodes/startNode.cjs +1 -1
- package/dist/cjs/components/flowEditor/utils/nodeDataUtils.cjs +1 -1
- package/dist/cjs/components/form/drawerForm.cjs +1 -1
- package/dist/cjs/components/form/drawerTabForm.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/modalTabForm.cjs +1 -1
- package/dist/cjs/components/form/pageForm.cjs +1 -1
- package/dist/cjs/components/form/pageTabForm.cjs +1 -1
- package/dist/cjs/components/form/settingForm.cjs +1 -1
- package/dist/cjs/components/formEditor/base/base.cjs +1 -1
- package/dist/cjs/components/formEditor/base/setting.cjs +1 -1
- package/dist/cjs/components/formEditor/editor.cjs +1 -1
- package/dist/cjs/components/formEditor/preview.cjs +1 -1
- package/dist/cjs/components/formEditor/renderer.cjs +1 -1
- package/dist/cjs/components/icon/icon.cjs +1 -1
- package/dist/cjs/components/layout/filter.cjs +1 -1
- package/dist/cjs/components/layout/filterLayout.cjs +1 -1
- package/dist/cjs/components/layout/grid.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/item.cjs +1 -1
- package/dist/cjs/components/list/list.cjs +1 -1
- package/dist/cjs/components/mapCoord/mapCoord.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/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/posterEditor/components/CanvasRuler.cjs +1 -1
- package/dist/cjs/components/posterEditor/elements/index.cjs +1 -1
- package/dist/cjs/components/posterEditor/pages/LeftToolbar.cjs +1 -1
- package/dist/cjs/components/posterEditor/pages/Panel.cjs +1 -1
- package/dist/cjs/components/posterEditor/pages/PanelItem.cjs +1 -1
- package/dist/cjs/components/posterEditor/pages/RightPanel.cjs +1 -1
- package/dist/cjs/components/posterEditor/posterEditor.cjs +1 -1
- package/dist/cjs/components/schemaEditor/schemaEditor.cjs +1 -1
- package/dist/cjs/components/select/checkboxTag.cjs +1 -1
- package/dist/cjs/components/select/dateTag.cjs +1 -1
- package/dist/cjs/components/select/radioTag.cjs +1 -1
- package/dist/cjs/components/select/selectCard.cjs +1 -1
- package/dist/cjs/components/spec/spec.cjs +1 -1
- package/dist/cjs/components/spec/specEditor.cjs +1 -1
- package/dist/cjs/components/stats/number.cjs +1 -1
- package/dist/cjs/components/stats/realTime.cjs +1 -1
- package/dist/cjs/components/status/blockEmpty.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/textImageEditor/textImageEditor.cjs +1 -1
- package/dist/cjs/components/tree/treeFilter.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/selectFile.cjs +1 -1
- package/dist/cjs/components/upload/video.cjs +1 -1
- package/dist/cjs/components/widget/avatar.cjs +1 -1
- package/dist/cjs/components/widget/connect.cjs +1 -1
- package/dist/cjs/components/widget/image.cjs +1 -1
- package/dist/cjs/components/widget/placeholder.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/loading.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/cmd.cjs +1 -1
- package/dist/cjs/pages/menu/menuApp.cjs +1 -1
- package/dist/cjs/pages/menu/menuMain.cjs +1 -1
- package/dist/cjs/pages/menu/mobile.cjs +1 -1
- package/dist/cjs/pages/menu/remoteMenuModal.cjs +1 -0
- package/dist/cjs/pages/page.cjs +1 -1
- package/dist/cjs/pages/page403.cjs +1 -1
- package/dist/cjs/pages/page404.cjs +1 -1
- package/dist/cjs/pages/page500.cjs +1 -1
- package/dist/cjs/pages/pageEmpty.cjs +1 -1
- package/dist/cjs/pages/pageException.cjs +1 -1
- package/dist/cjs/pages/pageLoading.cjs +1 -1
- package/dist/cjs/pages/pageStatus.cjs +1 -1
- package/dist/cjs/theme/uno.cjs +57 -9
- package/dist/esm/app.js +3 -1
- package/dist/esm/component.js +2 -0
- package/dist/esm/components/card/card.js +3 -1
- package/dist/esm/components/card/store.js +3 -1
- package/dist/esm/components/carousel/carousel.js +3 -1
- package/dist/esm/components/cascaderPanel/cascaderPanel.js +3 -1
- package/dist/esm/components/chart/echart.js +3 -1
- package/dist/esm/components/code/code.js +3 -1
- package/dist/esm/components/crop/imageCrop.js +3 -1
- package/dist/esm/components/crop/imageCropModal.js +3 -1
- package/dist/esm/components/dashboard/hello.js +3 -1
- package/dist/esm/components/dashboard/helloBig.js +3 -1
- package/dist/esm/components/dashboard/quick.js +3 -1
- package/dist/esm/components/data/dynamicData.js +3 -1
- package/dist/esm/components/data/dynamicSelect.js +3 -1
- package/dist/esm/components/data/selectModal.js +2 -0
- package/dist/esm/components/designEditor/components/grid.js +2 -0
- package/dist/esm/components/designEditor/editor/hook.js +2 -0
- package/dist/esm/components/designEditor/editor/preview.js +3 -1
- package/dist/esm/components/designEditor/editor/setting.js +3 -1
- package/dist/esm/components/designEditor/editor.js +3 -1
- package/dist/esm/components/dialog/dialog.js +2 -0
- package/dist/esm/components/draw/drawApps.js +3 -1
- package/dist/esm/components/draw/drawAuth.js +3 -1
- package/dist/esm/components/draw/drawEmpty.js +3 -1
- package/dist/esm/components/draw/drawEmptyForm.js +3 -1
- package/dist/esm/components/draw/drawError.js +3 -1
- package/dist/esm/components/drawer/drawer.js +2 -0
- package/dist/esm/components/drawer/drawerPage.js +3 -1
- package/dist/esm/components/drawer/drawerTab.js +2 -0
- package/dist/esm/components/editor/aiEditor.js +8 -1
- package/dist/esm/components/flowEditor/components/fieldConfig.js +3 -1
- package/dist/esm/components/flowEditor/components/jsonEditor.js +2 -0
- package/dist/esm/components/flowEditor/components/kvInput.js +3 -1
- package/dist/esm/components/flowEditor/components/nodeCard.js +3 -2
- package/dist/esm/components/flowEditor/components/note.js +3 -1
- package/dist/esm/components/flowEditor/components/setting.js +3 -1
- package/dist/esm/components/flowEditor/components/toolbar.js +3 -1
- package/dist/esm/components/flowEditor/flowEditor.js +3 -1
- package/dist/esm/components/flowEditor/nodes/dynamicNodeFactory.js +2 -0
- package/dist/esm/components/flowEditor/nodes/endNode.js +3 -1
- package/dist/esm/components/flowEditor/nodes/index.js +3 -1
- package/dist/esm/components/flowEditor/nodes/processNode.js +3 -1
- package/dist/esm/components/flowEditor/nodes/startNode.js +3 -1
- package/dist/esm/components/flowEditor/utils/nodeDataUtils.js +3 -1
- package/dist/esm/components/form/drawerForm.js +3 -1
- package/dist/esm/components/form/drawerTabForm.js +3 -1
- package/dist/esm/components/form/formItem.js +3 -1
- package/dist/esm/components/form/formLayout.js +3 -1
- package/dist/esm/components/form/modalForm.js +3 -1
- package/dist/esm/components/form/modalTabForm.js +3 -1
- package/dist/esm/components/form/pageForm.js +3 -1
- package/dist/esm/components/form/pageTabForm.js +3 -1
- package/dist/esm/components/form/settingForm.js +3 -1
- package/dist/esm/components/formEditor/base/base.js +3 -1
- package/dist/esm/components/formEditor/base/json.js +2 -0
- package/dist/esm/components/formEditor/base/options.js +2 -0
- package/dist/esm/components/formEditor/base/setting.js +3 -1
- package/dist/esm/components/formEditor/components/cascader.js +2 -0
- package/dist/esm/components/formEditor/components/cascaderAsync.js +2 -0
- package/dist/esm/components/formEditor/components/checkbox.js +2 -0
- package/dist/esm/components/formEditor/components/color.js +2 -0
- package/dist/esm/components/formEditor/components/date.js +2 -0
- package/dist/esm/components/formEditor/components/dynamicInput.js +2 -0
- package/dist/esm/components/formEditor/components/dynamicTags.js +2 -0
- package/dist/esm/components/formEditor/components/editor.js +2 -0
- package/dist/esm/components/formEditor/components/fileUpload.js +2 -0
- package/dist/esm/components/formEditor/components/imageUpload.js +2 -0
- package/dist/esm/components/formEditor/components/input.js +2 -0
- package/dist/esm/components/formEditor/components/inputNumber.js +2 -0
- package/dist/esm/components/formEditor/components/mentionAsync.js +2 -0
- package/dist/esm/components/formEditor/components/radio.js +2 -0
- package/dist/esm/components/formEditor/components/region.js +2 -0
- package/dist/esm/components/formEditor/components/select.js +2 -0
- package/dist/esm/components/formEditor/components/selectAsync.js +2 -0
- package/dist/esm/components/formEditor/components/sider.js +2 -0
- package/dist/esm/components/formEditor/components/switch.js +2 -0
- package/dist/esm/components/formEditor/components/time.js +2 -0
- package/dist/esm/components/formEditor/components/transferAsync.js +2 -0
- package/dist/esm/components/formEditor/components/treeSelect.js +2 -0
- package/dist/esm/components/formEditor/components/treeSelectAsync.js +2 -0
- package/dist/esm/components/formEditor/editor.js +3 -1
- package/dist/esm/components/formEditor/json.js +2 -0
- package/dist/esm/components/formEditor/preview.js +3 -1
- package/dist/esm/components/formEditor/renderer.js +3 -1
- package/dist/esm/components/icon/icon.js +3 -1
- package/dist/esm/components/icon/iconPicker.js +2 -0
- package/dist/esm/components/layout/filter.js +3 -1
- package/dist/esm/components/layout/filterLayout.js +3 -1
- package/dist/esm/components/layout/grid.js +3 -1
- package/dist/esm/components/layout/list.js +3 -1
- package/dist/esm/components/layout/table.js +3 -1
- package/dist/esm/components/layout/tools.js +3 -1
- package/dist/esm/components/level/level.js +3 -1
- package/dist/esm/components/list/card.js +3 -1
- package/dist/esm/components/list/item.js +3 -2
- package/dist/esm/components/list/list.js +3 -1
- package/dist/esm/components/mapCoord/mapCoord.js +3 -1
- package/dist/esm/components/media/media.js +3 -1
- package/dist/esm/components/modal/modal.js +4 -2
- package/dist/esm/components/modal/modalPage.js +2 -0
- package/dist/esm/components/modal/modalTab.js +2 -0
- package/dist/esm/components/panel/alert.js +3 -1
- package/dist/esm/components/panel/collapse.js +3 -1
- package/dist/esm/components/panel/setting.js +3 -1
- package/dist/esm/components/posterEditor/components/CanvasRuler.js +3 -1
- package/dist/esm/components/posterEditor/elements/circle.js +2 -0
- package/dist/esm/components/posterEditor/elements/image.js +2 -0
- package/dist/esm/components/posterEditor/elements/index.js +3 -2
- package/dist/esm/components/posterEditor/elements/rect.js +2 -0
- package/dist/esm/components/posterEditor/elements/text.js +2 -0
- package/dist/esm/components/posterEditor/hooks/usePosterEditor.js +2 -0
- package/dist/esm/components/posterEditor/pages/LeftToolbar.js +3 -1
- package/dist/esm/components/posterEditor/pages/Panel.js +3 -1
- package/dist/esm/components/posterEditor/pages/PanelItem.js +3 -1
- package/dist/esm/components/posterEditor/pages/RightPanel.js +3 -1
- package/dist/esm/components/posterEditor/posterEditor.js +3 -1
- package/dist/esm/components/schemaEditor/schemaEditor.js +3 -2
- package/dist/esm/components/select/checkboxTag.js +3 -1
- package/dist/esm/components/select/dateTag.js +3 -1
- package/dist/esm/components/select/radioTag.js +3 -1
- package/dist/esm/components/select/selectCard.js +3 -1
- package/dist/esm/components/spec/spec.js +3 -1
- package/dist/esm/components/spec/specEditor.js +3 -1
- package/dist/esm/components/stats/number.js +3 -1
- package/dist/esm/components/stats/realTime.js +3 -1
- package/dist/esm/components/status/blockEmpty.js +3 -1
- package/dist/esm/components/status/listEmpty.js +3 -1
- package/dist/esm/components/table/table.js +3 -1
- package/dist/esm/components/table/tablePage.js +3 -1
- package/dist/esm/components/textImageEditor/textImageEditor.js +3 -2
- package/dist/esm/components/textImageEditor/textModal.js +2 -0
- package/dist/esm/components/tree/treeFilter.js +3 -1
- package/dist/esm/components/upload/config.js +2 -0
- package/dist/esm/components/upload/file.js +3 -2
- package/dist/esm/components/upload/image.js +3 -1
- package/dist/esm/components/upload/manage/item.js +3 -1
- package/dist/esm/components/upload/manager.js +2 -0
- package/dist/esm/components/upload/selectFile.js +3 -1
- package/dist/esm/components/upload/video.js +3 -2
- package/dist/esm/components/widget/avatar.js +3 -1
- package/dist/esm/components/widget/connect.js +3 -1
- package/dist/esm/components/widget/image.js +3 -1
- package/dist/esm/components/widget/placeholder.js +3 -1
- package/dist/esm/config/echart.js +2 -0
- package/dist/esm/config/uno.js +2 -0
- package/dist/esm/config/validate.js +2 -0
- package/dist/esm/hooks/action.js +2 -0
- package/dist/esm/hooks/dialog.js +2 -0
- package/dist/esm/hooks/download.js +2 -0
- package/dist/esm/hooks/drawer.js +2 -0
- package/dist/esm/hooks/echart.js +2 -30
- package/dist/esm/hooks/image.js +2 -0
- package/dist/esm/hooks/level.js +2 -0
- package/dist/esm/hooks/modal.js +2 -0
- package/dist/esm/hooks/table/color.js +2 -0
- package/dist/esm/hooks/table/column.js +2 -0
- package/dist/esm/hooks/table/copy.js +2 -0
- package/dist/esm/hooks/table/hidden.js +2 -0
- package/dist/esm/hooks/table/image.js +2 -0
- package/dist/esm/hooks/table/input.js +2 -0
- package/dist/esm/hooks/table/map.js +2 -0
- package/dist/esm/hooks/table/media.js +2 -0
- package/dist/esm/hooks/table/status.js +2 -0
- package/dist/esm/hooks/table/switch.js +2 -0
- package/dist/esm/hooks/table.js +2 -0
- package/dist/esm/hooks/ui.js +2 -0
- package/dist/esm/langs/en-US.js +1 -0
- package/dist/esm/langs/zh-CN.js +1 -0
- package/dist/esm/main.js +2 -0
- package/dist/esm/pages/authLayout.js +3 -1
- package/dist/esm/pages/layout/global.js +3 -1
- package/dist/esm/pages/layout/page.js +3 -1
- package/dist/esm/pages/layout/tab.js +3 -1
- package/dist/esm/pages/layout.js +3 -1
- package/dist/esm/pages/loading.js +3 -1
- package/dist/esm/pages/login.js +3 -1
- package/dist/esm/pages/menu/avatar.js +91 -61
- package/dist/esm/pages/menu/button.js +2 -0
- package/dist/esm/pages/menu/cmd.js +3 -1
- package/dist/esm/pages/menu/dark.js +2 -0
- package/dist/esm/pages/menu/menuApp.js +66 -47
- package/dist/esm/pages/menu/menuMain.js +3 -1
- package/dist/esm/pages/menu/mobile.js +3 -1
- package/dist/esm/pages/menu/notice.js +2 -0
- package/dist/esm/pages/menu/remoteMenuModal.js +56 -0
- package/dist/esm/pages/page.js +3 -1
- package/dist/esm/pages/page403.js +3 -1
- package/dist/esm/pages/page404.js +3 -1
- package/dist/esm/pages/page500.js +3 -1
- package/dist/esm/pages/pageEmpty.js +3 -1
- package/dist/esm/pages/pageException.js +3 -1
- package/dist/esm/pages/pageLoading.js +3 -1
- package/dist/esm/pages/pageStatus.js +3 -1
- package/dist/esm/static/images/icon/audio.js +2 -0
- package/dist/esm/static/images/icon/excel.js +2 -0
- package/dist/esm/static/images/icon/file.js +2 -0
- package/dist/esm/static/images/icon/folder.js +2 -0
- package/dist/esm/static/images/icon/pdf.js +2 -0
- package/dist/esm/static/images/icon/ppt.js +2 -0
- package/dist/esm/static/images/icon/video.js +2 -0
- package/dist/esm/static/images/icon/word.js +2 -0
- package/dist/esm/stores/ui.js +2 -10
- package/dist/esm/theme/naiveTheme.js +2 -0
- package/dist/esm/theme/presetTheme.js +2 -0
- package/dist/esm/theme/uno.js +3 -1
- package/dist/types/components/editor/aiEditor.d.ts +9 -0
- package/dist/types/components/table/table.d.ts +4 -18
- package/dist/types/components/widget/avatar.d.ts +1 -3
- package/dist/types/components/widget/image.d.ts +1 -3
- package/dist/types/main.d.ts +22 -0
- package/dist/types/pages/menu/remoteMenuModal.d.ts +67 -0
- package/package.json +31 -31
package/dist/esm/hooks/level.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { computed as e, ref as t, toRef as n, watch as r } from "vue";
|
|
2
2
|
import { useClient as i } from "@duxweb/dvha-core";
|
|
3
3
|
import { useQuery as a } from "@tanstack/vue-query";
|
|
4
|
+
//#region src/hooks/level.tsx
|
|
4
5
|
function o(o) {
|
|
5
6
|
let s = t([]), c = t(!1), l = t(null), u = n(o, "path", "area"), d = n(o, "value", []), f = n(o, "maxLevel", 4), { request: p } = i(), { data: m, isFetching: h } = a({
|
|
6
7
|
queryKey: [u, l],
|
|
@@ -57,4 +58,5 @@ function o(o) {
|
|
|
57
58
|
value: d
|
|
58
59
|
};
|
|
59
60
|
}
|
|
61
|
+
//#endregion
|
|
60
62
|
export { o as useLevel };
|
package/dist/esm/hooks/modal.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import e from "../components/modal/modal.js";
|
|
2
2
|
import "../components/index.js";
|
|
3
3
|
import { useOverlay as t } from "@overlastic/vue";
|
|
4
|
+
//#region src/hooks/modal.tsx
|
|
4
5
|
function n() {
|
|
5
6
|
let n = t(e);
|
|
6
7
|
return { show: (e) => n(e) };
|
|
7
8
|
}
|
|
9
|
+
//#endregion
|
|
8
10
|
export { n as useModal };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { createVNode as e } from "vue";
|
|
2
2
|
import { findKey as t, get as n } from "lodash-es";
|
|
3
|
+
//#region src/hooks/table/color.tsx
|
|
3
4
|
function r() {
|
|
4
5
|
return { render: (r) => (i, a) => {
|
|
5
6
|
let o = r?.key || "status", s = t(r.maps, (e) => e ? o ? e?.value === n(i, o) : "default" : !1), c = s ? r.maps?.[s] : void 0;
|
|
6
7
|
return c ? e("div", { class: ["flex gap-1 items-center", `text-${s}`] }, [c.icon ? e("div", { class: `size-4 ${c.icon}` }, null) : null, e("span", { class: "text-sm" }, [c?.label])]) : null;
|
|
7
8
|
} };
|
|
8
9
|
}
|
|
10
|
+
//#endregion
|
|
9
11
|
export { r as useTableColumnColor };
|
|
@@ -8,6 +8,7 @@ import { useTableColumnMedia as o } from "./media.js";
|
|
|
8
8
|
import { useTableColumnStatus as s } from "./status.js";
|
|
9
9
|
import { useTableColumnSwitch as c } from "./switch.js";
|
|
10
10
|
import { useManage as l } from "@duxweb/dvha-core";
|
|
11
|
+
//#region src/hooks/table/column.ts
|
|
11
12
|
function u(u) {
|
|
12
13
|
let { getPath: d } = l(), f = u?.path || d(), p = u?.rowKey || "id", m = o(), h = r(), g = c({
|
|
13
14
|
path: f,
|
|
@@ -28,4 +29,5 @@ function u(u) {
|
|
|
28
29
|
renderColor: v.render
|
|
29
30
|
};
|
|
30
31
|
}
|
|
32
|
+
//#endregion
|
|
31
33
|
export { u as useTableColumn };
|
|
@@ -3,6 +3,7 @@ import { useI18n as t } from "@duxweb/dvha-core";
|
|
|
3
3
|
import { useMessage as n } from "naive-ui";
|
|
4
4
|
import { useClipboard as r } from "@vueuse/core";
|
|
5
5
|
import { get as i } from "lodash-es";
|
|
6
|
+
//#region src/hooks/table/copy.tsx
|
|
6
7
|
function a() {
|
|
7
8
|
let { t: a } = t(), o = n(), { copy: s } = r();
|
|
8
9
|
return { render: (t) => (n, r) => {
|
|
@@ -15,4 +16,5 @@ function a() {
|
|
|
15
16
|
}, null)]) : "-"]);
|
|
16
17
|
} };
|
|
17
18
|
}
|
|
19
|
+
//#endregion
|
|
18
20
|
export { a as useTableColumnCopy };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createVNode as e, defineComponent as t, ref as n } from "vue";
|
|
2
2
|
import { get as r } from "lodash-es";
|
|
3
|
+
//#region src/hooks/table/hidden.tsx
|
|
3
4
|
var i = /* @__PURE__ */ t({
|
|
4
5
|
name: "TableColumnHidden",
|
|
5
6
|
props: {
|
|
@@ -33,4 +34,5 @@ function o(e, t = 30) {
|
|
|
33
34
|
let n = e.length, r = Math.ceil(n * t / 100), i = Math.floor((n - r) / 2);
|
|
34
35
|
return e.slice(0, i) + "*".repeat(r) + e.slice(i + r);
|
|
35
36
|
}
|
|
37
|
+
//#endregion
|
|
36
38
|
export { a as useTableColumnHidden };
|
|
@@ -3,6 +3,7 @@ import "../../components/index.js";
|
|
|
3
3
|
import { createVNode as t, h as n } from "vue";
|
|
4
4
|
import { NImage as r } from "naive-ui";
|
|
5
5
|
import { get as i } from "lodash-es";
|
|
6
|
+
//#region src/hooks/table/image.tsx
|
|
6
7
|
function a() {
|
|
7
8
|
return { render: (a) => (o, s) => {
|
|
8
9
|
let c = i(o, a.key || "") || [];
|
|
@@ -25,4 +26,5 @@ function a() {
|
|
|
25
26
|
})) : t(e, { height: 40 }, null)]);
|
|
26
27
|
} };
|
|
27
28
|
}
|
|
29
|
+
//#endregion
|
|
28
30
|
export { a as useTableColumnImage };
|
|
@@ -2,6 +2,7 @@ import { Fragment as e, createVNode as t, defineComponent as n, h as r, ref as i
|
|
|
2
2
|
import { useCustomMutation as a, useI18n as o } from "@duxweb/dvha-core";
|
|
3
3
|
import { NButton as s, NInput as c, useMessage as l } from "naive-ui";
|
|
4
4
|
import { get as u } from "lodash-es";
|
|
5
|
+
//#region src/hooks/table/input.tsx
|
|
5
6
|
var d = /* @__PURE__ */ n({
|
|
6
7
|
name: "TableColumnInput",
|
|
7
8
|
props: {
|
|
@@ -84,4 +85,5 @@ function f(e) {
|
|
|
84
85
|
}, null);
|
|
85
86
|
} };
|
|
86
87
|
}
|
|
88
|
+
//#endregion
|
|
87
89
|
export { f as useTableColumnInput };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { createVNode as e } from "vue";
|
|
2
2
|
import { get as t } from "lodash-es";
|
|
3
|
+
//#region src/hooks/table/map.tsx
|
|
3
4
|
function n() {
|
|
4
5
|
return { render: (n) => (r, i) => e("div", { class: "flex flex-col gap-1" }, [(typeof n.maps == "function" ? n.maps(r) : n.maps)?.map((n) => e("div", { class: "flex gap-2 " }, [e("div", { class: "flex text-muted items-center gap-1 whitespace-nowrap" }, [n.icon && e("div", { class: ["size-4", n.icon] }, null), n.label]), e("div", null, [n?.render ? n.render(t(r, n.key || "")) : t(r, n.key || "") || "-"])]))]) };
|
|
5
6
|
}
|
|
7
|
+
//#endregion
|
|
6
8
|
export { n as useTableColumnMap };
|
|
@@ -2,6 +2,7 @@ import { DuxMedia as e } from "../../components/media/media.js";
|
|
|
2
2
|
import "../../components/index.js";
|
|
3
3
|
import { createVNode as t } from "vue";
|
|
4
4
|
import { get as n } from "lodash-es";
|
|
5
|
+
//#region src/hooks/table/media.tsx
|
|
5
6
|
function r() {
|
|
6
7
|
return { render: (r) => (i, a) => {
|
|
7
8
|
let o = typeof r.title == "function" ? r.title(i) : n(i, r.title || ""), s = typeof r.desc == "function" ? r.desc(i) : n(i, r.desc || ""), c = typeof r.image == "function" ? r.image(i) : n(i, r.image || "");
|
|
@@ -15,4 +16,5 @@ function r() {
|
|
|
15
16
|
}, null);
|
|
16
17
|
} };
|
|
17
18
|
}
|
|
19
|
+
//#endregion
|
|
18
20
|
export { r as useTableColumnMedia };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Fragment as e, createVNode as t } from "vue";
|
|
2
2
|
import { NTag as n } from "naive-ui";
|
|
3
3
|
import { findKey as r, get as i } from "lodash-es";
|
|
4
|
+
//#region src/hooks/table/status.tsx
|
|
4
5
|
function a() {
|
|
5
6
|
return { render: (a) => (o, s) => {
|
|
6
7
|
let c = a?.key || "status", l = r(a.maps, (e) => e ? c ? e?.value === i(o, c) : "default" : !1), u = l ? a.maps?.[l] : void 0;
|
|
@@ -19,4 +20,5 @@ function a() {
|
|
|
19
20
|
}) : null;
|
|
20
21
|
} };
|
|
21
22
|
}
|
|
23
|
+
//#endregion
|
|
22
24
|
export { a as useTableColumnStatus };
|
|
@@ -2,6 +2,7 @@ import { createVNode as e, defineComponent as t, ref as n, watch as r } from "vu
|
|
|
2
2
|
import { useCustomMutation as i } from "@duxweb/dvha-core";
|
|
3
3
|
import { NSwitch as a, useMessage as o } from "naive-ui";
|
|
4
4
|
import { get as s } from "lodash-es";
|
|
5
|
+
//#region src/hooks/table/switch.tsx
|
|
5
6
|
function c(c) {
|
|
6
7
|
let { mutateAsync: l } = i(), u = o(), d = /* @__PURE__ */ t({
|
|
7
8
|
name: "DuxTableSwitchCell",
|
|
@@ -52,4 +53,5 @@ function c(c) {
|
|
|
52
53
|
}, null) : null;
|
|
53
54
|
} };
|
|
54
55
|
}
|
|
56
|
+
//#endregion
|
|
55
57
|
export { c as useTableColumnSwitch };
|
package/dist/esm/hooks/table.js
CHANGED
|
@@ -2,6 +2,7 @@ import { createTextVNode as e, createVNode as t, ref as n } from "vue";
|
|
|
2
2
|
import { useI18n as r } from "@duxweb/dvha-core";
|
|
3
3
|
import { NProgress as i, useMessage as a, useNotification as o } from "naive-ui";
|
|
4
4
|
import { useNaiveTable as s } from "@duxweb/dvha-naiveui";
|
|
5
|
+
//#region src/hooks/table.tsx
|
|
5
6
|
function c(c) {
|
|
6
7
|
let { t: l } = r(), u = a(), d = o(), f = n(null);
|
|
7
8
|
return s({
|
|
@@ -65,4 +66,5 @@ function c(c) {
|
|
|
65
66
|
}
|
|
66
67
|
});
|
|
67
68
|
}
|
|
69
|
+
//#endregion
|
|
68
70
|
export { c as useTable };
|
package/dist/esm/hooks/ui.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useUIStore as e } from "../stores/ui.js";
|
|
2
2
|
import { storeToRefs as t } from "pinia";
|
|
3
|
+
//#region src/hooks/ui.ts
|
|
3
4
|
function n() {
|
|
4
5
|
let n = e(), { menuCollapsed: r, cmdVisible: i, menuMobileCollapsed: a } = t(n);
|
|
5
6
|
return {
|
|
@@ -11,4 +12,5 @@ function n() {
|
|
|
11
12
|
setCmdVisible: n.setCmdVisible
|
|
12
13
|
};
|
|
13
14
|
}
|
|
15
|
+
//#endregion
|
|
14
16
|
export { n as useUI };
|
package/dist/esm/langs/en-US.js
CHANGED
package/dist/esm/langs/zh-CN.js
CHANGED
package/dist/esm/main.js
CHANGED
|
@@ -10,6 +10,7 @@ import "vue-cropper/dist/index.css";
|
|
|
10
10
|
import "aieditor/dist/style.css";
|
|
11
11
|
import "@vue-flow/core/dist/style.css";
|
|
12
12
|
import "@vue-flow/core/dist/theme-default.css";
|
|
13
|
+
//#region src/main.ts
|
|
13
14
|
function a() {
|
|
14
15
|
return t(), i({
|
|
15
16
|
defaults: e(!1),
|
|
@@ -18,4 +19,5 @@ function a() {
|
|
|
18
19
|
e.component("v-chart", r), e.use(n);
|
|
19
20
|
} };
|
|
20
21
|
}
|
|
22
|
+
//#endregion
|
|
21
23
|
export { a as createDuxPro };
|
|
@@ -10,7 +10,8 @@ import { DuxMobileMenu as o } from "./menu/mobile.js";
|
|
|
10
10
|
import { createVNode as s, defineComponent as c } from "vue";
|
|
11
11
|
import { useManage as l } from "@duxweb/dvha-core";
|
|
12
12
|
import { OverlaysProvider as u } from "@overlastic/vue";
|
|
13
|
-
|
|
13
|
+
//#region src/pages/authLayout.tsx
|
|
14
|
+
var d = /* @__PURE__ */ c({
|
|
14
15
|
name: "DuxAuthLayout",
|
|
15
16
|
setup() {
|
|
16
17
|
let { menuCollapsed: c } = e(), d = l();
|
|
@@ -29,4 +30,5 @@ const d = /* @__PURE__ */ c({
|
|
|
29
30
|
] })] });
|
|
30
31
|
}
|
|
31
32
|
});
|
|
33
|
+
//#endregion
|
|
32
34
|
export { d as DuxAuthLayout };
|
|
@@ -22,7 +22,8 @@ import L from "highlight.js/lib/languages/shell";
|
|
|
22
22
|
import R from "highlight.js/lib/languages/sql";
|
|
23
23
|
import z from "highlight.js/lib/languages/typescript";
|
|
24
24
|
import B from "highlight.js/lib/languages/xml";
|
|
25
|
-
|
|
25
|
+
//#region src/pages/layout/global.tsx
|
|
26
|
+
var V = /* @__PURE__ */ a({
|
|
26
27
|
name: "DuxGlobalLayout",
|
|
27
28
|
setup(a, { slots: V }) {
|
|
28
29
|
let { isDark: H, cssInit: U, getSceneColor: W } = d(), G = o("pageLoading"), K = S(), { lightTheme: q, darkTheme: J } = n();
|
|
@@ -47,4 +48,5 @@ const V = /* @__PURE__ */ a({
|
|
|
47
48
|
}, { default: () => [i(h, null, { default: () => [i(p, null, { default: () => [i(g, null, { default: () => [i(m, null, { default: () => [V.default?.()] })] })] })] })] });
|
|
48
49
|
}
|
|
49
50
|
});
|
|
51
|
+
//#endregion
|
|
50
52
|
export { V as DuxGlobalLayout };
|
|
@@ -6,7 +6,8 @@ import { createVNode as r, defineComponent as i, onMounted as a, onUnmounted as
|
|
|
6
6
|
import { DuxTabRouterView as s, useCheck as c, useManage as l } from "@duxweb/dvha-core";
|
|
7
7
|
import { NButton as u } from "naive-ui";
|
|
8
8
|
import { useIntervalFn as d } from "@vueuse/core";
|
|
9
|
-
|
|
9
|
+
//#region src/pages/layout/page.tsx
|
|
10
|
+
var f = /* @__PURE__ */ i({
|
|
10
11
|
name: "DuxLayoutPage",
|
|
11
12
|
props: {},
|
|
12
13
|
setup() {
|
|
@@ -27,4 +28,5 @@ const f = /* @__PURE__ */ i({
|
|
|
27
28
|
]), r("div", { class: "flex-1 min-w-0" }, [r(n, null, null)])]), r("div", { class: "flex-1 min-h-0 mr-2 ml-2 mb-2 lg:ml-0" }, [r(s, null, null)])]);
|
|
28
29
|
}
|
|
29
30
|
});
|
|
31
|
+
//#endregion
|
|
30
32
|
export { f as DuxLayoutPage };
|
|
@@ -3,7 +3,8 @@ import { useI18n as s, useTabStore as c } from "@duxweb/dvha-core";
|
|
|
3
3
|
import { NDropdown as l, NTab as u, NTabs as d } from "naive-ui";
|
|
4
4
|
import { useRouter as f } from "vue-router";
|
|
5
5
|
import { useNaiveTab as p } from "@duxweb/dvha-naiveui";
|
|
6
|
-
|
|
6
|
+
//#region src/pages/layout/tab.tsx
|
|
7
|
+
var m = /* @__PURE__ */ n({
|
|
7
8
|
name: "DuxPageTab",
|
|
8
9
|
setup(n) {
|
|
9
10
|
let { tabsProps: m, tabs: h } = p(), g = o(), _ = c(), v = f(), { t: y } = s(), b = a({
|
|
@@ -82,4 +83,5 @@ const m = /* @__PURE__ */ n({
|
|
|
82
83
|
}, null)]);
|
|
83
84
|
}
|
|
84
85
|
});
|
|
86
|
+
//#endregion
|
|
85
87
|
export { m as DuxPageTab };
|
package/dist/esm/pages/layout.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { DuxGlobalLayout as e } from "./layout/global.js";
|
|
2
2
|
import { createVNode as t, defineComponent as n } from "vue";
|
|
3
3
|
import { RouterView as r } from "vue-router";
|
|
4
|
-
|
|
4
|
+
//#region src/pages/layout.tsx
|
|
5
|
+
var i = /* @__PURE__ */ n({
|
|
5
6
|
name: "DuxLayout",
|
|
6
7
|
setup() {
|
|
7
8
|
return () => t(e, null, { default: () => [t(r, null, null)] });
|
|
8
9
|
}
|
|
9
10
|
});
|
|
11
|
+
//#endregion
|
|
10
12
|
export { i as DuxLayout };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { createVNode as e, defineComponent as t } from "vue";
|
|
2
|
-
|
|
2
|
+
//#region src/pages/loading.tsx
|
|
3
|
+
var n = /* @__PURE__ */ t({
|
|
3
4
|
name: "DuxLoading",
|
|
4
5
|
setup() {
|
|
5
6
|
return () => e("div", { class: "app-loading" }, [e("div", { class: "app-box-loading" }, null)]);
|
|
6
7
|
}
|
|
7
8
|
});
|
|
9
|
+
//#endregion
|
|
8
10
|
export { n as DuxLoading };
|
package/dist/esm/pages/login.js
CHANGED
|
@@ -4,10 +4,11 @@ import { createVNode as t, defineComponent as n, isVNode as r, reactive as i, re
|
|
|
4
4
|
import { DuxLogo as o, useI18n as s, useLogin as c, useManage as l, useTheme as u } from "@duxweb/dvha-core";
|
|
5
5
|
import { NButton as d, NForm as f, NFormItem as p, NInput as m, useMessage as h } from "naive-ui";
|
|
6
6
|
import g from "clsx";
|
|
7
|
+
//#region src/pages/login.tsx
|
|
7
8
|
function _(e) {
|
|
8
9
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !r(e);
|
|
9
10
|
}
|
|
10
|
-
|
|
11
|
+
var v = /* @__PURE__ */ n({
|
|
11
12
|
name: "DuxLoginPage",
|
|
12
13
|
setup(n, { slots: r }) {
|
|
13
14
|
let v = u(), y = l(), { t: b } = s(), x = a(), S = h(), C = i({
|
|
@@ -87,4 +88,5 @@ const v = /* @__PURE__ */ n({
|
|
|
87
88
|
};
|
|
88
89
|
}
|
|
89
90
|
});
|
|
91
|
+
//#endregion
|
|
90
92
|
export { v as DuxLoginPage };
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { DuxAvatar as e } from "../../components/widget/avatar.js";
|
|
2
|
-
import t from "
|
|
2
|
+
import { useModal as t } from "../../hooks/modal.js";
|
|
3
|
+
import "../../hooks/index.js";
|
|
4
|
+
import n from "./button.js";
|
|
5
|
+
import r from "./remoteMenuModal.js";
|
|
3
6
|
import "../../components/index.js";
|
|
4
|
-
import { computed as
|
|
5
|
-
import { useGetAuth as
|
|
6
|
-
import { NDropdown as
|
|
7
|
-
import { useRouter as
|
|
8
|
-
|
|
7
|
+
import { computed as i, createVNode as a, defineComponent as o, markRaw as s } from "vue";
|
|
8
|
+
import { useGetAuth as c, useI18n as l, useLogout as u, useManage as d, useTheme as f } from "@duxweb/dvha-core";
|
|
9
|
+
import { NDropdown as p } from "naive-ui";
|
|
10
|
+
import { useRouter as m } from "vue-router";
|
|
11
|
+
//#region src/pages/menu/avatar.tsx
|
|
12
|
+
var h = /* @__PURE__ */ o({
|
|
9
13
|
name: "DuxMenuAvatar",
|
|
10
14
|
props: {
|
|
11
15
|
collapsed: {
|
|
@@ -21,136 +25,162 @@ var f = /* @__PURE__ */ i({
|
|
|
21
25
|
default: ""
|
|
22
26
|
}
|
|
23
27
|
},
|
|
24
|
-
setup(
|
|
25
|
-
let { t:
|
|
26
|
-
let e =
|
|
27
|
-
|
|
28
|
+
setup(o) {
|
|
29
|
+
let { t: h } = l(), g = l(), _ = m(), { config: v, getRoutePath: y } = d(), { mutate: b } = u(), { mode: x, primaryColors: S, neutralColors: C, colorMapping: w, setColor: T, setMode: E } = f(), D = t(), O = (e, t) => a("div", { class: "flex gap-2 items-center w-30" }, [a("div", { class: "flex-1 min-w-0" }, [e]), a("div", null, [t && a("div", { class: "i-tabler:check" }, null)])]), k = (e) => a("div", { class: `${e} size-4` }, null), A = i(() => {
|
|
30
|
+
let e = (v.userMenus || []).map((e) => ({
|
|
31
|
+
...e,
|
|
32
|
+
label: h(e.label || "", {}, e.label),
|
|
28
33
|
key: e.key,
|
|
29
|
-
icon: () =>
|
|
34
|
+
icon: () => k(e.icon),
|
|
30
35
|
path: e.path
|
|
31
36
|
}));
|
|
32
|
-
return e
|
|
33
|
-
}),
|
|
37
|
+
return e.length > 0 ? [...e, { type: "divider" }] : [];
|
|
38
|
+
}), j = c(), M = i(() => [
|
|
34
39
|
{
|
|
35
40
|
key: "header",
|
|
36
41
|
type: "render",
|
|
37
|
-
render: () =>
|
|
42
|
+
render: () => a("div", { class: "flex gap-2 px-3 pb-1 pt-1 items-center " }, [a(e, {
|
|
38
43
|
round: !0,
|
|
39
44
|
size: 28,
|
|
40
|
-
src:
|
|
41
|
-
}, null),
|
|
45
|
+
src: j.info?.avatar
|
|
46
|
+
}, null), a("div", { class: "flex flex-col" }, [a("div", { class: "text-sm font-medium" }, [j.info?.nickname]), a("div", { class: "text-xs text-muted" }, [j.info?.username])])])
|
|
42
47
|
},
|
|
43
48
|
{ type: "divider" },
|
|
44
|
-
...
|
|
49
|
+
...A.value,
|
|
45
50
|
{
|
|
46
|
-
label:
|
|
51
|
+
label: h("components.menu.language"),
|
|
47
52
|
key: "locale",
|
|
48
|
-
icon: () =>
|
|
49
|
-
children: [...(
|
|
50
|
-
label: () =>
|
|
53
|
+
icon: () => k("i-tabler:language"),
|
|
54
|
+
children: [...(g.getLocales() || []).map((e) => ({
|
|
55
|
+
label: () => O(h(`locale.${e}`), g.getLocale() === e),
|
|
51
56
|
key: `locale.${e}`
|
|
52
57
|
}))]
|
|
53
58
|
},
|
|
54
59
|
{
|
|
55
|
-
label:
|
|
60
|
+
label: h("components.menu.color"),
|
|
56
61
|
key: "color",
|
|
57
|
-
icon: () =>
|
|
62
|
+
icon: () => k("i-tabler:palette"),
|
|
58
63
|
children: [{
|
|
59
|
-
label: () =>
|
|
64
|
+
label: () => a("div", { class: "flex gap-2 items-center w-30" }, [a("div", {
|
|
60
65
|
class: "size-2 rounded-full",
|
|
61
66
|
style: { backgroundColor: "rgb(var(--ui-color-primary))" }
|
|
62
|
-
}, null),
|
|
67
|
+
}, null), a("div", null, [h("components.menu.primaryColor")])]),
|
|
63
68
|
key: "color.primary",
|
|
64
|
-
children:
|
|
65
|
-
label: () =>
|
|
69
|
+
children: S.value?.map((e) => ({
|
|
70
|
+
label: () => O(a("div", { class: "flex gap-2 items-center" }, [a("div", {
|
|
66
71
|
class: "size-2 rounded-full",
|
|
67
72
|
style: { backgroundColor: `rgb(var(--base-color-${e}-500))` }
|
|
68
|
-
}, null),
|
|
73
|
+
}, null), a("div", null, [e])]), w.value.primary === e),
|
|
69
74
|
key: `color.primary.${e}`
|
|
70
75
|
}))
|
|
71
76
|
}, {
|
|
72
|
-
label: () =>
|
|
77
|
+
label: () => a("div", { class: "flex gap-2 items-center w-30" }, [a("div", {
|
|
73
78
|
class: "size-2 rounded-full",
|
|
74
79
|
style: { backgroundColor: "rgb(var(--ui-color-gray-600))" }
|
|
75
|
-
}, null),
|
|
80
|
+
}, null), a("div", null, [h("components.menu.neutralColor")])]),
|
|
76
81
|
key: "color.neutral",
|
|
77
|
-
children:
|
|
78
|
-
label: () =>
|
|
82
|
+
children: C.value?.map((e) => ({
|
|
83
|
+
label: () => O(a("div", { class: "flex gap-2 items-center" }, [a("div", {
|
|
79
84
|
class: "size-2 rounded-full",
|
|
80
85
|
style: { backgroundColor: `rgb(var(--base-color-${e}-600))` }
|
|
81
|
-
}, null),
|
|
86
|
+
}, null), a("div", null, [e])]), w.value.gray === e),
|
|
82
87
|
key: `color.neutral.${e}`
|
|
83
88
|
}))
|
|
84
89
|
}]
|
|
85
90
|
},
|
|
86
91
|
{
|
|
87
|
-
label:
|
|
92
|
+
label: h("components.menu.theme"),
|
|
88
93
|
key: "theme",
|
|
89
|
-
icon: () =>
|
|
94
|
+
icon: () => k("i-tabler:brightness-half"),
|
|
90
95
|
children: [
|
|
91
96
|
{
|
|
92
|
-
label: () =>
|
|
97
|
+
label: () => O(h("components.menu.followSystem"), x.value === "auto"),
|
|
93
98
|
key: "theme.auto"
|
|
94
99
|
},
|
|
95
100
|
{
|
|
96
|
-
label: () =>
|
|
101
|
+
label: () => O(h("components.menu.lightMode"), x.value === "light"),
|
|
97
102
|
key: "theme.light"
|
|
98
103
|
},
|
|
99
104
|
{
|
|
100
|
-
label: () =>
|
|
105
|
+
label: () => O(h("components.menu.darkMode"), x.value === "dark"),
|
|
101
106
|
key: "theme.dark"
|
|
102
107
|
}
|
|
103
108
|
]
|
|
104
109
|
},
|
|
105
110
|
{ type: "divider" },
|
|
106
111
|
{
|
|
107
|
-
label:
|
|
112
|
+
label: h("components.menu.logout"),
|
|
108
113
|
key: "logout",
|
|
109
|
-
icon: () =>
|
|
114
|
+
icon: () => k("i-tabler:logout")
|
|
110
115
|
}
|
|
111
116
|
]);
|
|
112
|
-
function
|
|
113
|
-
let n = e.lastIndexOf("."), [
|
|
114
|
-
switch (
|
|
117
|
+
function N(e, t) {
|
|
118
|
+
let n = e.lastIndexOf("."), [i, a] = n === -1 ? [e, ""] : [e.substring(0, n), e.substring(n + 1)], o = t, c = String(o?.type || (typeof o?.callback == "function" ? "callback" : o?.loader ? "modal" : o?.url ? "link" : "route"));
|
|
119
|
+
switch (i) {
|
|
115
120
|
case "locale":
|
|
116
|
-
|
|
121
|
+
g.changeLocale(a);
|
|
117
122
|
break;
|
|
118
123
|
case "color.primary":
|
|
119
|
-
|
|
124
|
+
T("primary", a);
|
|
120
125
|
break;
|
|
121
126
|
case "color.neutral":
|
|
122
|
-
|
|
127
|
+
T("gray", a);
|
|
123
128
|
break;
|
|
124
129
|
case "theme":
|
|
125
|
-
|
|
130
|
+
E(a);
|
|
126
131
|
break;
|
|
127
132
|
case "logout":
|
|
128
|
-
|
|
133
|
+
b();
|
|
129
134
|
break;
|
|
130
135
|
default:
|
|
131
|
-
if (
|
|
132
|
-
|
|
136
|
+
if (c === "callback") {
|
|
137
|
+
o?.callback?.();
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
if (c === "modal") {
|
|
141
|
+
if (!o?.loader) return;
|
|
142
|
+
D.show({
|
|
143
|
+
title: o?.title || String(o?.label || ""),
|
|
144
|
+
width: o?.width,
|
|
145
|
+
draggable: o?.draggable,
|
|
146
|
+
component: s(r),
|
|
147
|
+
componentProps: {
|
|
148
|
+
loader: String(o.loader),
|
|
149
|
+
componentProps: o?.componentProps
|
|
150
|
+
}
|
|
151
|
+
}).catch(() => {});
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
if (c === "link") {
|
|
155
|
+
let e = String(o?.url || o?.path || "");
|
|
156
|
+
if (!e) return;
|
|
157
|
+
window.open(e, "_blank");
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
if (!o?.path) return;
|
|
161
|
+
_.push(y(o.path));
|
|
133
162
|
}
|
|
134
163
|
}
|
|
135
|
-
return () =>
|
|
136
|
-
options:
|
|
164
|
+
return () => a(p, {
|
|
165
|
+
options: M.value,
|
|
137
166
|
placement: "bottom-start",
|
|
138
167
|
trigger: "click",
|
|
139
|
-
onSelect:
|
|
168
|
+
onSelect: N,
|
|
140
169
|
width: 200
|
|
141
|
-
}, { default: () => [
|
|
142
|
-
class:
|
|
143
|
-
labelClass:
|
|
144
|
-
collapsed:
|
|
170
|
+
}, { default: () => [a(n, {
|
|
171
|
+
class: o.btnClass,
|
|
172
|
+
labelClass: o.btnLabelClass,
|
|
173
|
+
collapsed: o.collapsed
|
|
145
174
|
}, {
|
|
146
|
-
icon: () =>
|
|
175
|
+
icon: () => a(e, {
|
|
147
176
|
class: "group-hover:shadow-lg",
|
|
148
177
|
round: !0,
|
|
149
178
|
size: 28,
|
|
150
|
-
src:
|
|
179
|
+
src: j.info?.avatar
|
|
151
180
|
}, null),
|
|
152
|
-
default: () =>
|
|
181
|
+
default: () => a("div", { class: "flex justify-between" }, [a("div", { class: "flex flex-col" }, [a("div", { class: "text-sm font-medium" }, [j.info?.nickname]), a("div", { class: "text-xs text-muted" }, [j.info?.username])])])
|
|
153
182
|
})] });
|
|
154
183
|
}
|
|
155
184
|
});
|
|
156
|
-
|
|
185
|
+
//#endregion
|
|
186
|
+
export { h as default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useUI as e } from "../../hooks/ui.js";
|
|
2
2
|
import "../../hooks/index.js";
|
|
3
3
|
import { createVNode as t, defineComponent as n } from "vue";
|
|
4
|
+
//#region src/pages/menu/button.tsx
|
|
4
5
|
var r = /* @__PURE__ */ n({
|
|
5
6
|
name: "DuxMenuButton",
|
|
6
7
|
props: {
|
|
@@ -31,4 +32,5 @@ var r = /* @__PURE__ */ n({
|
|
|
31
32
|
}, [r.icon?.(), n.collapsed === !1 && !i.value && t("div", { class: ["overflow-hidden ease-in-out whitespace-nowrap text-left min-w-0 flex-1", n.labelClass] }, [r.default?.()])]);
|
|
32
33
|
}
|
|
33
34
|
});
|
|
35
|
+
//#endregion
|
|
34
36
|
export { r as default };
|
|
@@ -7,7 +7,8 @@ import { useRouter as p } from "vue-router";
|
|
|
7
7
|
import { useMagicKeys as m, watchThrottled as h } from "@vueuse/core";
|
|
8
8
|
import { cloneDeep as g } from "lodash-es";
|
|
9
9
|
import { Command as _ } from "vue-command-palette";
|
|
10
|
-
|
|
10
|
+
//#region src/pages/menu/cmd.tsx
|
|
11
|
+
var v = /* @__PURE__ */ a({
|
|
11
12
|
name: "DuxMenuCmd",
|
|
12
13
|
setup() {
|
|
13
14
|
let { cmdVisible: a, setCmdVisible: v } = e(), y = m(), b = y["Meta+K"], x = o(), S = o([]), C = p(), w = l(), { setMode: T } = u(), E = o(""), { t: D } = c(), O = o(), k = (e) => {
|
|
@@ -95,4 +96,5 @@ const v = /* @__PURE__ */ a({
|
|
|
95
96
|
});
|
|
96
97
|
}
|
|
97
98
|
});
|
|
99
|
+
//#endregion
|
|
98
100
|
export { v as DuxMenuCmd };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { computed as e, createVNode as t, defineComponent as n } from "vue";
|
|
2
2
|
import { useI18n as r, useTheme as i } from "@duxweb/dvha-core";
|
|
3
3
|
import { NButton as a, NTooltip as o } from "naive-ui";
|
|
4
|
+
//#region src/pages/menu/dark.tsx
|
|
4
5
|
var s = /* @__PURE__ */ n({
|
|
5
6
|
name: "DuxMenuDark",
|
|
6
7
|
setup() {
|
|
@@ -38,4 +39,5 @@ var s = /* @__PURE__ */ n({
|
|
|
38
39
|
});
|
|
39
40
|
}
|
|
40
41
|
});
|
|
42
|
+
//#endregion
|
|
41
43
|
export { s as default };
|