1.0.6 • Published 4 years ago

digital-clock-vue v1.0.6

Weekly downloads
11
License
MIT
Repository
github
Last release
4 years ago

digital-clock-vue

LICENSE

A digital clock simulation build on Vue.

digital-clock

without seconds:

digital-clock-without-seconds

You can also use the digital-number component.

digital-number

Installation

via NPM:

npm install --save digital-clock-vue

via Yarn:

yarn add digital-clock-vue

Usage

import DigitalClockVue, { DigitalNumber } from 'digital-clock-vue'

export default {
  components: {
    DigitalClockVue,
    DigitalNumber
  }
}

Props

PropTypeDesc
colorStringCSS color for digital number and twink.
showSecondsBooleanDetermine whether to show seconds, default is false.

Examples

<!-- recommend aspect ratio 4:1 -->
<digital-clock-vue
  color="red"
  showSeconds
  style="background: black; width: 400px; height: 100px;"
/>

<!-- recommend aspect ratio when without seconds 8:3 -->
<digital-clock-vue
  color="#39af78"
  style="background: #2f4053; width: 240px; height: 90px;"
/>

<!-- digital number -->
<div>
  <digital-number
    :key="item"
    :num="item"
    color="#1973de"
    style="width: 45px; height:75px; margin-left: 2px;"
    v-for="item in Array.apply(null, {length: 10}).map((_, i) => i)"
  ></digital-number>
</div>

License

MIT

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago