diff --git a/s2-site/docs/api/components/sheet-component.zh.md b/s2-site/docs/api/components/sheet-component.zh.md index 9599998ad6..91de4175f7 100644 --- a/s2-site/docs/api/components/sheet-component.zh.md +++ b/s2-site/docs/api/components/sheet-component.zh.md @@ -13,12 +13,12 @@ order: 0 | 参数 | 说明 | 类型 | 默认值 | 必选 | | -- | -- | -- | -- | --- | -| sheetType | 表格类型:
1. `pivot`: 透视表
2. `table`: 明细表
3. `gridAnalysis`: 网格分析表
4. `strategy`: 趋势分析表 | `pivot \| table \| gridAnalysis \| strategy` \| `pivot` | | +| sheetType | 表格类型:
1. `pivot`: 透视表
2. `table`: 明细表
3. `gridAnalysis`: 网格分析表
4. `strategy`: 趋势分析表 | `pivot \| table \| gridAnalysis \| strategy` | `pivot` | | | spreadsheet | 自定义表 | (container: `HTMLElement \| string`, dataCfg: [S2DataConfig](/docs/api/general/S2DataConfig), options: [SheetComponentOptions](#sheetcomponentoptions)) => [SpreadSheet](/docs/api/basic-class/spreadsheet) | | | | dataCfg | 透视表数据映射相关配置项 | [S2DataConfig](/docs/api/general/S2DataConfig) | | ✓ | | options | 透视表属性配置项 | [SheetComponentOptions](#sheetcomponentoptions) | | ✓ | | partDrillDown | 维度下钻相关属性 | [PartDrillDown](/docs/api/components/drill-down) | | | -| adaptive | 是否根据窗口大小自适应 | `boolean | { width?: boolean, height?: boolean, getContainer: () => HTMLElement }` | `false` | | +| adaptive | 是否根据窗口大小自适应 | `boolean \| { width?: boolean, height?: boolean, getContainer: () => HTMLElement }` | `false` | | | showPagination | 是否显示默认分页
(只有在 `options` 配置过 `pagination` 属性才会生效) | `boolean` \| \{
onShowSizeChange?: (current:number, pageSize: number) => void,
onChange?: (current:number, pageSize: number) => void
} | `false` | | | themeCfg | 自定义透视表主题样式 | [ThemeCfg](/docs/api/general/S2Theme) | | | | loading | 控制表格的加载状态 | `boolean` | | | @@ -131,10 +131,10 @@ type SheetComponentOptions = S2Options< | 参数 | 说明 | 类型 | 默认值 | 必选 | | -- | -- | -- | -- | --- | -| sheetType | 表格类型:
1. `pivot`: 透视表
2. `table`: 明细表 | `pivot | table` | `pivot` | | +| sheetType | 表格类型:
1. `pivot`: 透视表
2. `table`: 明细表 | `pivot \| table` | `pivot` | | | dataCfg | 透视表数据映射配置项 | [S2DataConfig](/docs/api/general/S2DataConfig) | | ✓ | | options | 透视表属性配置项 | [SheetComponentOptions](#sheetcomponentoptions-1) | | ✓ | -| adaptive | 是否根据窗口大小自适应 | `boolean | { width?: boolean, height?: boolean, getContainer: () => HTMLElement }` | `false` | | +| adaptive | 是否根据窗口大小自适应 | `boolean \| { width?: boolean, height?: boolean, getContainer: () => HTMLElement }` | `false` | | | showPagination | 是否显示默认分页
(只有在 `options` 配置过 `pagination` 属性才会生效) | `boolean` \| \{
onShowSizeChange?: (pageSize: number) => void,
onChange?: (current: number) => void
} | `false` | | | themeCfg | 自定义表格主题样式 | [ThemeCfg](/docs/api/general/S2Theme) | | | | loading | 控制表格的加载状态 | `boolean` | | |