mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 21:18:01 +08:00
fix(Table): correct lint errors
This commit is contained in:
parent
3274c55bdf
commit
18017d6ea5
@ -89,7 +89,7 @@ const defaultPagination = {
|
||||
*/
|
||||
const emptyObject = {};
|
||||
|
||||
let row: BodyRowClass | undefined;
|
||||
let tableRow: BodyRowClass | undefined;
|
||||
|
||||
const createComponents = (
|
||||
components: TableComponents = {},
|
||||
@ -99,17 +99,17 @@ const createComponents = (
|
||||
const bodyRow = components && components.body && components.body.row;
|
||||
const prevBodyRow = prevComponents && prevComponents.body && prevComponents.body.row;
|
||||
if (isCalledFromConstructor) {
|
||||
// 'row' needs to act like a class property
|
||||
row = undefined;
|
||||
// 'tableRow' needs to act like a class property
|
||||
tableRow = undefined;
|
||||
}
|
||||
if (!row || bodyRow !== prevBodyRow) {
|
||||
row = createBodyRow(bodyRow);
|
||||
if (!tableRow || bodyRow !== prevBodyRow) {
|
||||
tableRow = createBodyRow(bodyRow);
|
||||
}
|
||||
return {
|
||||
...components,
|
||||
body: {
|
||||
...components.body,
|
||||
row,
|
||||
row: tableRow,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user