index-view-layout-left.vue 1.9 KB
Newer Older
1
<template>
2
    <layout class="index-view-layout index-view-layout--left" id="movebox">
3
        <sider class="index-view-sider" :width="collapseChange ? 64 : 208" hide-trigger id="left_move">
4
            <div class="index-view-sider__top">
5 6 7
                <slot name="siderTop" />
            </div>
            <slot name="siderContent" />
8 9 10
            <div class="index-view-sider__bottom">
                <slot name="siderBottom" />
            </div>
11
        </sider>
12
        <div v-show="!collapseChange" class="index-view-split" id="move_axis"></div>
13
        <layout id="right_move">
14 15
            <header class="index-view-header">
                <div class="index-view-header__left">
16 17
                    <slot name="headerLeft" />
                </div>
18
                <div class="index-view-header__center">
19 20
                    <slot name="headerCenter" />
                </div>
21
                <div class="index-view-header__right">
22 23 24
                    <slot name="headerRight" />
                </div>   
            </header>
25
            <content :class="{ 'index-view-content': true, 'index-view-content--tab': Object.is(navModel,'tab') ? true : false, 'index-view-content--route': Object.is(navModel,'route') ? true : false }">
26 27 28 29 30 31 32
                <slot name="tabPageExp" />
                <slot name="navPos" />
            </content>
        </layout>
    </layout>
</template>
<script lang="ts">
33
import { Vue, Component, Prop } from 'vue-property-decorator';
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

@Component({})
export default class AppIndexViewLayoutLeft extends Vue {

    /**
     * 导航模式
     * 
     * @memberof AppIndexViewLayoutLeft
     */
    @Prop({ default: 'tab' })
    public navModel!: string;

    /**
     * 是否折叠
     * 
     * @memberof AppIndexViewLayoutLeft
     */
    @Prop({ default: false })
    public collapseChange!: boolean;
}
</script>

<style lang="scss">
@import "./index-view-layout-left.scss";
</style>