Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update docs #1943

Merged
merged 1 commit into from
Oct 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/hooks/src/useAntdTable/demo/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface Result {
}

const getTableData = ({ current, pageSize }): Promise<Result> => {
let query = `page=${current}&size=${pageSize}`;
const query = `page=${current}&size=${pageSize}`;

return fetch(`https://randomuser.me/api?results=55&${query}`)
.then((res) => res.json())
Expand Down
2 changes: 1 addition & 1 deletion packages/hooks/src/useFusionTable/demo/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface Result {
}

const getTableData = ({ current, pageSize }): Promise<Result> => {
let query = `page=${current}&size=${pageSize}`;
const query = `page=${current}&size=${pageSize}`;

return fetch(`https://randomuser.me/api?results=${pageSize}&${query}`)
.then((res) => res.json())
Expand Down
1 change: 1 addition & 0 deletions packages/hooks/src/useKeyPress/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ useKeyPress(
| events | Trigger Events | `('keydown' \| 'keyup')[]` | `['keydown']` |
| target | DOM element or ref | `() => Element` \| `Element` \| `MutableRefObject<Element>` | - |
| exactMatch | Exact match. If set `true`, the event will only be trigger when the keys match exactly. For example, pressing [shif + c] will not trigger [c] | `boolean` | `false` |
| useCapture | to block events bubbling | `boolean` | `false` |

## Remarks

Expand Down
1 change: 1 addition & 0 deletions packages/hooks/src/useKeyPress/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ useKeyPress(
| events | 触发事件 | `('keydown' \| 'keyup')[]` | `['keydown']` |
| target | DOM 节点或者 ref | `() => Element` \| `Element` \| `MutableRefObject<Element>` | - |
| exactMatch | 精确匹配。如果开启,则只有在按键完全匹配的情况下触发事件。比如按键 [shif + c] 不会触发 [c] | `boolean` | `false` |
| useCapture | 是否阻止事件冒泡 | `boolean` | `false` |

## Remarks

Expand Down