组件代码
«
‹
{{nowDate.year}}年{{nowDate.month+1}}月
»
›
- {{formatWeek(index)}}
- {{lastMonthStartDay+o-1}}
- {{day}}
- {{day}}
.year {
text-align: center;
height: 30px;
line-height: 30px;
background: #E0ECFF;
font-size: 12px;
}
.week,.date{
box-sizing: border-box;
display: flex;
flex-wrap: wrap;
list-style: none;
}
.week {
background: #F4F4F4;
}
.week li{
height: 20px;
line-height: 20px;
}
.date li{
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
line-height: 25px;
}
.date li span{
display: block;
width: 25px;
height: 25px;
}
.date li .onDate{
color: #0000ff;
}
.date li .onClick{
background: #0080cb;
border-radius:50%;
color: #fff;
}
ul>li {
font-size: 12px;
width: calc(100%/7);
height: 30px;
text-align: center;
line-height: 30px;
color: #333;
}
.none-week {
color: #aaa;
}
.year>div {
height: 30px;
overflow: hidden;
}
.year span {
line-height: 27px;
font-size: 20px;
display: inline-block;
width: 10%;
cursor: pointer;
}
.year p {
width: 50%;
display: inline-block;
}
.fl {
float: left;
}
.fr {
float: right;
}



