提交 ef6ae668 authored 作者: wangjiahao's avatar wangjiahao

fix: 优化仪表板编辑时,边界可能间隙不一致

上级 1fdb21a1
...@@ -451,9 +451,8 @@ export default { ...@@ -451,9 +451,8 @@ export default {
} }
}, },
style() { style() {
// console.log('style-top:' + this.y + '--' + this.top)
return { return {
padding: this.curGap + 'px', padding: this.curGap + 'px!important',
transform: `translate(${this.left}px, ${this.top}px) rotate(${this.rotate}deg)`, transform: `translate(${this.left}px, ${this.top}px) rotate(${this.rotate}deg)`,
width: this.computedWidth, width: this.computedWidth,
height: this.computedHeight, height: this.computedHeight,
...@@ -529,7 +528,6 @@ export default { ...@@ -529,7 +528,6 @@ export default {
width: this.computedMainSlotWidth, width: this.computedMainSlotWidth,
height: this.computedMainSlotHeight height: this.computedMainSlotHeight
} }
// console.log('style=>' + JSON.stringify(style))
return style return style
}, },
curComponent() { curComponent() {
...@@ -698,7 +696,7 @@ export default { ...@@ -698,7 +696,7 @@ export default {
const rect = this.$el.parentNode.getBoundingClientRect() const rect = this.$el.parentNode.getBoundingClientRect()
this.parentX = rect.x this.parentX = rect.x
this.parentY = rect.y this.parentY = rect.y
return [Math.round(parseFloat(style.getPropertyValue('width'), 10)), 100000] return [Math.round(parseFloat(style.getPropertyValue('width'), 10)) + 6, 100000]
} }
if (typeof this.parent === 'string') { if (typeof this.parent === 'string') {
const parentNode = document.querySelector(this.parent) const parentNode = document.querySelector(this.parent)
...@@ -1810,35 +1808,8 @@ export default { ...@@ -1810,35 +1808,8 @@ export default {
transition: 0.2s transition: 0.2s
} }
.gap_class{
padding:5px;
}
.de-drag-active{ .de-drag-active{
outline: 1px solid #70c0ff; outline: 1px solid #70c0ff;
user-select: none; user-select: none;
} }
/*.mouseOn >>> .icon-shezhi{*/
/* z-index: 2;*/
/* display:block!important;*/
/*}*/
/*.vdr > i{*/
/* right: 5px;*/
/* color: gray;*/
/* position: absolute;*/
/*}*/
/*.vdr >>> i:hover {*/
/* color: red;*/
/*}*/
/*.vdr:hover >>> i {*/
/* z-index: 2;*/
/* display:block;*/
/*}*/
/*.vdr>>>.icon-shezhi {*/
/* display:none*/
/*}*/
</style> </style>
...@@ -280,4 +280,9 @@ export default { ...@@ -280,4 +280,9 @@ export default {
padding: 10px 20px 20px; padding: 10px 20px 20px;
} }
::-webkit-scrollbar {
width: 0px!important;
height: 0px!important;
}
</style> </style>
...@@ -147,5 +147,10 @@ export default { ...@@ -147,5 +147,10 @@ export default {
} }
.full-height { .full-height {
height: 100vh !important; height: 100vh !important;
::-webkit-scrollbar {
width: 0px;
height: 0px;
}
} }
</style> </style>
...@@ -699,7 +699,7 @@ export default { ...@@ -699,7 +699,7 @@ export default {
if (domInfo) { if (domInfo) {
this.outStyle.height = domInfo.offsetHeight - this.getGap() this.outStyle.height = domInfo.offsetHeight - this.getGap()
// 临时处理 确保每次restore 有会更新 // 临时处理 确保每次restore 有会更新
this.outStyle.width = domInfo.offsetWidth - this.getGap() + (Math.random() * 0.000001) this.outStyle.width = domInfo.offsetWidth - this.getGap() + (Math.random() * 0.000001) + 2
} }
}) })
}, },
...@@ -1057,8 +1057,8 @@ export default { ...@@ -1057,8 +1057,8 @@ export default {
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 0px; width: 2px!important;
height: 0px; height: 2px!important;
} }
</style> </style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论