Skip to content

Commit

Permalink
chore: 更改 interface 命名规范
Browse files Browse the repository at this point in the history
  • Loading branch information
JuZe committed Sep 18, 2023
1 parent d791532 commit a44b134
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/s2-core/src/data-set/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface CellDataParams {
totalStatus?: TotalStatus;
}

export interface checkAccordQueryParams {
export interface CheckAccordQueryParams {
// item of sortedDimensionValues,es: "浙江省[&]杭州市[&]家具[&]桌子"
dimensionValues: string;
query: DataType;
Expand Down
4 changes: 2 additions & 2 deletions packages/s2-core/src/data-set/pivot-data-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import type { CellMeta } from '../common';
import { BaseDataSet } from './base-data-set';
import type {
CellDataParams,
checkAccordQueryParams,
CheckAccordQueryParams,
DataType,
PivotMeta,
SortedDimensionValues,
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a44b134

Please sign in to comment.