|
|
|
@ -66,11 +66,6 @@ export default {
|
|
|
|
|
this.state.date = dayjs(data.date)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
store.on('update-props', (data) => {
|
|
|
|
|
this.state.date = dayjs(this.props.date)
|
|
|
|
|
this.update()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.createWeeksAndDays()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -151,10 +146,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 +159,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 +173,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 +187,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 +200,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 +213,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()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|