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 · 4 comments
Open
1 task

卡片下的header-style无效 #3297

Glamours opened this issue Sep 14, 2024 · 4 comments
Labels
UI/UX QA ❌ Wontfix This will not be worked on

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>

@lin-97
Copy link

lin-97 commented Sep 23, 2024

@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>

一看你就不是前端,header-style 又不是 title-style, 它是针对整个头部的,而不是标题,你要么用插槽,要么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>

一看你就不是前端,header-style 又不是 title-style, 它是针对整个头部的,而不是标题,你要么用插槽,要么css穿透吧,而且有一点就是,卡片的标题字体大小一般全局统一的,要么你就全局改

这话说的,我是不是前端我不照样会用么?官方对标题的定义描述本就有问题,为什么body-style能控制例内容区域文字大小,而header-style为什么不可以,我知道是整个头部,为什么arco-card-header-title就不吃?难道标题不属于头部?它描述都是:自定义标题区域样式,我当然可以用deep去穿透,既然api给了我就用,我对这个参数就是有疑义

@oljc oljc added UI/UX QA ❌ Wontfix This will not be worked on labels Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI/UX QA ❌ Wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants