Skip to content

Commit 037d857

Browse files
authored
docs: update readme.md (#990)
1 parent 84f9962 commit 037d857

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ React.render(<Table columns={columns} data={data} />, mountNode);
115115
| columns | Object[] | | The columns config of table, see table below |
116116
| components | Object | | Override table elements, see [#171](https://github.com/react-component/table/pull/171) for more details |
117117
| sticky | boolean \| {offsetHeader?: number, offsetScroll?: number, getContainer?: () => Window \| HTMLElement } | false | stick header and scroll bar |
118-
| summary | (data: readonly RecordType[]) => React.ReactNode | - | "summary" attribute in Ant Design's "Table" component is used to define the summary row of the table. The summary row is a special row that is usually used to display summary information of all rows in the table, such as total, average, etc. |
118+
| summary | (data: readonly RecordType[]) => React.ReactNode | - | `summary` attribute in `table` component is used to define the summary row. |
119119

120120
## Column Props
121121

@@ -142,17 +142,16 @@ React.render(<Table columns={columns} data={data} />, mountNode);
142142
| Name | Type | Default | Description |
143143
| --- | --- | --- | --- |
144144
| key | String | | key of this summary |
145-
| fixed | boolean \| 'top' \| 'bottom' | - | "true" fixes the summary row at the bottom of the table. |
146-
147-
"top" fixes the summary row at the top of the table, while "bottom" fixes it at the bottom. "undefined" or "false" makes the summary row scrollable along with the table. |
145+
| fixed | boolean \| 'top' \| 'bottom' | - | `true` fixes the summary row at the bottom of the table. `top` fixes the summary row at the top of the table, while `bottom` fixes it at the bottom. `undefined` or `false` makes the summary row scrollable along with the table. |
148146

149147
### Table.Summary.Row
150148

151149
| Name | Type | Default | Description |
152150
| --- | --- | --- | --- |
153151
| key | String | | key of this summary |
154152
| className | String | - | className of this summary row |
155-
| onClick | (e?: React.MouseEvent<HTMLElement>) => void | - | The onClick attribute in Ant Design's Table.Summary.Row component can be used to set a click event handler for the summary row. |
153+
| style | React.CSSProperties | - | style of this summary row |
154+
| onClick | (e?: React.MouseEvent<HTMLElement>) => void | - | The `onClick` attribute in `Table.Summary.Row` component can be used to set a click event handler for the summary row. |
156155

157156
## License
158157

0 commit comments

Comments
 (0)