Skip to content

Cacader onChange Event Type Error #5309

@rxay

Description

@rxay
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.0.0-beta.13

Environment

macOS 11.5; chrome 96; vue ^3

Reproduction link

https://antdv.com/components/cascader-cn/

Steps to reproduce

const onChange: CascaderProps['onChange'] = (value, selections) => void

What is expected?

No Type Error

What is actually happening?

error: 不能将类型“(value: ValueType, selectOptions: DefaultOptionType[] | DefaultOptionType[][]) => void”分配给类型“(payload: Event) => void”。ts(2322)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions