From 037d8578fd35a968f0ad586e39a0c2fd127e9994 Mon Sep 17 00:00:00 2001
From: Ylg12345 <68451336+Ylg12345@users.noreply.github.com>
Date: Mon, 8 May 2023 09:53:56 +0800
Subject: [PATCH] docs: update readme.md (#990)
---
README.md | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 4c9b9fdcd..335643fa8 100644
--- a/README.md
+++ b/README.md
@@ -115,7 +115,7 @@ React.render(
, mountNode);
| columns | Object[] | | The columns config of table, see table below |
| components | Object | | Override table elements, see [#171](https://github.com/react-component/table/pull/171) for more details |
| sticky | boolean \| {offsetHeader?: number, offsetScroll?: number, getContainer?: () => Window \| HTMLElement } | false | stick header and scroll bar |
-| 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. |
+| summary | (data: readonly RecordType[]) => React.ReactNode | - | `summary` attribute in `table` component is used to define the summary row. |
## Column Props
@@ -142,9 +142,7 @@ React.render(, mountNode);
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| key | String | | key of this summary |
-| 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. |
+| 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. |
### Table.Summary.Row
@@ -152,7 +150,8 @@ React.render(, mountNode);
| --- | --- | --- | --- |
| key | String | | key of this summary |
| className | String | - | className of this summary row |
-| onClick | (e?: React.MouseEvent) => 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. |
+| style | React.CSSProperties | - | style of this summary row |
+| onClick | (e?: React.MouseEvent) => void | - | The `onClick` attribute in `Table.Summary.Row` component can be used to set a click event handler for the summary row. |
## License