Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigProvider componentSize 能否支持区分配置组件? #23018

Open
1 task done
Liu-Ya opened this issue Apr 8, 2020 · 3 comments
Open
1 task done

ConfigProvider componentSize 能否支持区分配置组件? #23018

Liu-Ya opened this issue Apr 8, 2020 · 3 comments

Comments

@Liu-Ya
Copy link
Contributor

Liu-Ya commented Apr 8, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

我们目前的项目中只想配置Table组件默认尺寸为middle,不改变其他组件的尺寸

What does the proposed API look like?

<ConfigProvider componentSize={{table: 'middle'}}></ConfigProvider>
@AshoneA
Copy link
Contributor

AshoneA commented Apr 10, 2020

@zombieJ 我感觉用户可以自己封装个 props => <Table size="middle" { ...props } />组件,然后自己调用解决。

@afc163
Copy link
Member

afc163 commented Apr 10, 2020

支持一个 function 也不错。

@yoyo837
Copy link
Contributor

yoyo837 commented Apr 10, 2020

@AshoneA 你说的和功能请求所描述的感觉不是一个目的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants