update 调整大量细节
This commit is contained in:
@@ -86,6 +86,10 @@ export default class QueryTreeLayout extends Component {
|
||||
this.setState({ loading: false })
|
||||
}
|
||||
|
||||
onReloadData() {
|
||||
this.onLoadData()
|
||||
}
|
||||
|
||||
onExpand(expandedKeys) {
|
||||
this.setState({
|
||||
expandedKeys,
|
||||
@@ -240,15 +244,26 @@ export default class QueryTreeLayout extends Component {
|
||||
</div>
|
||||
</Layout.Header>
|
||||
<div className="yo-tree-layout--bar">
|
||||
<Tooltip placement="bottom" title="刷新">
|
||||
<AntIcon type="undo" onClick={() => this.onReloadData()} />
|
||||
</Tooltip>
|
||||
<Tooltip placement="bottom" title="折叠全部">
|
||||
<AntIcon type="switcher" onClick={() => this.setState({ expandedKeys: [] })} />
|
||||
</Tooltip>
|
||||
</div>
|
||||
<div className="yo-tree-layout--content">
|
||||
<Spin spinning={this.state.loading} indicator={<AntIcon type="loading" />}>
|
||||
<Spin spinning={this.state.loading} indicator={<AntIcon type="loading" />} wrapperClassName="h-100-p">
|
||||
{
|
||||
!this.state.loading && !this.state.dataSource.length ?
|
||||
<Empty />
|
||||
<Empty
|
||||
image={
|
||||
<div className="text-center pt-md">
|
||||
<AntIcon className="h3 mt-xl mb-md" type="smile" />
|
||||
<p>暂无数据</p>
|
||||
</div>
|
||||
}
|
||||
description={false}
|
||||
/>
|
||||
:
|
||||
<Tree
|
||||
{...props}
|
||||
|
||||
Reference in New Issue
Block a user