<template>
<div class="time_node_item" :title="nodeData.rq">
  <a-popover :title="nodeData.rq" placement="bottom">
    <template slot="content">
      <div class="icon_list_tips">
        <div v-for="item in nodeData.list" :key="item.name">
          <span :style="{ backgroundColor: item.color }"></span>
          {{ item.lx }}
        </div>
      </div>
    </template>
    <div class="icon_list">
      <span v-for="item in nodeData.list" :key="item.name" :style="{ backgroundColor: item.color }"></span>
    </div>
    <p class="title">{{ nodeData.rq }}</p>
  </a-popover>
</div>
</template>

<script>
export default {
  inject: ["nodeData"],
  data() {
    return {
    };
  },
  mounted() {},
  methods: {}
};
</script>
<style lang="less" scoped>
.time_node_item {
  position: relative;
  width: 100%;
  color: #000;
  cursor: pointer;
  font-size: 12px;
  text-align: center;
  line-height: 40px;
  .icon_list {
    position: absolute;
    bottom: 32px;
    left: 16px;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap-reverse;
    span {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 2px;
      transform: rotateZ(45deg);
      margin-right: 8px;
      margin-top: 4px;
    }
  }
}
</style>
<style lang="less">
.icon_list_tips {
  font-size: 12px;
  span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    transform: rotateZ(45deg);
    margin-right: 8px;
    margin-top: 4px;
  }
}
</style>