[bug] dropdownMenu 属性类型不匹配 #92
Closed
bytegolang
started this conversation in
General
Replies: 1 comment
-
create a new issue please, thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
代码位置
![image](https://private-user-images.githubusercontent.com/16700482/337592548-4711fbc3-d0fb-4db5-bc80-1808b235e942.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NTU3MjUsIm5iZiI6MTczOTQ1NTQyNSwicGF0aCI6Ii8xNjcwMDQ4Mi8zMzc1OTI1NDgtNDcxMWZiYzMtZDBmYi00ZGI1LWJjODAtMTgwOGIyMzVlOTQyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE0MDM0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg2ZDkwM2IxMzZmNDMxYTU2ZjVkNjk4YjQwYWRkZWZiOWJiMTE5YTA1OTgxNmRhOWJmNDEyYjNlOGM1OTcwODkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.lJmn5e-Ob5bw8Hy9NCEl3xnZcKvru1VKYXJDQmPsqZE)
错误描述:Type '{ id?: string | undefined; ref?: HTMLElement | ((el: HTMLElement) => void) | undefined; as: "div"; class: string; }' is not assignable to type 'IntrinsicAttributes & Omit<HTMLAttributes, "as" | keyof MenuItemLabelCommonProps<ElementOf>> & MenuItemLabelOptions & Partial<...> & PolymorphicAttributes<...>'.
Type '{ id?: string | undefined; ref?: HTMLElement | ((el: HTMLElement) => void) | undefined; as: "div"; class: string; }' is not assignable to type 'Partial<MenuItemLabelCommonProps>'.
Types of property 'ref' are incompatible.
Type 'HTMLElement | ((el: HTMLElement) => void) | undefined' is not assignable to type 'HTMLDivElement | ((el: HTMLDivElement) => void) | undefined'.
Type 'HTMLElement' is not assignable to type 'HTMLDivElement | ((el: HTMLDivElement) => void) | undefined'.
Property 'align' is missing in type 'HTMLElement' but required in type 'HTMLDivElement'.ts(2322)
lib.dom.d.ts(10066, 5): 'align' is declared here.
Beta Was this translation helpful? Give feedback.
All reactions