<template>
  <SubTitleSelect 
    :data="[
      {title:'卫星影像', value: 0}, 
      {title:'无人机', value: 1}, 
      {title:'摄像头', value: 2}]" 
    :select="select" 
    @changeSelect="changeSelect"/>
  <div class="content">
    <div class="resource-div">
      <div class="resource-icon"><Icon style="font-size: 55px;" icon="gis:pyramid" /></div>
      <div class="resource-value"><span>卫星影像<br/>数据年份<span class="stress">1970年 - 2023年</span></span></div>
    </div>
    <div class="info">
      <Icon style="color: #6b93c4;" icon="bi:info-circle-fill" />
      <div style="margin-left: 5px;">
        <div style="margin-bottom: 3px">使用搜索功能，在地图上绘制范围，查看区域地类变化</div>
        <div style="color: #2a7dc9; cursor: pointer; user-select: none;">搜索影像 >></div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue"
import SubTitleSelect from '../../components/SubTitleSelect/index.vue'
import Icon from '@/components/Icon/Icon.vue';
const select = ref(0)
const changeSelect = (value) => {
  select.value = value
}
</script>

<style lang="scss" scoped>
.content{
  padding-top: 20px;
  .resource-div{
    display: flex;
    height: 60px;
    margin-bottom: 20px;
    .resource-icon {
      width: 120px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .resource-value {
      flex: 1;
      background: #f0f0f0;
      padding: 10px 20px;
      display: flex;
      align-items: center;
      line-height: 23px;
      .stress{
        font-weight: bold;
        margin-left: 30px;
        color: #409eff;
      }
    }
  }
  .info{
    display: flex;
    align-items: flex-start;
  }
}
</style>
