|
|
|
@ -66,6 +66,11 @@ export default {
|
|
|
|
|
this.state.date = dayjs(data.date)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
store.on('update-props', (data) => {
|
|
|
|
|
this.state.date = dayjs(this.props.date)
|
|
|
|
|
this.update()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.createWeeksAndDays()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -146,6 +151,10 @@ export default {
|
|
|
|
|
this.state.date = this.state.date.month(event.target.value)
|
|
|
|
|
this.createWeeksAndDays()
|
|
|
|
|
|
|
|
|
|
store.trigger(this.state.namespace + 'change', {
|
|
|
|
|
date: this.state.date.clone()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.update()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -159,6 +168,10 @@ export default {
|
|
|
|
|
this.state.date = this.state.date.year(event.target.value)
|
|
|
|
|
this.createWeeksAndDays()
|
|
|
|
|
|
|
|
|
|
store.trigger(this.state.namespace + 'change', {
|
|
|
|
|
date: this.state.date.clone()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.update()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -173,6 +186,10 @@ export default {
|
|
|
|
|
this.state.date = this.state.date.subtract(1, 'month')
|
|
|
|
|
this.createWeeksAndDays()
|
|
|
|
|
|
|
|
|
|
store.trigger(this.state.namespace + 'change', {
|
|
|
|
|
date: this.state.date.clone()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.update()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -187,6 +204,10 @@ export default {
|
|
|
|
|
this.state.date = this.state.date.add(1, 'month')
|
|
|
|
|
this.createWeeksAndDays()
|
|
|
|
|
|
|
|
|
|
store.trigger(this.state.namespace + 'change', {
|
|
|
|
|
date: this.state.date.clone()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.update()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -200,6 +221,10 @@ export default {
|
|
|
|
|
this.state.date = this.state.date.subtract(1, 'year')
|
|
|
|
|
this.createWeeksAndDays()
|
|
|
|
|
|
|
|
|
|
store.trigger(this.state.namespace + 'change', {
|
|
|
|
|
date: this.state.date.clone()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.update()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -213,6 +238,10 @@ export default {
|
|
|
|
|
this.state.date = this.state.date.add(1, 'year')
|
|
|
|
|
this.createWeeksAndDays()
|
|
|
|
|
|
|
|
|
|
store.trigger(this.state.namespace + 'change', {
|
|
|
|
|
date: this.state.date.clone()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.update()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|