(query: any)
| 652 | } |
| 653 | |
| 654 | handleQuery(query: any) { |
| 655 | if (this.props.api || this.props.schemaApi) { |
| 656 | // 如果是分页动作,则看接口里面有没有用,没用则 return false |
| 657 | // 让组件自己去排序 |
| 658 | if ( |
| 659 | query?.hasOwnProperty('orderBy') && |
| 660 | [this.props.api, this.props.schemaApi].every( |
| 661 | api => |
| 662 | !api || |
| 663 | !isApiOutdated( |
| 664 | api, |
| 665 | api, |
| 666 | this.props.store.data, |
| 667 | createObject(this.props.store.data, query) |
| 668 | ) |
| 669 | ) |
| 670 | ) { |
| 671 | return false; |
| 672 | } |
| 673 | |
| 674 | this.receive(query); |
| 675 | return; |
| 676 | } |
| 677 | |
| 678 | if (this.props.onQuery) { |
| 679 | return this.props.onQuery(query); |
| 680 | } else { |
| 681 | return false; |
| 682 | } |
| 683 | } |
| 684 | |
| 685 | reloadTarget(target: string, data?: any) { |
| 686 | // 会被覆写 |
nothing calls this directly
no test coverage detected