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

🧐[问题] 如何清除 ProTable里Card和Toolbar的padding? #11055

Closed
chenyu1990 opened this issue Nov 24, 2023 · 1 comment
Closed

🧐[问题] 如何清除 ProTable里Card和Toolbar的padding? #11055

chenyu1990 opened this issue Nov 24, 2023 · 1 comment

Comments

@chenyu1990
Copy link

如何清除 ProTable里Card和Toolbar的padding?

@chenshuai2144
Copy link
Collaborator

要清除 ProTable 中 Card 和 Toolbar 的 padding,可以使用 cardProps 属性来设置。具体的使用方式如下:

<Portable
  // 其他属性...
  cardProps={{
    bodyStyle: { padding: 0 },
  }}
/>

通过在 cardProps 中设置 bodyStyle 的 padding 为 0,可以清除 Card 组件中的 padding。而在 toolbarProps 中设置 style 的 padding 为 0,可以清除 Toolbar 组件中的 padding。这样就能达到清除 ProTable 中 Card 和 Toolbar 的 padding 的效果。

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

No branches or pull requests

2 participants