forked from github/dataease
Merge pull request #4155 from dataease/pr@dev@refactor_dragger
refactor(仪表板): 优化仪表板拖拽区
This commit is contained in:
commit
5d36e72b0a
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user