Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tdesign-component/lib/src/components/table/td_table.dart
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class TDTableState extends State<TDTable> {
if ((col.selection ?? false) && col.cellBuilder == null) {
var checkBox;
// 行选择框
if (_notEmptyData()) {
if (_notEmptyData() && !isHeader) {
var enable = col.selectable?.call(index, widget.data?[index]) ?? true;
checkBox = TDCheckbox(
id: 'index:$index',
Expand Down Expand Up @@ -635,7 +635,7 @@ class TDTableState extends State<TDTable> {
var cells = <Widget>[];
for (var j = 0; j < titles[i].length; j++) {
var col = cols[i];
var cell = _getCell(col, j == 0, j == 0 ? '' : widget.data?[j - 1], i,
var cell = _getCell(col, j == 0, j == 0 ? '' : widget.data?[j - 1], j - 1,
i == titles.length - 1);
cells.add(SizedBox(width: col.width ?? cellWidth, child: cell));
}
Expand Down
Loading