Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@coze-arch/coze-design",
"comment": "support custom tabbar props",
"type": "patch"
}
],
"packageName": "@coze-arch/coze-design",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export interface TabsTopProps
mode?: 'tab' | 'select';
type?: TabType;
align?: 'left' | 'center' | 'right';
customTabBarProps?: SemiTabBarProps;
}

export interface TabsBarProps
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const Tabs = forwardRef<SemiTabs, TabsTopProps>((props, ref) => {
mode,
align,
renderTabBar,
customTabBarProps,
tabPaneMotion,
...restProps
} = mergeProps(props, defaultProps);
Expand All @@ -49,7 +50,7 @@ export const Tabs = forwardRef<SemiTabs, TabsTopProps>((props, ref) => {
DefaultTabBar,
) => (
<div className={`coz-tab-bar-${tabType}`}>
<DefaultTabBar {...tabBarProps} />
<DefaultTabBar {...tabBarProps} {...customTabBarProps} />
</div>
);

Expand Down
Loading