@canvas-components/react-pivot-table 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -84,6 +84,24 @@ export function SalesPivotTable(props: { data: SalesRecord[] }) {
84
84
 
85
85
  其余 `dataSource`、`rows`、`columns`、`indicators`、`totals`、`filters`、`sorts` 和虚拟滚动等属性与 `@canvas-components/pivot-table` 保持一致。
86
86
 
87
+ ## 统一切换调试模式
88
+
89
+ `ReactPivotTableDebugProvider` 可为后代中的全部 `ReactPivotTable` 同步开启核心调试模式,并保留每个表格自身的 `debug` 配置:
90
+
91
+ ```tsx
92
+ import {
93
+ ReactPivotTable,
94
+ ReactPivotTableDebugProvider,
95
+ } from "@canvas-components/react-pivot-table";
96
+
97
+ <ReactPivotTableDebugProvider enabled={debuggerEnabled}>
98
+ <ReactPivotTable
99
+ {...props}
100
+ debug={{ showBodyBounds: false, logDrawCalls: true }}
101
+ />
102
+ </ReactPivotTableDebugProvider>;
103
+ ```
104
+
87
105
  ### `ReactPivotTableCustomizationOptions`
88
106
 
89
107
  | 属性 | 类型 | 说明 |