update demos

This commit is contained in:
afc163 2015-06-18 12:02:38 +08:00
parent 85a9cfda5a
commit bd7bbd0cd5
4 changed files with 6 additions and 10 deletions

View File

@ -9,7 +9,6 @@
````jsx
var Popover = antd.Popover;
var content = [
<p>内容</p>,
<p>内容</p>,
<p>内容</p>
];

View File

@ -10,7 +10,6 @@
var Popover = antd.Popover;
var text = <span>标题</span>;
var content = [
<p>内容</p>,
<p>内容</p>,
<p>内容</p>
];

View File

@ -9,7 +9,6 @@
````jsx
var Popover = antd.Popover;
var content = [
<p>内容</p>,
<p>内容</p>,
<p>内容</p>
];

View File

@ -18,16 +18,15 @@ var Test = React.createClass({
};
},
handleChange(value) {
var options;
if (!value) {
this.setState({
options: []
options = [];
} else {
options = ['gmail.com', '163.com', 'qq.com'].map(function(domain) {
var email = value + '@' + domain;
return <Option value={email}>{email}</Option>;
});
return;
}
var options = ['gmail.com', '163.com', 'qq.com'].map(function(domain) {
var email = value + '@' + domain;
return <Option value={email}>{email}</Option>;
});
this.setState({
options: options
});