mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
update rc-select and demos
This commit is contained in:
parent
e52164f35f
commit
8ab58d6fce
@ -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>;
|
||||
|
@ -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"
|
||||
},
|
||||
|
@ -45,6 +45,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
&-combobox &-arrow {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&-selection {
|
||||
outline: none;
|
||||
user-select: none;
|
||||
|
Loading…
Reference in New Issue
Block a user