ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

Tab size inside a card according to the card size

Open SuichiM opened this issue 6 months ago • 1 comments
trafficstars

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

What problem does this feature solve?

When the size prop is set to 'small' for a card, and that card uses tabs, the tabs size should be set to small as well instead of the fixes 'large' size set currently

What does the proposed API look like?

no changes in the api, just consider the card size to set the tabs size as well

add the size prop in: https://github.com/vueComponent/ant-design-vue/blob/main/components/card/Card.tsx#L103

hoverable,
size,
activeTabKey,

define the tab size according to the card size https://github.com/vueComponent/ant-design-vue/blob/main/components/card/Card.tsx#L133

size: size === 'small' ? 'small' : 'large' as SizeType,

SuichiM avatar May 20 '25 17:05 SuichiM