2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-24 18:00:38 +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 return
} }
this.$emit('input', cell.date) this.$emit('input', cell.date)
this.$emit('select')
}, },
selectYear (year) { selectYear (year) {
const now = new Date(this.now) const now = new Date(this.now)
@@ -20,7 +20,7 @@
ref="calendar" ref="calendar"
v-show="showPopup"> v-show="showPopup">
<template v-if="!range"> <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>
<template v-else> <template v-else>
<div class="datepicker-top"> <div class="datepicker-top">
@@ -109,6 +109,9 @@ export default {
} }
}, },
methods: { methods: {
selectDate (date) {
},
closePopup () { closePopup () {
this.showPopup = false this.showPopup = false
}, },
+1 -1
View File
@@ -12,7 +12,7 @@
</template> </template>
<script> <script>
import DatePicker from './datepicker/index.vue' import DatePicker from '../datepicker/index.vue'
export default { export default {
name: 'app', 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') var webpack = require('webpack')
module.exports = { module.exports = {
entry: './src/main.js', entry: './demo/main.js',
output: { output: {
path: path.resolve(__dirname, './dist'), path: path.resolve(__dirname, './dist'),
publicPath: '/dist/', publicPath: '/dist/',