NEZ-2242 feat:页面元素拖动样式调整
This commit is contained in:
@@ -357,3 +357,20 @@
|
|||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.chart-ghost{
|
||||||
|
background: #FF8C0E !important;
|
||||||
|
opacity: 0.13 !important;
|
||||||
|
color: transparent !important;
|
||||||
|
*{
|
||||||
|
visibility: hidden !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.fallback-class{
|
||||||
|
opacity: 1 !important;
|
||||||
|
cursor: grab !important;
|
||||||
|
background-color: $--background-color-empty;
|
||||||
|
.drag-sort .nz-icon-sort{
|
||||||
|
color: #FF8C0E;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -169,7 +169,6 @@
|
|||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: 10px;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
.variable-title-left{
|
.variable-title-left{
|
||||||
@@ -198,10 +197,6 @@
|
|||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.variable-title{
|
|
||||||
margin-bottom: 0;
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
.add-variable{
|
.add-variable{
|
||||||
border: 1px solid $--border-color-light;
|
border: 1px solid $--border-color-light;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
|||||||
@@ -43,8 +43,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.vue-grid-item.vue-grid-placeholder {
|
.vue-grid-item.vue-grid-placeholder {
|
||||||
background: red;
|
background: #FF8C0E;
|
||||||
opacity: 0.2;
|
opacity: 0.13;
|
||||||
transition-duration: 100ms;
|
transition-duration: 100ms;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
|
|||||||
@@ -30,10 +30,10 @@
|
|||||||
handle: '.drag-sort'
|
handle: '.drag-sort'
|
||||||
}">
|
}">
|
||||||
<el-row
|
<el-row
|
||||||
:key="index"
|
|
||||||
class="element-item form-row-item thresholds-from-item"
|
class="element-item form-row-item thresholds-from-item"
|
||||||
style=""
|
style="margin-bottom: 10px !important"
|
||||||
v-for="index of chartConfig.elements.length"
|
v-for="index of chartConfig.elements.length"
|
||||||
|
:key="index"
|
||||||
>
|
>
|
||||||
<div class="chart-title chart-title-config">
|
<div class="chart-title chart-title-config">
|
||||||
<span class="chart-title-content el-form-item" :class="{
|
<span class="chart-title-content el-form-item" :class="{
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<transition name="el-zoom-in-top">
|
<transition name="el-zoom-in-top">
|
||||||
<el-row v-show="expressionsShow[index-1].show" style="margin-bottom: 10px">
|
<el-row v-show="expressionsShow[index-1].show">
|
||||||
<el-form-item :prop="'elements.' + (index -1) + '.expression'" :rules="{ required: true, message: $t('validate.required'), trigger: 'blur'}">
|
<el-form-item :prop="'elements.' + (index -1) + '.expression'" :rules="{ required: true, message: $t('validate.required'), trigger: 'blur'}">
|
||||||
<promql-input
|
<promql-input
|
||||||
:from-father-data="true"
|
:from-father-data="true"
|
||||||
|
|||||||
@@ -65,6 +65,7 @@
|
|||||||
<el-row
|
<el-row
|
||||||
v-for="(item,index) of editPanel.param.variables"
|
v-for="(item,index) of editPanel.param.variables"
|
||||||
:key="item.uid"
|
:key="item.uid"
|
||||||
|
style="margin-top: 10px"
|
||||||
>
|
>
|
||||||
<div class="variable-title">
|
<div class="variable-title">
|
||||||
<span class="variable-title-left">
|
<span class="variable-title-left">
|
||||||
|
|||||||
Reference in New Issue
Block a user