
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@regru/vue-datepicker
Advanced tools
calendar and datepicker component with material design for Vue.js
calendar and datepicker component with material design for Vue.js
The demo page is HERE.

$ npm install vue-datepicker
<script>
// for Vue 1.0
import myDatepicker from 'vue-datepicker/vue-datepicker-1.vue'
// for Vue 2.0
import myDatepicker from 'vue-datepicker'
export default {
data () {
return {
// for Vue 1.0
starttime: '',
endtime: '2016-01-19',
testTime: '',
multiTime: '',
// for Vue 2.0
startTime: {
time: ''
},
endtime: {
time: ''
}
option: {
type: 'day',
week: ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'],
month: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
format: 'YYYY-MM-DD',
placeholder: 'when?',
inputStyle: {
'display': 'inline-block',
'padding': '6px',
'line-height': '22px',
'font-size': '16px',
'border': '2px solid #fff',
'box-shadow': '0 1px 3px 0 rgba(0, 0, 0, 0.2)',
'border-radius': '2px',
'color': '#5F5F5F'
},
color: {
header: '#ccc',
headerText: '#f00'
},
buttons: {
ok: 'Ok',
cancel: 'Cancel'
},
overlayOpacity: 0.5, // 0.5 as default
dismissible: true // as true as default
},
timeoption: {
type: 'min',
week: ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'],
month: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
format: 'YYYY-MM-DD HH:mm'
},
multiOption: {
type: 'multi-day',
week: ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'],
month: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
format:"YYYY-MM-DD HH:mm"
},
limit: [{
type: 'weekday',
available: [1, 2, 3, 4, 5]
},
{
type: 'fromto',
from: '2016-02-01',
to: '2016-02-20'
}]
}
},
components: {
'date-picker': myDatepicker
}
}
</script>
<template>
<div class="card">
<!-- for Vue 1.0 -->
<div class="row">
<span>Departure Date:</span>
<date-picker :time.sync="starttime" :option="option" :limit="limit"></date-picker>
</div>
<!-- for Vue 2.0 -->
<div class="row">
<span>Departure Date:</span>
<date-picker :date="startTime" :option="option" :limit="limit"></date-picker>
</div>
</div>
</template>
type: 'day' // 'min', 'multi-day'
format: 'YYYY-MM-DD HH:mm'
placeholder: 'when?'
week: ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su']
month: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August','September', 'October', 'November', 'December']
wrapperClass: ''
inputClass: ''
inputStyle: {
'display': 'inline-block',
'padding': '6px',
'line-height': '22px',
'font-size': '16px',
'border': '2px solid #fff',
'box-shadow': '0 1px 3px 0 rgba(0, 0, 0, 0.2)',
'border-radius': '2px',
'color': '#5F5F5F'
}
color: {
header: '#ccc',
headerText: '#f00'
}
buttons: {
ok: 'OK',
cancel: 'Cancel'
}
overlayOpacity: 0.5, // 0.5 as default
dismissible: true // as true as default
limit: {
type:'fromto',
from:'2016-01-10',
to:'2016-01-30'
}
limit:{
type: 'weekday',
available: [1, 2, 3, 4, 5]
}
time: '' // string
<date-picker :time.sync="time" :limit="limit"></date-picker>
date: {
time: '' // string
}
<date-picker :date="date" :limit="limit"></date-picker>
FAQs
calendar and datepicker component with material design for Vue.js
We found that @regru/vue-datepicker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.