Newer
Older
urbanLifeline_YanAn / src / views / oneMap / components / ZHSD.vue
@zhangqy zhangqy on 14 Oct 1 KB 创建隧道BIM文件夹
<template>
  <div id="ZHSD">
    <div
      :class="[
        'LeftBox',
        'animate__animated',
        showPanel ? 'animate__fadeOutLeft' : 'animate__fadeInLeft',
      ]"
    >
      智慧隧道
    </div>
    <div
      :class="[
        'RightBox',
        'animate__animated',
        showPanel ? 'animate__fadeOutRight' : 'animate__fadeInRight',
      ]"
    >
      智慧隧道
    </div>
  </div>
</template>

<script setup name="ZHSD">
import { ref, reactive, toRefs, onMounted } from "vue";
const AllData = reactive({});
const showPanel = ref(true); //面板展开收起
// 面板内容展开收起控制
const props = defineProps({
  showPanel: {
    type: Boolean,
  },
});
watch(
  () => props.showPanel,
  () => {
    showPanel.value = props.showPanel;
  },
  { immediate: true }
);
onMounted(() => {});
</script>

<style lang="scss" scoped>
#ZHSD {
  .LeftBox {
    width: 450px;
    height: calc(100% - 98px);
    position: absolute;
    left: 10px;
    top: 70px;
    background: linear-gradient(
      0deg,
      rgba(0, 93, 114, 0.8) 0%,
      rgba(0, 93, 114, 0.8) 100%
    );
    border-radius: 6px;
    border: 1px solid #47eef3;
  }
  .RightBox {
    width: 450px;
    height: calc(100% - 98px);
    position: absolute;
    right: 10px;
    top: 70px;
    background: linear-gradient(
      0deg,
      rgba(0, 93, 114, 0.8) 0%,
      rgba(0, 93, 114, 0.8) 100%
    );
    border-radius: 6px;
    border: 1px solid #47eef3;
  }
}
</style>