<template>
  <div :class="classes">
    <div class="lines-body">
      <div
        v-for="n in data.lineCount"
        :key="n"
        class="lines-item"
        :style="styles"
      ></div>
    </div>
  </div>
</template>

<script>
export default {
  name: "ElemLineHorizontal",
  props: {
    data: {
      type: Object,
      default() {
        return {};
      },
    },
  },
  data() {
    return {};
  },
  computed: {
    classes() {
      return ["elem-lines"];
    },
    styles() {
      return {
        borderBottomStyle: this.data.style,
        borderBottomWidth: this.data.bold,
        borderBottomColor: this.data.color,
        paddingTop: this.data.lineSpacing + "px",
        margin: this.data.margin ? `0 ${this.data.margin}px` : "0",
      };
    },
  },
  methods: {},
};
</script>
