<!--
 * @Descripttion: 当前组件信息
 * @version: 1.0.0
 * @Author: 无尘
 * @Date: 2019-03-20 14:36:37
 * @LastEditors: 无尘
 * @LastEditTime: 2020-03-06 17:34:18
 -->
<!--
<store-performance
:fieldName="fieldName">
</store-performance>
 -->
<template>
  <div class="data-number-contain">
    <h3 class="build-title title-flag">
      <span>{{ fieldName }}</span>
    </h3>
    <table class="data-number-table">
      <thead>
        <tr>
          <th class="w_22"></th>
          <th class="w_26">日</th>
          <th class="w_26">月</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>指标</td>
          <td>473,960</td>
          <td>473,960</td>
        </tr>
        <tr>
          <td>累计销售额</td>
          <td>473,960</td>
          <td>999,476,960</td>
        </tr>
        <tr>
          <td>达成率</td>
          <td>100%</td>
          <td>100%</td>
        </tr>
        <tr>
          <td>同比</td>
          <td>100%</td>
          <td>100%</td>
        </tr>
        <tr>
          <td>环比</td>
          <td>100%</td>
          <td>100%</td>
        </tr>
      </tbody>
    </table>
  </div>
</template>
<script>
export default {
  name: 'store-performance',
  props: {
    fieldName: {
      type: String,
      default() {
        return '';
      }
    }
  },
  data() {
    return {};
  }
};
</script>
<style type="text/scss" lang="scss" scoped>
.data-number-contain {
  position: relative;

  .build-title {
    height: 56px;
    line-height: 56px;
    padding-left: 10px;
    text-align: left;
    background: #fff;

    span {
      border-left: 2px solid #2b3953;
      padding-left: 12px;
      font-size: 17px;
      font-weight: 600;
      display: inline-block;
      height: 14px;
      line-height: 10px;
    }
  }

  .data-number-table {
    width: 100%;
    text-align: center;

    thead {
      font-weight: 700;
      tr {
        height: 50px;
        line-height: 50px;
        background: #f3f4f8;
        font-size: 12px;
        text-align: left;
      }
      th {
        text-align: center;
      }
      .w_22 {
        width: 22%;
      }
      .w_26 {
        width: 26%;
      }
    }

    tbody {
      tr {
        height: 50px;
        line-height: 50px;
        font-size: 12px;
        td:first-child {
          font-size: 12px;
          font-weight: 600;
        }
      }
      tr:first-child {
        font-weight: 600;
        color: #7ca5f1;
      }
      tr:nth-child(odd) {
        background: #fff;
      }
    }
  }
}
</style>
