index.vue
1.11 KB
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
<template>
<div class="lpb">
<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
<el-tab-pane label="编辑楼盘" name="edit">
<edit></edit>
</el-tab-pane>
<el-tab-pane label="预览楼盘" name="preview">
<preview></preview>
</el-tab-pane>
<el-tab-pane label="详细信息" name="detail">
<detail></detail>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import edit from "./edit"
import preview from "./preview"
import detail from "./detail"
export default {
name:"",
components:{edit,preview,detail},
props:{},
data() {
return {
activeName: 'edit'
};
},
methods: {
handleClick(tab, event) {
console.log(tab, event);
}
},
created(){},
mounted(){},
computed: {},
watch: {},
}
</script>
<style scoped lang="less">
.lpb{
width: 100%;
height: 100%;
background-color: #fff;
/deep/.el-tabs__header{
margin-bottom: 0;
}
.el-tabs{
height: 100%;
display: flex;
flex-direction: column;
}
.el-tab-pane{
height: 100%;
}
}
</style>