Skip to content

Commit e95eb61

Browse files
authored
feat(tbale): 分组表头支持固定-1.x (#3896)
* feat(table): 分组表头支持固定 * docs(table): 增加分组表头固定的英文文档
1 parent 663aa34 commit e95eb61

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

antdv-demo/docs/table/index.en-US.md

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ One of the Table `columns` prop for describing the table's columns, Column has t
111111
| Property | Description | Type | Default |
112112
| --- | --- | --- | --- |
113113
| title | Title of the column group | string\|slot | - |
114+
| fixed | Set column group to be fixed: `true`(same as left) `'left'` `'right'` | boolean\|string | `false` | |
114115
| slots | When using columns, you can use this property to configure the properties that support the slot, such as `slots: { title: 'XXX'}` | object | - |
115116
116117
### pagination

antdv-demo/docs/table/index.zh-CN.md

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
| 参数 | 说明 | 类型 | 默认值 |
112112
| --- | --- | --- | --- |
113113
| title | 列头显示文字 | string\|slot | - |
114+
| fixed | 列是否固定,可选 `true`(等效于 left) `'left'` `'right'` | boolean\|string | false | |
114115
| slots | 使用 columns 时,可以通过该属性配置支持 slot 的属性,如 `slots: { title: 'XXX'}` | object | - |
115116
116117
### pagination

components/table/ColumnGroup.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import PropTypes from '../_util/vue-types';
33
export default {
44
name: 'ATableColumnGroup',
55
props: {
6+
fixed: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['left', 'right'])]),
67
title: PropTypes.any,
78
},
89
__ANT_TABLE_COLUMN_GROUP: true,

0 commit comments

Comments
 (0)