mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 20:39:07 +08:00
Merge branch 'master' of https://github.com/RickCole21/amis
This commit is contained in:
commit
b2ad56d004
@ -131,6 +131,8 @@ export class Transfer extends React.Component<TransferProps, TransferState> {
|
||||
|
||||
@autobind
|
||||
handleSearch(text: string) {
|
||||
// text 有值的时候,走搜索否则直接走 handleSeachCancel ,等同于右侧的 clear 按钮
|
||||
if (text) {
|
||||
this.setState(
|
||||
{
|
||||
inputValue: text
|
||||
@ -141,6 +143,9 @@ export class Transfer extends React.Component<TransferProps, TransferState> {
|
||||
this.lazySearch(text);
|
||||
}
|
||||
);
|
||||
} else {
|
||||
this.handleSeachCancel();
|
||||
}
|
||||
}
|
||||
|
||||
@autobind
|
||||
|
Loading…
Reference in New Issue
Block a user