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
| <template>
| <div class="tab-menu-left" @click="toggleClick">
| <i class="el-icon-s-operation"></i>
| </div>
| </template>
|
| <script>
| export default {
| name: "Hamburger",
| props: {
| isActive: {
| type: Boolean,
| default: false,
| },
| },
| methods: {
| toggleClick() {
| this.$emit("toggleClick");
| },
| },
| };
| </script>
|
| <style scoped>
| .tab-menu-left {
| display: inline-block;
| width: 48px;
| height: 37px;
| line-height: 37px;
| text-align: center;
| z-index: 1;
| font-size: 16px;
| position: absolute;
| left: 0;
| top: 0;
| }
|
| .tab-menu-left.is-active {
| transform: rotate(180deg);
| }
| </style>
|
|