optimize time selector
This commit is contained in:
@@ -561,7 +561,7 @@ const handleExport = async () => {
|
||||
<div class="flex-1 overflow-y-auto no-scrollbar flex flex-col gap-1">
|
||||
<div class="text-[12px] font-bold text-sec mb-2 sticky top-0 bg-white py-1 text-center border-b border-[#E5E5E7]/30">分</div>
|
||||
<button v-for="m in 60" :key="m"
|
||||
@click="editingEvent.start_minute = Math.floor(editingEvent.start_minute / 60) * 60 + (m-1)"
|
||||
@click="editingEvent.start_minute = Math.floor(editingEvent.start_minute / 60) * 60 + (m-1); isStartTimeOpen = false"
|
||||
class="py-2 text-[11px] rounded-lg transition-colors w-full text-center flex items-center justify-center"
|
||||
:class="editingEvent.start_minute % 60 === (m-1) ? 'bg-[#007AFF] text-white font-bold' : 'hover:bg-[#F2F2F7] text-main'"
|
||||
>{{ String(m-1).padStart(2,'0') }}</button>
|
||||
@@ -593,7 +593,7 @@ const handleExport = async () => {
|
||||
<div class="flex-1 overflow-y-auto no-scrollbar flex flex-col gap-1 text-center">
|
||||
<div class="text-[12px] font-bold text-sec mb-2 sticky top-0 bg-white py-1">分</div>
|
||||
<button v-for="m in 60" :key="m"
|
||||
@click="editingEvent.end_minute = Math.floor(editingEvent.end_minute / 60) * 60 + (m-1)"
|
||||
@click="editingEvent.end_minute = Math.floor(editingEvent.end_minute / 60) * 60 + (m-1); isEndTimeOpen = false"
|
||||
class="py-2 text-xs rounded-lg transition-colors w-full text-center"
|
||||
:class="editingEvent.end_minute % 60 === (m-1) ? 'bg-[#007AFF] text-white font-bold' : 'hover:bg-[#F2F2F7] text-main'"
|
||||
>{{ String(m-1).padStart(2,'0') }}</button>
|
||||
|
||||
Reference in New Issue
Block a user