NEZ-3478 fix: 调整legend全选反选样式
This commit is contained in:
@@ -377,10 +377,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.legend-container {
|
.legend-container {
|
||||||
|
overflow-y: auto;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
@@ -441,11 +441,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.legendSelect{
|
.legendSelect{
|
||||||
|
padding-left: 0 !important;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
cursor: unset;
|
cursor: unset;
|
||||||
overflow: unset;
|
overflow: unset;
|
||||||
span{
|
span{
|
||||||
font-weight: bold;
|
visibility: hidden;
|
||||||
|
padding: 0px 6px;
|
||||||
|
height: 16px;
|
||||||
|
line-height: 16px;
|
||||||
|
text-align: center;
|
||||||
|
border: 1px solid $--border-color-base;
|
||||||
|
font-size: 12px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
&:first-of-type{
|
&:first-of-type{
|
||||||
margin-right: 6px;
|
margin-right: 6px;
|
||||||
@@ -456,6 +463,12 @@
|
|||||||
color: $--color-text-secondary !important;
|
color: $--color-text-secondary !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
&.legend-item{
|
||||||
|
flex-shrink: 0;
|
||||||
|
height: 20px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 表格类型
|
// 表格类型
|
||||||
@@ -1194,12 +1207,18 @@
|
|||||||
background: $--color-primary;
|
background: $--color-primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
&:hover .legendSelect {
|
||||||
|
span{
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nz-chart__component--bottom{
|
.nz-chart__component--bottom{
|
||||||
.legend-wrap{
|
.legend-wrap{
|
||||||
min-height: 38px;
|
min-height: 38px;
|
||||||
max-height: 72px;
|
max-height: 92px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
.legend-resize{
|
.legend-resize{
|
||||||
@@ -1216,7 +1235,7 @@
|
|||||||
.panel-chart--fullscreen{
|
.panel-chart--fullscreen{
|
||||||
.nz-chart__component--bottom{
|
.nz-chart__component--bottom{
|
||||||
.legend-wrap{
|
.legend-wrap{
|
||||||
max-height: 80px;
|
max-height: 100px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<chart-legend
|
<chart-legend
|
||||||
ref="legend"
|
ref="legend"
|
||||||
style="flex-shrink: 0"
|
|
||||||
v-if="hasLegend"
|
v-if="hasLegend"
|
||||||
:chart-data="chartData"
|
:chart-data="chartData"
|
||||||
:chart-info="chartInfo"
|
:chart-info="chartInfo"
|
||||||
@@ -268,7 +267,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
padding: [15, 15, 15, 15],
|
padding: [15, 15, 0, 15],
|
||||||
// padding: [15, this.autoPadRight, 15, 15],
|
// padding: [15, this.autoPadRight, 15, 15],
|
||||||
legend: {
|
legend: {
|
||||||
show: false
|
show: false
|
||||||
@@ -285,13 +284,14 @@ export default {
|
|||||||
axes: [
|
axes: [
|
||||||
{
|
{
|
||||||
scale: 'x',
|
scale: 'x',
|
||||||
gap: 5,
|
gap: 0,
|
||||||
stroke: self.color[self.theme].label,
|
stroke: self.color[self.theme].label,
|
||||||
grid: {
|
grid: {
|
||||||
show: true,
|
show: true,
|
||||||
stroke: self.color[self.theme].grid,
|
stroke: self.color[self.theme].grid,
|
||||||
width: 1
|
width: 1
|
||||||
}
|
},
|
||||||
|
size: 20
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
scale: 'left',
|
scale: 'left',
|
||||||
|
|||||||
Reference in New Issue
Block a user