Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-12-14 01:30:44 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0320911fd6263e9a8d93212d6903aa71a0622147
0320911f
1 parent
d223b541
style(teacher/checkinPage): 优化日期选择器样式,使用更现代的UI设计
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
27 deletions
src/views/teacher/checkinPage.vue
src/views/teacher/checkinPage.vue
View file @
0320911
<!--
* @Date: 2025-05-29 15:34:17
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-12-1
3 21:19:3
6
* @LastEditTime: 2025-12-1
4 01:28:5
6
* @FilePath: /mlaj/src/views/teacher/checkinPage.vue
* @Description: 文件描述
-->
...
...
@@ -18,9 +18,15 @@
<CourseGroupCascader @change="on_cascade_change" />
<!-- 日期选择触发区域 -->
<div class="date-trigger" @click="showCalendar = true">
<div class="current-date">{{ formattedSelectedDate }}</div>
<div class="date-hint">点击切换日期</div>
<div class="bg-white px-4 py-3 flex items-center justify-between border-b border-gray-100 cursor-pointer" @click="showCalendar = true">
<div class="flex items-center gap-2">
<van-icon name="calendar-o" class="text-primary text-xl" />
<span class="text-base font-bold text-gray-800">{{ formattedSelectedDate }}</span>
</div>
<div class="flex items-center text-gray-400 text-sm">
<span>切换日期</span>
<van-icon name="arrow-down" class="ml-1" />
</div>
</div>
</van-sticky>
...
...
@@ -720,30 +726,7 @@ const handleAdd = (type) => {
background-color: #4caf50;
}
.date-trigger {
background-color: #fff;
padding: 0.5rem;
text-align: center;
cursor: pointer;
border-bottom: 1px solid #eee;
display: flex;
align-items: center;
justify-content: center;
// gap: 0.5rem;
flex-direction: column;
.current-date {
font-size: 1rem;
font-weight: bold;
color: #333;
margin-bottom: 0;
}
.date-hint {
font-size: 0.8rem;
color: #999;
}
}
/* 下拉菜单选项文字单行显示 */
.van-dropdown-item {
...
...
Please
register
or
login
to post a comment