jd-opensource / jd-opensource/taro-ui

AtInputNumber onChange 事件的参数类型与实际不一致

Open
#726 2 comments 0 reactions 1 assignee Claimed by @jimczj View on GitHub
表单组件
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

**问题描述**
类型声明中回调的值是 `number` 类型
https://github.com/NervJS/taro-ui/blob/3c4ff28c9186d7891c8847748edb40d03dc0d587/%40types/input-number.d.ts#L11-L35

代码实现时最终转化成了 `string` 类型
https://github.com/NervJS/taro-ui/blob/3c4ff28c9186d7891c8847748edb40d03dc0d587/src/components/input-number/index.js#L28-L38

**复现步骤**

**期望行为**

**报错信息**

**系统信息**

- Taro UI 版本 2.2.1

**补充信息**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.