From 44b529b0d5bb7d352d8be8380193ad690673ee82 Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Mon, 4 Dec 2017 20:44:37 +0800 Subject: [PATCH] Omit loading for Switch --- components/switch/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 (