div2.vue
1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<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>