diff --git a/components/popover/demo/basic.md b/components/popover/demo/basic.md index 1ea14d6ad9..bfc6a6e801 100644 --- a/components/popover/demo/basic.md +++ b/components/popover/demo/basic.md @@ -9,7 +9,6 @@ ````jsx var Popover = antd.Popover; var content = [ -

内容

,

内容

,

内容

]; diff --git a/components/popover/demo/placement.md b/components/popover/demo/placement.md index f752ebe1dc..16b5d01720 100644 --- a/components/popover/demo/placement.md +++ b/components/popover/demo/placement.md @@ -10,7 +10,6 @@ var Popover = antd.Popover; var text = 标题; var content = [ -

内容

,

内容

,

内容

]; diff --git a/components/popover/demo/triggerType.md b/components/popover/demo/triggerType.md index 64c13894e3..33d52f3d29 100644 --- a/components/popover/demo/triggerType.md +++ b/components/popover/demo/triggerType.md @@ -9,7 +9,6 @@ ````jsx var Popover = antd.Popover; var content = [ -

内容

,

内容

,

内容

]; diff --git a/components/select/demo/combobox.md b/components/select/demo/combobox.md index d27ae1b7a5..45d8dc604c 100644 --- a/components/select/demo/combobox.md +++ b/components/select/demo/combobox.md @@ -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 ; }); - return; } - var options = ['gmail.com', '163.com', 'qq.com'].map(function(domain) { - var email = value + '@' + domain; - return ; - }); this.setState({ options: options });