Просмотр исходного кода

fix: fix tabPlane tab props error in umd (#449)

fix: fix tabPlane tab props error in umd
代强 4 лет назад
Родитель
Сommit
2af891cc2b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/semi-ui/tabs/index.tsx

+ 1 - 1
packages/semi-ui/tabs/index.tsx

@@ -15,7 +15,7 @@ import TabPane from './TabPane';
 import TabsContext from './tabs-context';
 import { TabsProps, PlainTab, TabBarProps } from './interface';
 
-const panePickKeys = Object.keys(omit(TabPane.propTypes, ['children']));
+const panePickKeys = ['className', 'style', 'disabled', 'itemKey', 'tab', 'icon'];
 
 export * from './interface';