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>
| <div class="workspace">
| <div class="workspace__header">
| <el-button icon="el-icon-back" class="back" type="info" size="mini" plain @click="$router.push('/')">返回主页</el-button>
| </div>
| </div>
| </template>
|
| <script>
|
| export default {
| name: 'workSpace',
| data() {
| return {
| routes: [
|
| ]
| }
| },
| methods: {
| handleClick(tab) {
| this.$router.push({
| path: tab.name
| })
| }
| }
| }
| </script>
|
| <style lang="less" scoped>
| .workspace {
| padding: 20px;
| height: 100%;
| display: flex;
| flex-direction: column;
| box-sizing: border-box;
|
| &__header {
| margin-bottom: 10px;
| }
|
| &__tabs {
| flex: 1;
| .route-tab {
| /deep/ .el-tabs__content {
| height: calc(100vh - 150px);
| overflow-y: auto;
| }
| }
| }
| }
| </style>
|
|