Git Product home page Git Product logo

Comments (6)

MadCcc avatar MadCcc commented on July 30, 2024 1
<ConfigProvider variant="filled">

一起支持看起来好点

from ant-design.

MadCcc avatar MadCcc commented on July 30, 2024
<ConfigProvider input={{ variant: 'filled' }} form={{ variant: 'filled' }}>

这样是否足够呢,每个支持 variant 的组件都可以在 ConfigProvider 上配置

from ant-design.

skytt avatar skytt commented on July 30, 2024
<ConfigProvider input={{ variant: 'filled' }} form={{ variant: 'filled' }}>

这样是否足够呢,每个支持 variant 的组件都可以在 ConfigProvider 上配置

能这样修改就太好了!
还有个担心,如果以后有新的组件支持了变体,还得往 ConfigProvider 上暴露一下这个配置能力才能支持全局配置,可能贡献者不一定注意得到;variant 有可能只在 provider 的一个属性里集中配置么,有点类似 theme dark 的感觉(不过 dark 是样式层面,可能有点不一样)

from ant-design.

zybzzc avatar zybzzc commented on July 30, 2024

filled variant 在 inline form 中将 label 放到控件框中作为前缀要更好看一点,那么是否能让所有的输入框类样式的输入组件都支持 prefix 呢?同时 Form 和 Form.Item 也支持配置 label 的位置

from ant-design.

skytt avatar skytt commented on July 30, 2024
<ConfigProvider variant="filled">

一起支持看起来好点

这样很方便

from ant-design.

skytt avatar skytt commented on July 30, 2024

filled variant 在 inline form 中将 label 放到控件框中作为前缀要更好看一点,那么是否能让所有的输入框类样式的输入组件都支持 prefix 呢?同时 Form 和 Form.Item 也支持配置 label 的位置

感觉这是另一个话题,类似 material UI 那种么

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.