diff --git a/docs/en-US/component/table.md b/docs/en-US/component/table.md index a26e96ebda..c6e3fd29dd 100644 --- a/docs/en-US/component/table.md +++ b/docs/en-US/component/table.md @@ -249,7 +249,7 @@ table/table-layout | Name | Description | Type | Default | | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| data | table data | ^[object]`any[]` | [] | +| data | table data | ^[array]`any[]` | [] | | height | table's height. By default it has an `auto` height. If its value is a number, the height is measured in pixels; if its value is a string, the value will be assigned to element's style.height, the height is affected by external styles | ^[string] / ^[number] | — | | max-height | table's max-height. The legal value is a number or the height in px | ^[string] / ^[number] | — | | stripe | whether Table is striped | ^[boolean] | false | @@ -270,7 +270,7 @@ table/table-layout | row-key | key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used | ^[function]`(row: any) => string` / ^[string] | — | | empty-text | displayed text when data is empty. You can customize this area with `#empty` | ^[string] | No Data | | default-expand-all | whether expand all rows by default, works when the table has a column type="expand" or contains tree structure data | ^[boolean] | false | -| expand-row-keys | set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop | ^[Array]`string[]` | — | +| expand-row-keys | set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop | ^[array]`string[]` | — | | default-sort | set the default sort column and order. property `prop` is used to set default sort column, property `order` is used to set default sort order | ^[object]`Sort` | if `prop` is set, and `order` is not set, then `order` is default to ascending | | tooltip-effect | the `effect` of the overflow tooltip | ^[enum]`'dark' \| 'light'` | dark | | tooltip-options ^(2.2.28) | the options for the overflow tooltip, [see the following tooltip component](tooltip.html#attributes) | ^[object]`Pick` | ^[object]`{ enterable: true, placement: 'top', showArrow: true, hideAfter: 200, popperOptions: { strategy: 'fixed' } }` | @@ -370,7 +370,7 @@ table/table-layout | label-class-name | class name of the label of this column | ^[string] | — | | selectable | function that determines if a certain row can be selected, works when `type` is 'selection' | ^[Function]`(row: any, index: number) => boolean` | — | | reserve-selection | whether to reserve selection after data refreshing, works when `type` is 'selection'. Note that `row-key` is required for this to work | ^[boolean] | false | -| filters | an array of data filtering options. For each element in this array, `text` and `value` are required | ^[object]`Array<{text: string, value: string}>` | — | +| filters | an array of data filtering options. For each element in this array, `text` and `value` are required | ^[array]`Array<{text: string, value: string}>` | — | | filter-placement | placement for the filter dropdown | ^[enum]`'top' \| 'top-start' \| 'top-end' \| 'bottom' \| 'bottom-start' \| 'bottom-end' \| 'left' \| 'left-start' \| 'left-end' \| 'right' \| 'right-start' \| 'right-end'` | — | | filter-class-name ^(2.5.0) | className for the filter dropdown | ^[string] | — | | filter-multiple | whether data filtering supports multiple options | ^[boolean] | true |