vue-time-picker
Advanced tools
Comparing version 0.1.2 to 0.2.0
{ | ||
"name": "vue-timepicker", | ||
"description": "A dropdown time picker for VueJS", | ||
"description": "A dropdown time picker (hour|minute|second) for Vue.js. With flexible time format support", | ||
"main": "index.js", | ||
"version": "0.2.0", | ||
"authors": [ | ||
@@ -6,0 +7,0 @@ "Phoenix Wong (phoenixyfwong@gmail.com)" |
{ | ||
"name": "vue-time-picker", | ||
"version": "0.1.2", | ||
"description": "A dropdown time picker for Vue.js", | ||
"version": "0.2.0", | ||
"description": "A dropdown time picker (hour|minute|second) for Vue.js. With flexible time format support", | ||
"main": "index.js", | ||
"scripts": { | ||
"dev": "node build/dev-server.js", | ||
"build": "node build/build.js", | ||
"demo": "node build/demo.js" | ||
@@ -10,0 +9,0 @@ }, |
# Vue Time Picker | ||
A dropdown time picker for **Vue.js** | ||
A dropdown time picker (hour|minute|second) for **Vue.js**. With flexible time format support | ||
@@ -29,4 +29,6 @@ ## Demo | ||
Step 1: Import VueTimepicker | ||
**Step 1:** Import VueTimepicker | ||
A. Include with modules | ||
```javascript | ||
@@ -38,7 +40,17 @@ // import | ||
var VueTimepicker = require('vue-time-picker') | ||
``` | ||
Step 2: Include VueTimepicker in your component | ||
B. Include with `<script>` and `<style>` | ||
Just put the `vue-timepicker.min.js` (or `vue-timepicker.js`) script block after Vue itself | ||
```javascript | ||
// Don't forget to call this | ||
Vue.use(window.VueTimepicker) | ||
``` | ||
**Step 2**: Include VueTimepicker in your component | ||
```javascript | ||
var yourComponent = new Vue({ | ||
@@ -50,3 +62,3 @@ components: {VueTimepicker}, | ||
Step 3: Then, you can introduce the `vue-timepicker` tag anywhere you like in your component's template | ||
**Step 3**: Then, you can introduce the `vue-timepicker` tag anywhere you like in your component's template | ||
@@ -230,3 +242,3 @@ ```html | ||
This is the very first version of `vue-timepicker` and it currently includes ES6 solution only. Please feel free to fork and help developing. | ||
Please feel free to fork and help developing. | ||
@@ -233,0 +245,0 @@ ```bash |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
92052
35
1363
254