mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(components): blankLayout引入GlobalContent
This commit is contained in:
21
src/layouts/common/HeaderPlaceholder/index.vue
Normal file
21
src/layouts/common/HeaderPlaceholder/index.vue
Normal file
@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<div v-if="theme.fixedHeaderAndTab" :style="{ height: headerAndMultiTabHeight }"></div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useThemeStore } from '@/store';
|
||||
import { useLayoutConfig } from '@/composables';
|
||||
|
||||
interface Props {
|
||||
/** 去除tab的高度 */
|
||||
removeTab?: boolean;
|
||||
}
|
||||
|
||||
withDefaults(defineProps<Props>(), {
|
||||
removeTab: false
|
||||
});
|
||||
|
||||
const theme = useThemeStore();
|
||||
const { headerAndMultiTabHeight } = useLayoutConfig();
|
||||
</script>
|
||||
<style scoped></style>
|
Reference in New Issue
Block a user