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

卡片下的header-style无效 #3297

Open
1 task
Glamours opened this issue Sep 14, 2024 · 2 comments
Open
1 task

卡片下的header-style无效 #3297

Glamours opened this issue Sep 14, 2024 · 2 comments

Comments

@Glamours
Copy link

Basic Info

What is expected?

:header-style自定义样式应对arco-card-header-title这个class生效

Steps to reproduce

无论是放置在a-card或a-card-grid里都对自定义标题区里的样式无法控制

@oljc
Copy link
Member

oljc commented Sep 14, 2024

@Glamours headerStyle 设计之初是为了控制整个标题的,有特殊样式需求可以通过标题插槽自定义,或 css 样式覆盖。

@Glamours
Copy link
Author

@Glamours headerStyle 设计之初是为了控制整个标题的,有特殊样式需求可以通过标题插槽自定义,或 css 样式覆盖。

问题是放哪它都不生效,就下面这个官方示例,改变标题字号36px,毫无作用

<a-card :style="{ width: '360px' }" title="Arco Card" :header-style="{ 'font-size': '36px' }"> <template #extra> <a-link>More</a-link> </template> ByteDance's core product, Toutiao ("Headlines"), is a content platform in China and around the world. Toutiao started out as a news recommendation engine and gradually evolved into a platform delivering content in various formats. </a-card>

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