[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
-
代码位置
错误描述: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