mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
Co-authored-by: seven <zhu.hui93@iwhalecloud.com>
This commit is contained in:
parent
0f63c5d6bc
commit
d4a5c76d04
@ -44,7 +44,7 @@ function Tabs({
|
||||
...props
|
||||
}: TabsProps) {
|
||||
const { prefixCls: customizePrefixCls, moreIcon = <EllipsisOutlined /> } = props;
|
||||
const { getPrefixCls, direction } = React.useContext(ConfigContext);
|
||||
const { getPrefixCls, direction, getPopupContainer } = React.useContext(ConfigContext);
|
||||
const prefixCls = getPrefixCls('tabs', customizePrefixCls);
|
||||
|
||||
let editable: EditableConfig | undefined;
|
||||
@ -77,6 +77,7 @@ function Tabs({
|
||||
return (
|
||||
<RcTabs
|
||||
direction={direction}
|
||||
getPopupContainer={getPopupContainer}
|
||||
moreTransitionName={`${rootPrefixCls}-slide-up`}
|
||||
{...props}
|
||||
items={mergedItems}
|
||||
|
Loading…
Reference in New Issue
Block a user