mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
update combobox demo
This commit is contained in:
parent
0611570caa
commit
fe0ead041a
@ -2,7 +2,7 @@
|
||||
|
||||
- order: 4
|
||||
|
||||
类似账号注册表单输入框的自动完成功能。
|
||||
输入框自动完成功能,下面是一个账号注册表单的例子。
|
||||
|
||||
---
|
||||
|
||||
@ -19,7 +19,7 @@ var Test = React.createClass({
|
||||
},
|
||||
handleChange(value) {
|
||||
var options;
|
||||
if (!value) {
|
||||
if (!value || value.indexOf('@') >= 0) {
|
||||
options = [];
|
||||
} else {
|
||||
options = ['gmail.com', '163.com', 'qq.com'].map(function(domain) {
|
||||
|
Loading…
Reference in New Issue
Block a user