Open wangdongdong9264 opened 2 years ago
v3.1.0-beta.2
next分支下 运行代码 ts类型检查失败
taro-ui/packages/taro-ui/src/components/input-number/index.tsx(189,3)
semantic error TS2322: Type 'string' is not assignable to type 'CSSProperties | undefined'
👽 Taro v3.4.2
Taro CLI 3.4.2 environment info: System: OS: macOS 12.4 Shell: 5.8.1 - /bin/zsh Binaries: Node: 14.19.0 - ~/.nvm/versions/node/v14.19.0/bin/node Yarn: 1.22.17 - ~/.nvm/versions/node/v14.19.0/bin/yarn npm: 6.14.16 - ~/.nvm/versions/node/v14.19.0/bin/npm npmPackages: @tarojs/cli: 2.2.11 => 2.2.11 @tarojs/components: 2.2.11 => 2.2.11 @tarojs/mini-runner: 2.2.11 => 2.2.11 @tarojs/router: 2.2.11 => 2.2.11 @tarojs/taro: 2.2.11 => 2.2.11 @tarojs/taro-h5: 2.2.11 => 2.2.11 @tarojs/webpack-runner: 2.2.11 => 2.2.11 eslint-config-taro: 2.2.11 => 2.2.11 eslint-plugin-taro: 2.2.11 => 2.2.11 nerv-devtools: ^1.5.7 => 1.5.7 nervjs: ^1.5.7 => 1.5.7 taro-ui: ^2.2.1 => 2.3.4
packages/taro-ui/types/input-number.d.ts
customStyle?: CSSProperties | string
欢迎提交 Issue~
如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏
如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。
Good luck and happy coding~
Taro UI 版本信息
v3.1.0-beta.2
问题描述
next分支下 运行代码 ts类型检查失败
复现步骤
复现代码
taro-ui/packages/taro-ui/src/components/input-number/index.tsx(189,3)
报错信息
semantic error TS2322: Type 'string' is not assignable to type 'CSSProperties | undefined'
系统信息
👽 Taro v3.4.2
Taro CLI 3.4.2 environment info: System: OS: macOS 12.4 Shell: 5.8.1 - /bin/zsh Binaries: Node: 14.19.0 - ~/.nvm/versions/node/v14.19.0/bin/node Yarn: 1.22.17 - ~/.nvm/versions/node/v14.19.0/bin/yarn npm: 6.14.16 - ~/.nvm/versions/node/v14.19.0/bin/npm npmPackages: @tarojs/cli: 2.2.11 => 2.2.11 @tarojs/components: 2.2.11 => 2.2.11 @tarojs/mini-runner: 2.2.11 => 2.2.11 @tarojs/router: 2.2.11 => 2.2.11 @tarojs/taro: 2.2.11 => 2.2.11 @tarojs/taro-h5: 2.2.11 => 2.2.11 @tarojs/webpack-runner: 2.2.11 => 2.2.11 eslint-config-taro: 2.2.11 => 2.2.11 eslint-plugin-taro: 2.2.11 => 2.2.11 nerv-devtools: ^1.5.7 => 1.5.7 nervjs: ^1.5.7 => 1.5.7 taro-ui: ^2.2.1 => 2.3.4
补充信息
packages/taro-ui/types/input-number.d.ts
customStyle?: CSSProperties | string