Skip to content

Commit

Permalink
* dtable: fix rowHeight may has not value.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Sep 10, 2024
1 parent 2bb3f23 commit f1e4d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dtable/src/components/dtable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ export class DTable extends Component<DTableOptions, DTableState> {
/* Init columns. */
const cols = initColsLayout(this, options, plugins, width);

const {data, rowKey = 'id', rowHeight} = options;
const {data, rowKey = 'id', rowHeight = 35} = options;
const allRows: RowInfo[] = [];
const addRowItem = (id: string, index: number, item?: RowData) => {
const row: RowInfo = {data: item ?? {[rowKey]: id}, id, index: allRows.length, top: 0};
Expand Down

0 comments on commit f1e4d19

Please sign in to comment.