From d560ce2b4eb76f3de253ec6efcf81b1667604a2f Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Wed, 9 Nov 2022 12:39:29 +0800 Subject: [PATCH] chore(docs): [table-v2] update column attribute name (#10531) --- docs/en-US/component/table-v2.md | 34 ++++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/en-US/component/table-v2.md b/docs/en-US/component/table-v2.md index 74d43ec14a..2723cff6ff 100644 --- a/docs/en-US/component/table-v2.md +++ b/docs/en-US/component/table-v2.md @@ -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