mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-24 18:00:38 +03:00
fix
This commit is contained in:
@@ -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
|
||||||
},
|
},
|
||||||
@@ -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',
|
||||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -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/',
|
||||||
|
|||||||
Reference in New Issue
Block a user