ant-design/components/transfer/demo
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
..
advanced.md docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
advanced.tsx chore: remo format and remove prettierrc arrowParens (#38722) 2022-11-19 13:47:33 +08:00
basic.md docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
basic.tsx chore: remo format and remove prettierrc arrowParens (#38722) 2022-11-19 13:47:33 +08:00
component-token.md feat: migrate less to token for Transfer (#42431) 2023-06-02 11:11:37 +08:00
component-token.tsx feat: Add useMultipleSelect hooks, transfer supports multiple select by holding down the shift key. (#45285) 2023-10-26 11:46:22 +08:00
custom-item.md docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
custom-item.tsx docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
custom-select-all-labels.md docs: fix typos (#40791) 2023-02-23 21:56:43 +08:00
custom-select-all-labels.tsx chore: remo format and remove prettierrc arrowParens (#38722) 2022-11-19 13:47:33 +08:00
large-data.md docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
large-data.tsx chore: remo format and remove prettierrc arrowParens (#38722) 2022-11-19 13:47:33 +08:00
oneWay.md docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
oneWay.tsx chore: remo format and remove prettierrc arrowParens (#38722) 2022-11-19 13:47:33 +08:00
search.md docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
search.tsx chore: remo format and remove prettierrc arrowParens (#38722) 2022-11-19 13:47:33 +08:00
status.md docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
status.tsx docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
table-transfer.md docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
table-transfer.tsx feat: Add useMultipleSelect hooks, transfer supports multiple select by holding down the shift key. (#45285) 2023-10-26 11:46:22 +08:00
tree-transfer.md docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
tree-transfer.tsx type: fix type errors of React.Key (#44938) 2023-09-20 11:01:49 +08:00