Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions docs/assets/option/en/common/option-secondary.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ Align excel advanced capabilities

Fill handle, when set to true, when a cell is selected, the fill handle will be displayed on the lower right side of the cell. You can drag the fill handle to edit the value of the cell. Or double-click the fill handle to change the value of the cell you want to edit.


#${prefix} hover(Object)

Hover interaction configuration, specific configuration items as follows:
Expand Down Expand Up @@ -231,6 +230,20 @@ Possible values:

'body': Do not select the table header. Clicking a row header selects all body cells in the row. Clicking a column header selects all body cells in the column.

##${prefix} cornerHeaderSelectMode ('inline' | 'cell' | 'body' | 'all') = 'all'

When clicking on the corner header cell, the selection mode to be applied.

Possible values:

'inline': Clicking the corner header selects the entire column;

'cell': Select only the currently clicked corner header cell;

'body': Clicking the corner header selects all body cells;

'all': Clicking the corner header selects the entire table.

##${prefix} disableSelect (boolean | ((col: number, row: number, table: BaseTableAPI) => boolean)) = false

Do not respond to mouse select interaction.
Expand Down Expand Up @@ -653,4 +666,4 @@ Validate when the drag to move position ends.

```
validateDragOrderOnEnd?: (source: CellAddress, target: CellAddress) => boolean;
```
```
21 changes: 15 additions & 6 deletions docs/assets/option/zh/common/option-secondary.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ export interface SelectAllOnCtrlAOption {

填充柄,设置为 true 后,当选中单元格后,填充柄会显示在单元格右下方,可以拖动填充柄来编辑单元格的值。或者双击填充柄来改变需要编辑单元格的值。



#${prefix} hover(Object)

hover 交互配置,具体配置项如下:
Expand Down Expand Up @@ -227,6 +225,20 @@ hover 交互响应模式:十字交叉、整列、整行或者单个单元格

'body': 不选择表头,点击行表头则选择该行所有 body 单元格,点击列表头则选择该列所有 body 单元格。

##${prefix} cornerHeaderSelectMode ('inline' | 'cell' | 'body' | 'all') = 'all'

点击角头 corner 单元格时的选中方式。

可选值:

'inline': 点击 corner 角头整列选中;

'cell': 仅仅选择当前点击的 corner 角头单元格;

'body': 点击 corner 角头,选择所有 body 单元格;

'all': 点击 corner 角头,选中整个图表。

##${prefix} disableSelect (boolean | ((col: number, row: number, table: BaseTableAPI) => boolean)) = false

不响应鼠标 select 交互。
Expand Down Expand Up @@ -638,7 +650,7 @@ animationAppear?: boolean | {

##${prefix} frozenColDragHeaderMode(string) = 'fixedFrozenCount'

拖拽表头移动位置 针对冻结部分的规则 默认为 fixedFrozenCount。基本表格ListTable类型设置才有效
拖拽表头移动位置 针对冻结部分的规则 默认为 fixedFrozenCount。基本表格 ListTable 类型设置才有效

- "disabled"(禁止调整冻结列位置):不允许其他列的表头移入冻结列,也不允许冻结列移出,冻结列保持不变。
- "adjustFrozenCount"(根据交互结果调整冻结数量):允许其他列的表头移入冻结列,及冻结列移出,并根据拖拽的动作调整冻结列的数量。当其他列的表头被拖拽进入冻结列位置时,冻结列数量增加;当其他列的表头被拖拽移出冻结列位置时,冻结列数量减少。
Expand All @@ -651,6 +663,3 @@ animationAppear?: boolean | {
```
validateDragOrderOnEnd?: (source: CellAddress, target: CellAddress) => boolean;
```



4 changes: 4 additions & 0 deletions packages/vtable/examples/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ export const menus = [
path: 'pivot',
name: 'pivot-grid-tree-totals'
},
{
path: 'pivot',
name: 'pivot-grid-tree-select-cornerHeaderSelectMode'
},
{
path: 'pivot',
name: 'pivot-tree-lazy-load'
Expand Down
Loading