Your Name
2022-06-27 0a3027eccd3b0bb6542e5fc831f7e02740dcfc95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<template>
    <div :style="{ height: `calc(100vh - ${initTagViewHeight}` }">
        <div class="layout-view-bg-white">
            <div class="w100 h100 flex">
                <div class="flex-margin color-primary">测试界面</div>
            </div>
        </div>
    </div>
</template>
 
<script lang="ts">
import { computed, defineComponent } from 'vue';
import { storeToRefs } from 'pinia';
import { useThemeConfig } from '/@/stores/themeConfig';
import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes';
 
export default defineComponent({
    name: 'pagesFilteringDetails1',
    setup() {
        const storesTagsViewRoutes = useTagsViewRoutes();
        const storesThemeConfig = useThemeConfig();
        const { themeConfig } = storeToRefs(storesThemeConfig);
        const { isTagsViewCurrenFull } = storeToRefs(storesTagsViewRoutes);
        // 设置主内容的高度
        const initTagViewHeight = computed(() => {
            let { isTagsview } = themeConfig.value;
            if (isTagsViewCurrenFull.value) {
                return `30px`;
            } else {
                if (isTagsview) return `114px`;
                else return `80px`;
            }
        });
        return {
            initTagViewHeight,
        };
    },
});
</script>