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

设置指定日期样式时,会给子元素也添加上class #466

Open
coder0309 opened this issue Dec 2, 2021 · 1 comment
Open

设置指定日期样式时,会给子元素也添加上class #466

coder0309 opened this issue Dec 2, 2021 · 1 comment
Assignees
Labels

Comments

@coder0309
Copy link

BUG描述

日历上有多个状态标识,需要给不同日期添加不同的class,使用setDateStyle(),发现父子元素都添加上了class

复现步骤

期望结果
预期效果

实际结果
实际效果
代码

截图

@NRMrYang
Copy link

应该就是这样设计的,只想对最里面的圆形加样式,可以:

.date-wrap .green-date {
    background-color: green;
}

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

No branches or pull requests

3 participants