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

sushant-j/vue-datepicker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-datepicker

A Beautiful Datepicker Component For Vue

  • Lightweight (less than 5kb minified and gzipped)
  • Only dependencies Vue
  • Beautiful!

image

Usage

<link rel="stylesheet" href="vue.datepicker.css">
<script type="text/javascript" src="vue.datepicker.js"></script>
<!-- Needed syntax -->
  <mz-datepicker format="yyyy-MM-dd" :start-time.sync="startTime" :end-time.sync="endTime" range en confirm :on-confirm="confrim"></mz-datepicker>

<!--base-->
<mz-datepicker></mz-datepicker>

<!--english version-->
<mz-datepicker en></mz-datepicker>

<!--disabled-->
<mz-datepicker disabled></mz-datepicker>

<!--show clear button-->
<mz-datepicker clearable></mz-datepicker>

<!--set width-->
<mz-datepicker width="186"></mz-datepicker>

<!--format display-->
<mz-datepicker format="yyyy-MM-dd"></mz-datepicker>

<!--bind modal-->
<mz-datepicker :time.sync="time"></mz-datepicker>

<!--show range-->
<mz-datepicker :start-time.sync="startTime" :end-time.sync="endTime" range></mz-datepicker>

<!--max range(unit:day)-->
<mz-datepicker :start-time.sync="startTime" :end-time.sync="endTime" range max-range="366"></mz-datepicker>

<!--onConfirm(only in rang and confirm mode)-->
<mz-datepicker :start-time.sync="startTime" :end-time.sync="endTime" range confirm :on-confirm="onConfirm"></mz-datepicker>

About

datepicker component for Vue.js

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 73.6%
  • CSS 22.1%
  • HTML 4.3%