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

从3 升级到 4 之后ts各种报错 #211

Open
ycshill opened this issue Feb 22, 2021 · 1 comment
Open

从3 升级到 4 之后ts各种报错 #211

ycshill opened this issue Feb 22, 2021 · 1 comment

Comments

@ycshill
Copy link

ycshill commented Feb 22, 2021

例如:
Center/deviceGroup/groupSelect/index.tsx(243,9):
Type '{ selectedRowKeys: string[] | number[]; onChange: (selectedRowKeysArr: string[] | number[], selectedRows: any) => void; }' is not assignable to type 'TableRowSelection'.
Types of property 'onChange' are incompatible.
Type '(selectedRowKeysArr: string[] | number[], selectedRows: any) => void' is not assignable to type '(selectedRowKeys: (string | number)[], selectedRows: any[]) => void'.
Types of parameters 'selectedRowKeysArr' and 'selectedRowKeys' are incompatible.
Type '(string | number)[]' is not assignable to type 'string[] | number[]'.
Type '(string | number)[]' is not assignable to type 'string[]'.
Type 'string | number' is not assignable to type 'string'.
Type 'number' is not assignable to type 'string'.

@crazyair
Copy link
Member

antd v4 Select 等其他组件类型定义有变更,需要找到报错地方,手动修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants