Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGELOG

## NEXT_VERSION

`NEXT_VERSION`

### Fixes

- Fix `n-data-table` `TableSelectionColumn` type definition not allowing `rowSpan` and `colSpan` properties, closes [#7347](https://github.com/tusen-ai/naive-ui/issues/7347) by [@pstrh](https://github.com/pstrh).

## 2.43.2

### Fixes
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGELOG

## NEXT_VERSION

`NEXT_VERSION`

### Fixes

- 修复 `n-data-table` 的 `TableSelectionColumn` 类型定义不允许 `rowSpan` 和 `colSpan` 属性的问题,关闭 [#7347](https://github.com/tusen-ai/naive-ui/issues/7347) by [@pstrh](https://github.com/pstrh)

## 2.43.2

### Fixes
Expand Down
4 changes: 2 additions & 2 deletions src/data-table/src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ export type TableSelectionColumn<T = InternalRowData> = {
filterOptions?: never
filterOptionValues?: never
filterOptionValue?: never
colSpan?: never
rowSpan?: never
colSpan?: (rowData: T, rowIndex: number) => number
rowSpan?: (rowData: T, rowIndex: number) => number
} & CommonColumnInfo<T>

export type RenderExpand<T = InternalRowData> = (
Expand Down