listNode也有后初始化的懒死
This commit is contained in:
parent
89e65d9f19
commit
896711588f
|
|
@ -723,7 +723,7 @@ class ListNode extends Node {
|
|||
constructSelection(withParent, ignoreNewParent, ignoreUnapplied) {
|
||||
const { sorters, getTotal } = this;
|
||||
const data = this.getProjection();
|
||||
assert(data, '取数据时找不到projection信息');
|
||||
// assert(data, '取数据时找不到projection信息');
|
||||
const sorterArr = sorters.filter(ele => !ignoreUnapplied || ele.applied).map((ele) => {
|
||||
const { sorter } = ele;
|
||||
if (typeof sorter === 'function') {
|
||||
|
|
|
|||
|
|
@ -726,7 +726,7 @@ class ListNode extends Node {
|
|||
constructSelection(withParent, ignoreNewParent, ignoreUnapplied) {
|
||||
const { sorters, getTotal } = this;
|
||||
const data = this.getProjection();
|
||||
(0, assert_1.assert)(data, '取数据时找不到projection信息');
|
||||
// (0, assert_1.assert)(data, '取数据时找不到projection信息');
|
||||
const sorterArr = sorters.filter(ele => !ignoreUnapplied || ele.applied).map((ele) => {
|
||||
const { sorter } = ele;
|
||||
if (typeof sorter === 'function') {
|
||||
|
|
|
|||
|
|
@ -886,7 +886,7 @@ class ListNode<
|
|||
constructSelection(withParent?: true, ignoreNewParent?: boolean, ignoreUnapplied?: true) {
|
||||
const { sorters, getTotal } = this;
|
||||
const data = this.getProjection();
|
||||
assert(data, '取数据时找不到projection信息');
|
||||
// assert(data, '取数据时找不到projection信息');
|
||||
const sorterArr = sorters.filter(
|
||||
ele => !ignoreUnapplied || ele.applied
|
||||
).map((ele) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue