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
<template>
<layout class="index-view-layout index-view-layout--left" id="movebox">
<sider class="index-view-sider" :width="collapseChange ? 64 : 200" hide-trigger id="left_move">
<div class="index-view-sider__top">
<slot name="siderTop" />
</div>
<slot name="siderContent" />
</sider>
<div v-show="!collapseChange" class="index-view-split" id="move_axis"></div>
<layout id="right_move">
<header class="index-view-header">
<div class="index-view-header__left">
<slot name="headerLeft" />
</div>
<div class="index-view-header__center">
<slot name="headerCenter" />
</div>
<div class="index-view-header__right">
<slot name="headerRight" />
</div>
</header>
<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 }">
<slot name="tabPageExp" />
<slot name="navPos" />
</content>
</layout>
</layout>
</template>
<script lang="ts">
import { Vue, Component, 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>
<style lang="scss">
@import "./index-view-layout-left.scss";
</style>