fix: 日历功能优化。
This commit is contained in:
@@ -681,14 +681,14 @@ const handleSelectDate = (info) => {
|
||||
}
|
||||
}
|
||||
|
||||
// 日期单元格
|
||||
// 日期单元格 - 优化高度和间距
|
||||
.fc-daygrid-day {
|
||||
border: 1px solid #e8eaed;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
padding: 3px 4px;
|
||||
padding: 2px 3px;
|
||||
background: #ffffff;
|
||||
position: relative;
|
||||
min-height: 90px;
|
||||
min-height: 75px;
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
|
||||
@@ -774,38 +774,32 @@ const handleSelectDate = (info) => {
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
// 事件样式
|
||||
// 事件样式 - 紧凑清晰设计
|
||||
.fc-event {
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
padding: 2px 8px;
|
||||
border: none !important;
|
||||
border-left: 2px solid #3b82f6 !important;
|
||||
border-radius: 3px;
|
||||
padding: 1px 6px;
|
||||
margin: 1px 0;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
||||
line-height: 1.3;
|
||||
transition: all 0.2s ease;
|
||||
box-shadow: none;
|
||||
line-height: 1.4;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 2px;
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
border-radius: 5px 0 0 5px;
|
||||
}
|
||||
// 极淡背景色,保持空间利用率
|
||||
background: #eff6ff !important;
|
||||
color: #1e40af !important;
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
|
||||
background: #dbeafe !important;
|
||||
border-left-color: #2563eb !important;
|
||||
}
|
||||
|
||||
.fc-event-main {
|
||||
@@ -813,6 +807,7 @@ const handleSelectDate = (info) => {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: #1e40af !important;
|
||||
}
|
||||
|
||||
.fc-event-title {
|
||||
@@ -821,6 +816,7 @@ const handleSelectDate = (info) => {
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
display: block;
|
||||
color: #1e40af !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -932,23 +928,25 @@ const handleSelectDate = (info) => {
|
||||
}
|
||||
}
|
||||
|
||||
// 自定义事件颜色类
|
||||
// 自定义事件颜色类 - 紧凑样式
|
||||
:deep(.plan_title) {
|
||||
display: block;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
padding-left: 4px;
|
||||
padding-left: 0;
|
||||
color: #1e40af !important;
|
||||
|
||||
span {
|
||||
font-size: 11px;
|
||||
opacity: 0.95;
|
||||
opacity: 0.85;
|
||||
margin-right: 3px;
|
||||
font-weight: 700;
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
font-weight: 600;
|
||||
background: rgba(59, 130, 246, 0.12);
|
||||
padding: 0px 4px;
|
||||
border-radius: 2px;
|
||||
color: #2563eb;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user