Code Monkey home page Code Monkey logo

antd's Issues

Form 的 labelWrap 没有生效

根据文档说明,labelWraptrue 时,标签换行,但实际并没有换行,总是会显示省略号并通过 tooltip 来显示。

复现链接:文档中的例子就没有生效。文档地址:https://antd5.formilyjs.org/zh-CN/components/form-item#%E5%B8%B8%E7%94%A8%E5%B1%9E%E6%80%A7%E6%A1%88%E4%BE%8B 常用属性案例 -> 固定宽度设置 中,固定label宽度(labelWidth)换行换行... 这个 FormItem,源码中设置了 labelWrap ,但实际没有换行。

简单检索了一下代码,labelWrap 仅仅添加了 ant-formily-item-label-wrap 这个 className,但并没有找到相应的 css 属性,是否这个功能还没有开发?

保留antd的upload的功能:当上传照片数到达限制后,上传按钮消失。

{props.children || getPlaceholder(props)}

这里的 getPlaceholder(props) 默认children能否去掉,来保留原antd功能:upload在上传照片数量达到上限后,上传按钮自动消失(https://ant.design/components/upload-cn

<AntdUpload {...useUploadProps(props)}>
    {props.children || getPlaceholder(props)}
</AntdUpload>

原antd此功能:

<Upload
    action="https://www.mocky.io/v2/5cc8019d300000980a055e76"
    listType="picture-card"
    fileList={fileList}
    onPreview={handlePreview}
    onChange={handleChange}
>
        {fileList.length >= 8 ? null : uploadButton}
</Upload>

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.