修正了一个笔误
This commit is contained in:
parent
e757aa827b
commit
7f312a45ee
|
|
@ -930,7 +930,7 @@ class ListNode extends EntityNode {
|
||||||
const filter = filters2 ? combineFilters(this.entity, this.schema, filters2) : undefined;
|
const filter = filters2 ? combineFilters(this.entity, this.schema, filters2) : undefined;
|
||||||
const { currentPage, pageSize } = this.pagination;
|
const { currentPage, pageSize } = this.pagination;
|
||||||
// 只有当没有计算过total或者有新的filter才需要显示的查找total
|
// 只有当没有计算过total或者有新的filter才需要显示的查找total
|
||||||
const needGetTotal = this.pagination.total === undefined || !!this.filters.find(ele => !!ele.applied);
|
const needGetTotal = this.pagination.total === undefined || !!this.filters.find(ele => !ele.applied);
|
||||||
return {
|
return {
|
||||||
data,
|
data,
|
||||||
filter,
|
filter,
|
||||||
|
|
|
||||||
|
|
@ -933,7 +933,7 @@ class ListNode extends EntityNode {
|
||||||
const filter = filters2 ? (0, filter_1.combineFilters)(this.entity, this.schema, filters2) : undefined;
|
const filter = filters2 ? (0, filter_1.combineFilters)(this.entity, this.schema, filters2) : undefined;
|
||||||
const { currentPage, pageSize } = this.pagination;
|
const { currentPage, pageSize } = this.pagination;
|
||||||
// 只有当没有计算过total或者有新的filter才需要显示的查找total
|
// 只有当没有计算过total或者有新的filter才需要显示的查找total
|
||||||
const needGetTotal = this.pagination.total === undefined || !!this.filters.find(ele => !!ele.applied);
|
const needGetTotal = this.pagination.total === undefined || !!this.filters.find(ele => !ele.applied);
|
||||||
return {
|
return {
|
||||||
data,
|
data,
|
||||||
filter,
|
filter,
|
||||||
|
|
|
||||||
|
|
@ -1162,7 +1162,7 @@ class ListNode<
|
||||||
const { currentPage, pageSize } = this.pagination;
|
const { currentPage, pageSize } = this.pagination;
|
||||||
|
|
||||||
// 只有当没有计算过total或者有新的filter才需要显示的查找total
|
// 只有当没有计算过total或者有新的filter才需要显示的查找total
|
||||||
const needGetTotal = this.pagination.total === undefined || !!this.filters.find(ele => !!ele.applied);
|
const needGetTotal = this.pagination.total === undefined || !!this.filters.find(ele => !ele.applied);
|
||||||
return {
|
return {
|
||||||
data,
|
data,
|
||||||
filter,
|
filter,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue