-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add IRowDimension&IColumnDimension to react-vchart
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
9 changes: 5 additions & 4 deletions
9
packages/react-vtable/src/components/pivot/pivot-dimension.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import type { BaseComponentProps } from '../base-component'; | ||
import { createComponent } from '../base-component'; | ||
import type { IDimension } from '@visactor/vtable'; | ||
import type { IRowDimension, IColumnDimension } from '@visactor/vtable'; | ||
|
||
export type PivotDimensionProps = IDimension & BaseComponentProps; | ||
export type RowPivotDimensionProps = IRowDimension & BaseComponentProps; | ||
export type ColumnPivotDimensionProps = IColumnDimension & BaseComponentProps; | ||
|
||
export const PivotColumnDimension = createComponent<PivotDimensionProps>('PivotColumnDimension', 'columns'); | ||
export const PivotRowDimension = createComponent<PivotDimensionProps>('PivotRowDimension', 'rows'); | ||
export const PivotColumnDimension = createComponent<ColumnPivotDimensionProps>('PivotColumnDimension', 'columns'); | ||
export const PivotRowDimension = createComponent<RowPivotDimensionProps>('PivotRowDimension', 'rows'); |