ryan 7 سال پیش
والد
کامیت
61053ec099
2فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 2 4
      packages/grafana-ui/src/components/Table/Table.tsx
  2. 3 1
      packages/grafana-ui/src/components/Table/_Table.scss

+ 2 - 4
packages/grafana-ui/src/components/Table/Table.tsx

@@ -212,7 +212,7 @@ export class Table extends Component<Props, State> {
 
 
     const isHeader = row < 0;
     const isHeader = row < 0;
     const rowData = isHeader ? data.columns : data.rows[row];
     const rowData = isHeader ? data.columns : data.rows[row];
-    const value = rowData ? rowData[column] : `[${columnIndex}:${rowIndex}]`;
+    const value = rowData ? rowData[column] : '';
     const builder = isHeader ? this.headerBuilder : this.getTableCellBuilder(column);
     const builder = isHeader ? this.headerBuilder : this.getTableCellBuilder(column);
 
 
     return (
     return (
@@ -277,10 +277,8 @@ export class Table extends Component<Props, State> {
         height={height}
         height={height}
         fixedColumnCount={fixedColumnCount}
         fixedColumnCount={fixedColumnCount}
         fixedRowCount={fixedRowCount}
         fixedRowCount={fixedRowCount}
-        classNameTopLeftGrid="gf-table-fixed-row-and-column"
-        classNameTopRightGrid="gf-table-fixed-row"
+        classNameTopLeftGrid="gf-table-fixed-column"
         classNameBottomLeftGrid="gf-table-fixed-column"
         classNameBottomLeftGrid="gf-table-fixed-column"
-        classNameBottomRightGrid="gf-table-normal-cell"
       />
       />
     );
     );
   }
   }

+ 3 - 1
packages/grafana-ui/src/components/Table/_Table.scss

@@ -66,6 +66,8 @@
 .gf-table-cell {
 .gf-table-cell {
   padding: 3px 10px;
   padding: 3px 10px;
 
 
+  background: $page-gradient;
+
   text-overflow: ellipsis;
   text-overflow: ellipsis;
   white-space: nowrap;
   white-space: nowrap;
 
 
@@ -74,5 +76,5 @@
 }
 }
 
 
 .gf-table-fixed-column {
 .gf-table-fixed-column {
-  border-right: 1px solid #ccc;
+  border-right: 1px solid #CCC;
 }
 }