From 51a85014980781ae7f9afa2c88592b56d518d258 Mon Sep 17 00:00:00 2001
From: AndyLily21 <101868030+andylili21@users.noreply.github.com>
Date: Mon, 29 Jul 2024 16:59:57 +0800
Subject: [PATCH] =?UTF-8?q?docs:=20=E6=96=87=E6=A1=A3=E9=94=99=E4=BD=8D?=
=?UTF-8?q?=E4=BF=AE=E6=AD=A3=20(#2836)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
#doc:文档错位修正
---
s2-site/docs/api/components/sheet-component.zh.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
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` | | |