0.2.5 • Published 1 year ago

@dangvanthanh/vue-clock v0.2.5

Weekly downloads
56
License
MIT
Repository
github
Last release
1 year ago

Vue Clock

Simple clock component using Vue.js

npm.io

Install

CDN

<script src="https://unpkg.com/@dangvanthanh/vue-clock"></script>

NPM

$ npm install @dangvanthanh/vue-clock --save

Usage

Vue

import Vue from 'vue'
import VueClock from '@dangvanthanh/vue-clock'

Vue.use(VueClock)
<template>
  <div class="app">
    <h3>Display all</h3>
    <VueClock />
    <h3>Hidden hour</h3>
    <VueClock :isHour="false"/>
    <h3>Hidden minute and second</h3>
    <VueClock :isMinute="false" :isSecond="false"/>
  </div>
</template>

<script>
import VueClock from '@dangvanthanh/vue-clock'

export default {
  components: { VueClock },
}
</script>

Nuxt (or SSR)

import Vue from 'vue'
import VueClock from '@dangvanthanh/vue-clock'

Vue.component('VueClock', VueClock)
// or
// Vue.use(VueClock);

Props

NameTypeDefaultDescription
isHourBooleantrueDisplay/hidden hour
isMinuteBooleantrueDisplay/hidden minute
isSecondBooleantrueDisplay/hidden second

License

MIT © Dang Van Thanh

0.2.5

1 year ago

0.2.4

1 year ago

0.2.3

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.1

5 years ago