@@ -132,7 +132,7 @@ class ViewLayout extends React.PureComponent {
autoSize={true}
cols={12}
margin = {editMode ? [12, 12] : [12, 12]}
- rowHeight = {50}
+ rowHeight = {40}
isDraggable={editMode && !editingKey}
isResizable={editMode && !editingKey}
draggableHandle='.mover'
@@ -14,24 +14,33 @@
}
.chartview {
- padding-top: 30px;
+ padding-top: 40px;
z-index: 1;
border: 1px solid #CCCCCC;
background: white;
+ &:hover {
+ .chartview-toolbar {
+ .chart-tools {
+ display: block;
+ }
.chartview-toolbar {
- height: 30px;
- margin-top: -30px;
+ height: 40px;
+ margin-top: -40px;
display: flex;
padding: 0 10px;
justify-content: space-between;
.chart-title {
font-size: 16px;
- line-height: 2;
+ line-height: 40px;
flex-wrap: nowrap;
.chart-tools {
+ display: none;
font-size: 20px;
.anticon {
display: none;
margin-left: 10px;
@@ -43,6 +52,7 @@
.chartview-content {
+ overflow: hidden;
.dashboard-table { // 表格
height: 100%;
.ant-spin-nested-loading {
@@ -83,7 +93,7 @@
padding-bottom: 10px;
.w-e-toolbar {
background-color: white !important;
position: absolute;
top: 0;
@@ -87,7 +87,7 @@ export default {
originData: {
code: null,
name: '无标题',
- defaultLayout: { x: 0, y: 50, w: 12, h: 6, minW: 2, maxW: 12, minH: 4 },
+ defaultLayout: { x: 0, y: 50, w: 12, h: 6, minW: 2, maxW: 12, minH: 1 },
items: [],
chartCodes: [], // 报表包含的所有图表
description: '',