update rc-select and demos

This commit is contained in:
afc163 2015-06-18 11:57:31 +08:00
parent e52164f35f
commit 8ab58d6fce
3 changed files with 12 additions and 2 deletions

View File

@ -2,7 +2,7 @@
- order: 4
类似 Google 搜索的输入框自动提示功能。
类似账号注册表单输入框的自动完成功能。
---
@ -18,6 +18,12 @@ var Test = React.createClass({
};
},
handleChange(value) {
if (!value) {
this.setState({
options: []
});
return;
}
var options = ['gmail.com', '163.com', 'qq.com'].map(function(domain) {
var email = value + '@' + domain;
return <Option value={email}>{email}</Option>;

View File

@ -19,7 +19,7 @@
"rc-dropdown": "~1.0.2",
"rc-menu": "~3.4.0",
"rc-progress": "~1.0.0",
"rc-select": "~3.4.1",
"rc-select": "~3.5.0",
"rc-tabs": "~5.1.0",
"rc-tooltip": "~2.1.1"
},

View File

@ -45,6 +45,10 @@
}
}
&-combobox &-arrow {
display: none;
}
&-selection {
outline: none;
user-select: none;