1.0.12 • Published 5 years ago

clock-simple2 v1.0.12

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

vue-clock-simple

A Vue component that shows a clock.

This isn't particularly useful, it's used as a demo for how to publish Vue components to NPM!

Installation

npm i --save-dev clock-simple2

Browser

Include the script file, then install the component with Vue.use(VueClock); e.g.:

<script type="text/javascript" src="node_modules/vuejs/dist/vue.min.js"></script>
<script type="text/javascript" src="node_modules/vue-clock-simple/dist/vue-clock.min.js"></script>
<script type="text/javascript">
  Vue.use(VueClock);
</script>

Module(全局引入)

import VueClock from 'clock-simple2';
Vue.component('VueClock',VueClock) 

Usage

Once installed, it can be used in a template as simply as:

<vue-clock></vue-clock> or <VueClock></VueClock>
1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago