<template>
  <div class="elem-fill-number">
    <div class="fill-number-head">
      <h5>{{ data.name }}</h5>
      <div class="fill-number-rect">
        <div
          class="fill-number-number"
          v-for="n in data.numberCount"
          :key="n"
          :style="columnStyles"
        ></div>
      </div>
    </div>
    <div class="fill-number-body">
      <div
        class="fill-number-list"
        v-for="n in data.numberCount"
        :key="n"
        :style="columnStyles"
      >
        <div class="fill-number-option" v-for="m in 10" :key="m">
          <i>{{ m - 1 }}</i>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "elem-fill-number",
  props: {
    data: {
      type: Object,
    },
  },
  computed: {
    columnStyles() {
      return {
        width: (100 / this.data.numberCount).toFixed(2) + "%",
      };
    },
  },
  data() {
    return {};
  },
  methods: {},
};
</script>
