<template>
  <div>
    <div class="content">
      <div class="title">
        <div class="icon"></div>
        <div class="title-span">标绘历史</div>
      </div>
      <div class="title-inteval"></div>
      <div class="list-title">
        <div style="margin-right: 144px;">标绘名称</div>
        <div style="margin-right: 144px;">时间</div>
        <div>操作</div>
      </div>
      <div class="list-content">
        <div class="list-item" v-for="item in 20">
          <div class="item-name">山东临沂市费县薛庄镇山东临沂市费县薛庄镇山东临沂市费县薛庄镇</div>
          <div class="item-time">2025-3-17 17:03:00</div>
          <div class="button-div">
            <div class="show-item-button">查看</div>
            <div class="hidden-item-button">关闭</div>
          </div>
          <div class="mark"></div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref, computed, watch, PropType, nextTick, h } from 'vue'
import { message } from 'ant-design-vue';
import Icon from '@/components/Icon/Icon.vue';
import { mapFun } from '@/hooks/ceshiFun.hook';
import { Modal } from 'ant-design-vue';

const ceshiFunction = mapFun();
const props = defineProps({
  themeSetting: {
    type: Object,
    required: true
  },
  themeColor: {
    type: Object,
    required: true
  },
  chartConfig: {
    type: Object,
    required: true
  }
})
const plotList = props.chartConfig.option.dataset


console.log('props',props,plotList)
</script>
<style lang="scss" scoped>
.content{
  width: 100%;
  height: 100%;
  background: #113825;
  border: 1px solid #00611A;
  padding-top: 14px;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  .title{
    height: 22px;
    display: flex;
    align-items: center;
    margin-bottom: 11px;
    .icon{
      width: 15px;
      height: 15px;
      background-image: url('/public/components/MapPlotHistory/title_icon.png');
      background-size: 100% 100%;
      margin-right: 7px;
    }
    .title-span{
      font-family: PingFangSC-Medium;
      font-weight: 500;
      font-size: 16px;
      color: #FFFFFF;
      line-height: 22px;
      text-align: left;
    }
  }
  .title-inteval{
    width: 362px;
    height: 1px;
    background: linear-gradient( 90deg, #005516 0%, #0A392A 100%);
    margin-left: -20px;
    margin-bottom: 18px;
  }
  .list-title{
    height: 38px;
    background: #05231A;
    border-top: 2px solid #00611A;
    font-family: PingFangSC-Regular;
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
    line-height: 20px;
    text-shadow: 0px 0px 13px rgba(0,207,44,0.5);
    display: flex;
    align-items: center;
    padding-left: 36px;
    user-select: none;
  }
  .list-content{
    max-height: 609px;
    overflow: auto;
    scrollbar-width: none; 
    ::-webkit-scrollbar {
      width: 0;
      height: 0;
    }
    .list-item{
      display: flex;
      align-items: center;
      position: relative;
      height: 38px;
      background: #0A392A;
      padding-left: 16px;
      font-family: PingFangSC-Regular;
      font-weight: 400;
      font-size: 10px;
      color: #FFFFFF;
      line-height: 14px;
      text-shadow: 0px 0px 13px rgba(0,207,44,0.5);
      .item-name{
        width: 110px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 69px;
      }
      .item-time{
        width: 100px;
        margin-right: 67px;
      }
      .button-div{
        display: flex;
        user-select: none;
        .show-item-button{
          width: 58px;
          height: 21px;
          background-image: url('/public/components/MapPlotHistory/show_button.png');
          background-size: 100% 100%;
          margin-right: 8px;
          font-family: PingFangSC-Medium;
          font-weight: 500;
          font-size: 12px;
          color: #FFFFFF;
          line-height: 17px;
          text-shadow: 0px 1px 2px rgba(27,55,76,0.5);
          display: flex;
          align-items: center;
          justify-content: center;
          cursor: pointer;
        }
        .hidden-item-button{
          width: 58px;
          height: 21px;
          background-image: url('/public/components/MapPlotHistory/close_button.png');
          background-size: 100% 100%;
          font-family: PingFangSC-Medium;
          font-weight: 500;
          font-size: 12px;
          color: #FFFFFF;
          line-height: 17px;
          text-shadow: 0px 1px 2px rgba(27,55,76,0.5);
          display: flex;
          align-items: center;
          justify-content: center;
          cursor: pointer;
        }
      }
      .mark{
        position: absolute;
        top: 0px;
        right: 0px;
        width: 0px;
        height: 0px;
        border-left: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-top: 6px solid #00611A;
      }
    }
    .list-item:nth-child(2n){
      background: rgba(6, 40, 29, 0.7);
    }
  }
}
</style>