Skip to content

Commit 6b4a1c8

Browse files
committed
release 3.0.0-alpha.6
1 parent abcc545 commit 6b4a1c8

File tree

5 files changed

+21
-1
lines changed

5 files changed

+21
-1
lines changed

CHANGELOG.en-US.md

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010

1111
---
1212

13+
## 3.0.0-alpha.6
14+
15+
`2021-10-27`
16+
17+
- 🌟 Table add drag column feature
18+
1319
## 3.0.0-alpha.5
1420

1521
`2021-10-26`

CHANGELOG.zh-CN.md

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010

1111
---
1212

13+
## 3.0.0-alpha.6
14+
15+
`2021-10-27`
16+
17+
- 🌟 Table 新增拖动列
18+
1319
## 3.0.0-alpha.5
1420

1521
`2021-10-26`

components/table/index.en-US.md

+4
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ Specify `dataSource` of Table as an array of data.
120120
| change | Callback executed when pagination, filters or sorter is changed | Function(pagination, filters, sorter, { currentDataSource }) | |
121121
| expand | Callback executed when the row expand icon is clicked | Function(expanded, record) | |
122122
| expandedRowsChange | Callback executed when the expanded rows change | Function(expandedRows) | |
123+
| resizeColumn | Triggered when the column is dragged | Function(width, column) |
123124

124125
#### customRow usage
125126

@@ -174,6 +175,9 @@ One of the Table `columns` prop for describing the table's columns, Column has t
174175
| sortOrder | Order of sorted values: `'ascend'` `'descend'` `false` | boolean\|string | - | |
175176
| sortDirections | supported sort way, could be `'ascend'`, `'descend'` | Array | `['ascend', 'descend']` | 1.5.0 |
176177
| title | Title of this column | string | - | |
178+
| minWidth | Drag the minimum width of the column, it will be affected by the automatic adjustment and distribution of the table width | number | 50 | 3.0 |
179+
| maxWidth | Drag the maximum width of the column, it will be affected by the automatic adjustment and distribution of the table width | number | - | 3.0 |
180+
| resizable | Whether the width can be adjusted by dragging, at this time width must be number type | boolean | - | 3.0 |
177181
| width | Width of this column | string\|number | - | |
178182
| customCell | Set props on per cell | Function(record, rowIndex) | - | |
179183
| customHeaderCell | Set props on per header cell | Function(column) | - | |

components/table/index.zh-CN.md

+4
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/f-SbcX2Lx/Table.svg
126126
| expandedRowsChange | 展开的行变化时触发 | Function(expandedRows) |
127127
| change | 分页、排序、筛选变化时触发 | Function(pagination, filters, sorter, { currentDataSource }) |
128128
| expand | 点击展开图标时触发 | Function(expanded, record) |
129+
| resizeColumn | 拖动列时触发 | Function(width, column) |
129130

130131
#### customRow 用法
131132

@@ -181,6 +182,9 @@ cover: https://gw.alipayobjects.com/zos/alicdn/f-SbcX2Lx/Table.svg
181182
| sortDirections | 支持的排序方式,取值为 `'ascend'` `'descend'` | Array | `['ascend', 'descend']` | 1.5.0 |
182183
| title | 列头显示文字 | string | - | |
183184
| width | 列宽度 | string\|number | - | |
185+
| minWidth | 拖动列最小宽度,会受到表格自动调整分配宽度影响 | number | 50 | 3.0 |
186+
| maxWidth | 拖动列最大宽度,会受到表格自动调整分配宽度影响 | number | - | 3.0 |
187+
| resizable | 是否可拖动调整宽度,此时 width 必须是 number 类型 | boolean | - | 3.0 |
184188
| customCell | 设置单元格属性 | Function(record, rowIndex) | - | |
185189
| customHeaderCell | 设置头部单元格属性 | Function(column) | - | |
186190
| onFilter | 本地模式下,确定筛选的运行函数, 使用 template 或 jsx 时作为`filter`事件使用 | Function | - | |

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ant-design-vue",
3-
"version": "3.0.0-alpha.5",
3+
"version": "3.0.0-alpha.6",
44
"title": "Ant Design Vue",
55
"description": "An enterprise-class UI design language and Vue-based implementation",
66
"keywords": [

0 commit comments

Comments
 (0)