widgetBorderBoxFloat.vue
7.05 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!--
Div 图层
-->
<template>
<dv-border-Box-13 class="showRight a-time5 a-yj a-yjfx" :style="styleColor" :color="transStyle.color" :backgroundColor="transStyle.backgroundColor">
<dv-decoration-10 class="line" :style="lineColor" :color="transStyle.color" :dur="transStyle.dur" :reverse="transStyle.reverse">
<div style="text-align:center;font-size: 30px;font-weight: bold;display: flex;justify-content: center; align-items: center;">123</div>
</dv-decoration-10>
</dv-border-Box-13>
<!-- <dv-border-Box-1 :style="styleColor" :color="transStyle.color" :backgroundColor="transStyle.backgroundColor"-->
<!-- v-if="styleColor.divClass === 'dv-border-Box-1'"></dv-border-Box-1>-->
<!-- <dv-border-Box-2 :style="styleColor" :color="transStyle.color" :backgroundColor="transStyle.backgroundColor"-->
<!-- v-else-if="styleColor.divClass === 'dv-border-Box-2'"></dv-border-Box-2>-->
<!-- <dv-border-Box-3 :style="styleColor" :color="transStyle.color" :backgroundColor="transStyle.backgroundColor"-->
<!-- v-else-if="styleColor.divClass === 'dv-border-Box-3'"></dv-border-Box-3>-->
<!-- <dv-border-Box-4 :style="styleColor" :color="transStyle.color" :backgroundColor="transStyle.backgroundColor"-->
<!-- :reverse="transStyle.reverse"-->
<!-- v-else-if="styleColor.divClass === 'dv-border-Box-4'"></dv-border-Box-4>-->
<!-- <dv-border-Box-5 :style="styleColor" :color="transStyle.color" :backgroundColor="transStyle.backgroundColor"-->
<!-- v-else-if="styleColor.divClass === 'dv-border-Box-5'"></dv-border-Box-5>-->
<!-- <dv-border-Box-6 :style="styleColor" :color="transStyle.color" :backgroundColor="transStyle.backgroundColor"-->
<!-- v-else-if="styleColor.divClass === 'dv-border-Box-6'"></dv-border-Box-6>-->
<!-- <dv-border-Box-7 :style="styleColor" :color="transStyle.color" :backgroundColor="transStyle.backgroundColor"-->
<!-- v-else-if="styleColor.divClass === 'dv-border-Box-7'"></dv-border-Box-7>-->
<!-- <dv-border-Box-8 :style="styleColor" :color="transStyle.color" :backgroundColor="transStyle.backgroundColor"-->
<!-- :dur="transStyle.dur" :reverse="transStyle.reverse"-->
<!-- :title="transStyle.title" :titleWidth="transStyle.titleWidth"-->
<!-- v-else-if="styleColor.divClass === 'dv-border-Box-8'" ></dv-border-Box-8>-->
<!-- <dv-border-Box-9 :style="styleColor" :color="transStyle.color" :backgroundColor="transStyle.backgroundColor"-->
<!-- v-else-if="styleColor.divClass === 'dv-border-Box-9'"></dv-border-Box-9>-->
<!-- <dv-border-Box-10 :style="styleColor" :color="transStyle.color" :backgroundColor="transStyle.backgroundColor"-->
<!-- v-else-if="styleColor.divClass === 'dv-border-Box-10'"></dv-border-Box-10>-->
<!-- <dv-border-Box-11 :style="styleColor" :color="transStyle.color" :backgroundColor="transStyle.backgroundColor"-->
<!-- :title="transStyle.title" :titleWidth="transStyle.titleWidth"-->
<!-- v-else-if="styleColor.divClass === 'dv-border-Box-11'"></dv-border-Box-11>-->
<!-- <dv-border-Box-12 :style="styleColor" :color="transStyle.color" :backgroundColor="transStyle.backgroundColor"-->
<!-- v-else-if="styleColor.divClass === 'dv-border-Box-12'"></dv-border-Box-12>-->
<!-- <dv-border-Box-13 :style="styleColor" :color="transStyle.color" :backgroundColor="transStyle.backgroundColor"-->
<!-- v-else="styleColor.divClass === 'dv-border-Box-13'"></dv-border-Box-13>-->
</template>
<script>
import borderBox1 from "@jiaminghi/data-view/lib/components/borderBox1";
import borderBox2 from "@jiaminghi/data-view/lib/components/borderBox2";
import borderBox3 from "@jiaminghi/data-view/lib/components/borderBox3";
import borderBox4 from "@jiaminghi/data-view/lib/components/borderBox4";
import borderBox5 from "@jiaminghi/data-view/lib/components/borderBox5";
import borderBox6 from "@jiaminghi/data-view/lib/components/borderBox6";
import borderBox7 from "@jiaminghi/data-view/lib/components/borderBox7";
import borderBox8 from "@jiaminghi/data-view/lib/components/borderBox8";
import borderBox9 from "@jiaminghi/data-view/lib/components/borderBox9";
import borderBox10 from "@jiaminghi/data-view/lib/components/borderBox10";
import borderBox11 from "@jiaminghi/data-view/lib/components/borderBox11";
import borderBox12 from "@jiaminghi/data-view/lib/components/borderBox12";
import borderBox13 from "@jiaminghi/data-view/lib/components/borderBox13";
import decoration10 from "@jiaminghi/data-view/lib/components/decoration10";
Vue.use(borderBox1)
Vue.use(borderBox2)
Vue.use(borderBox3)
Vue.use(borderBox4)
Vue.use(borderBox5)
Vue.use(borderBox6)
Vue.use(borderBox7)
Vue.use(borderBox8)
Vue.use(borderBox9)
Vue.use(borderBox10)
Vue.use(borderBox11)
Vue.use(borderBox12)
Vue.use(borderBox13)
Vue.use(decoration10)
export default {
name: "WidgetBorderBox",
components: {
},
props: {
value: Object,
ispreview: Boolean,
},
data() {
return {
options: {},
optionsData: {},
};
},
computed: {
transStyle() {
let transStyleObj = this.objToOne(this.options);
let color = [];
if(!this.isBlankObject(transStyleObj)){
const colorOne = transStyleObj.colorOne;
if(!this.isBlankObject(colorOne)){
color.push(colorOne);
}
const colorTwo = transStyleObj.colorTwo;
if(!this.isBlankObject(colorTwo)){
color.push(colorTwo);
}
transStyleObj.color = color;
}
return transStyleObj;
},
styleColor() {
return {
position: this.ispreview ? "absolute" : "static",
// color: this.transStyle.colorOne,
// text: this.transStyle.text,
divClass:
this.transStyle.divType == undefined
? "dv-border-Box-1"
: this.transStyle.divType,
// background: this.transStyle.backgroundColor,
width: this.transStyle.width + "px",
height: this.transStyle.height + "px",
left: this.transStyle.left + "px",
top: this.transStyle.top + "px",
right: this.transStyle.right + "px",
};
},
lineColor() {
return {
position: this.ispreview ? "absolute" : "static",
width: this.transStyle.width*0.8 + "px",
height: this.transStyle.height + "px",
left: this.transStyle.left + "px",
top: this.transStyle.top + "px",
right: this.transStyle.right + "px",
};
},
},
watch: {
value: {
handler(val) {
this.options = val;
this.optionsData = val.data;
},
deep: true,
},
},
mounted() {
this.options = this.value;
},
methods: {},
};
</script>
<style scoped lang="scss">
.div {
width: 100%;
height: 100%;
border: 2em;
border-color: aqua;
overflow: hidden;
}
.div_Style {
width: 100%;
height: 100%;
}
.line{
position: relative;
margin-left: 15px;
}
</style>