Skip to content

Segmented的onChange类型有误 #43523

@cw1997

Description

@cw1997

Reproduction link

Edit on CodeSandbox

Steps to reproduce

如codesandbox所示

What is expected?

期待onChange属性可以接收 (value: string) => void 类型的函数

What is actually happening?

报类型错误

image

Environment Info
antd 5.3.2
React 18.2.0
System Windows 10 21H2
Browser Chrome Version 102.0.5005.115 (Official Build) (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions