|
|
@@ -1,7 +1,12 @@
|
|
|
<template>
|
|
|
<div class="control-tab" :class="{ 'control-tab_is-active': isOpen }">
|
|
|
<div @click="handleOpenTab" class="control-tab-switch">
|
|
|
- <img style="margin: 10px 0" src="@/assets/images/institute-safety/control-tab-switch.png" alt="" />
|
|
|
+ <img
|
|
|
+ class="control-tab-switch-img"
|
|
|
+ :class="{ 'control-tab-switch-img_is-active': isOpen }"
|
|
|
+ src="@/assets/images/institute-safety/control-tab-switch.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
</div>
|
|
|
<div class="control-tab-content">
|
|
|
<div class="tab-button" @click="emit('open-surveillance-list')">
|
|
|
@@ -31,20 +36,18 @@
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style scoped>
|
|
|
+<style scoped lang="scss">
|
|
|
.control-tab {
|
|
|
position: absolute;
|
|
|
bottom: 10px;
|
|
|
right: -86px;
|
|
|
-
|
|
|
- width: 102px;
|
|
|
-
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
-
|
|
|
transition-duration: 0.3s;
|
|
|
transition-property: all;
|
|
|
+ background-image: url('@/assets/images/institute-safety/more-btn-bg.png');
|
|
|
+ background-size: 100% 100%;
|
|
|
}
|
|
|
|
|
|
.control-tab_is-active {
|
|
|
@@ -52,39 +55,24 @@
|
|
|
}
|
|
|
|
|
|
.control-tab-switch {
|
|
|
- cursor: pointer;
|
|
|
-
|
|
|
- width: 16px;
|
|
|
- background: rgba(50, 50, 50, 1);
|
|
|
- backdrop-filter: blur(10px);
|
|
|
- }
|
|
|
-
|
|
|
- .control-tab-switch::before {
|
|
|
- content: '';
|
|
|
- display: block;
|
|
|
-
|
|
|
- position: relative;
|
|
|
- bottom: 5px;
|
|
|
-
|
|
|
width: 16px;
|
|
|
- height: 10px;
|
|
|
- transform: skewY(-30deg);
|
|
|
- background: rgba(50, 50, 50, 1);
|
|
|
- backdrop-filter: blur(10px);
|
|
|
- }
|
|
|
-
|
|
|
- .control-tab-switch::after {
|
|
|
- content: '';
|
|
|
- display: block;
|
|
|
-
|
|
|
- position: relative;
|
|
|
- top: 5px;
|
|
|
+ height: 75px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ cursor: pointer;
|
|
|
|
|
|
- width: 16px;
|
|
|
- height: 10px;
|
|
|
- transform: skewY(30deg);
|
|
|
- background: rgba(50, 50, 50, 1);
|
|
|
- backdrop-filter: blur(10px);
|
|
|
+ .control-tab-switch-img {
|
|
|
+ width: 7px;
|
|
|
+ height: 10px;
|
|
|
+ transform: rotate(180deg);
|
|
|
+ transition: all 0.3s;
|
|
|
+ }
|
|
|
+
|
|
|
+ .control-tab-switch-img_is-active {
|
|
|
+ transform: rotate(0deg);
|
|
|
+ transition: all 0.3s;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.control-tab-content {
|
|
|
@@ -93,15 +81,14 @@
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
gap: 28px;
|
|
|
- background: rgba(0, 0, 0, 0.5);
|
|
|
- backdrop-filter: blur(10px);
|
|
|
- border-radius: 5px;
|
|
|
padding: 16px 7px;
|
|
|
}
|
|
|
+
|
|
|
.tab-button {
|
|
|
cursor: pointer;
|
|
|
text-align: center;
|
|
|
}
|
|
|
+
|
|
|
.tab-text {
|
|
|
font-weight: 400;
|
|
|
font-size: 12px;
|