Browse Source

update demos

pull/26/head
afc163 10 years ago
parent
commit
bd7bbd0cd5
  1. 1
      components/popover/demo/basic.md
  2. 1
      components/popover/demo/placement.md
  3. 1
      components/popover/demo/triggerType.md
  4. 13
      components/select/demo/combobox.md

1
components/popover/demo/basic.md

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

1
components/popover/demo/placement.md

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

1
components/popover/demo/triggerType.md

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

13
components/select/demo/combobox.md

@ -18,16 +18,15 @@ var Test = React.createClass({
}; };
}, },
handleChange(value) { handleChange(value) {
var options;
if (!value) { 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({ this.setState({
options: options options: options
}); });

Loading…
Cancel
Save