<template>
	<div id="mainPageLeft" :class="[useMapStore().left_board?'switch-left-active':'switch-left']">
		<!-- 市政设施类型 -->
		<MunicipalFacilities></MunicipalFacilities>
		<!-- 道路预警 -->
		<RoadWarnings></RoadWarnings>
		<!-- 道路等级 -->
		<RoadGrade></RoadGrade>
		<!-- 道路路幅 -->
		<RoadWidth></RoadWidth>
		
	</div> 
</template>

<script setup>
	import MunicipalFacilities from '@/components/MunicipalFacilities.vue'
	import RoadWarnings from '@/components/RoadWarnings.vue'
	import RoadGrade from '@/components/RoadGrade.vue'
	import RoadWidth from '@/components/RoadWidth.vue'
  import {useMapStore} from "@/store/mapStore.js";
	
</script>

<style scoped lang="scss">
	#mainPageLeft {
		position: absolute;
		left: 20px;
		top: 87px;
		width: 420px;
		height: 973px;
		background-color: rgba(0, 22, 52, 0.75);
	}
  .switch-left-active{
    transition-property: transform;
    transition-duration:1s;
  }
  .switch-left{
    transition-property: transform;
    transition-duration:1s;
    transform: translateX(-480px);
  }
</style>
