Skip to content

Commit

Permalink
Merge pull request #1085 from VisActor/release/0.19.1
Browse files Browse the repository at this point in the history
[Auto release] release 0.19.1
  • Loading branch information
fangsmile authored Feb 6, 2024
2 parents c2c996d + 7a74e1e commit e9ca49d
Show file tree
Hide file tree
Showing 61 changed files with 675 additions and 291 deletions.
98 changes: 49 additions & 49 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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":"0.19.0","mainProject":"@visactor/vtable","nextBump":"minor"}]
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"0.19.1","mainProject":"@visactor/vtable","nextBump":"patch"}]
10 changes: 10 additions & 0 deletions docs/assets/api/en/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,16 @@ Update the sort status, ListTable exclusive
*/
updateSortState(sortState: SortState[] | SortState | null, executeSort: boolean = true)
```
## updateSortRules(Function)

Pivot table update sorting rules, exclusive to PivotTable
```
/**
* Full update of sorting rules
* @param sortRules
*/
updateSortRules(sortRules: SortRules)
```

## updatePivotSortState(Function)

Expand Down
10 changes: 10 additions & 0 deletions docs/assets/api/zh/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,16 @@ enum HierarchyState {
*/
updateSortState(sortState: SortState[] | SortState | null, executeSort: boolean = true)
```
## updateSortRules(Function)

透视表更新排序规则,PivotTable 专有
```
/**
* 全量更新排序规则
* @param sortRules
*/
updateSortRules(sortRules: SortRules)
```

## updatePivotSortState(Function)

Expand Down
27 changes: 27 additions & 0 deletions docs/assets/changelog/en/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# v0.19.0

2024-02-02


**🆕 New feature**

- **@visactor/vtable**: support get sorted columns [#986](https://github.com/VisActor/VTable/issues/986)
- **@visactor/vtable**: add option frozenColDragHeaderMode

**🐛 Bug fix**

- **@visactor/vtable**: select region saved problem [#1018](https://github.com/VisActor/VTable/issues/1018)
- **@visactor/vtable**: when call updateColumns and discount col occor error [#1015](https://github.com/VisActor/VTable/issues/1015)
- **@visactor/vtable**: rightFrozenColCount drag header move more time the column width is error [#1019](https://github.com/VisActor/VTable/issues/1019)
- **@visactor/vtable**: empty string compute row height error [#1031](https://github.com/VisActor/VTable/issues/1031)
- **@visactor/vtable**: fix merge image cell update problem

**🔨 Refactor**

- **@visactor/vtable**: when drag header move to frozen region then markLine show positon
- **@visactor/vtable**: optimize updateRow api performance & resize bottom frozen row not right



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

# v0.18.3

2024-01-25
Expand Down
26 changes: 26 additions & 0 deletions docs/assets/changelog/zh/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# v0.19.0

2024-02-02


**🆕 新增功能**

- **@visactor/vtable**: 支持获取排序后的列 [#986](https://github.com/VisActor/VTable/issues/986)
- **@visactor/vtable**: 添加配置项:frozenColDragHeaderMode,设置冻结列拖动表头的限制规则

**🐛 功能修复**

- **@visactor/vtable**: 修复选择区域错误问题 [#1018](https://github.com/VisActor/VTable/issues/1018)
- **@visactor/vtable**: 修复调用updateColumns和折扣列发生错误 [#1015](https://github.com/VisActor/VTable/issues/1015)
- **@visactor/vtable**: 修复右侧冻结列计数拖动表头多次后列宽错误 [#1019](https://github.com/VisActor/VTable/issues/1019)
- **@visactor/vtable**: 修复空字符串计算行高错误 [#1031](https://github.com/VisActor/VTable/issues/1031)
- **@visactor/vtable**: 修复合并图像单元格更新问题
- **@visactor/vtable**: 修正底部冻结行大小不正确的问题

**🔨 功能重构**

- **@visactor/vtable**: 当拖动表头移动到冻结区域时标记线显示位置
- **@visactor/vtable**: 优化updateRow api性能

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

# v0.18.3

2024-01-25
Expand Down
26 changes: 24 additions & 2 deletions docs/assets/demo/en/custom-render/custom-icon.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ link: '../guide/custom_define/custom_icon'

# Custom Icon

Display icon content in cells
Display icon content in cells.

Register the icon information globally through `VTable.register.icon`, and then directly configure the registration name in the icon or headerIcon in the column, or configure the complete icon information in the icon or headerIcon

## Key Configurations

Expand Down Expand Up @@ -190,7 +192,24 @@ const columns =[
{
"field": "Product Name",
"title": "Product Name",
"width": "auto"
"width": "auto",
headerIcon: [
{
name: 'question',
type: 'svg',
marginLeft: 10,
positionType: VTable.TYPES.IconPosition.contentRight,
width:20,
height:20,
svg:`<svg t="1706853751091" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4226" width="200" height="200"><path d="M533.333333 85.333333c-247.426667 0-448 200.573333-448 448s200.573333 448 448 448 448-200.573333 448-448-200.573333-448-448-448z m0 853.333334c-223.86 0-405.333333-181.473333-405.333333-405.333334s181.473333-405.333333 405.333333-405.333333 405.333333 181.473333 405.333334 405.333333-181.473333 405.333333-405.333334 405.333334z m21.333334-192a21.333333 21.333333 0 1 1-21.333334-21.333334 21.333333 21.333333 0 0 1 21.333334 21.333334z m-21.333334-85.333334a21.333333 21.333333 0 0 1-21.333333-21.333333v-42.666667a21.333333 21.333333 0 0 1 6.246667-15.086666c13.1-13.093333 28.9-24.886667 45.633333-37.333334C601.333333 516.966667 640 488.1 640 448c0-58.813333-47.853333-106.666667-106.666667-106.666667s-106.666667 47.853333-106.666666 106.666667a21.333333 21.333333 0 0 1-42.666667 0 149.333333 149.333333 0 0 1 298.666667 0c0 28.113333-10.6 53.873333-32.406667 78.74-17.593333 20.046667-39.593333 36.466667-60.873333 52.34-12.666667 9.453333-24.76 18.473333-34.72 27.433333V640a21.333333 21.333333 0 0 1-21.333334 21.333333z" fill="#5C5C66" p-id="4227"></path></svg>`,
tooltip: {
style: { arrowMark: true },
// 气泡框,按钮的的解释信息
title: 'this is product name',
placement: VTable.TYPES.Placement.right,
},
},
]
},
{
"field": "Category",
Expand Down Expand Up @@ -281,6 +300,9 @@ tableInstance.on('click_cell', args => {
}else if(targetIcon.name === 'order'){
const value=tableInstance.getCellValue(col,row);
window?.alert?.('已复制订单号: '+value);
}else if(targetIcon.name === 'question'){
const value=tableInstance.getCellValue(col,row);
window?.alert?.('question: '+value);
}
}
})
Expand Down
Loading

0 comments on commit e9ca49d

Please sign in to comment.