<template>
  <a-divider />
  <div class="project-list">项目列表</div>
  <div class="list-flex">
    <div class="item-box">
      <div class="one-level h-70 cursor-pointer flex items-center" @click="toDetail()">
        <div class="icon"><img src="https://www.tall.wiki/staticrec/drag.svg" /></div>
        <div class="detail">
          <div class="name-box flex items-center">
            <div class="name truncate">项目名称</div>
            <div class="precent">50%</div>
          </div>

          <div class="time">11-21 00:00 至 11-21 23.59</div>
        </div>

        <div class="right" @click.stop="openMenu">
          <img src="" />
          <img src="" />
        </div>
      </div>

      <div class="two-box">
        <div class="two-flex">
          <div class="two-level h-70 cursor-pointer flex items-center" @click="toDetail()">
            <div class="icon"><img src="https://www.tall.wiki/staticrec/drag.svg" /></div>
            <div class="detail">
              <div class="name-box flex items-center">
                <div class="name truncate">项目名称</div>
                <div class="precent">50%</div>
              </div>

              <div class="time">11-21 00:00 至 11-21 23.59</div>
            </div>

            <div class="right" @click.stop="openMenu">
              <img src="" />
              <img src="" />
            </div>
          </div>

          <div class="three-box">
            <div class="three-level h-70 cursor-pointer flex items-center" @click="toDetail()">
              <div class="icon"><img src="https://www.tall.wiki/staticrec/drag.svg" /></div>
              <div class="detail">
                <div class="name-box flex items-center">
                  <div class="name truncate">项目名称</div>
                  <div class="precent">50%</div>
                </div>

                <div class="time">11-21 00:00 至 11-21 23.59</div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
// import { useStore } from 'vuex';

// const store = useStore();

function toDetail() {}
</script>
<script>
export default { name: 'Projects' };
</script>

<style scoped>
.ant-divider-horizontal {
  height: 16px;
  background: #eeeeee;
  margin: 0;
}
.project-list {
  padding: 16px 0;
}

.h-70 {
  height: 70px;
}

.one-level {
  padding: 0 16px;
}

.two-level {
  padding: 0 16px 0 32px;
}

.three-level {
  padding: 0 16px 0 48px;
}

.item-box .icon {
  margin-right: 8px;
  width: 24px;
  height: 24px;
}

.detail {
  width: calc(100% - 76px);
}

.name-box {
  margin-bottom: 8px;
}

.name {
  margin-right: 8px;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  max-width: calc(100% - 56px);
}

.precent {
  width: 48px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 18px;
  background-color: rgba(24, 144, 255, 0.2);
  color: #1890ff;
  font-size: 12px;
  font-weight: 600;
}

.time {
  font-size: 12px;
  color: #999999;
}

.right {
  width: 14px;
  margin-left: 30px;
}
</style>
