| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <template>
- <!-- <div style="position: fixed; width: 100%; height: 100%; top: 0; left: 0; background-color: yellow"></div> -->
- <Layout :class="prefixCls" v-bind="lockEvents">
- <LayoutFeatures />
- <LayoutHeader />
- <!-- <SystemSelect /> -->
- <SimpleMap />
- <Layout :class="[layoutClass]">
- <LayoutSideBar />
- <Layout :class="`${prefixCls}-main`">
- <MultipleTabs />
- <LayoutContent />
- <LayoutFooter />
- </Layout>
- </Layout>
- </Layout>
- </template>
- <script lang="ts">
- import { defineComponent, computed, unref } from 'vue';
- import { Layout } from 'ant-design-vue';
- import { createAsyncComponent } from '/@/utils/factory/createAsyncComponent';
- import LayoutHeader from './header/index.vue';
- import MultipleTabs from './tabs/index.vue';
- import LayoutContent from './content/index.vue';
- import LayoutSideBar from './sider/index.vue';
- // import SystemSelect from './feature/SystemSelect.vue';
- import SimpleMap from './feature/SimpleMap.vue';
- // import { useHeaderSetting } from '/@/hooks/setting/useHeaderSetting';
- import { useMenuSetting } from '/@/hooks/setting/useMenuSetting';
- import { useDesign } from '/@/hooks/web/useDesign';
- import { useLockPage } from '/@/hooks/web/useLockPage';
- // import { useAppInject } from '/@/hooks/web/useAppInject';
- export default defineComponent({
- name: 'DefaultLayout',
- components: {
- LayoutFeatures: createAsyncComponent(() => import('/@/layouts/default/feature/index.vue')),
- LayoutFooter: createAsyncComponent(() => import('/@/layouts/default/footer/index.vue')),
- LayoutHeader,
- LayoutContent,
- LayoutSideBar,
- MultipleTabs,
- Layout,
- // SystemSelect,
- SimpleMap,
- },
- setup() {
- const { prefixCls } = useDesign('default-layout');
- // const { getIsMobile } = useAppInject();
- // const { getShowFullHeaderRef } = useHeaderSetting();
- const { getShowSidebar, getIsMixSidebar, getShowMenu } = useMenuSetting();
- // Create a lock screen monitor
- const lockEvents = useLockPage();
- const layoutClass = computed(() => {
- let cls: string[] = ['ant-layout'];
- if (unref(getIsMixSidebar) || unref(getShowMenu)) {
- cls.push('ant-layout-has-sider');
- }
- return cls;
- });
- return {
- getShowSidebar,
- prefixCls,
- getIsMixSidebar,
- layoutClass,
- lockEvents,
- };
- },
- });
- </script>
- <style lang="less">
- @prefix-cls: ~'@{namespace}-default-layout';
- .@{prefix-cls} {
- display: flex;
- width: 100%;
- min-height: 100%;
- flex-direction: column;
- >.ant-layout {
- height: 0;
- margin: 10px;
- background-color: transparent;
- position: relative;
- z-index: @layout-basic-z-index;
- }
- &-main {
- width: 100%;
- border-top-right-radius: 4px;
- border-bottom-right-radius: 4px;
- // background-color: #aaaaaa32;
- // border: 1px solid @white;
- box-shadow: inset 0 0 5px 0 @white;
- background: rgba(255, 255, 255, 0.2);
- backdrop-filter: blur(14px);
- // -webkit-backdrop-filter: blur(10px);
- // 代码逻辑说明:【issues/8709】LayoutContent样式多出1px
- // margin-left: 1px;
- }
- }
- </style>
|