# finishCountdown

<p>example1: </p>
<button type="button" @click="() => {
  this.$refs.vac1.finishCountdown()
}">Finish</button>
<vac :end-time="new Date().getTime() + 1000000" ref="vac1">
  <span
    slot="process"
    slot-scope="{ timeObj }">
      {{ timeObj.ceil.s }}
    </span>
    <span slot="finish">Done!</span>
</vac>
<p>example2: </p>
<button type="button" @click="finishCountdown">Finish</button>
<vac :end-time="new Date().getTime() + 1000000" ref="vac2">
  <span
    slot="process"
    slot-scope="{ timeObj }">
      {{ timeObj.ceil.s }}
    </span>
    <span slot="finish">Done!</span>
</vac>