mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 09:34:19 +08:00
feat(time): added time compoennt close #285
This commit is contained in:
@@ -2,13 +2,9 @@
|
||||
<Layout :class="prefixCls">
|
||||
<LayoutFeatures />
|
||||
<LayoutHeader fixed v-if="getShowFullHeaderRef" />
|
||||
<Layout
|
||||
:class="{
|
||||
'ant-layout-has-sider': getIsMixSidebar,
|
||||
}"
|
||||
>
|
||||
<Layout :class="layoutClass">
|
||||
<LayoutSideBar v-if="getShowSidebar || getIsMobile" />
|
||||
<Layout :class="`${prefixCls}__main`">
|
||||
<Layout :class="`${prefixCls}-main`">
|
||||
<LayoutMultipleHeader />
|
||||
<LayoutContent />
|
||||
<LayoutFooter />
|
||||
@@ -18,7 +14,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { defineComponent, computed, unref } from 'vue';
|
||||
import { Layout } from 'ant-design-vue';
|
||||
import { createAsyncComponent } from '/@/utils/factory/createAsyncComponent';
|
||||
|
||||
@@ -53,12 +49,15 @@
|
||||
|
||||
const { getShowSidebar, getIsMixSidebar } = useMenuSetting();
|
||||
|
||||
const layoutClass = computed(() => ({ 'ant-layout-has-sider': unref(getIsMixSidebar) }));
|
||||
|
||||
return {
|
||||
getShowFullHeaderRef,
|
||||
getShowSidebar,
|
||||
prefixCls,
|
||||
getIsMobile,
|
||||
getIsMixSidebar,
|
||||
layoutClass,
|
||||
};
|
||||
},
|
||||
});
|
||||
@@ -77,7 +76,7 @@
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
&__main {
|
||||
&-main {
|
||||
margin-left: 1px;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user