antd框架属实好用,但是UI美观度却不尽人意
那么,日期选择器的UI该如何修改呢?
这里只修改了颜色部分
:global{
// 修改 日期选择框的属性
.ant-calendar-selected-day > .ant-calendar-date { // 选中 当前日期的 背景色
background-color: rgba(132, 63, 255,0.8);
}
.ant-calendar-date:hover{ // 鼠标的hover效果
background-color: rgba(132, 63, 255,0.4);
}
.ant-calendar-today > .ant-calendar-date{
color: rgba(132, 63, 255,0.8);
border-color: rgba(132, 63, 255,0.4);
}
.ant-calendar-today-btn{
color: rgb(132, 63, 255);
}
}
效果如图: