Browse Source

chore: Add TabPaneProps def (#24648)

pull/24652/head
二货机器人 5 years ago
committed by GitHub
parent
commit
294144b1ae
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      components/tabs/index.tsx

3
components/tabs/index.tsx

@ -1,5 +1,6 @@
import * as React from 'react';
import RcTabs, { TabPane, TabsProps as RcTabsProps } from 'rc-tabs';
import { TabPaneProps } from 'rc-tabs/lib/sugar/TabPane';
import { EditableConfig } from 'rc-tabs/lib/interface';
import classNames from 'classnames';
import EllipsisOutlined from '@ant-design/icons/EllipsisOutlined';
@ -13,6 +14,8 @@ import { SizeType } from '../config-provider/SizeContext';
export type TabsType = 'line' | 'card' | 'editable-card';
export type TabsPosition = 'top' | 'right' | 'bottom' | 'left';
export { TabPaneProps };
export interface TabsProps extends Omit<RcTabsProps, 'editable'> {
type?: TabsType;
size?: SizeType;

Loading…
Cancel
Save