zhangxiao
2024-08-20 e47b788ff5f5c699c682999c95da17eb284ca21d
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<template>
    <div class="app-layout">
        <div class="layout-header">
            <app-logo></app-logo>
            <div class="app-top">
                <div class="horizontal-header">
                    <div class="app-header-menu-wrap">
                        <app-header-menu></app-header-menu>
                    </div>
                    <app-header-right></app-header-right>
                </div>
                <!-- <app-tags></app-tags> -->
            </div>
        </div>
        <div class="app-layout-body">
            <div class="layout-content">
                <app-bread style="margin-left: 20px; margin-top: 20px"></app-bread>
                <app-main></app-main>
            </div>
        </div>
    </div>
</template>
<script lang="ts" setup name="LayoutTop">
import AppLogo from "../app-logo/index.vue";
import AppHeaderMenu from "../app-header-menu/index.vue";
import AppHeaderRight from "../app-header-right/index.vue";
import AppMain from "../app-main/index.vue";
import AppBread from "../app-bread/index.vue";
import AppTags from "../app-tags/index.vue";
</script>
<style lang="scss" scoped>
.app-layout {
    height: 100%;
    :deep(.arco-layout-sider-children) {
        @include scroll-y();
    }
    .layout-header {
        display: flex;
        position: sticky;
        top: 0;
        width: 100%;
        z-index: 100;
        border-bottom: 1px solid rgb(var(--gray-3));
        box-shadow: 0 2px 8px 2px rgba(29, 33, 41, 0.02), 0 2px 4px rgba(29, 33, 41, 0.02),
            0 1px 2px -2px rgba(29, 33, 41, 0.02);
        .app-header {
            height: 60px;
        }
        .app-tags {
            height: 34px;
        }
        .app-top {
            display: flex;
            flex: 1;
            flex-direction: column;
        }
        .horizontal-header {
            flex: 1;
            display: flex;
            justify-content: space-between;
            .app-header-menu-wrap {
                flex: 1;
                .app-menu {
                    height: 100%;
                }
            }
        }
    }
    .app-layout-body {
        display: flex;
        height: calc(100vh - 60px);
        .layout-content {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            @include scroll-y(6);
            background-color: rgb(var(--gray-2));
        }
    }
}
</style>