API 참조

@univerjs-pro/sheets-pivot

이 API 페이지의 본문은 현재 영어로 제공됩니다. 코드 시그니처와 식별자는 언어에 따라 바뀌지 않습니다.

Pivot table integration for Univer Sheets.

TypeScript
import { UniverSheetsPivotTablePlugin } from '@univerjs-pro/sheets-pivot'univer.registerPlugin(UniverSheetsPivotTablePlugin, {})

Entry Points

  • Facade: @univerjs-pro/sheets-pivot/facade
  • Locale: @univerjs-pro/sheets-pivot/locale/*

Worksheet copy integrations

The root entry exports helpers for plugins that participate in worksheet copying:

  • getOrCreatePivotSheetCopyPlan() creates or reuses a plan in the operation’s shared copy context. The plan includes copied entries, a PivotTable ID map, and a shared data-field remapping context.
  • PIVOT_SHEET_COPY_CONTEXT_KEY identifies that plan in the copy context.
  • remapPivotReportDataFields() remaps a report’s collection and field configuration in place using the shared context. Pass the copied report data, not the original source report.
  • IPivotSheetCopyPlan, IPivotSheetCopyPlanEntry, IPivotSheetCopyScope, IPivotSheetCopySource, and IPivotSheetDataFieldCopyContext describe these inputs and results.

Use one shared copy context per worksheet-copy operation so PivotTables and PivotCharts agree on the new IDs and source mappings.

IUniverSheetsPivotConfig

TypeScript
export interface IUniverSheetsPivotConfig {  notExecuteFormula?: boolean  // When the user configures this property,  // if there are cells containing data in the pivot table next view range,  // they will be directly overwritten without popping up a dialog box for the user to select.  defaultOverride?: boolean  /**   * Define the maximum number of items that can be displayed in a single pivot table field. The default value is 1000.   */  maxLimitItemCount?: number}

이 가이드는 어떠셨나요?

© 2026 DreamNum Co., Ltd.