|
@@ -17,6 +17,18 @@ export interface SummaryMethodParams {
|
|
|
data: object
|
|
|
}
|
|
|
|
|
|
+export interface rowCallbackParams {
|
|
|
+ row: object,
|
|
|
+ rowIndex: number
|
|
|
+}
|
|
|
+
|
|
|
+export interface cellCallbackParams {
|
|
|
+ row: object,
|
|
|
+ rowIndex: number,
|
|
|
+ column: object,
|
|
|
+ columnIndex: number
|
|
|
+}
|
|
|
+
|
|
|
/** Table Component */
|
|
|
export declare class ElTable extends ElementUIComponent {
|
|
|
/** Table data */
|
|
@@ -47,10 +59,28 @@ export declare class ElTable extends ElementUIComponent {
|
|
|
currentRowKey: string | number
|
|
|
|
|
|
/** Function that returns custom class names for a row, or a string assigning class names for every row */
|
|
|
- rowClassName: string | ((row: object, index: number) => string)
|
|
|
+ rowClassName: string | ((param: rowCallbackParams) => string)
|
|
|
+
|
|
|
+ /** Function that returns custom style for a row, or an object assigning custom style for every row */
|
|
|
+ rowStyle: object | ((param: rowCallbackParams) => object)
|
|
|
+
|
|
|
+ /** Function that returns custom class names for a cell, or a string assigning class names for every cell */
|
|
|
+ cellClassName: string | ((param: cellCallbackParams) => string)
|
|
|
+
|
|
|
+ /** Function that returns custom style for a cell, or an object assigning custom style for every cell */
|
|
|
+ cellStyle: object | ((param: cellCallbackParams) => object)
|
|
|
+
|
|
|
+ /** Function that returns custom class names for a row in table header, or a string assigning class names for every row in table header */
|
|
|
+ headerRowClassName: string | ((param: rowCallbackParams) => string)
|
|
|
+
|
|
|
+ /** Function that returns custom style for a row in table header, or an object assigning custom style for every row in table header */
|
|
|
+ headerRowStyle: object | ((param: rowCallbackParams) => object)
|
|
|
+
|
|
|
+ /** Function that returns custom class names for a cell in table header, or a string assigning class names for every cell in table header */
|
|
|
+ headerCellClassName: string | ((param: cellCallbackParams) => string)
|
|
|
|
|
|
- /** Function that returns custom style for a row, or a string assigning custom style for every row */
|
|
|
- rowStyle: string | object | ((row: object, index: number) => object)
|
|
|
+ /** Function that returns custom style for a cell in table header, or an object assigning custom style for every cell in table header */
|
|
|
+ headerCellStyle: object | ((param: cellCallbackParams) => object)
|
|
|
|
|
|
/** Key of row data, used for optimizing rendering. Required if reserve-selection is on */
|
|
|
rowKey: (row: object) => any
|