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 };