mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
update demos
This commit is contained in:
parent
85a9cfda5a
commit
bd7bbd0cd5
@ -9,7 +9,6 @@
|
||||
````jsx
|
||||
var Popover = antd.Popover;
|
||||
var content = [
|
||||
<p>内容</p>,
|
||||
<p>内容</p>,
|
||||
<p>内容</p>
|
||||
];
|
||||
|
@ -10,7 +10,6 @@
|
||||
var Popover = antd.Popover;
|
||||
var text = <span>标题</span>;
|
||||
var content = [
|
||||
<p>内容</p>,
|
||||
<p>内容</p>,
|
||||
<p>内容</p>
|
||||
];
|
||||
|
@ -9,7 +9,6 @@
|
||||
````jsx
|
||||
var Popover = antd.Popover;
|
||||
var content = [
|
||||
<p>内容</p>,
|
||||
<p>内容</p>,
|
||||
<p>内容</p>
|
||||
];
|
||||
|
@ -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
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user