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
| <template>
| <div class="table-header">
| <el-breadcrumb separator="/">
| <el-breadcrumb-item v-for="path in paths" :key="path">{{ path }}</el-breadcrumb-item>
| </el-breadcrumb>
| </div>
| </template>
|
| <script>
| export default {
| computed: {
| paths() {
| return this.$route.meta.paths
| }
| }
| }
| </script>
|
| <style lang="scss" scoped>
| .table-header {
| overflow: hidden;
| padding: 6px 16px 12px;
| flex-shrink: 0;
|
| // 页面路径
| .el-breadcrumb {
| .el-breadcrumb__item {
| .el-breadcrumb__inner {
| color: #ABB2BE;
| font-size: 12px;
| }
|
| &:last-of-type .el-breadcrumb__inner {
| color: #606263;
| font-size: 14px;
| }
| }
| }
| }
| </style>
|
|