0.1.3 • Published 4 years ago

countdown-man v0.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

App

Example:

const endtime = 'Wed Sep 24 2020 17:00:00 GMT+0800'
<count-down :end-time="new Date(endtime)" >
 <template v-slot="{ days, hours, minutes, seconds }">

 </template>
</count-down>

Slots

NameDescription
defaultthe slot provide days, hours, minutes, seconds

Props

NameTypeDescription
end-timeDateendting time

Data

NameTypeDescriptionInitial value
daysnumber0
hoursnumber0
minutesnumber0
secondsnumber0
timeUpbooleanfalse
timeranynull

Events

NameDescription
onendwhat happen when the count down end

Methods

makeTimer()

Syntax

makeTimer(): void

onend()

Syntax

onend(): void