diff --git a/components/switch/index.tsx b/components/switch/index.tsx index fd4449e222..0b38d131d6 100755 --- a/components/switch/index.tsx +++ b/components/switch/index.tsx @@ -2,6 +2,7 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import RcSwitch from 'rc-switch'; import classNames from 'classnames'; +import omit from 'omit.js'; export interface SwitchProps { prefixCls?: string; @@ -51,7 +52,7 @@ export default class Switch extends React.Component { }); return (