jd-opensource / jd-opensource/taro-ui

next分支 构建报错

Open
#1,481 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

### Taro UI 版本信息

v3.1.0-beta.2

### 问题描述

next分支下 运行代码 ts类型检查失败

### 复现步骤

1. git clone https://github.com/NervJS/taro-ui.git
2. npm run bootstrap
3. npm run build

### 复现代码

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

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.