|
|
|
@ -68,7 +68,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
store.on('update-props', (data) => {
|
|
|
|
|
this.state.date = dayjs(this.props.date)
|
|
|
|
|
this.update()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.createWeeksAndDays()
|
|
|
|
@ -151,10 +150,6 @@ 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()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -168,10 +163,6 @@ 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()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -186,10 +177,6 @@ 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()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -204,10 +191,6 @@ 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()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -221,10 +204,6 @@ 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()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -238,10 +217,6 @@ 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()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|