修复开启动态搜索, 搜索无反应

This commit is contained in:
maplemei
2019-12-18 14:38:35 +08:00
parent c64b497482
commit 036126d58c
5 changed files with 16 additions and 61 deletions

View File

@@ -258,7 +258,7 @@ class General extends Component{
}
const search = (
<div class='xm-search'>
<div class={ filterable ? 'xm-search' : 'xm-search dis' }>
<i class="xm-iconfont xm-icon-sousuo"></i>
<input class="xm-input xm-search-input" placeholder={ searchTips } />
</div>
@@ -466,7 +466,7 @@ class General extends Component{
<div onClick={ this.blockClick } tabindex="1" style="outline: none;">
<div>
{ config.toolbar.show && toolbar }
{ filterable && search }
{ search }
<div class="scroll-body" style={ {maxHeight: config.height} }>{ arr }</div>
{ config.paging && paging }
</div>

View File

@@ -318,7 +318,7 @@ class Tree extends Component{
)
const search = (
<div class='xm-search'>
<div class={ filterable ? 'xm-search' : 'xm-search dis' }>
<i class="xm-iconfont xm-icon-sousuo"></i>
<input class="xm-input xm-search-input" placeholder={ searchTips } />
</div>
@@ -332,7 +332,7 @@ class Tree extends Component{
// { config.toolbar.show && toolbar }
return (
<div onClick={ this.blockClick } class="xm-body-tree" >
{ filterable && search }
{ search }
<div class="scroll-body" style={ {maxHeight: config.height} }>{ arr }</div>
</div>
)