ant-design/components/_util/hooks
kyriewen 5a45276565
feat: Add useMultipleSelect hooks, transfer supports multiple select by holding down the shift key. (#45285)
* feat: add useMultipleSelect hooks

* docs: update README

* chore: update size limit

* refactor:  prevSelectedIndex ref to state、initial value

* refactor: useMultipleSelect

* refactor: reset last select key after deselect

* chore: useMultipleSelect params type

* refactor: should params key be in useMultipleSelect hooks

* feat: getKey must be required

* chore: useless code

* refactor: remove useless code

* feat: onItemSelect params event must be required

* feat: remove params event

* chore: remove onItemSelect params event; refactor transfer listBody onClick fnName

* revert(modal): revert modal demo dark

* refactor: props onItemSelect

* refactor: onItemSelect fn name

* refactor: transfer children type

* refactor: renderList props

* test: add test case

* chore: args -> arguments

* test(transfer): add test case

---------

Signed-off-by: kyriewen <64134946+zbw-zbw@users.noreply.github.com>
Co-authored-by: zbw01218944 <zbw01218944@alibaba-inc.com>
2023-10-26 11:46:22 +08:00
..
useClosable.tsx fix: ant-design/icons import refactor (#43915) 2023-07-31 23:55:25 +08:00
useForceUpdate.ts revert: "chore: unified import method (#42149)" (#42180) 2023-05-06 15:49:37 +08:00
useMultipleSelect.ts feat: Add useMultipleSelect hooks, transfer supports multiple select by holding down the shift key. (#45285) 2023-10-26 11:46:22 +08:00
usePatchElement.tsx revert: "chore: unified import method (#42149)" (#42180) 2023-05-06 15:49:37 +08:00
useProxyImperativeHandle.ts feat: Table support scrollTo reference (#45245) 2023-10-11 13:55:20 +08:00
useSyncState.ts type: fix type errors of React.Key (#44938) 2023-09-20 11:01:49 +08:00
useZIndex.tsx feat: z-index container opt (#45490) 2023-10-23 04:16:41 -05:00