UNPKG

@univerjs-pro/sheets-pivot

Version:

Univer Sheets Pivot Table

30 lines (29 loc) 1 kB
import { PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot'; import { ICommand } from '@univerjs/core'; export interface IMovePivotFieldCommandParams { /** * @property {string} unitId The unit id of workbook which the pivot table belongs to. */ unitId: string; /** * @property {string} subUnitId The sub unit id of worksheet which the pivot table belongs to. */ subUnitId: string; /** * @property {string} pivotTableId The pivot table id. */ pivotTableId: string; /** * @property {string} fieldId The field id. Which is the field id of pivot table. */ fieldId: string; /** * @property {PivotTableFiledAreaEnum} area The field area to move the data field. */ area: PivotTableFiledAreaEnum; /** * @property {number} index The index to move the data field. Which is base-on 0. */ index: number; } export declare const MovePivotFieldCommand: ICommand<IMovePivotFieldCommandParams>;