ElemFillPane.vue 827 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <div class="elem-fill-pane" :style="elemStyle">
  3. <div
  4. v-for="n in data.paneCount"
  5. :key="n"
  6. class="fill-pane-item"
  7. :style="paneStyles"
  8. >
  9. <div class="fill-pane-cont" :style="contStyles"></div>
  10. </div>
  11. </div>
  12. </template>
  13. <script>
  14. export default {
  15. name: "elem-fill-pane",
  16. props: {
  17. data: {
  18. type: Object
  19. }
  20. },
  21. data() {
  22. return {};
  23. },
  24. computed: {
  25. contStyles() {
  26. return {
  27. borderStyle: this.data.borderStyle,
  28. width: this.data.paneWidth + "px",
  29. height: this.data.paneHeight + "px"
  30. };
  31. },
  32. paneStyles() {
  33. return {
  34. padding: this.data.paneGap / 2 + "px"
  35. };
  36. },
  37. elemStyle() {
  38. return {
  39. padding: this.data.paneGap / 2 + "px"
  40. };
  41. }
  42. },
  43. methods: {}
  44. };
  45. </script>