Skip to content

Commit

Permalink
docs: 合并单元格文档更新
Browse files Browse the repository at this point in the history
  • Loading branch information
stone-lyl committed Aug 3, 2022
1 parent 582bc91 commit c3558a0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 14 deletions.
6 changes: 1 addition & 5 deletions s2-site/docs/api/general/S2Options.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,4 @@ DataSet = (spreadsheet: SpreadSheet) => BaseDataSet;

## MergedCellInfo

| 参数 | 说明 | 类型 | 默认值 | 必选 |
| --------------- | ------------------ | ---------------------- | ------ | ---- |
| colIndex | 单元格的列索引 | `number` | - | |
| rowIndex | 单元格的行索引 | `number` | - | |
| showText | 合并单元格是否展示当前单元格的 meta 信息,只需要对一个单元格进行标识,</br>若未对单元格进行标识,会默认使用第一个选中点击的单元格的 meta 信息 | `booelan` | - | |
`markdown:docs/common/merged-cell.zh.md`
5 changes: 5 additions & 0 deletions s2-site/docs/common/merged-cell.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Merge-Cell
order: 10
---
`markdown:docs/common/merge-cell.zh.md`
14 changes: 14 additions & 0 deletions s2-site/docs/common/merged-cell.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: 合并单元
order: 10
---

<description> **optional** _MergedCellInfo[][]_ default: `undefined` </description>

设置默认合并的单元格信息

| 参数 | 说明 | 类型 | 默认值 | 必选 |
| --------------- |--------------------------------------------------------------------------------| ---------------------- | ------ | ---- |
| colIndex | 单元格的列索引 | `number` | - | |
| rowIndex | 单元格的行索引 | `number` | - | |
| showText | 设置 `showText: true` 时,则展示当前格子的 `meta` 信息为合并后单元格的 `meta`。<br/> 默认使用第一个选中点击的单元格。 | `booelan` | - | |
12 changes: 3 additions & 9 deletions s2-site/docs/manual/advanced/interaction/merge-cell.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,17 +343,11 @@ s2.render();

## 配置和方法说明

### mergedCellsInfo
### MergedCellInfo

<description> **optional** _MergedCellInfo[][]_ default: `undefined` </description>
`markdown:docs/common/merged-cell.zh.md`

设置默认合并的单元格信息

| 参数 | 说明 | 类型 | 默认值 | 必选 |
| --------------- | ------------------ | ---------------------- | ------ | ---- |
| colIndex | 单元格的列索引 | `number` | - | |
| rowIndex | 单元格的行索引 | `number` | - | |
| showText | 合并单元格是否展示当前单元格的 meta 信息,只需要对一个单元格进行标识,</br>若未对单元格进行标识,会默认使用第一个选中点击的单元格的 meta 信息 | `booelan` | - | |
![合并单元格](https://gw.alipayobjects.com/zos/antfincdn/kHAYfFaJA/ae92e636-6574-487b-8d78-57dcae21e1d4.png)

### mergeCells

Expand Down

0 comments on commit c3558a0

Please sign in to comment.