Skip to content

Commit

Permalink
docs: 文档错位修正 (#2836)
Browse files Browse the repository at this point in the history
#doc:文档错位修正
  • Loading branch information
andylili21 authored Jul 29, 2024
1 parent cd37e5e commit 51a8501
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions s2-site/docs/api/components/sheet-component.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ order: 0

| 参数 | 说明 | 类型 | 默认值 | 必选 |
| -- | -- | -- | -- | --- |
| sheetType | 表格类型:<br/> 1. `pivot`: 透视表 <br/> 2. `table`: 明细表 <br> 3. `gridAnalysis`: 网格分析表 <br/> 4. `strategy`: 趋势分析表 | `pivot \| table \| gridAnalysis \| strategy` \| `pivot` | |
| sheetType | 表格类型:<br/> 1. `pivot`: 透视表 <br/> 2. `table`: 明细表 <br> 3. `gridAnalysis`: 网格分析表 <br/> 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 | 是否显示默认分页<br>(只有在 `options` 配置过 `pagination` 属性才会生效) | `boolean` \| \{ <br>onShowSizeChange?: (current:number, pageSize: number) => void,<br>onChange?: (current:number, pageSize: number) => void <br>} | `false` | |
| themeCfg | 自定义透视表主题样式 | [ThemeCfg](/docs/api/general/S2Theme) | | |
| loading | 控制表格的加载状态 | `boolean` | | |
Expand Down Expand Up @@ -131,10 +131,10 @@ type SheetComponentOptions = S2Options<

| 参数 | 说明 | 类型 | 默认值 | 必选 |
| -- | -- | -- | -- | --- |
| sheetType | 表格类型:<br/> 1. `pivot`: 透视表 <br/> 2. `table`: 明细表 | `pivot | table` | `pivot` | |
| sheetType | 表格类型:<br/> 1. `pivot`: 透视表 <br/> 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 | 是否显示默认分页<br>(只有在 `options` 配置过 `pagination` 属性才会生效) | `boolean` \| \{ <br>onShowSizeChange?: (pageSize: number) => void,<br>onChange?: (current: number) => void <br>} | `false` | |
| themeCfg | 自定义表格主题样式 | [ThemeCfg](/docs/api/general/S2Theme) | | |
| loading | 控制表格的加载状态 | `boolean` | | |
Expand Down

0 comments on commit 51a8501

Please sign in to comment.