Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

andy3471/andyh-timepicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AndyH-Timepicker

This is a simple Time Picker component written in Vue JS.

ScreenShot

Install

Install with NPM with:

npm install andyh-timepicker

Import the component into your Vue App:

import AndyHTimePicker from 'andyh-timepicker'
...

export default {
    ...
    components: {
        'time-picker': AndyHTimePicker
    }
}

Use the Component with:

<time-picker></time-picker>

Data Binding

You can use the Time Picker with V-model to your own data

<time-picker v-model="datevalue"></time-picker>

Otherwise, this will act like a text input, with the string of the data.

Format

Currently the data picker only support the date in 24 hour format, without the seconds, for example 22:30.

Props

You can pass through a prop called minInterval, to set the time interval in minutes, for example

<time-picker :minInterval="15"></time-picker>

Would return the minutes 00, 15, 30, 45

Setting the accent color

You can set the accent color with the following prop

<time-picker :color="#fec107"></time-picker>

About

Simplue VueJS TimePicker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published