Merge pull request #4155 from dataease/pr@dev@refactor_dragger

refactor(仪表板): 优化仪表板拖拽区
This commit is contained in:
王嘉豪 2022-12-21 16:18:32 +08:00 committed by GitHub
commit 5d36e72b0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@
@mousedown.stop.prevent="handleDown(handlei, $event)" @mousedown.stop.prevent="handleDown(handlei, $event)"
@touchstart.stop.prevent="handleTouchDown(handlei, $event)" @touchstart.stop.prevent="handleTouchDown(handlei, $event)"
> >
<slot :name="handlei" /> <slot :name="handlei"/>
</div> </div>
<div <div
:id="componentCanvasId" :id="componentCanvasId"
@ -95,7 +95,7 @@
class="svg-background" class="svg-background"
:icon-class="mainSlotSvgInner" :icon-class="mainSlotSvgInner"
/> />
<slot /> <slot/>
</div> </div>
</div> </div>
</div> </div>
@ -2170,31 +2170,31 @@ export default {
} }
.de-drag-top { .de-drag-top {
left: 0; left: 1px;
top: 0; top: 1px;
height: 12px; height: 12px;
width: 100%; width: calc(100% - 2px);
} }
.de-drag-right { .de-drag-right {
right: 0; right: 1px;
top: 0; top: 1px;
width: 16px; width: 16px;
height: 100%; height: calc(100% - 30px);
} }
.de-drag-bottom { .de-drag-bottom {
left: 0; left: 1px;
bottom: 0; bottom: 1px;
height: 12px; height: 12px;
width: 100%; width: calc(100% - 2px);
} }
.de-drag-left { .de-drag-left {
left: 0; left: 1px;
top: 0; top: 1px;
width: 16px; width: 16px;
height: 100%; height: calc(100% - 2px);
} }
</style> </style>