GithubHelp home page GithubHelp logo

Select组件 value属性不接受number类型数值(TS2322: Type 'number' is not assignable to type 'string'.),以前是可以的,而且文档上也是接受的,请问是什么原因 about ant-design HOT 3 CLOSED

lesleyChen2016 avatar lesleyChen2016 commented on April 28, 2024
Select组件 value属性不接受number类型数值(TS2322: Type 'number' is not assignable to type 'string'.),以前是可以的,而且文档上也是接受的,请问是什么原因

from ant-design.

Comments (3)

zystudios avatar zystudios commented on April 28, 2024

image
拿官方例子试了下没什么问题,运行是可以的
https://stackblitz.com/edit/react-ga6edv?file=demo.tsx

看了下类型定义,貌似也没什么问题,至少我这里是不报错的,antd 5.15
image

from ant-design.

zombieJ avatar zombieJ commented on April 28, 2024

你的 Codesandbox 里没有 Select。

from ant-design.

github-actions avatar github-actions commented on April 28, 2024

Hello @lesleyChen2016. Please provide a online reproduction by forking codesandbox of [email protected] or [email protected], or provide a minimal GitHub repository. Issues labeled by Need Reproduce will be closed if no activities in 3 days.

你好 @lesleyChen2016,我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 [email protected][email protected] 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。

什么是最小化重现,为什么这是必需的?

from ant-design.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.