mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-18 08:00:53 +08:00

* chore: upgrade RC component dependencies
* chore: trigger CI build
* chore: update deps and import path
* chore: update deps
* test: update snapshot
* test: update snapshot
* fix: lint fix
* chore: migrate Drawer to @rc-component/drawer
* chore: migrate Image to @rc-component/image
* test: update snapshot
* chore: replace api
* fix cascader dropdown api and snap, popupAlign
* fix ci test
* fix key
* test: update snapshot
* Revert "test: update snapshot"
This reverts commit 66a993332b
.
* chore: fix logic
* test: update snapshot
* chore: revert part logic
---------
Signed-off-by: Jony J <1844749591@qq.com>
Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
15 lines
327 B
TypeScript
15 lines
327 B
TypeScript
import { useMemo } from 'react';
|
|
import type { Components } from '@rc-component/picker/lib/interface';
|
|
|
|
import PickerButton from '../PickerButton';
|
|
|
|
export default function useComponents(components?: Components) {
|
|
return useMemo(
|
|
() => ({
|
|
button: PickerButton,
|
|
...components,
|
|
}),
|
|
[components],
|
|
);
|
|
}
|