From a44b134bf7072aab05b4c08ed645bb65de708d9f Mon Sep 17 00:00:00 2001 From: JuZe Date: Mon, 18 Sep 2023 18:25:01 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=94=B9=20interface=20?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/s2-core/src/data-set/interface.ts | 2 +- packages/s2-core/src/data-set/pivot-data-set.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/s2-core/src/data-set/interface.ts b/packages/s2-core/src/data-set/interface.ts index 40f54ce91a..672766c8ef 100644 --- a/packages/s2-core/src/data-set/interface.ts +++ b/packages/s2-core/src/data-set/interface.ts @@ -51,7 +51,7 @@ export interface CellDataParams { totalStatus?: TotalStatus; } -export interface checkAccordQueryParams { +export interface CheckAccordQueryParams { // item of sortedDimensionValues,es: "浙江省[&]杭州市[&]家具[&]桌子" dimensionValues: string; query: DataType; diff --git a/packages/s2-core/src/data-set/pivot-data-set.ts b/packages/s2-core/src/data-set/pivot-data-set.ts index ee278c5b76..545d9eebf8 100644 --- a/packages/s2-core/src/data-set/pivot-data-set.ts +++ b/packages/s2-core/src/data-set/pivot-data-set.ts @@ -63,7 +63,7 @@ import type { CellMeta } from '../common'; import { BaseDataSet } from './base-data-set'; import type { CellDataParams, - checkAccordQueryParams, + CheckAccordQueryParams, DataType, PivotMeta, SortedDimensionValues, @@ -548,7 +548,7 @@ export class PivotDataSet extends BaseDataSet { * DimensionValue: 浙江省[&]杭州市[&]家具[&]桌子 => true * DimensionValue: 四川省[&]成都市[&]文具[&]笔 => false */ - checkAccordQueryWithDimensionValue(params: checkAccordQueryParams): boolean { + checkAccordQueryWithDimensionValue(params: CheckAccordQueryParams): boolean { const { dimensionValues, query, dimensions, field } = params; for (const [index, dimension] of dimensions.entries()) { const queryValue = get(query, dimension);