选择日程
This commit is contained in:
parent
e5f7129d61
commit
a364931dc7
|
|
@ -5,12 +5,10 @@
|
|||
<view class="content-wrapper">
|
||||
<view>
|
||||
<uv-calendar ref="calendar" mode="single" @confirm="handleConfirm" ></uv-calendar>
|
||||
<button @click="openCalendar">选择日期</button>
|
||||
<view style=" font-size: 12px; color: #666;">
|
||||
当前选择日期:{{ selectedDate }},日程数:{{ eventsInDay ? eventsInDay.length : 0 }}
|
||||
</view>
|
||||
<button @click="openCalendar">{{ selectedDate }},日程数:{{ eventsInDay ? eventsInDay.length : 0 }}</button>
|
||||
|
||||
</view>
|
||||
<!-- 滑动容器 -->
|
||||
|
||||
<view
|
||||
class="swipe-container"
|
||||
@touchstart="handleTouchStart"
|
||||
|
|
@ -174,7 +172,6 @@ function formatDateToYYYYMMDD(dateInput) {
|
|||
if (/^\d{4}-\d{2}-\d{2}/.test(dateStr)) {
|
||||
return dateStr.slice(0, 10);
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user