shuishen
2026-02-10 abd285e6d013128aa57c9e30e851b2aa76d60ec5
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!--  -->
<template>
    <div class='buildingTable'>
        <div class="buildingTable-title" @click="exportClick">
            <div>
                <img src="../../../../public/img/icon/business.png" alt="" srcset="">
            </div>
            <div style="margin-left: 5px;">
                <div class="buildingTable-title-text">
                    <span>楼盘表</span>
                </div>
                <div class="buildingTable-title-text-botom"></div>
            </div>
        </div>
        <div v-if="buildingTableShow" class="list">
            <div class="buildingTable-item" v-for="(item, index) in 60" :key="index">
                <!-- <div class="buildingTable-item-text">
                    {{ index }}
                </div> -->
            </div>
        </div>
    </div>
</template>
 
<script>
export default {
    //import引入的组件需要注入到对象中才能使用
    components: {},
    data() {
        //这里存放数据
        return {
            buildingTableShow: false,
        };
    },
    //监听属性 类似于data概念
    computed: {},
    //监控data中的数据变化
    watch: {},
    //方法集合
    methods: {
        exportClick() {
            console.log('点击了');
            this.buildingTableShow = !this.buildingTableShow;
        },
 
    },
    //生命周期 - 创建完成(可以访问当前this实例)
    created() {
 
    },
    //生命周期 - 挂载完成(可以访问DOM元素)
    mounted() {
 
    },
    beforeCreate() { }, //生命周期 - 创建之前
    beforeMount() { }, //生命周期 - 挂载之前
    beforeUpdate() { }, //生命周期 - 更新之前
    updated() { }, //生命周期 - 更新之后
    beforeDestroy() { }, //生命周期 - 销毁之前
    destroyed() { }, //生命周期 - 销毁完成
    activated() { }, //如果页面有keep-alive缓存功能,这个函数会触发
}
</script>
<style lang='scss' scoped>
//@import url(); 引入公共css类
 
.buildingTable {
    margin-top: 10px;
    overflow: hidden;
    overflow-y: auto;
}
 
.buildingTable-title {
    display: flex;
 
    img {
        width: 30px;
        height: 30px;
    }
}
 
.buildingTable-title-text {
    display: flex;
    font-size: 16px;
    line-height: 24px;
    width: 90px;
}
 
.buildingTable-title-text:after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 13px;
    border-top: solid 6px transparent;
    border-left: solid 6px #ffff;
    border-bottom: solid 6px transparent;
    margin-top: 6px;
}
 
.buildingTable-title-text-botom {
    height: 4px;
    background: linear-gradient(to right, #4c90ff, #c0d2f1);
}
 
.list {
    display: flex;
    flex-wrap: wrap;
}
 
.buildingTable-item-text {
    background-color: #f1f1f1;
    margin: 10px;
    color: black;
    text-align: center;
    font-size: 16px;
}
</style>