mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-17 11:49:41 +08:00
chore(docs): [table-v2] update column attribute name (#10531)
This commit is contained in:
parent
ed417d0fe0
commit
d560ce2b4e
@ -369,23 +369,23 @@ Note that these are `JavaScript` Objects, so that you **CANNOT USE** kebab-case
|
||||
|
||||
## Column Attribute
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| -------------- | ------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
|
||||
| align | Alignment of the table cell content | [Alignment](https://github.com/element-plus/element-plus/blob/b92b22932758f0ddea98810ae248f6ca62f77e25/packages/components/table-v2/src/constants.ts#L6) | left |
|
||||
| class | Class name for the column | String | - |
|
||||
| fixed | Fixed direction of the column | Boolean/[FixedDir](https://github.com/element-plus/element-plus/blob/b92b22932758f0ddea98810ae248f6ca62f77e25/packages/components/table-v2/src/constants.ts#L11) | false |
|
||||
| flexGrow | CSSProperties flex grow, Only useful when not this is not a fixed table | Number | 0 |
|
||||
| flexShrink | CSSProperties flex shrink, Only useful when not this is not a fixed table | Number | 1 |
|
||||
| headerClass | Used for customizing header column class | String | - |
|
||||
| hidden | Whether the column is invisible | Boolean | - |
|
||||
| style | Customized style for column cell, will be merged with grid cell | CSSProperties | - |
|
||||
| sortable | Indicates whether the column is sortable | Boolean | - |
|
||||
| title | The default text rendered in header cell | String | - |
|
||||
| maxWidth | Maximum width for the column | String | - |
|
||||
| minWidth | Minimum width for the column | String | - |
|
||||
| width \* | Width for the column **Required** | Number | - |
|
||||
| cellRenderer | Customized Cell renderer | VueComponent/(props: [CellRenderProps](#renderer-typings)) => VNode | - |
|
||||
| headerRenderer | Customized Header renderer | VueComponent/(props: [HeaderRenderProps](#renderer-typings)) => VNode | - |
|
||||
| Name | Description | Type | Default |
|
||||
| ------------------ | ------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
|
||||
| align | Alignment of the table cell content | [Alignment](https://github.com/element-plus/element-plus/blob/b92b22932758f0ddea98810ae248f6ca62f77e25/packages/components/table-v2/src/constants.ts#L6) | left |
|
||||
| class | Class name for the column | String | - |
|
||||
| fixed | Fixed direction of the column | Boolean/[FixedDir](https://github.com/element-plus/element-plus/blob/b92b22932758f0ddea98810ae248f6ca62f77e25/packages/components/table-v2/src/constants.ts#L11) | false |
|
||||
| flexGrow | CSSProperties flex grow, Only useful when not this is not a fixed table | Number | 0 |
|
||||
| flexShrink | CSSProperties flex shrink, Only useful when not this is not a fixed table | Number | 1 |
|
||||
| headerClass | Used for customizing header column class | String | - |
|
||||
| hidden | Whether the column is invisible | Boolean | - |
|
||||
| style | Customized style for column cell, will be merged with grid cell | CSSProperties | - |
|
||||
| sortable | Indicates whether the column is sortable | Boolean | - |
|
||||
| title | The default text rendered in header cell | String | - |
|
||||
| maxWidth | Maximum width for the column | String | - |
|
||||
| minWidth | Minimum width for the column | String | - |
|
||||
| width \* | Width for the column **Required** | Number | - |
|
||||
| cellRenderer | Customized Cell renderer | VueComponent/(props: [CellRenderProps](#renderer-typings)) => VNode | - |
|
||||
| headerCellRenderer | Customized Header renderer | VueComponent/(props: [HeaderRenderProps](#renderer-typings)) => VNode | - |
|
||||
|
||||
## Typings
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user