You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
duoji-frontend/src/views/realTimeMonitoring/index.vue

67 lines
1.7 KiB
Vue

6 years ago
<template>
<div class="realTime bg-white">
<div class="realTime-position">
<div class="realTime-position-label">选择位置</div>
<div class="realTime-position-box">
<div class="realTime-position-box-btns"></div>
<div class="realTime-position-box-control" @click="handleUpDown">
{{controlLabel ? '收起' : '展开'}}
<a-icon type="up" :class="{'anticon-rotate': !controlLabel}"></a-icon>
</div>
</div>
</div>
</div>
6 years ago
</template>
6 years ago
<script>
export default {
name: "realTimeMonitoring",
data() {
return {
// 收起true 展开false
controlLabel: true
};
},
methods: {
// 展开收起
handleUpDown() {
this.controlLabel = !this.controlLabel;
}
}
6 years ago
};
</script>
6 years ago
<style lang='scss'>
.realTime {
padding: 24px;
&-position {
display: flex;
justify-content: space-between;
&-box {
flex: 1;
display: flex;
justify-content: space-between;
&-btns {
flex: 1;
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
}
&-control {
text-align: right;
cursor: pointer;
color: #55a4ff;
.anticon {
transform: rotate(0deg);
transform-origin: center;
transition: all 0.2s linear;
}
.anticon-rotate {
transform: rotate(180deg);
}
}
}
}
}
</style>