mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
fix(Dashboard grid):emit dragged item on resize and adjust z-index for overlay and dragged item
This commit is contained in:
@@ -38,13 +38,6 @@
|
|||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.draggedItem {
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
background-color:white;
|
|
||||||
position:relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dashboard-section > .newGridRow{
|
.dashboard-section > .newGridRow{
|
||||||
position:absolute;
|
position:absolute;
|
||||||
width:20px;
|
width:20px;
|
||||||
@@ -128,6 +121,13 @@
|
|||||||
cursor: move;
|
cursor: move;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.draggedItem {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
background-color: white;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
.dashboard-item-overlay::before{
|
.dashboard-item-overlay::before{
|
||||||
position:absolute;
|
position:absolute;
|
||||||
content:"";
|
content:"";
|
||||||
@@ -137,7 +137,6 @@
|
|||||||
bottom:0;
|
bottom:0;
|
||||||
background-color:rgba(0, 100, 156);
|
background-color:rgba(0, 100, 156);
|
||||||
border:4px dashed lightgray;
|
border:4px dashed lightgray;
|
||||||
z-index: 2;
|
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -425,6 +425,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
this.mode = MODE_RESIZE;
|
this.mode = MODE_RESIZE;
|
||||||
this.draggedItem = item;
|
this.draggedItem = item;
|
||||||
|
this.$emit('draggedItem', item);
|
||||||
this._dragStart(evt);
|
this._dragStart(evt);
|
||||||
},
|
},
|
||||||
dragOver(evt) {
|
dragOver(evt) {
|
||||||
@@ -627,7 +628,7 @@ export default {
|
|||||||
class="position-absolute"
|
class="position-absolute"
|
||||||
:active="active"
|
:active="active"
|
||||||
:style="{
|
:style="{
|
||||||
zIndex: item.resizeOverlay ? -5 : 'auto',
|
zIndex: item.resizeOverlay ? 1 : 2,
|
||||||
top: 'calc(' + item.y + ' * var(--fhc-dg-row-height))',
|
top: 'calc(' + item.y + ' * var(--fhc-dg-row-height))',
|
||||||
left: 'calc(' + item.x + ' * var(--fhc-dg-col-width))',
|
left: 'calc(' + item.x + ' * var(--fhc-dg-col-width))',
|
||||||
width: 'calc(' + item.w + ' * var(--fhc-dg-col-width))',
|
width: 'calc(' + item.w + ' * var(--fhc-dg-col-width))',
|
||||||
|
|||||||
Reference in New Issue
Block a user