perf: 调整panel中图表的按钮
This commit is contained in:
@@ -130,7 +130,7 @@ li{
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
.nz-btn-size-large {
|
.nz-btn-size-large {
|
||||||
padding: 7px 15px;
|
padding: 6px 15px;
|
||||||
}
|
}
|
||||||
.nz-btn.nz-btn-size-normal.nz-btn-size-alien { //弹框顶部异形按钮
|
.nz-btn.nz-btn-size-normal.nz-btn-size-alien { //弹框顶部异形按钮
|
||||||
height: 40px;
|
height: 40px;
|
||||||
@@ -185,6 +185,10 @@ li{
|
|||||||
border-color: #e5e5e5 ;
|
border-color: #e5e5e5 ;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
.nz-btn-group {
|
||||||
|
border-radius: 4px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
.nz-btn-group .nz-btn:first-child:not(:last-child) {
|
.nz-btn-group .nz-btn:first-child:not(:last-child) {
|
||||||
border-bottom-right-radius: 0;
|
border-bottom-right-radius: 0;
|
||||||
border-top-right-radius: 0;
|
border-top-right-radius: 0;
|
||||||
@@ -193,6 +197,19 @@ li{
|
|||||||
border-bottom-left-radius: 0;
|
border-bottom-left-radius: 0;
|
||||||
border-top-left-radius: 0;
|
border-top-left-radius: 0;
|
||||||
}
|
}
|
||||||
|
.nz-btn-group .nz-btn:not(:first-child):not(:last-child) {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
.nz-btn-group .nz-btn {
|
||||||
|
box-shadow: none;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
.nz-btn-group .nz-btn:not(:last-of-type) {
|
||||||
|
border-right: 1px solid rgba(162,162,162,0.50);
|
||||||
|
}
|
||||||
|
.nz-btn-group.nz-btn-group-light {
|
||||||
|
box-shadow: $btn-normal-shadow;
|
||||||
|
}
|
||||||
/* end--按钮组件*/
|
/* end--按钮组件*/
|
||||||
|
|
||||||
/*table提示样式*/
|
/*table提示样式*/
|
||||||
|
|||||||
@@ -27,11 +27,11 @@
|
|||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
.edit {
|
.edit {
|
||||||
// position: absolute;
|
position: absolute;
|
||||||
// right: 40px;
|
right: 20px;
|
||||||
// top: 5px;
|
top: 17px;
|
||||||
// z-index: 10;
|
z-index: 10;
|
||||||
background: $btn-light-background-color;
|
/*background: $btn-light-background-color;
|
||||||
border-radius: 6px;;
|
border-radius: 6px;;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
.set-icon {
|
.set-icon {
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
float: right;
|
float: right;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
.chart-select {
|
.chart-select {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -4,12 +4,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="chart-table">
|
<div class="chart-table">
|
||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
<div class="float-left table-title">
|
<div class="table-title">
|
||||||
{{data.title}}
|
{{data.title}}
|
||||||
</div>
|
</div>
|
||||||
<div class="float-right">
|
<div class="nz-btn-group nz-btn-group-light edit">
|
||||||
|
<button type="button" @click="refreshChart" style="padding: 6px 14px 5px 14px;" class="nz-btn nz-btn-size-large nz-btn-style-light"><i style="font-size: 16px;" class="global-active-color el-icon-refresh-right"></i></button><button
|
||||||
|
@click="editChart" type="button" class="nz-btn nz-btn-size-large nz-btn-style-light"><i class="nz-icon nz-icon-edit"></i></button><button
|
||||||
|
@click="removeChart" type="button" class="nz-btn nz-btn-size-large nz-btn-style-light"><i class="el-icon-delete"></i></button><button
|
||||||
|
@click="showAllScreen" type="button" class="nz-btn nz-btn-size-large nz-btn-style-light"><i class="el-icon-full-screen"></i></button>
|
||||||
|
</div>
|
||||||
|
<!--<div class="float-right">
|
||||||
<div class="edit">
|
<div class="edit">
|
||||||
<!-- v-if="firstShow" -->
|
|
||||||
<div class="list-icon">
|
<div class="list-icon">
|
||||||
<span @click="refreshChart" :title="$t('dashboard.refresh')" class="set-icon">
|
<span @click="refreshChart" :title="$t('dashboard.refresh')" class="set-icon">
|
||||||
<i class="el-icon-refresh-right"></i>
|
<i class="el-icon-refresh-right"></i>
|
||||||
@@ -25,7 +30,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>-->
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-10">
|
<div class="mt-10">
|
||||||
<!--
|
<!--
|
||||||
|
|||||||
@@ -29,17 +29,17 @@
|
|||||||
white-space: pre-wrap !important;
|
white-space: pre-wrap !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.edit:after{
|
/*.edit:after{
|
||||||
display: block;
|
display: block;
|
||||||
content: "";
|
content: "";
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}*/
|
||||||
.edit {
|
.edit {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 40px;
|
right: 20px;
|
||||||
top: 15px;
|
top: 17px;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
background: $btn-light-background-color;
|
/*background: $btn-light-background-color;
|
||||||
border-radius: 6px;;
|
border-radius: 6px;;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
.set-icon {
|
.set-icon {
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
float: right;
|
float: right;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
.chart-select {
|
.chart-select {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="line-chart-block" >
|
<div class="line-chart-block" >
|
||||||
|
|
||||||
<div class="edit">
|
<!--<div class="edit">
|
||||||
<div class="list-icon" v-if="firstShow">
|
<div class="list-icon" v-if="firstShow">
|
||||||
<span @click="refreshChart" :title="$t('dashboard.refresh')" class="set-icon" v-if="showSetting">
|
<span @click="refreshChart" :title="$t('dashboard.refresh')" class="set-icon" v-if="showSetting">
|
||||||
<i class="el-icon-refresh-right"></i>
|
<i class="el-icon-refresh-right"></i>
|
||||||
@@ -19,6 +19,12 @@
|
|||||||
<i class="el-icon-full-screen"></i>
|
<i class="el-icon-full-screen"></i>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
</div>-->
|
||||||
|
<div class="nz-btn-group nz-btn-group-light edit" v-if="firstShow">
|
||||||
|
<button type="button" @click="refreshChart" style="padding: 6px 14px 5px 14px;" class="nz-btn nz-btn-size-large nz-btn-style-light" v-if="showSetting"><i style="font-size: 16px;" class="global-active-color el-icon-refresh-right"></i></button><button
|
||||||
|
@click="editChart" type="button" class="nz-btn nz-btn-size-large nz-btn-style-light" v-if="showSetting"><i class="nz-icon nz-icon-edit"></i></button><button
|
||||||
|
@click="removeChart" type="button" class="nz-btn nz-btn-size-large nz-btn-style-light" v-if="showSetting"><i class="el-icon-delete"></i></button><button
|
||||||
|
@click="showAllScreen" type="button" class="nz-btn nz-btn-size-large nz-btn-style-light"><i class="el-icon-full-screen"></i></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="line-area" ref="lineChartArea" id="lineChartArea"></div>
|
<div class="line-area" ref="lineChartArea" id="lineChartArea"></div>
|
||||||
|
|||||||
@@ -44,8 +44,8 @@
|
|||||||
<el-dropdown-item v-for="item in panelData" :key="item.id+1" :class="showPanel.id==item.id?'nz-dashboard-dropdown-bg':''" :command="item">{{item.name}}</el-dropdown-item>
|
<el-dropdown-item v-for="item in panelData" :key="item.id+1" :class="showPanel.id==item.id?'nz-dashboard-dropdown-bg':''" :command="item">{{item.name}}</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
<div class="nz-btn-group float-right margin-r-20">
|
<div class="nz-btn-group nz-btn-group-light float-right margin-r-20">
|
||||||
<button type="button" class="nz-btn nz-btn-size-normal nz-btn-style-light" @click="Refresh()"><i style="font-size: 13px" class="global-active-color nz-icon nz-icon-refresh"></i></button><el-popover v-model="visible" placement="bottom-start" width="200" trigger="click">
|
<button style="border-right: 1px solid rgba(162,162,162,0.50);" type="button" class="nz-btn nz-btn-size-normal nz-btn-style-light" @click="Refresh()"><i style="font-size: 13px" class="global-active-color nz-icon nz-icon-refresh"></i></button><el-popover v-model="visible" placement="bottom-start" width="200" trigger="click">
|
||||||
<ul class="popover_ul">
|
<ul class="popover_ul">
|
||||||
<li v-for="i in intervalList" :style="{color:interval==i.value?'#31749C':''}" :key="i.value+i.name" @click="selectInterval(i.value)">
|
<li v-for="i in intervalList" :style="{color:interval==i.value?'#31749C':''}" :key="i.value+i.name" @click="selectInterval(i.value)">
|
||||||
{{i.name}}
|
{{i.name}}
|
||||||
|
|||||||
Reference in New Issue
Block a user