Skip to content
Open
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
4 changes: 2 additions & 2 deletions docs/en-US/components/Table.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ The function `defineTableColumns` supports passing in a Generics type to infer t
| hide | Whether to hide in the table | boolean | - | false |
| children | grouping table head | array | - | - |
| columnKey | column's key. If you need to use the filter-change event, you need this attribute to identify which column is being filtered | string | - | - |
| width | column width | string | - | - |
| minWidth | column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion | string | - | - |
| width | column width | string / number | - | - |
| minWidth | column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion | string / number | - | - |
| fixed | whether column is fixed at left/right. Will be fixed at left if `true` | string / boolean | true / left / right | - |
| renderHeader | render function for table header of this column | Function(h, { column, $index }) | - | - |
| sortable | whether column can be sorted. Remote sorting can be done by setting this attribute to 'custom' and listening to the `sort-change` event of Table | boolean / string | true / false / 'custom' | false |
Expand Down
4 changes: 2 additions & 2 deletions docs/zh-CN/components/Table.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ meta:
| hide | 是否在表格中隐藏 | boolean | - | false |
| children | 实现多级表头 | array | - | - |
| columnKey | 当前项的 key,使用 filter-change 事件时需要 | string | - | - |
| width | 对应列的宽度 | string | - | - |
| minWidth | 对应列的最小宽度 | string | - | - |
| width | 对应列的宽度 | string / number | - | - |
| minWidth | 对应列的最小宽度 | string / number | - | - |
| fixed | 列是否固定,true 表示固定在左侧 | string / boolean | true / left / right | - |
| renderHeader | 列标题 Label 区域渲染使用的 Function | Function({ column, $index }) | - | - |
| sortable | 对应列是否可以排序 | boolean / string | true / false / 'custom' | false |
Expand Down
4 changes: 2 additions & 2 deletions src/Table/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export interface TableCommonColumn<T = ExternalParam>
/** column label */
label?: string
/** column width */
width?: string
width?: string | number
/** column minimum width. Columns with width has a fixed width, while columns with min-width has a width that is distributed in proportion */
minWidth?: string
minWidth?: string | number
/** whether column is fixed at `left` `right` */
fixed?: boolean | 'left' | 'right'
/** render function for table header of this column */
Expand Down
Loading