2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-18 09:30:36 +03:00
This commit is contained in:
mengxiong10
2017-05-26 14:23:09 +08:00
parent 3342b27e0e
commit 982f56b48f
8 changed files with 16 additions and 5 deletions
+7
View File
@@ -0,0 +1,7 @@
// https://github.com/michael-ciniawsky/postcss-load-config
module.exports = {
'plugins':{
'autoprefixer': {}
}
}
@@ -194,6 +194,7 @@ export default {
return
}
this.$emit('input', cell.date)
this.$emit('select')
},
selectYear (year) {
const now = new Date(this.now)
@@ -20,7 +20,7 @@
ref="calendar"
v-show="showPopup">
<template v-if="!range">
<calendar-panel v-model="currentValue" :show="showPopup"></calendar-panel>
<calendar-panel @select="showPopup = false" v-model="currentValue" :show="showPopup"></calendar-panel>
</template>
<template v-else>
<div class="datepicker-top">
@@ -109,6 +109,9 @@ export default {
}
},
methods: {
selectDate (date) {
},
closePopup () {
this.showPopup = false
},
+1 -1
View File
@@ -12,7 +12,7 @@
</template>
<script>
import DatePicker from './datepicker/index.vue'
import DatePicker from '../datepicker/index.vue'
export default {
name: 'app',
View File
+2 -2
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -2,7 +2,7 @@ var path = require('path')
var webpack = require('webpack')
module.exports = {
entry: './src/main.js',
entry: './demo/main.js',
output: {
path: path.resolve(__dirname, './dist'),
publicPath: '/dist/',