KO
|
EN
gitlite — search
Search
#python
#javascript
#react
#golang
#android
#html
#video
#go
#ios
#rust
#hacktoberfest
#css
vue-clock2
★ 86
Open GitHub ↗
vue clock component :grinning:
Download README (.md)
Explore Similar Repositories
skycloud-base
:
🔥springcloud脚手架,配置中心(apollo/nacos) 注册中心(consul/nacos) 分布式事物(seata) 调用链(skywalking) 日志(ELK)监控(prometheus与grafana) 等,适合学习与快速开发使用
angular-8-role-based-authorization-example
:
Angular 8 - Role Based Authorization Tutorial with Example
teanjs
:
:fire: TypeORM - Express - Angular 8 - NestJS Server Side Rendering (SSR) :smiley_cat:
face-engine
:
Arcsoft ArcFace for Go 虹软人脸检测SDK Go语言版
action-hero
:
Write powerful CLIs with argparse actions that pack a punch! 👊
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
vue-clock2
?
Download (.md)
<h1 align="center">vue clock2</h1> <p align="center"> <a href="https://npmjs.org/package/vue-clock2"> <img src="https://img.shields.io/npm/v/vue-clock2.svg" alt="npm version"> </a> <a href="https://npmjs.org/package/vue-clock2"> <img src="https://img.shields.io/npm/dt/vue-clock2.svg" alt="downloads"> </a> <a> <img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="license MIT"> </a> </p> > Analogue Clock Component for Vue.js ## Install ```console npm install vue-clock2 ``` or ```console yarn add vue-clock2 ``` ## Example for Vue.js 2 [Demo](https://bestvist.github.io/vue-clock2/docs/) ```html <template> <clock :time="time"></clock> </template> <script> import Clock from 'vue-clock2'; export default { components: { Clock }, data () { return { time: '10:40:00' } } } </script> ``` ## Example for Nuxt.js 2.10+ ```js // Add this to ~/plugins/clock.js import Clock from 'vue-clock2'; import Vue from 'vue'; Vue.component('clock', Clock); ``` ```js // Add clock.js to your nuxt.config.js plugins: [ { src: '~plugins/clock', mode: 'client' } ], ``` ```html <!-- Wrap any <clock> components like so: --> <template> <client-only> <clock :time="time"></clock> </client-only> </template> ``` ## Default Style  ## Some Sample Styles  ## Props | Property | Description | Type | Accepted Values | Default | |-|-|-|-|-| | time | time to display | String | - | - | | color | color to display | String | - | - | | border | clock border style | String | - | '2px solid' | | bg | clock background style | String | - | - | | size | size to display | String | - | 150px | ## License [MIT](https://github.com/bestvist/vue-clock2/blob/master/LICENSE)