index-view-layout-left.vue 1.7 KB
Newer Older
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
<template>
    <layout class="index_view index-view-layout-left" id="movebox">
        <sider class="index_sider" :width="collapseChange ? 64 : 200" hide-trigger id="left_move">
            <div class="sider-top">
                <slot name="siderTop" />
            </div>
            <slot name="siderContent" />
        </sider>
        <div v-show="!collapseChange" id="move_axis"></div>
        <layout id="right_move">
            <header class="index_header">
                <div class="header-left">
                    <slot name="headerLeft" />
                </div>
                <div class="header-center">
                    <slot name="headerCenter" />
                </div>
                <div class="header-right">
                    <slot name="headerRight" />
                </div>   
            </header>
            <content :class="{ 'index_content': true, 'index_tab_content': Object.is(navModel,'tab') ? true : false, 'index_route_content': Object.is(navModel,'route') ? true : false }">
                <slot name="tabPageExp" />
                <slot name="navPos" />
            </content>
        </layout>
    </layout>
</template>
<script lang="ts">
import { Vue, Component, Watch, Prop } from 'vue-property-decorator';

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

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

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

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