<template>
  <li>
    <div style="display: block;" class="result">
      <div class="ft">{{!!number ? number : 0}}</div>
      <div class="bar">
        <div style="height:0%;" class="bg"></div>
      </div>
    </div>
    <div class="face_vote">
      <a hidefocus href="javascript:void(0)">
        <span>
          <img :src="path" onerror="this.src='assets/images/picture404-'+((row.ID||row.$index) % 4)+'.png';" width="24" height="24">
        </span>
        <br>{{text}}</a>
    </div>
  </li>
</template>

<script>
export default {
  props: {
    number: {
      type: [String, Number],
      default: 0
    },
    text: [String],
    path: [String]
  },
  methods: {
  }
}
</script>
<style>
.face_vote a span {
  height: 24px;
  display: block;
}

.histogram {
  text-align: center;
  padding: 0px;
  font: 12px '宋体';
  color: #333;
}

.histogram li {
  width: 63px;
  height: 120px;
  display: inline-block;
  text-align: center;
  list-style: none;
  position: relative;
}

.histogram a {
  text-decoration: none;
  border: 0;
  background-color: transparent;
  color: #333;
  outline: none;
}

.histogram a img {
  text-decoration: none;
  border: 0;
}

.histogram .result {
  width: 50px;
  height: auto;
  margin: 0 auto;
  padding: 0px;
}

.histogram .result .ft {
  padding: 0px;
  position: relative;
  margin-bottom: 0px;
  left: 1px;
  *left: 0px;
  _left: 0px;
  color: #000000;
  font-size: 12px;
}

.histogram .result .ft_b {
  padding: 0px;
  position: relative;
  margin-bottom: 0px;
  left: 1px;
  *left: 0px;
  _left: 0px;
  color: #ee0000;
  font-size: 12px;
  font-weight: bold;
}

.histogram .result .bar {
  width: 10px;
  height: 50px;
  padding: 0px;
  background: #d9e4f8;
  position: relative;
  margin-bottom: 5px;
  left: 20px;
  *left: 0px;
  _left: 0px;
}

.histogram .result .bar .bg {
  margin: 0px;
  padding: 0px;
  height: 0;
  background: #f5ac3b;
  width: 4px;
  border-left: 1px solid #e78e27;
  border-right: 5px solid #e68b22;
  position: absolute;
  left: 0px;
  bottom: 0px;
  line-height: 0px;
  font-size: 0px;
}
</style>
