-
Notifications
You must be signed in to change notification settings - Fork 756
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
AtInput 的 props 没有穿透传递给 Input 组件 #1654
Labels
Comments
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
This was referenced Nov 17, 2023
robinv8
added a commit
that referenced
this issue
Nov 17, 2023
This was referenced Nov 17, 2023
This was referenced Nov 19, 2023
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
AtInput 的 props 没有穿透传递给 Input 组件,导致有些属性是写了声明文件,但实际上并没有作用到内部的 Input
复现步骤
<AtInput required name='number' type='text' title={t('Password')} value={tempPassword} placeholder={t('Please enter your password')} maxlength={4} onChange={(value) => { setTempPassword(value + '') }} + enableNative={false} />
例如此处添加的 enableNative 是声明了,但源码里面没有用到
taro-ui/packages/taro-ui/src/components/input/index.tsx
Lines 166 to 194 in 6d349bf
期望行为
属性能正常赋值到 Input 组件,否则就不要这个声明
报错信息
系统信息
👽 Taro v3.6.13
Taro CLI 3.6.13 environment info:
System:
OS: Windows 10 10.0.19045
Binaries:
Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 6.14.18 - C:\Program Files\nodejs\npm.CMD
npmPackages:
@tarojs/cli: 3.6.13 => 3.6.13
@tarojs/components: 3.6.13 => 3.6.13
@tarojs/helper: 3.6.13 => 3.6.13
@tarojs/plugin-framework-react: 3.6.13 => 3.6.13
@tarojs/plugin-platform-alipay: 3.6.13 => 3.6.13
@tarojs/plugin-platform-h5: 3.6.13 => 3.6.13
@tarojs/plugin-platform-jd: 3.6.13 => 3.6.13
@tarojs/plugin-platform-qq: 3.6.13 => 3.6.13
@tarojs/plugin-platform-swan: 3.6.13 => 3.6.13
@tarojs/plugin-platform-tt: 3.6.13 => 3.6.13
@tarojs/plugin-platform-weapp: 3.6.13 => 3.6.13
@tarojs/react: 3.6.13 => 3.6.13
@tarojs/runtime: 3.6.13 => 3.6.13
@tarojs/shared: 3.6.13 => 3.6.13
@tarojs/taro: 3.6.13 => 3.6.13
@tarojs/taro-h5: 3.6.13 => 3.6.13
@tarojs/taro-loader: 3.6.13 => 3.6.13
@tarojs/webpack5-runner: 3.6.13 => 3.6.13
babel-plugin-transform-taroapi: 3.6.13 => 3.6.13
babel-preset-taro: 3.6.13 => 3.6.13
eslint-config-taro: 3.6.13 => 3.6.13
react: ^18.2.0 => 18.2.0
taro-ui: ^3.1.0 => 3.1.0d
补充信息
The text was updated successfully, but these errors were encountered: