ant-design / ant-design-icons

⭐ Ant Design SVG Icons
https://ant.design/components/icon/
MIT License
939 stars 577 forks source link

@types/react 18.2.66版本删除了onPointerEnterCapture、onPointerLeaveCapture事件 #628

Closed caocong1 closed 3 months ago

caocong1 commented 3 months ago

这是@types/react的pull链接https://github.com/DefinitelyTyped/DefinitelyTyped/pull/68984

会导致报ts错误: error TS2739: Type '{}' is missing the following properties from type 'Pick<AntdIconProps, "title" | "name" | "color" | "size" | "start" | "children" | "style" | "type" | "rowSpan" | "cite" | "data" | "form" | "label" | "slot" | "span" | ... 348 more ... | "twoToneColor">': onPointerEnterCapture, onPointerLeaveCapture

little-time commented 3 months ago

我也出现了,怎么解决的

coder-zhuzm commented 3 months ago

upup

sinna94 commented 3 months ago

I temporarily resolved this by setting @types/react to version 18.2.65 until the issue was resolved.

vagusX commented 3 months ago

Fixed in @ant-design/icons@5.3.2

qld-cf commented 3 months ago

Fixed in @ant-design/icons@5.3.2

@vagusX 4.x版本会有修吗

zmq3821 commented 3 months ago

我升级icon的版本解决了这个问题,"@ant-design/icons": "^5.3.4"