API 參考

@univerjs-pro/engine-pivot

此 API 頁面目前提供英文內容。程式碼簽名與識別符不隨介面語言變更。

Pivot table calculation model and field utilities for Web SDK.

TypeScript
import { PivotTable } from '@univerjs-pro/engine-pivot'

Filter utilities

compilePivotDateFilter(filter) accepts an IPivotTableCustomFilter and returns a predicate over numeric date serials. Use isPivotDateFilter(filter) to identify fixed date conditions. useWholeDay: true compares floored day serials; otherwise fractional time is retained. Between conditions include both bounds. Invalid operators or operands throw, and non-finite candidate serials do not match.

hasPivotMultipleFilters(snapshot) checks whether the same source field has more than one active filter category, including copies of that field in the report. PivotFilterCategory distinguishes member, condition, and value filters. Use the Pivot Table Facade to configure reports and resolve conflicts when disabling multiple filters.

你覺得這篇文檔如何?

© 2026 DreamNum Co., Ltd.