From 9f6a9d9af0890c5a6830c89cd8bb50bd19861a4e Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 21 Jul 2015 16:18:27 +0800 Subject: [PATCH] update radio demos --- components/radio/demo/basic.md | 3 ++- components/radio/demo/radiogroup.md | 18 +++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/components/radio/demo/basic.md b/components/radio/demo/basic.md index 14914e3f82c3..4c7035115a7d 100644 --- a/components/radio/demo/basic.md +++ b/components/radio/demo/basic.md @@ -9,5 +9,6 @@ ````jsx var Radio = antd.Radio; -React.render(Radio, document.getElementById('components-radio-demo-basic')); +React.render(Radio +, document.getElementById('components-radio-demo-basic')); ```` diff --git a/components/radio/demo/radiogroup.md b/components/radio/demo/radiogroup.md index 95b28087c31f..1ce350d199d1 100644 --- a/components/radio/demo/radiogroup.md +++ b/components/radio/demo/radiogroup.md @@ -13,24 +13,24 @@ var RadioGroup = antd.RadioGroup; var App = React.createClass({ getInitialState: function () { return { - value:"a" + value: 'a' }; }, - onChange(ev) { - console.log('radio checked:' + ev.target.value); + onChange(e) { + console.log('radio checked:' + e.target.value); this.setState({ - value:ev.target.value - }) + value: e.target.value + }); }, render() { return
A - B - C - D + B + C + D - 你选中的:  {this.state.value} +
你选中的: {this.state.value}
} });