Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pick 导致属性报错 #503

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

liubailing
Copy link

react 16. 13 以下的版本会报错。
Pick 属性的时候,不能在 React.ComponentType<CustomIconComponentProps | React.SVGProps>; 中,找到translate,需要每个图标自己添加。否则 TSlLint报错。
鼠标滚轮 onAuxClick, onAuxClickCapture 也有类似的问题,需要更新或修改 @types/react/index.d.ts 这个可以说是react版本问题。

react 16. 13 以下的版本会报错。
Pick 属性的时候,不能在 React.ComponentType<CustomIconComponentProps | React.SVGProps<SVGSVGElement>>; 中,找到translate,需要每个图标自己添加。否则 TSlLint报错。
鼠标滚轮 onAuxClick, onAuxClickCapture 也有类似的问题,需要更新或修改  @types/react/index.d.ts  这个可以说是react版本问题。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants