0.1.3 • Published 7 years ago
tom-date-picker v0.1.3
A Custom Date Pick code by vuejs
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# lint all *.js and *.vue files
npm run lint
# run unit tests
npm test
Screenshot
how to use tom-date-picker
1.copy components and public/scss files and ensure you have install node-sass
2.write code as below
<template>
<div id="hello">
<input-date :time-min='today' v-model='mydate'></input-date>
<input-date :time-min='today' v-model='mydate' type='month'></input-date>
</div>
</template>
<script>
let today=new Date;
export default {
name: 'hello',
data () {
return {
today:today,
mydate:today,
msg: 'Welcome to My Date'
}
},
components:{
inputDate:require('./input_date.vue')
}
}
</script>