fix:bug修改

main
zhu.yawen 1 year ago
parent 77d639ab62
commit 4bdc4976cf

@ -270,7 +270,7 @@ export default {
left: 0;
width: 400px;
margin-top: 50px;
margin-left: 20px;
margin-left: 80px;
margin-right: 200px;
table{
color: #fff;
@ -283,9 +283,9 @@ export default {
}
}
.imgContent{
width: 300px;
width: 400px;
position: absolute;
left: 500px;
left: 600px;
top: 50%;
transform: translateY(-50%);
margin-top: 0px;

@ -32,6 +32,8 @@ export default {
},
data () {
return {
borderWidth: 0,
borderHeight: 0
}
},
computed: {
@ -45,10 +47,10 @@ export default {
const borderArr = this.config.border.borderArray ? this.config.border.borderArray
: [10, 10, 10, 10]
const arr = []
arr[0] = borderArr[0] * 3.2
arr[1] = borderArr[1] * 4.5
arr[2] = borderArr[2] * 3.2
arr[3] = borderArr[3] * 4.5
arr[0] = borderArr[0] * this.borderHeight / 100
arr[1] = borderArr[1] * this.borderWidth / 100
arr[2] = borderArr[2] * this.borderHeight / 100
arr[3] = borderArr[3] * this.borderWidth / 100
return arr
}
},
@ -70,6 +72,10 @@ export default {
}
},
mounted () {
//
const element = document.querySelector('.bs-design-wrap')
this.borderWidth = element.offsetWidth
this.borderHeight = element.offsetHeight
if(this.config.border.imgUrl){
let ur=this.config.border.imgUrl
if(!this.config.border.imgUrl.startsWith('http')){

Loading…
Cancel
Save