Explorar o código

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

fix: fix tabPlane tab props error in umd
代强 %!s(int64=4) %!d(string=hai) anos
pai
achega
2af891cc2b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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';