@univerjs-pro/engine-pivot 0.5.5 → 0.6.0-alpha.0
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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/pivot/pivot-table.d.ts +4 -1
- package/lib/umd/index.js +1 -1
- package/package.json +2 -2
|
@@ -180,13 +180,16 @@ export declare class PivotTable {
|
|
|
180
180
|
*/
|
|
181
181
|
setFieldFormat(fieldId: string, format: string | undefined): void;
|
|
182
182
|
/**
|
|
183
|
-
*
|
|
183
|
+
* - add a field to the pivot table
|
|
184
184
|
* @param field
|
|
185
185
|
* @param area
|
|
186
|
+
*
|
|
186
187
|
* @example
|
|
188
|
+
* ```typescript
|
|
187
189
|
* const pt= new PivotTable(fieldsCollection);
|
|
188
190
|
* var areaField = pt.addFieldWithSourceName('区域', PivotTableFiledAreaEnum.Column);
|
|
189
191
|
* pt.addFieldWithSourceName('省份', PivotTableFiledAreaEnum.Filter);
|
|
192
|
+
* ```
|
|
190
193
|
*/
|
|
191
194
|
addField(field: PivotTableLabelField | PivotTableValueField, area: PivotTableFiledAreaEnum, index?: number): void;
|
|
192
195
|
removeField(fieldId: string): void;
|