Skip to content

Commit 642655b

Browse files
authored
fix(tabs): type exception of the tab slots in TabPane. (tusen-ai#6873)
* fix: 修复TabPane得 tab Slots, ts异常 * fix: `n-tabs` Fix the type exception of the tab slots in TabPane.
1 parent ab9f83b commit 642655b

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

CHANGELOG.en-US.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
## 2.41.1
4+
5+
### Fixes
6+
7+
- `n-tabs` Fix the type exception of the tab slots in TabPane.
8+
39
## 2.41.0
410

511
`2025-01-05`

CHANGELOG.zh-CN.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
## 2.41.1
4+
5+
### Fixes
6+
7+
- `n-tabs` 修复了TabPane中tab Slots的类型异常。
8+
39
## 2.41.0
410

511
`2025-01-05`

src/tabs/src/TabPane.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export type TabPaneProps = ExtractPublicPropTypes<typeof tabPaneProps>
4141

4242
export interface TabPaneSlots {
4343
default?: () => VNode[]
44+
tab?: () => VNode[]
4445
prefix?: () => VNode[]
4546
suffix?: () => VNode[]
4647
}

0 commit comments

Comments
 (0)