div2.vue 1.33 KB
<template>
  <div class="bg">
    <svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg" fill="transparent" width="2661"
      height="1737" class="dv-border-svg-container">
      <polygon fill="transparent" points="
      7, 7 2654, 7 2654, 1730 7, 1730
    "></polygon>
      <polyline points="2, 2 2659 ,2 2659, 1735 2, 1735 2, 2" :stroke="mainColor"></polyline>
      <polyline points="6, 6 2655, 6 2655, 1731 6, 1731 6, 6" :stroke="secondaryColor"></polyline>
      <circle cx="11" cy="11" r="1" :fill="mainColor"></circle>
      <circle cx="2650" cy="11" r="1" :fill="mainColor"></circle>
      <circle cx="2650" cy="1726" r="1" :fill="mainColor"></circle>
      <circle cx="11" cy="1726" r="1" :fill="mainColor"></circle>
    </svg>
  </div>
</template>

<script>
export default {
  name: 'widget-div-2',
  props: {
    mainColor: {
      type: String,
      default: "mainColor",
    },
    secondaryColor: {
      type: String,
      default: "secondaryColor",
    },
  },
  computed: {
    valuesArr() {
      return [`${this.mainColor};${this.secondaryColor};${this.mainColor};`,
      `${this.secondaryColor};${this.mainColor};${this.secondaryColor};`,
      `${this.mainColor};${this.secondaryColor};transparent;`];
    }
  }
};
</script>

<style lang="scss" scoped>
.bg {
  width: 100%;
  height: 100%;
  position: relative;
}
</style>