We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
微信小程序
小程序基础库: 8.0.16 使用框架: React
使用TS <Input type='number' value={value} />的value给number类型,会报红
<Input type='number' value={value} />
希望value有除了string以外的类型支持
只有sting
👽 Taro v3.4.1 Taro CLI 3.4.1 environment info: System: OS: Windows 10 Binaries: Node: 16.13.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.17 - C:\Users\XERA\AppData\Roaming\npm\yarn.CMD npm: 8.1.0 - C:\Program Files\nodejs\npm.CMD
主要是看到TS报红,可能我的用法错了或者有其他解决方法...
The text was updated successfully, but these errors were encountered:
等待热心的小伙伴解决问题中..., 有一些相关的 issues 可能帮助到你!
Thank you so much!
Sorry, something went wrong.
按照 wx 官方的定义,Input.value 类型只支持 string,如果需要填入其他类型需要完成类型转换
string
ZakaryCode
No branches or pull requests
相关平台
微信小程序
小程序基础库: 8.0.16
使用框架: React
复现步骤
使用TS
<Input type='number' value={value} />
的value给number类型,会报红期望结果
希望value有除了string以外的类型支持
实际结果
只有sting
环境信息
补充信息
主要是看到TS报红,可能我的用法错了或者有其他解决方法...
The text was updated successfully, but these errors were encountered: