Skip to content

Commit

Permalink
Merge pull request #3430 from VisActor/release/1.16.1
Browse files Browse the repository at this point in the history
[Auto release] release 1.16.1
  • Loading branch information
Rui-Sun authored Feb 14, 2025
2 parents 8af69e6 + 503bde5 commit ad1d048
Show file tree
Hide file tree
Showing 53 changed files with 731 additions and 158 deletions.
2 changes: 1 addition & 1 deletion common/config/rush/version-policies.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"1.16.0","mainProject":"@visactor/vtable","nextBump":"minor"}]
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"1.16.1","mainProject":"@visactor/vtable","nextBump":"patch"}]
4 changes: 2 additions & 2 deletions docs/assets/api/en/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -871,11 +871,11 @@ The table will not be redrawn automatically after updating, and the interface re
## setDropDownMenuHighlight(Function)
Set the selected state of the drop-down menu
Set the selected state of the drop-down menu. The cell will also display the corresponding icon
```

setDropDownMenuHighlight(cells: DropDownMenuHighlightInfo[]): void
setDropDownMenuHighlight(dropDownMenuInfo: DropDownMenuHighlightInfo[]): void

```
Expand Down
4 changes: 2 additions & 2 deletions docs/assets/api/zh/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -791,10 +791,10 @@ enum HierarchyState {

## setDropDownMenuHighlight(Function)

设置下拉菜单选中状态
设置下拉菜单选中状态, 同时单元格中也会显示对应的icon

```
setDropDownMenuHighlight(cells: DropDownMenuHighlightInfo[]): void
setDropDownMenuHighlight(dropDownMenuInfo: DropDownMenuHighlightInfo[]): void
```

## showTooltip(Function)
Expand Down
33 changes: 33 additions & 0 deletions docs/assets/changelog/en/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# v1.16.0

2025-02-08


**🆕 New feature**

- **@visactor/vtable**: support async in downloadCsv&downloadExcel
- **@visactor/vtable**: linkJump & linkDetect support function
- **@visactor/vtable**: support react17 in customLayout function
- **@visactor/vtable**: add keepColumnWidthChange in vue-vtable [#3346](https://github.com/VisActor/VTable/issues/3346)
- **@visactor/vtable**: add grid-tree mode for pivot table

**🐛 Bug fix**

- **@visactor/vtable-gantt**: when resize gantt view size should update dependency node size [#3287](https://github.com/VisActor/VTable/issues/3287)
- **@visactor/vtable-gantt**: resize or move taskbar update record problem [#3321](https://github.com/VisActor/VTable/issues/3321)
- **@visactor/vtable-gantt**: updateScales to quarter taskbar size error [#3348](https://github.com/VisActor/VTable/issues/3348)
- **@visactor/vtable-gantt**: mouseover last date border occor error for gantt [#3373](https://github.com/VisActor/VTable/issues/3373)
- **@visactor/vtable**: fix clipped judgement in getCellOverflowText()
- **@visactor/vtable**: fix rowData error in media-click [#3342](https://github.com/VisActor/VTable/issues/3342)
- **@visactor/vtable**: fix header checkbox state in functional cellType [#3334](https://github.com/VisActor/VTable/issues/3334)
- **@visactor/vtable**: fix text vertical layout [#3353](https://github.com/VisActor/VTable/issues/3353)
- **@visactor/vtable**: fix merge cell style update in vtable-search [#3327](https://github.com/VisActor/VTable/issues/3327)

**🔨 Refactor**

- **@visactor/vtable**: rowSeriesNumber cell can use theme headerStyle [#3362](https://github.com/VisActor/VTable/issues/3362)



[more detail about v1.16.0](https://github.com/VisActor/VTable/releases/tag/v1.16.0)

# v1.15.2

2025-01-26
Expand Down
33 changes: 33 additions & 0 deletions docs/assets/changelog/zh/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# v1.16.0

2025-02-08


**🆕 新增功能**

- **@visactor/vtable**: 在 downloadCsv&downloadExcel 中支持异步操作
- **@visactor/vtable**: linkJump 和 linkDetect 支持函数配置
- **@visactor/vtable**: 在 customLayout 函数中支持 react17
- **@visactor/vtable**: 在 vue-vtable 中添加 keepColumnWidthChange 配置 [#3346](https://github.com/VisActor/VTable/issues/3346)
- **@visactor/vtable**: 为透视表添加网格树形结构模式:`rowHierarchyType: grid-tree``columnHierarchyType: grid-tree`

**🐛 功能修复**

- **@visactor/vtable-gantt**: 调整甘特图视图大小时需要更新依赖节点大小 [#3287](https://github.com/VisActor/VTable/issues/3287)
- **@visactor/vtable-gantt**: 修复调整或移动任务条时更新记录的问题 [#3321](https://github.com/VisActor/VTable/issues/3321)
- **@visactor/vtable-gantt**: 修复更新scale时任务条大小时的错误 [#3348](https://github.com/VisActor/VTable/issues/3348)
- **@visactor/vtable-gantt**: 修复甘特图中鼠标悬停在最后日期边界时出现的错误 [#3373](https://github.com/VisActor/VTable/issues/3373)
- **@visactor/vtable**: 修复 getCellOverflowText() 中的裁剪判断
- **@visactor/vtable**: 修复媒体点击事件中的行数据错误 [#3342](https://github.com/VisActor/VTable/issues/3342)
- **@visactor/vtable**: 修复函数单元格类型中的表头复选框状态 [#3334](https://github.com/VisActor/VTable/issues/3334)
- **@visactor/vtable**: 修复文本垂直布局问题 [#3353](https://github.com/VisActor/VTable/issues/3353)
- **@visactor/vtable**: 修复表格搜索中合并单元格样式更新问题 [#3327](https://github.com/VisActor/VTable/issues/3327)

**🔨 功能重构**

- **@visactor/vtable**: 行序号单元格现可使用主题表头样式 [#3362](https://github.com/VisActor/VTable/issues/3362)



[更多详情请查看 v1.16.0](https://github.com/VisActor/VTable/releases/tag/v1.16.0)

# v1.15.2

2025-01-26
Expand Down
8 changes: 8 additions & 0 deletions docs/assets/option/en/common/column-resize-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,11 @@ The background color of the label
##${prefix} labelBackgroundCornerRadius(number)

The corner radius of the label background

##${prefix} visibleOnHover(boolean)

Whether to display when hovering, default is false

##${prefix} resizeHotSpotSize(number)

The size of the hot area for interactive behavior of adjusting row height and column width
21 changes: 18 additions & 3 deletions docs/assets/option/en/common/gantt/task-bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,27 @@ The style of the text on the task bar.

Optional

${prefix} barStyle(ITaskBarStyle)

The style of the task bar.
${prefix} barStyle(ITaskBarStyle|Function)

Optional

The style of the task bar, you can configure the function to return different styles based on the situation.

```
barStyle?: ITaskBarStyle | ((args: TaskBarInteractionArgumentType) => ITaskBarStyle);
// TaskBarInteractionArgumentType definition:
export type TaskBarInteractionArgumentType = {
taskRecord: any;
index: number;
subIndex?: number;
startDate: Date;
endDate: Date;
ganttInstance: Gantt;
};
```


{{ use: common-gantt-task-bar-style }}

${prefix} milestoneStyle(ITaskBarStyle)
Expand Down
40 changes: 40 additions & 0 deletions docs/assets/option/en/common/theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,46 @@ Corner header cell style configuration
prefix = '#' + ${prefix},
) }}

#${prefix} cornerLeftBottomCellStyle(Object)

Corner left bottom cell style configuration

{{ use: common-theme-style(
prefix = '#' + ${prefix},
) }}

#${prefix} cornerRightBottomCellStyle(Object)

Corner right bottom cell style configuration

{{ use: common-theme-style(
prefix = '#' + ${prefix},
) }}

#${prefix} bottomFrozenStyle(Object)

Bottom frozen area style configuration

{{ use: common-theme-style(
prefix = '#' + ${prefix},
) }}

#${prefix} rightFrozenStyle(Object)

Right frozen area style configuration

{{ use: common-theme-style(
prefix = '#' + ${prefix},
) }}

#${prefix} cornerRightTopCellStyle(Object)

Corner right top cell style configuration

{{ use: common-theme-style(
prefix = '#' + ${prefix},
) }}

#${prefix} groupTitleStyle(Object)

Group title style configuration in grouping display mode
Expand Down
4 changes: 4 additions & 0 deletions docs/assets/option/en/table/listTable.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,7 @@ customComputeRowHeight?: (computeArgs: { row: number; table: ListTableAPI }) =>
## tableSizeAntiJitter(boolean) = false

If the table jitter occurs, check whether the width and height of the upper dom container are caused by decimal numbers. If it is not guaranteed to be an integer, set this configuration item to true

## disableDbTapColBdAutoResizeColWidth(boolean) = false

Disable auto resize column width when double tapping the column border line
8 changes: 8 additions & 0 deletions docs/assets/option/zh/common/column-resize-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,11 @@

标签的背景圆角

##${prefix} visibleOnHover(boolean)

是否在hover时显示 默认为false

##${prefix} resizeHotSpotSize(number)

响应调整行高列宽交互行为热区的大小

19 changes: 17 additions & 2 deletions docs/assets/option/zh/common/gantt/task-bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,27 @@ ${prefix} labelTextStyle(ITaskBarLabelTextStyle)

非必填

${prefix} barStyle(ITaskBarStyle)
${prefix} barStyle(ITaskBarStyle|Function)

任务条样式
任务条样式, 可以配置函数,根据情况返回不同的样式.

非必填

```
/** 任务条样式 */
barStyle?: ITaskBarStyle | ((args: TaskBarInteractionArgumentType) => ITaskBarStyle);
//其中 TaskBarInteractionArgumentType 的定义为:
export type TaskBarInteractionArgumentType = {
taskRecord: any;
index: number;
subIndex?: number;
startDate: Date;
endDate: Date;
ganttInstance: Gantt;
};
```

{{ use: common-gantt-task-bar-style }}

${prefix} milestoneStyle(ITaskBarStyle)
Expand Down
40 changes: 40 additions & 0 deletions docs/assets/option/zh/common/theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,46 @@ body 单元格的样式配置
prefix = '#' + ${prefix},
) }}

#${prefix} cornerLeftBottomCellStyle(Object)

左下角单元格的样式配置

{{ use: common-theme-style(
prefix = '#' + ${prefix},
) }}

#${prefix} cornerRightBottomCellStyle(Object)

右下角单元格的样式配置

{{ use: common-theme-style(
prefix = '#' + ${prefix},
) }}

#${prefix} bottomFrozenStyle(Object)

底部冻结区域的样式配置

{{ use: common-theme-style(
prefix = '#' + ${prefix},
) }}

#${prefix} rightFrozenStyle(Object)

右侧冻结区域的样式配置

{{ use: common-theme-style(
prefix = '#' + ${prefix},
) }}

#${prefix} cornerRightTopCellStyle(Object)

右上角单元格的样式配置

{{ use: common-theme-style(
prefix = '#' + ${prefix},
) }}

#${prefix} groupTitleStyle(Object)

分组展示时,分组标题的样式配置
Expand Down
4 changes: 4 additions & 0 deletions docs/assets/option/zh/table/listTable.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,7 @@ customComputeRowHeight?: (computeArgs: { row: number; table: ListTableAPI }) =>
## tableSizeAntiJitter(boolean) = false

当表格出现抖动情况,请排查是否上层 dom 容器的宽高是小数引起的。如果不能保证是整数,请配置这个配置项为 true

## disableDbTapColBdAutoResizeColWidth(boolean) = false

是否禁用双击列边框自动调整列宽
2 changes: 1 addition & 1 deletion packages/openinula-vtable/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/openinula-vtable",
"version": "1.16.0",
"version": "1.16.1",
"description": "The openinula version of VTable",
"keywords": [
"openinula",
Expand Down
1 change: 1 addition & 0 deletions packages/react-vtable/demo/src/list-table/list-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ function App() {
// };
// },
// enableTreeStickCell: true
// disableDblclickAutoResizeColWidth: true
};

// setTimeout(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-vtable/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/react-vtable",
"version": "1.16.0",
"version": "1.16.1",
"description": "The react version of VTable",
"keywords": [
"react",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export class VTableReactAttributePlugin extends ReactAttributePlugin {
}

function checkFrozenContainer(graphic: IGraphic) {
const { col, row, stage } = graphic.parent;
const { col, row, stage } = getTargetGroup(graphic);
let { container } = graphic.attribute.react;
const { table } = stage as any;
// deal with react dom container
Expand Down Expand Up @@ -272,3 +272,13 @@ function checkFrozenContainer(graphic: IGraphic) {
// graphic.attribute.react.container = container;
return container;
}

function getTargetGroup(target: any) {
while (target && target.parent) {
if (target.name === 'custom-container') {
return target;
}
target = target.parent;
}
return null;
}
2 changes: 1 addition & 1 deletion packages/vtable-calendar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vtable-calendar",
"version": "1.16.0",
"version": "1.16.1",
"description": "The calendar component of VTable",
"author": {
"name": "VisActor",
Expand Down
2 changes: 1 addition & 1 deletion packages/vtable-editors/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vtable-editors",
"version": "1.16.0",
"version": "1.16.1",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/vtable-export/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vtable-export",
"version": "1.16.0",
"version": "1.16.1",
"description": "The export util of VTable",
"author": {
"name": "VisActor",
Expand Down
Loading

0 comments on commit ad1d048

Please sign in to comment.