From 7277f8c0579985610873597c2932d11b7c4f25c3 Mon Sep 17 00:00:00 2001 From: Akuma Huang Date: Thu, 19 May 2016 16:56:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=94=AF=E6=8C=81=E4=BC=A0?= =?UTF-8?q?=E5=85=A5=E8=87=AA=E5=AE=9A=E4=B9=89=20className?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/button/button_area.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/button/button_area.js b/src/components/button/button_area.js index 50bf180..bf882d1 100644 --- a/src/components/button/button_area.js +++ b/src/components/button/button_area.js @@ -17,16 +17,17 @@ export default class ButtonArea extends React.Component { }; render() { - const {direction, children} = this.props; - const className = classNames({ + const {direction, children, className} = this.props; + const cls = classNames({ weui_btn_area: true, - weui_btn_area_inline: direction === 'horizontal' + weui_btn_area_inline: direction === 'horizontal', + [className]: className }); return ( -
+
{children}
); } -}; \ No newline at end of file +};