index.vue
1.54 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<template>
<div class="lpb">
<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
<el-tab-pane label="编辑楼盘" name="edit">
<bjlp></bjlp>
</el-tab-pane>
<el-tab-pane label="预览楼盘" name="preview">
<yllp></yllp>
</el-tab-pane>
<el-tab-pane label="详细信息" name="detail">
<xxxx></xxxx>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import bjlp from "./bjlp"
import yllp from "./yllp"
import xxxx from "./xxxx"
export default {
name:"",
components:{bjlp,yllp,xxxx},
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%;
box-sizing: border-box;
padding: 0 18px !important;
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
/deep/.el-tabs__header{
margin-bottom: 0;
}
/deep/.el-tabs--card>.el-tabs__header{
background-color: #FAFAFA;
border-top: 1px solid #E4E7ED;
}
/deep/.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{
background-color: #fff;
border-top: 2px solid #006CFF;
height: 42px;
}
/deep/ .el-tabs__item{
border-top: 0;
}
.el-tabs{
height: 100%;
display: flex;
flex-direction: column;
}
.el-tab-pane{
height: 100%;
}
}
</style>