From 9bf8c81ec870d62dfed213af88dc1b70ab9ef027 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 28 Jun 2016 22:22:42 +0800 Subject: [PATCH] fix icon.tsx --- components/icon/index.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/components/icon/index.tsx b/components/icon/index.tsx index 19fcea1905..5dd177401b 100644 --- a/components/icon/index.tsx +++ b/components/icon/index.tsx @@ -1,10 +1,6 @@ -import React from 'react'; -import splitObject from '../_util/splitObject'; +import * as React from 'react'; export default props => { - const [{type, className = ''}, others] = splitObject(props, - ['type','className']); - - let className2 = `${className} anticon anticon-${type}`.trim(); - return ; + const { type, className = '' } = props; + return };