@done-coding/admin-core 0.18.0 → 0.19.0
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/README.md +77 -1
- package/es/_virtual/_plugin-vue_export-helper.mjs +7 -6
- package/es/bridge/config-hook.mjs +49 -37
- package/es/bridge/index.mjs +152 -109
- package/es/bridge/layout.mjs +45 -31
- package/es/bridge/plugin.mjs +22 -12
- package/es/bridge/route.mjs +59 -50
- package/es/bridge/state.mjs +54 -39
- package/es/bridge/storage.mjs +18 -8
- package/es/bridge/theme/index.mjs +200 -97
- package/es/bridge/theme/persist.mjs +11 -7
- package/es/bridge/theme/system-dark.mjs +13 -6
- package/es/components/app-layout/AppAside.vue.mjs +4 -4
- package/es/components/app-layout/AppAside.vue2.mjs +37 -30
- package/es/components/app-layout/AppBody.vue.mjs +4 -4
- package/es/components/app-layout/AppBody.vue2.mjs +97 -60
- package/es/components/app-layout/AppBreadcrumb.vue.mjs +4 -4
- package/es/components/app-layout/AppBreadcrumb.vue2.mjs +59 -38
- package/es/components/app-layout/AppCollapseToggle.vue.mjs +4 -4
- package/es/components/app-layout/AppCollapseToggle.vue2.mjs +51 -42
- package/es/components/app-layout/AppFooter.vue.mjs +4 -4
- package/es/components/app-layout/AppFooter.vue2.mjs +15 -12
- package/es/components/app-layout/AppHeader.vue.mjs +4 -4
- package/es/components/app-layout/AppHeader.vue2.mjs +81 -58
- package/es/components/app-layout/AppLayout.vue.mjs +4 -4
- package/es/components/app-layout/AppLayout.vue2.mjs +148 -112
- package/es/components/app-layout/AppPage.vue.mjs +4 -4
- package/es/components/app-layout/AppPage.vue2.mjs +254 -197
- package/es/components/app-layout/AppShell.vue.mjs +44 -42
- package/es/components/app-layout/AppShell.vue2.mjs +2 -2
- package/es/components/app-layout/AppSidebar.vue.mjs +4 -4
- package/es/components/app-layout/AppSidebar.vue2.mjs +76 -59
- package/es/components/app-layout/AppTheme.vue.mjs +4 -4
- package/es/components/app-layout/AppTheme.vue2.mjs +69 -57
- package/es/components/app-layout/app-page-geometry.mjs +44 -42
- package/es/components/app-layout/keep-alive.mjs +27 -19
- package/es/components/app-layout/viewport.mjs +4 -3
- package/es/components/data-view/DataListView.vue.mjs +4 -4
- package/es/components/data-view/DataListView.vue2.mjs +133 -93
- package/es/components/data-view/DataListViewItem.vue.mjs +4 -4
- package/es/components/data-view/DataListViewItem.vue2.mjs +11 -9
- package/es/components/data-view/utils.mjs +36 -34
- package/es/components/display/ActionBtn.vue.mjs +94 -71
- package/es/components/display/ActionBtn.vue2.mjs +2 -2
- package/es/components/display/ActionBtnGroup.vue.mjs +54 -48
- package/es/components/display/ActionBtnGroup.vue2.mjs +2 -2
- package/es/components/display/ActionConfirm.vue.mjs +4 -4
- package/es/components/display/ActionConfirm.vue2.mjs +116 -92
- package/es/components/display/BooleanTag.vue.mjs +24 -18
- package/es/components/display/BooleanTag.vue2.mjs +2 -2
- package/es/components/display/HeightProvider.vue.mjs +37 -27
- package/es/components/display/HeightProvider.vue2.mjs +2 -2
- package/es/components/display/TabsHeader.vue.mjs +4 -4
- package/es/components/display/TabsHeader.vue2.mjs +86 -57
- package/es/components/display/TabsMain.vue.mjs +156 -125
- package/es/components/display/TabsMain.vue2.mjs +2 -2
- package/es/components/display/TabsNaturalFlow.vue.mjs +15 -11
- package/es/components/display/TabsNaturalFlow.vue2.mjs +2 -2
- package/es/components/display/TabsRefineFlow.vue.mjs +55 -42
- package/es/components/display/TabsRefineFlow.vue2.mjs +2 -2
- package/es/components/display/TabsTile.vue.mjs +4 -4
- package/es/components/display/TabsTile.vue2.mjs +204 -146
- package/es/components/display/WatchSize.vue.mjs +50 -30
- package/es/components/display/WatchSize.vue2.mjs +2 -2
- package/es/components/display/use-tabs-query-sync.mjs +21 -17
- package/es/components/form/FormItem.vue.mjs +4 -4
- package/es/components/form/FormItem.vue2.mjs +183 -121
- package/es/components/form/FormItemNestForm.vue.mjs +4 -4
- package/es/components/form/FormItemNestForm.vue2.mjs +38 -34
- package/es/components/form/FormItemNestFormList.vue.mjs +4 -4
- package/es/components/form/FormItemNestFormList.vue2.mjs +135 -106
- package/es/components/form/FormMain.vue.mjs +4 -4
- package/es/components/form/FormMain.vue2.mjs +226 -139
- package/es/components/form/FormRadioGroup.vue.mjs +67 -52
- package/es/components/form/FormRadioGroup.vue2.mjs +2 -2
- package/es/components/form/FormSearch.vue.mjs +4 -4
- package/es/components/form/FormSearch.vue2.mjs +194 -156
- package/es/components/form/FormSelect.vue.mjs +69 -42
- package/es/components/form/FormSelect.vue2.mjs +2 -2
- package/es/components/form/FormSubmitBtn.vue.mjs +30 -25
- package/es/components/form/FormSubmitBtn.vue2.mjs +2 -2
- package/es/components/form/FormSubmitPanel.vue.mjs +4 -4
- package/es/components/form/FormSubmitPanel.vue2.mjs +129 -96
- package/es/components/form/FormTree.vue.mjs +19 -16
- package/es/components/form/FormTree.vue2.mjs +2 -2
- package/es/components/form/FormVerifyCode.vue.mjs +58 -41
- package/es/components/form/FormVerifyCode.vue2.mjs +2 -2
- package/es/components/form/FormVerifyImage.vue.mjs +4 -4
- package/es/components/form/FormVerifyImage.vue2.mjs +62 -40
- package/es/components/form/form-search-utils.mjs +83 -52
- package/es/components/form/nest-form-item-list.mjs +63 -55
- package/es/components/form/nest-form-item.mjs +30 -30
- package/es/components/form/nest-registry.mjs +4 -4
- package/es/components/form/use-form-submit.mjs +18 -15
- package/es/components/form/use-layout-by-container.mjs +23 -15
- package/es/components/form/use-nest-form-list.mjs +19 -16
- package/es/components/form/use-nest-form.mjs +37 -28
- package/es/components/form/use-nest-layout-scale.mjs +11 -10
- package/es/components/form/utils.mjs +233 -145
- package/es/components/list-page/ListPage.vue.mjs +4 -4
- package/es/components/list-page/ListPage.vue2.mjs +313 -207
- package/es/components/list-page/use-sticky.mjs +45 -33
- package/es/components/menu/MenuItemSub.vue.mjs +47 -43
- package/es/components/menu/MenuItemSub.vue2.mjs +2 -2
- package/es/components/menu/MenuTree.vue.mjs +84 -61
- package/es/components/menu/MenuTree.vue2.mjs +2 -2
- package/es/components/misc/AutoRefresh.vue.mjs +4 -4
- package/es/components/misc/AutoRefresh.vue2.mjs +78 -53
- package/es/components/misc/AutoRefreshGroup.vue.mjs +4 -4
- package/es/components/misc/AutoRefreshGroup.vue2.mjs +54 -51
- package/es/components/misc/SelectModule.vue.mjs +54 -45
- package/es/components/misc/SelectModule.vue2.mjs +2 -2
- package/es/components/misc/TriggerAutoImport.vue.mjs +7 -5
- package/es/components/misc/TriggerAutoImport.vue2.mjs +2 -2
- package/es/components/modal/ModalConfirm.vue.mjs +4 -4
- package/es/components/modal/ModalConfirm.vue2.mjs +160 -125
- package/es/components/modal/ModalDetail.vue.mjs +50 -39
- package/es/components/modal/ModalDetail.vue2.mjs +2 -2
- package/es/components/modal/ModalForm.vue.mjs +63 -52
- package/es/components/modal/ModalForm.vue2.mjs +2 -2
- package/es/components/modal/ModalPorter.vue.mjs +51 -36
- package/es/components/modal/ModalPorter.vue2.mjs +2 -2
- package/es/components/modal/ModalShelf.vue.mjs +38 -28
- package/es/components/modal/ModalShelf.vue2.mjs +2 -2
- package/es/components/modal/modal-shelf-core.mjs +52 -36
- package/es/components/modal/modal-shelf-hierarchy.mjs +11 -9
- package/es/components/panel/PanelEditSwitch.vue.mjs +4 -4
- package/es/components/panel/PanelEditSwitch.vue2.mjs +88 -66
- package/es/components/panel/PanelItem.vue.mjs +4 -4
- package/es/components/panel/PanelItem.vue2.mjs +103 -77
- package/es/components/panel/PanelItemNestForm.vue.mjs +4 -4
- package/es/components/panel/PanelItemNestForm.vue2.mjs +61 -52
- package/es/components/panel/PanelItemNestPanel.vue.mjs +22 -20
- package/es/components/panel/PanelItemNestPanel.vue2.mjs +2 -2
- package/es/components/panel/PanelMain.vue.mjs +4 -4
- package/es/components/panel/PanelMain.vue2.mjs +92 -74
- package/es/components/panel/nest-panel-form.mjs +44 -38
- package/es/components/panel/nest-panel-item.mjs +18 -17
- package/es/components/slot-layout/SlotLayoutFlowAside.vue.mjs +4 -4
- package/es/components/slot-layout/SlotLayoutFlowAside.vue2.mjs +55 -42
- package/es/components/slot-layout/SlotLayoutTemplate.vue.mjs +11 -9
- package/es/components/slot-layout/SlotLayoutTemplate.vue2.mjs +2 -2
- package/es/components/table/TableMain.vue.mjs +4 -4
- package/es/components/table/TableMain.vue2.mjs +378 -275
- package/es/components/table/TableSkeleton.vue.mjs +4 -4
- package/es/components/table/TableSkeleton.vue2.mjs +95 -74
- package/es/components/table/TableToolbar.vue.mjs +4 -4
- package/es/components/table/TableToolbar.vue2.mjs +170 -154
- package/es/components/table/ToolbarButtons.vue.mjs +12 -10
- package/es/components/table/ToolbarButtons.vue2.mjs +2 -2
- package/es/components/table/constants.mjs +4 -3
- package/es/components/table/use-fill-height.mjs +12 -10
- package/es/components/table/use-table-skeleton.mjs +19 -15
- package/es/config/list-model.mjs +2 -2
- package/es/config/route.mjs +4 -3
- package/es/helpers/form.mjs +35 -25
- package/es/helpers/list-helper.mjs +59 -44
- package/es/hooks/activated.mjs +49 -33
- package/es/hooks/feel-size.mjs +39 -23
- package/es/hooks/menus-dispatch.mjs +68 -35
- package/es/hooks/timeout.mjs +29 -14
- package/es/hooks/use-breakpoint.mjs +35 -23
- package/es/hooks/use-channel-viewport-height.mjs +30 -20
- package/es/hooks/use-custom-breakpoint.mjs +48 -31
- package/es/hooks/use-observe-size.mjs +37 -20
- package/es/hooks/use-theme-apply.mjs +175 -124
- package/es/hooks/use-viewport-apply.mjs +39 -27
- package/es/index.mjs +239 -239
- package/es/inject/key.mjs +52 -41
- package/es/injectInfo.json.mjs +2 -2
- package/es/router/group-redirect.mjs +22 -16
- package/es/router/guard/index.mjs +26 -21
- package/es/router/guard/login.mjs +4 -2
- package/es/router/guard/permission.mjs +4 -2
- package/es/store/app.mjs +163 -123
- package/es/store/router-permission.mjs +75 -46
- package/es/store/user.mjs +100 -71
- package/es/style.css +769 -1
- package/es/utils/dom.mjs +20 -16
- package/es/utils/export.mjs +34 -18
- package/es/utils/id.mjs +5 -3
- package/es/utils/router.mjs +21 -14
- package/es/utils/theme-scale.mjs +50 -35
- package/es/utils/time.mjs +20 -14
- package/package.json +4 -3
- package/src/bridge/README.md +5 -0
- package/src/bridge/docs/README.md +72 -0
- package/src/components/README.md +84 -0
- package/src/components/app-layout/README.md +46 -0
- package/src/components/app-layout/docs/README-AppAside.md +69 -0
- package/src/components/app-layout/docs/README-AppBody.md +81 -0
- package/src/components/app-layout/docs/README-AppBreadcrumb.md +71 -0
- package/src/components/app-layout/docs/README-AppFooter.md +41 -0
- package/src/components/app-layout/docs/README-AppHeader.md +73 -0
- package/src/components/app-layout/docs/README-AppLayout.md +83 -0
- package/src/components/app-layout/docs/README-AppPage.md +80 -0
- package/src/components/app-layout/docs/README-AppSidebar.md +70 -0
- package/src/components/app-layout/docs/README-AppTheme.md +66 -0
- package/src/components/data-view/README.md +19 -0
- package/src/components/data-view/docs/README-DataListView.md +114 -0
- package/src/components/display/README.md +23 -0
- package/src/components/display/docs/README-ActionBtn.md +84 -0
- package/src/components/display/docs/README-ActionBtnGroup.md +96 -0
- package/src/components/display/docs/README-ActionConfirm.md +77 -0
- package/src/components/display/docs/README-BooleanTag.md +76 -0
- package/src/components/display/docs/README-HeightProvider.md +74 -0
- package/src/components/display/docs/README-TabsMain.md +99 -0
- package/src/components/display/docs/README-WatchSize.md +70 -0
- package/src/components/form/README.md +24 -0
- package/src/components/form/docs/README-FormItemNestForm.md +86 -0
- package/src/components/form/docs/README-FormItemNestFormList.md +93 -0
- package/src/components/form/docs/README-FormMain.md +101 -0
- package/src/components/form/docs/README-FormSearch.md +89 -0
- package/src/components/form/docs/README-FormSubmitBtn.md +72 -0
- package/src/components/form/docs/README-FormSubmitPanel.md +97 -0
- package/src/components/list-page/README.md +16 -0
- package/src/components/list-page/docs/README-ListPage.md +136 -0
- package/src/components/menu/README.md +19 -0
- package/src/components/menu/docs/README-MenuItemSub.md +53 -0
- package/src/components/menu/docs/README-MenuTree.md +76 -0
- package/src/components/misc/README.md +21 -0
- package/src/components/misc/docs/README-AutoRefresh.md +74 -0
- package/src/components/misc/docs/README-AutoRefreshGroup.md +74 -0
- package/src/components/misc/docs/README-SelectModule.md +72 -0
- package/src/components/modal/README.md +21 -0
- package/src/components/modal/docs/README-ModalConfirm.md +105 -0
- package/src/components/modal/docs/README-ModalDetail.md +103 -0
- package/src/components/modal/docs/README-ModalForm.md +97 -0
- package/src/components/modal/docs/README-ModalPorter.md +92 -0
- package/src/components/modal/docs/README-ModalShelf.md +115 -0
- package/src/components/panel/README.md +19 -0
- package/src/components/panel/docs/README-PanelMain.md +149 -0
- package/src/components/slot-layout/README.md +17 -0
- package/src/components/slot-layout/docs/README-SlotLayoutFlowAside.md +83 -0
- package/src/components/slot-layout/docs/README-SlotLayoutTemplate.md +73 -0
- package/src/components/table/README.md +17 -0
- package/src/components/table/docs/README-TableMain.md +140 -0
- package/src/hooks/README.md +5 -0
- package/src/hooks/docs/README.md +49 -0
- package/types/bridge/config-hook.d.ts +68 -0
- package/types/bridge/index.d.ts +411 -0
- package/types/bridge/layout.d.ts +40 -0
- package/types/bridge/plugin.d.ts +18 -0
- package/types/bridge/route.d.ts +20 -1
- package/types/bridge/state.d.ts +14 -0
- package/types/bridge/storage.d.ts +9 -0
- package/types/bridge/theme/index.d.ts +7 -0
- package/types/bridge/theme/persist.d.ts +12 -0
- package/types/bridge/theme/system-dark.d.ts +12 -0
- package/types/bridge/theme/types.d.ts +238 -0
- package/types/components/app-layout/AppAside.vue.d.ts +1 -0
- package/types/components/app-layout/AppCollapseToggle.vue.d.ts +3 -0
- package/types/components/app-layout/AppHeader.vue.d.ts +3 -0
- package/types/components/app-layout/AppLayout.vue.d.ts +12 -0
- package/types/components/app-layout/AppPage.vue.d.ts +17 -0
- package/types/components/app-layout/AppSidebar.vue.d.ts +2 -0
- package/types/components/app-layout/app-page-geometry.d.ts +48 -0
- package/types/components/app-layout/keep-alive.d.ts +17 -0
- package/types/components/app-layout/types.d.ts +125 -0
- package/types/components/app-layout/viewport.d.ts +28 -0
- package/types/components/data-view/DataListViewItem.vue.d.ts +8 -0
- package/types/components/data-view/index.d.ts +4 -0
- package/types/components/data-view/types.d.ts +42 -0
- package/types/components/data-view/utils.d.ts +3 -0
- package/types/components/display/TabsHeader.vue.d.ts +2 -0
- package/types/components/display/TabsMain.vue.d.ts +2 -0
- package/types/components/display/TabsRefineFlow.vue.d.ts +1 -0
- package/types/components/display/TabsTile.vue.d.ts +247 -12
- package/types/components/display/WatchSize.vue.d.ts +9 -0
- package/types/components/display/index.d.ts +37 -1
- package/types/components/display/types.d.ts +163 -0
- package/types/components/display/use-tabs-query-sync.d.ts +29 -0
- package/types/components/form/FormItemNestForm.vue.d.ts +5 -0
- package/types/components/form/FormItemNestFormList.vue.d.ts +17 -0
- package/types/components/form/FormVerifyCode.vue.d.ts +9 -0
- package/types/components/form/FormVerifyImage.vue.d.ts +1 -0
- package/types/components/form/form-search-utils.d.ts +34 -0
- package/types/components/form/nest-form-item-list.d.ts +28 -0
- package/types/components/form/nest-form-item.d.ts +21 -0
- package/types/components/form/nest-registry.d.ts +14 -0
- package/types/components/form/types.d.ts +208 -8
- package/types/components/form/use-form-submit.d.ts +13 -0
- package/types/components/form/use-layout-by-container.d.ts +23 -0
- package/types/components/form/use-nest-form-list.d.ts +13 -0
- package/types/components/form/use-nest-form.d.ts +15 -0
- package/types/components/form/use-nest-layout-scale.d.ts +12 -0
- package/types/components/form/utils.d.ts +56 -1
- package/types/components/list-page/ListPage.vue.d.ts +6 -0
- package/types/components/list-page/types.d.ts +50 -2
- package/types/components/list-page/use-sticky.d.ts +23 -0
- package/types/components/misc/index.d.ts +6 -1
- package/types/components/misc/types.d.ts +7 -0
- package/types/components/modal/ModalConfirm.vue.d.ts +29 -0
- package/types/components/modal/index.d.ts +7 -1
- package/types/components/modal/modal-shelf-core.d.ts +3 -0
- package/types/components/modal/modal-shelf-hierarchy.d.ts +4 -0
- package/types/components/modal/modal-shelf-types.d.ts +34 -0
- package/types/components/modal/types.d.ts +63 -2
- package/types/components/panel/PanelItemNestForm.vue.d.ts +6 -0
- package/types/components/panel/PanelItemNestPanel.vue.d.ts +5 -0
- package/types/components/panel/nest-panel-form.d.ts +21 -0
- package/types/components/panel/nest-panel-item.d.ts +14 -0
- package/types/components/panel/types.d.ts +52 -1
- package/types/components/slot-layout/SlotLayoutTemplate.vue.d.ts +21 -0
- package/types/components/slot-layout/types.d.ts +4 -0
- package/types/components/table/constants.d.ts +8 -0
- package/types/components/table/types.d.ts +140 -9
- package/types/components/table/use-fill-height.d.ts +14 -0
- package/types/components/table/use-table-skeleton.d.ts +16 -0
- package/types/config/list-model.d.ts +29 -0
- package/types/config/route.d.ts +2 -0
- package/types/helpers/form.d.ts +5 -0
- package/types/helpers/list-helper.d.ts +26 -0
- package/types/helpers/types.d.ts +11 -0
- package/types/hooks/activated.d.ts +23 -0
- package/types/hooks/feel-size.d.ts +2 -0
- package/types/hooks/menus-dispatch.d.ts +4 -0
- package/types/hooks/timeout.d.ts +4 -0
- package/types/hooks/use-channel-viewport-height.d.ts +8 -0
- package/types/hooks/use-custom-breakpoint.d.ts +19 -0
- package/types/hooks/use-observe-size.d.ts +29 -0
- package/types/hooks/use-theme-apply.d.ts +23 -0
- package/types/hooks/use-viewport-apply.d.ts +12 -0
- package/types/inject/key.d.ts +163 -0
- package/types/injectInfo.json.d.ts +1 -1
- package/types/router/group-redirect.d.ts +9 -0
- package/types/router/guard/index.d.ts +13 -0
- package/types/router/guard/login.d.ts +1 -0
- package/types/router/guard/permission.d.ts +1 -0
- package/types/router/guard/types.d.ts +3 -0
- package/types/store/app.d.ts +27 -0
- package/types/store/router-permission.d.ts +53 -0
- package/types/store/user.d.ts +24 -0
- package/types/types/dot-path.d.ts +8 -0
- package/types/types/route.d.ts +45 -0
- package/types/types/utility-types.d.ts +7 -0
- package/types/utils/dom.d.ts +22 -0
- package/types/utils/export.d.ts +16 -1
- package/types/utils/id.d.ts +1 -0
- package/types/utils/router.d.ts +2 -0
- package/types/utils/theme-scale.d.ts +31 -0
- package/types/utils/time.d.ts +1 -0
|
@@ -1,241 +1,298 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { computeAppPageReducedViewportHeight
|
|
6
|
-
import { BODY_CONTENT_VIEWPORT_RECT
|
|
7
|
-
import { useActivated
|
|
8
|
-
const
|
|
9
|
-
|
|
1
|
+
import { defineComponent, useCssVars, computed, useSlots, ref, shallowRef, inject, provide, readonly, openBlock, createElementBlock, normalizeStyle, createElementVNode, createVNode, unref, withCtx, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
2
|
+
import _debounce from "lodash/debounce";
|
|
3
|
+
import _sfc_main$1 from "../modal/ModalShelf.vue.mjs";
|
|
4
|
+
import _sfc_main$2 from "../display/WatchSize.vue.mjs";
|
|
5
|
+
import { computeAppPageReducedViewportHeight, computeAppPageContentInset, computeAppPageReducedViewportWidth, computeAppPageSlotStyles, computeAppPageSlotShimStyles } from "./app-page-geometry.mjs";
|
|
6
|
+
import { BODY_CONTENT_VIEWPORT_RECT, SCOPE_VIEWPORT_MAX_HEIGHT, BODY_CONTENT_VIEWPORT_HEIGHT, BODY_CONTENT_VIEWPORT_INSET, APP_PAGE_CONTENT_INSET } from "../../inject/key.mjs";
|
|
7
|
+
import { useActivated } from "../../hooks/activated.mjs";
|
|
8
|
+
const cssVar = "--app-viewport-max-height";
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
...{
|
|
11
|
+
name: "AppPage"
|
|
12
|
+
},
|
|
10
13
|
__name: "AppPage",
|
|
11
14
|
props: {
|
|
12
|
-
fullViewport: { type: Boolean, default:
|
|
15
|
+
fullViewport: { type: Boolean, default: false },
|
|
13
16
|
fullMode: { default: "min-height" },
|
|
14
|
-
nextViewportMaxHeight: { default:
|
|
17
|
+
nextViewportMaxHeight: { default: `var(--app-viewport-max-height)` },
|
|
15
18
|
background: {},
|
|
16
19
|
gap: { default: 8 },
|
|
17
20
|
topBg: {},
|
|
18
21
|
bottomBg: {},
|
|
19
22
|
leftBg: {},
|
|
20
23
|
rightBg: {},
|
|
21
|
-
topObserveResize: { type: Boolean, default:
|
|
22
|
-
bottomObserveResize: { type: Boolean, default:
|
|
23
|
-
leftObserveResize: { type: Boolean, default:
|
|
24
|
-
rightObserveResize: { type: Boolean, default:
|
|
24
|
+
topObserveResize: { type: Boolean, default: false },
|
|
25
|
+
bottomObserveResize: { type: Boolean, default: false },
|
|
26
|
+
leftObserveResize: { type: Boolean, default: false },
|
|
27
|
+
rightObserveResize: { type: Boolean, default: false }
|
|
25
28
|
},
|
|
26
|
-
setup(
|
|
27
|
-
|
|
28
|
-
v292949d5:
|
|
29
|
-
v45d97caa:
|
|
30
|
-
v0807b0f2:
|
|
31
|
-
f841aac8:
|
|
32
|
-
f7b4d374:
|
|
33
|
-
v32838eb2:
|
|
34
|
-
v5c736bbc:
|
|
29
|
+
setup(__props) {
|
|
30
|
+
useCssVars((_ctx) => ({
|
|
31
|
+
"v292949d5": pageCssVars.value.top,
|
|
32
|
+
"v45d97caa": pageCssVars.value.bottom,
|
|
33
|
+
"v0807b0f2": pageCssVars.value.left,
|
|
34
|
+
"f841aac8": pageCssVars.value.right,
|
|
35
|
+
"f7b4d374": pageCssVars.value.width,
|
|
36
|
+
"v32838eb2": pageCssVars.value.height,
|
|
37
|
+
"v5c736bbc": props.nextViewportMaxHeight
|
|
35
38
|
}));
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
const props = __props;
|
|
40
|
+
const style = computed(() => {
|
|
41
|
+
return {
|
|
42
|
+
background: props.background,
|
|
43
|
+
...props.fullViewport ? {
|
|
44
|
+
[props.fullMode]: `var(${cssVar})`
|
|
45
|
+
} : {}
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
const slots = useSlots();
|
|
49
|
+
const hasTop = computed(() => !!slots.top);
|
|
50
|
+
const hasBottom = computed(() => !!slots.bottom);
|
|
51
|
+
const hasLeft = computed(() => !!slots.left);
|
|
52
|
+
const hasRight = computed(() => !!slots.right);
|
|
53
|
+
const topH = ref(0);
|
|
54
|
+
const bottomH = ref(0);
|
|
55
|
+
const leftW = ref(0);
|
|
56
|
+
const rightW = ref(0);
|
|
57
|
+
const onTopH = (v) => {
|
|
58
|
+
topH.value = v;
|
|
59
|
+
};
|
|
60
|
+
const onBottomH = (v) => {
|
|
61
|
+
bottomH.value = v;
|
|
62
|
+
};
|
|
63
|
+
const onLeftW = (v) => {
|
|
64
|
+
leftW.value = v;
|
|
65
|
+
};
|
|
66
|
+
const onRightW = (v) => {
|
|
67
|
+
rightW.value = v;
|
|
68
|
+
};
|
|
69
|
+
const appPageRef = shallowRef();
|
|
70
|
+
const fallbackRect = ref({
|
|
50
71
|
top: "0px",
|
|
51
72
|
left: "0px",
|
|
52
73
|
right: "0px",
|
|
53
74
|
bottom: "0px"
|
|
54
|
-
})
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
75
|
+
});
|
|
76
|
+
const injectedRect = inject(BODY_CONTENT_VIEWPORT_RECT, void 0);
|
|
77
|
+
const isFallback = !injectedRect;
|
|
78
|
+
const measureFallback = () => {
|
|
79
|
+
const el = appPageRef.value;
|
|
80
|
+
if (!el || typeof window === "undefined") return;
|
|
81
|
+
const r = el.getBoundingClientRect();
|
|
82
|
+
fallbackRect.value = {
|
|
83
|
+
top: `${r.top}px`,
|
|
84
|
+
left: `${r.left}px`,
|
|
85
|
+
right: `${window.innerWidth - r.right}px`,
|
|
86
|
+
bottom: `${window.innerHeight - r.bottom}px`
|
|
63
87
|
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
88
|
+
};
|
|
89
|
+
const measureFallbackDebounced = _debounce(measureFallback, 16);
|
|
90
|
+
if (isFallback && typeof window !== "undefined") {
|
|
91
|
+
const ro = typeof ResizeObserver !== "undefined" ? new ResizeObserver(() => measureFallbackDebounced()) : void 0;
|
|
92
|
+
useActivated((info) => {
|
|
93
|
+
if (info.isActivated) {
|
|
94
|
+
measureFallbackDebounced();
|
|
95
|
+
if (ro && appPageRef.value) ro.observe(appPageRef.value);
|
|
96
|
+
window.addEventListener("resize", measureFallbackDebounced);
|
|
97
|
+
} else {
|
|
98
|
+
ro == null ? void 0 : ro.disconnect();
|
|
99
|
+
window.removeEventListener("resize", measureFallbackDebounced);
|
|
100
|
+
measureFallbackDebounced.cancel();
|
|
101
|
+
}
|
|
69
102
|
});
|
|
70
103
|
}
|
|
71
|
-
const
|
|
72
|
-
const
|
|
73
|
-
return
|
|
74
|
-
})
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
104
|
+
const rectInset = computed(() => {
|
|
105
|
+
const r = injectedRect == null ? void 0 : injectedRect.value;
|
|
106
|
+
return r ? { top: r.top, left: r.left, right: r.right, bottom: r.bottom } : fallbackRect.value;
|
|
107
|
+
});
|
|
108
|
+
const shimPadding = computed(() => {
|
|
109
|
+
var _a;
|
|
110
|
+
return ((_a = injectedRect == null ? void 0 : injectedRect.value) == null ? void 0 : _a.shimPadding) ?? 0;
|
|
111
|
+
});
|
|
112
|
+
const slotSizes = computed(() => ({
|
|
113
|
+
topH: topH.value,
|
|
114
|
+
bottomH: bottomH.value,
|
|
115
|
+
leftW: leftW.value,
|
|
116
|
+
rightW: rightW.value
|
|
117
|
+
}));
|
|
118
|
+
const parentScope = inject(SCOPE_VIEWPORT_MAX_HEIGHT, void 0);
|
|
119
|
+
const reducedViewportHeight = computed(
|
|
120
|
+
() => computeAppPageReducedViewportHeight(
|
|
121
|
+
(parentScope == null ? void 0 : parentScope.viewportMaxHeight.value) ?? 0,
|
|
122
|
+
slotSizes.value,
|
|
123
|
+
shimPadding.value
|
|
87
124
|
)
|
|
88
125
|
);
|
|
89
|
-
|
|
126
|
+
provide(BODY_CONTENT_VIEWPORT_HEIGHT, reducedViewportHeight);
|
|
127
|
+
provide(SCOPE_VIEWPORT_MAX_HEIGHT, {
|
|
90
128
|
scope: void 0,
|
|
91
|
-
viewportMaxHeight:
|
|
92
|
-
parent:
|
|
129
|
+
viewportMaxHeight: reducedViewportHeight,
|
|
130
|
+
parent: parentScope
|
|
93
131
|
});
|
|
94
|
-
const
|
|
132
|
+
const NO_APP_CHROME_INSET = ref({
|
|
95
133
|
top: 0,
|
|
96
134
|
bottom: 0,
|
|
97
135
|
left: 0,
|
|
98
136
|
right: 0
|
|
99
|
-
})
|
|
100
|
-
|
|
137
|
+
});
|
|
138
|
+
const bodyInset = inject(BODY_CONTENT_VIEWPORT_INSET, NO_APP_CHROME_INSET);
|
|
139
|
+
const contentInset = computed(
|
|
140
|
+
() => computeAppPageContentInset(bodyInset.value, slotSizes.value, props.gap)
|
|
101
141
|
);
|
|
102
|
-
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
142
|
+
provide(APP_PAGE_CONTENT_INSET, readonly(contentInset));
|
|
143
|
+
const pageBoxWidth = ref(0);
|
|
144
|
+
const measurePageWidth = () => {
|
|
145
|
+
if (appPageRef.value) pageBoxWidth.value = appPageRef.value.clientWidth;
|
|
146
|
+
};
|
|
147
|
+
const measurePageWidthDebounced = _debounce(measurePageWidth, 16);
|
|
148
|
+
if (typeof window !== "undefined") {
|
|
149
|
+
const widthRo = typeof ResizeObserver !== "undefined" ? new ResizeObserver(() => measurePageWidthDebounced()) : void 0;
|
|
150
|
+
useActivated((info) => {
|
|
151
|
+
if (info.isActivated) {
|
|
152
|
+
measurePageWidth();
|
|
153
|
+
if (widthRo && appPageRef.value) widthRo.observe(appPageRef.value);
|
|
154
|
+
else window.addEventListener("resize", measurePageWidthDebounced);
|
|
155
|
+
} else {
|
|
156
|
+
widthRo == null ? void 0 : widthRo.disconnect();
|
|
157
|
+
window.removeEventListener("resize", measurePageWidthDebounced);
|
|
158
|
+
measurePageWidthDebounced.cancel();
|
|
159
|
+
}
|
|
110
160
|
});
|
|
111
161
|
}
|
|
112
|
-
const
|
|
113
|
-
() =>
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
162
|
+
const reducedViewportWidth = computed(
|
|
163
|
+
() => computeAppPageReducedViewportWidth(
|
|
164
|
+
pageBoxWidth.value,
|
|
165
|
+
slotSizes.value,
|
|
166
|
+
shimPadding.value
|
|
117
167
|
)
|
|
118
|
-
)
|
|
119
|
-
|
|
168
|
+
);
|
|
169
|
+
const pageCssVars = computed(() => {
|
|
170
|
+
const inset = contentInset.value;
|
|
120
171
|
return {
|
|
121
|
-
top: `${
|
|
122
|
-
bottom: `${
|
|
123
|
-
left: `${
|
|
124
|
-
right: `${
|
|
125
|
-
width: `${
|
|
126
|
-
height: `${
|
|
172
|
+
top: `${inset.top}px`,
|
|
173
|
+
bottom: `${inset.bottom}px`,
|
|
174
|
+
left: `${inset.left}px`,
|
|
175
|
+
right: `${inset.right}px`,
|
|
176
|
+
width: `${reducedViewportWidth.value}px`,
|
|
177
|
+
height: `${reducedViewportHeight.value}px`
|
|
127
178
|
};
|
|
128
|
-
})
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
179
|
+
});
|
|
180
|
+
const slotStyles = computed(
|
|
181
|
+
() => computeAppPageSlotStyles(rectInset.value, topH.value, bottomH.value)
|
|
182
|
+
);
|
|
183
|
+
const shimStyles = computed(() => {
|
|
184
|
+
const base = computeAppPageSlotShimStyles(shimPadding.value, props.gap);
|
|
132
185
|
return {
|
|
133
|
-
top: { ...
|
|
134
|
-
bottom: { ...
|
|
135
|
-
left: { ...
|
|
136
|
-
right: { ...
|
|
186
|
+
top: { ...base.top, background: props.topBg },
|
|
187
|
+
bottom: { ...base.bottom, background: props.bottomBg },
|
|
188
|
+
left: { ...base.left, background: props.leftBg },
|
|
189
|
+
right: { ...base.right, background: props.rightBg }
|
|
137
190
|
};
|
|
138
|
-
})
|
|
139
|
-
|
|
191
|
+
});
|
|
192
|
+
const shimStyle = computed(() => {
|
|
193
|
+
const sp = shimPadding.value;
|
|
194
|
+
const inset = (v) => `${Math.max(0, v ? v - sp : 0)}px`;
|
|
140
195
|
return {
|
|
141
|
-
paddingTop:
|
|
142
|
-
paddingBottom:
|
|
143
|
-
paddingLeft:
|
|
144
|
-
paddingRight:
|
|
196
|
+
paddingTop: inset(topH.value),
|
|
197
|
+
paddingBottom: inset(bottomH.value),
|
|
198
|
+
paddingLeft: inset(leftW.value),
|
|
199
|
+
paddingRight: inset(rightW.value)
|
|
145
200
|
};
|
|
146
201
|
});
|
|
147
|
-
return (
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
d("div", {
|
|
154
|
-
class: "app-page-shim",
|
|
155
|
-
style: s(te.value)
|
|
202
|
+
return (_ctx, _cache) => {
|
|
203
|
+
return openBlock(), createElementBlock("div", {
|
|
204
|
+
ref_key: "appPageRef",
|
|
205
|
+
ref: appPageRef,
|
|
206
|
+
class: "dc-app-page app-page",
|
|
207
|
+
style: normalizeStyle(style.value)
|
|
156
208
|
}, [
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
209
|
+
createElementVNode("div", {
|
|
210
|
+
class: "app-page-shim",
|
|
211
|
+
style: normalizeStyle(shimStyle.value)
|
|
212
|
+
}, [
|
|
213
|
+
createVNode(unref(_sfc_main$1), { level: "page" }, {
|
|
214
|
+
default: withCtx(() => [
|
|
215
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
216
|
+
]),
|
|
217
|
+
_: 3
|
|
218
|
+
})
|
|
219
|
+
], 4),
|
|
220
|
+
hasTop.value ? (openBlock(), createBlock(unref(_sfc_main$2), {
|
|
221
|
+
key: 0,
|
|
222
|
+
mode: "height",
|
|
223
|
+
"observe-resize": __props.topObserveResize,
|
|
224
|
+
class: "app-page-slot app-page-slot--top",
|
|
225
|
+
style: normalizeStyle(slotStyles.value.top),
|
|
226
|
+
onHeightChange: onTopH
|
|
227
|
+
}, {
|
|
228
|
+
default: withCtx(() => [
|
|
229
|
+
createElementVNode("div", {
|
|
230
|
+
class: "app-page-slot-shim",
|
|
231
|
+
style: normalizeStyle(shimStyles.value.top)
|
|
232
|
+
}, [
|
|
233
|
+
renderSlot(_ctx.$slots, "top", {}, void 0, true)
|
|
234
|
+
], 4)
|
|
235
|
+
]),
|
|
236
|
+
_: 3
|
|
237
|
+
}, 8, ["observe-resize", "style"])) : createCommentVNode("", true),
|
|
238
|
+
hasBottom.value ? (openBlock(), createBlock(unref(_sfc_main$2), {
|
|
239
|
+
key: 1,
|
|
240
|
+
mode: "height",
|
|
241
|
+
"observe-resize": __props.bottomObserveResize,
|
|
242
|
+
class: "app-page-slot app-page-slot--bottom",
|
|
243
|
+
style: normalizeStyle(slotStyles.value.bottom),
|
|
244
|
+
onHeightChange: onBottomH
|
|
245
|
+
}, {
|
|
246
|
+
default: withCtx(() => [
|
|
247
|
+
createElementVNode("div", {
|
|
248
|
+
class: "app-page-slot-shim",
|
|
249
|
+
style: normalizeStyle(shimStyles.value.bottom)
|
|
250
|
+
}, [
|
|
251
|
+
renderSlot(_ctx.$slots, "bottom", {}, void 0, true)
|
|
252
|
+
], 4)
|
|
253
|
+
]),
|
|
254
|
+
_: 3
|
|
255
|
+
}, 8, ["observe-resize", "style"])) : createCommentVNode("", true),
|
|
256
|
+
hasLeft.value ? (openBlock(), createBlock(unref(_sfc_main$2), {
|
|
257
|
+
key: 2,
|
|
258
|
+
mode: "width",
|
|
259
|
+
"observe-resize": __props.leftObserveResize,
|
|
260
|
+
class: "app-page-slot app-page-slot--left",
|
|
261
|
+
style: normalizeStyle(slotStyles.value.left),
|
|
262
|
+
onWidthChange: onLeftW
|
|
263
|
+
}, {
|
|
264
|
+
default: withCtx(() => [
|
|
265
|
+
createElementVNode("div", {
|
|
266
|
+
class: "app-page-slot-shim",
|
|
267
|
+
style: normalizeStyle(shimStyles.value.left)
|
|
268
|
+
}, [
|
|
269
|
+
renderSlot(_ctx.$slots, "left", {}, void 0, true)
|
|
270
|
+
], 4)
|
|
271
|
+
]),
|
|
272
|
+
_: 3
|
|
273
|
+
}, 8, ["observe-resize", "style"])) : createCommentVNode("", true),
|
|
274
|
+
hasRight.value ? (openBlock(), createBlock(unref(_sfc_main$2), {
|
|
275
|
+
key: 3,
|
|
276
|
+
mode: "width",
|
|
277
|
+
"observe-resize": __props.rightObserveResize,
|
|
278
|
+
class: "app-page-slot app-page-slot--right",
|
|
279
|
+
style: normalizeStyle(slotStyles.value.right),
|
|
280
|
+
onWidthChange: onRightW
|
|
281
|
+
}, {
|
|
282
|
+
default: withCtx(() => [
|
|
283
|
+
createElementVNode("div", {
|
|
284
|
+
class: "app-page-slot-shim",
|
|
285
|
+
style: normalizeStyle(shimStyles.value.right)
|
|
286
|
+
}, [
|
|
287
|
+
renderSlot(_ctx.$slots, "right", {}, void 0, true)
|
|
288
|
+
], 4)
|
|
160
289
|
]),
|
|
161
290
|
_: 3
|
|
162
|
-
})
|
|
163
|
-
], 4)
|
|
164
|
-
|
|
165
|
-
key: 0,
|
|
166
|
-
mode: "height",
|
|
167
|
-
"observe-resize": r.topObserveResize,
|
|
168
|
-
class: "app-page-slot app-page-slot--top",
|
|
169
|
-
style: s(O.value.top),
|
|
170
|
-
onHeightChange: X
|
|
171
|
-
}, {
|
|
172
|
-
default: g(() => [
|
|
173
|
-
d("div", {
|
|
174
|
-
class: "app-page-slot-shim",
|
|
175
|
-
style: s(x.value.top)
|
|
176
|
-
}, [
|
|
177
|
-
f(e.$slots, "top", {}, void 0, !0)
|
|
178
|
-
], 4)
|
|
179
|
-
]),
|
|
180
|
-
_: 3
|
|
181
|
-
}, 8, ["observe-resize", "style"])) : R("", !0),
|
|
182
|
-
F.value ? (v(), B(c(E), {
|
|
183
|
-
key: 1,
|
|
184
|
-
mode: "height",
|
|
185
|
-
"observe-resize": r.bottomObserveResize,
|
|
186
|
-
class: "app-page-slot app-page-slot--bottom",
|
|
187
|
-
style: s(O.value.bottom),
|
|
188
|
-
onHeightChange: q
|
|
189
|
-
}, {
|
|
190
|
-
default: g(() => [
|
|
191
|
-
d("div", {
|
|
192
|
-
class: "app-page-slot-shim",
|
|
193
|
-
style: s(x.value.bottom)
|
|
194
|
-
}, [
|
|
195
|
-
f(e.$slots, "bottom", {}, void 0, !0)
|
|
196
|
-
], 4)
|
|
197
|
-
]),
|
|
198
|
-
_: 3
|
|
199
|
-
}, 8, ["observe-resize", "style"])) : R("", !0),
|
|
200
|
-
G.value ? (v(), B(c(E), {
|
|
201
|
-
key: 2,
|
|
202
|
-
mode: "width",
|
|
203
|
-
"observe-resize": r.leftObserveResize,
|
|
204
|
-
class: "app-page-slot app-page-slot--left",
|
|
205
|
-
style: s(O.value.left),
|
|
206
|
-
onWidthChange: J
|
|
207
|
-
}, {
|
|
208
|
-
default: g(() => [
|
|
209
|
-
d("div", {
|
|
210
|
-
class: "app-page-slot-shim",
|
|
211
|
-
style: s(x.value.left)
|
|
212
|
-
}, [
|
|
213
|
-
f(e.$slots, "left", {}, void 0, !0)
|
|
214
|
-
], 4)
|
|
215
|
-
]),
|
|
216
|
-
_: 3
|
|
217
|
-
}, 8, ["observe-resize", "style"])) : R("", !0),
|
|
218
|
-
Y.value ? (v(), B(c(E), {
|
|
219
|
-
key: 3,
|
|
220
|
-
mode: "width",
|
|
221
|
-
"observe-resize": r.rightObserveResize,
|
|
222
|
-
class: "app-page-slot app-page-slot--right",
|
|
223
|
-
style: s(O.value.right),
|
|
224
|
-
onWidthChange: K
|
|
225
|
-
}, {
|
|
226
|
-
default: g(() => [
|
|
227
|
-
d("div", {
|
|
228
|
-
class: "app-page-slot-shim",
|
|
229
|
-
style: s(x.value.right)
|
|
230
|
-
}, [
|
|
231
|
-
f(e.$slots, "right", {}, void 0, !0)
|
|
232
|
-
], 4)
|
|
233
|
-
]),
|
|
234
|
-
_: 3
|
|
235
|
-
}, 8, ["observe-resize", "style"])) : R("", !0)
|
|
236
|
-
], 4));
|
|
291
|
+
}, 8, ["observe-resize", "style"])) : createCommentVNode("", true)
|
|
292
|
+
], 4);
|
|
293
|
+
};
|
|
237
294
|
}
|
|
238
295
|
});
|
|
239
296
|
export {
|
|
240
|
-
|
|
297
|
+
_sfc_main as default
|
|
241
298
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, Fragment, renderSlot, createVNode, withCtx } from "vue";
|
|
2
|
+
import AppSidebar from "./AppSidebar.vue.mjs";
|
|
3
|
+
import AppAside from "./AppAside.vue.mjs";
|
|
4
|
+
import AppHeader from "./AppHeader.vue.mjs";
|
|
5
|
+
import AppFooter from "./AppFooter.vue.mjs";
|
|
6
|
+
import AppTheme from "./AppTheme.vue.mjs";
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "AppShell",
|
|
9
9
|
props: {
|
|
10
10
|
menus: {},
|
|
@@ -18,43 +18,45 @@ const F = /* @__PURE__ */ i({
|
|
|
18
18
|
showAside: { type: Boolean },
|
|
19
19
|
sidebarAboveHeader: { type: Boolean }
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
return (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
_: 3
|
|
35
|
-
}, 8, ["show"]),
|
|
36
|
-
a(h, {
|
|
37
|
-
show: e.showHeader,
|
|
38
|
-
menus: e.headerMenus,
|
|
39
|
-
activeMenu: e.activeMenu,
|
|
40
|
-
activeModuleMenu: e.activeModuleMenu,
|
|
41
|
-
menuFlatList: e.menuFlatList
|
|
42
|
-
}, {
|
|
43
|
-
left: s(() => [
|
|
44
|
-
o(t.$slots, "brand")
|
|
45
|
-
]),
|
|
46
|
-
right: s(() => [
|
|
47
|
-
o(t.$slots, "themeSwitcher", { Default: n }, () => [
|
|
48
|
-
a(n)
|
|
21
|
+
setup(__props) {
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
24
|
+
renderSlot(_ctx.$slots, "default", { Footer: AppFooter }),
|
|
25
|
+
createVNode(AppSidebar, {
|
|
26
|
+
show: __props.showSidebar,
|
|
27
|
+
aboveHeader: __props.sidebarAboveHeader,
|
|
28
|
+
menus: __props.sidebarMenus,
|
|
29
|
+
menuFlatList: __props.menuFlatList
|
|
30
|
+
}, null, 8, ["show", "aboveHeader", "menus", "menuFlatList"]),
|
|
31
|
+
createVNode(AppAside, { show: __props.showAside }, {
|
|
32
|
+
default: withCtx(() => [
|
|
33
|
+
renderSlot(_ctx.$slots, "aside")
|
|
49
34
|
]),
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
35
|
+
_: 3
|
|
36
|
+
}, 8, ["show"]),
|
|
37
|
+
createVNode(AppHeader, {
|
|
38
|
+
show: __props.showHeader,
|
|
39
|
+
menus: __props.headerMenus,
|
|
40
|
+
activeMenu: __props.activeMenu,
|
|
41
|
+
activeModuleMenu: __props.activeModuleMenu,
|
|
42
|
+
menuFlatList: __props.menuFlatList
|
|
43
|
+
}, {
|
|
44
|
+
left: withCtx(() => [
|
|
45
|
+
renderSlot(_ctx.$slots, "brand")
|
|
46
|
+
]),
|
|
47
|
+
right: withCtx(() => [
|
|
48
|
+
renderSlot(_ctx.$slots, "themeSwitcher", { Default: AppTheme }, () => [
|
|
49
|
+
createVNode(AppTheme)
|
|
50
|
+
]),
|
|
51
|
+
renderSlot(_ctx.$slots, "userEntry"),
|
|
52
|
+
renderSlot(_ctx.$slots, "settings")
|
|
53
|
+
]),
|
|
54
|
+
_: 3
|
|
55
|
+
}, 8, ["show", "menus", "activeMenu", "activeModuleMenu", "menuFlatList"])
|
|
56
|
+
], 64);
|
|
57
|
+
};
|
|
56
58
|
}
|
|
57
59
|
});
|
|
58
60
|
export {
|
|
59
|
-
|
|
61
|
+
_sfc_main as default
|
|
60
62
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _sfc_main from "./AppSidebar.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const AppSidebar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8aa015fb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
AppSidebar as default
|
|
7
7
|
};
|