2023西安数博会CIM演示-【前端】-Web
AdaKing88
2023-08-21 bc03b832caa49bbcd2674fe4cae3701b5059bf95
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
<template>
  <div class="left">
    <div v-show="!leftLayer">
        <div class="leftimg"></div>
        <div class="sanjiao" @click="open"></div>
    </div>
    <div v-show="leftLayer">
        <div class="layerTree">
 
        </div>
    </div>
  </div>
</template>
 
<script>
export default {
    data() {
        return {
            leftLayer:false
        }
    },
    methods: {
        open(){
            this.leftLayer = !this.leftLayer
        }
    },
}
</script>
 
<style lang="less" scoped>
.left{
    position:absolute;
    width: 400px;
    height:100%;
    background-color: rgba(50, 50, 50, 0.6);
    left:0px;
    top:0px;
    z-index: 100000;
    .leftimg{
        width:40px;
        height:100%;
        background-color: aliceblue;
        position:absolute;
        left:0px;
        top:0px;
    }
    .sanjiao{
        height:20px;
        width:40px;
        background-color: aliceblue;
        position:absolute;
        left:40px;
        top:50%;
    }
    .layerTree{
        width:300px;
        height:100%;
        background-color: aliceblue;
        position:absolute;
        left:40px;
        top:0px;
    }
}
</style>