Skip to content

Commit

Permalink
Feat/component yanxiong (#71)
Browse files Browse the repository at this point in the history
* feat: 控件 ZoomControl 新增对 ReactNode 格式的支持

* fix: 还原 package.json

* style: 1. 去除 ZoomControl 已完成的 TODO

Co-authored-by: yanxiong <oujinhui.ojh@antgroup.com>
  • Loading branch information
heiyexing and heiyexing authored Oct 17, 2022
1 parent ccaf014 commit e1598eb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/Control/ZoomControl/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export const ZoomControl: React.FC<ZoomControlProps> = ({
const { portal: zoomInTextPortal, dom: zoomInTextDOM } = useControlElement(zoomInText);
const { portal: zoomOutTextPortal, dom: zoomOutTextDOM } = useControlElement(zoomOutText);

// TODO:zoomInText 和 zoomOutText 从 ReactNode => Element 还没好
const controlOptions: Partial<IZoomControlOption> = useMemo(() => {
return {
position,
Expand Down

0 comments on commit e1598eb

Please sign in to comment.