Skip to content

Calendar disableDate 和 onDayClick 回调参数类型错误 #2510

@zhangminggeek

Description

@zhangminggeek

NutUI React 包名

@nutui/nutui-react-taro

NutUI React 版本号

2.6.15

平台

weapp

重现链接

https://codesandbox.io/p/sandbox/nutui-react-2x-demo-fg4vxd?file=/src/App.tsx

重现步骤

disableDate

回调参数:

export interface CalendarDay {
    day: string | number;
    type: string;
}

export interface CalendarDay {

实际返回类型为

export interface CalendarDay {
    day: number;
    month: number;
    year: number;
    type: string;
}

onDayClick

onDayClick?: (data: string) => void

onDayClick?: (data: string) => void

实际返回结果:

image

期望的结果是什么?

修复类型

实际的结果是什么?

希望修复一下 ts 类型

环境信息

No response

其他补充信息

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions