Skip to content
New issue

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

Taro版本 Button 无法设置 nativeType 按钮原始类型 submit  reset   button,没有属性 #2193

Closed
jiankian opened this issue Apr 22, 2024 · 2 comments

Comments

@jiankian
Copy link
Contributor

NutUI React 包名

@nutui/nutui-react-taro

NutUI React 版本号

2.6.1

平台

h5

重现链接

#2186

重现步骤

Taro版本没有 nativeType属性,不能设置button原生的button类型
非Taro版本就有
假如Taro开发的跨端小程序要打包h5版本时,按钮无法设置原始类型,现在的type属性是设置按钮的样式的类型的

nativeType 按钮原始类型 submit | reset | button

期望的结果是什么?

Taro版本增加原始类型支持,使能在Taro跨端打包的H5版本能自定义button的原始类型。

nativeType 按钮原始类型 submit | reset | button

实际的结果是什么?

Taro打包h5版本无法设置按钮原始type

环境信息

No response

其他补充信息

image

@jiankian
Copy link
Contributor Author

已有解决代码提交,请求合入主包
#2195

@Skedush
Copy link
Contributor

Skedush commented May 21, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants