|
|
|
@ -32,7 +32,8 @@ export default {
|
|
|
|
|
|
|
|
|
|
weekFormat: 'isoWeek',
|
|
|
|
|
|
|
|
|
|
isoFormat: true
|
|
|
|
|
isoFormat: true,
|
|
|
|
|
namespace: ''
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -49,6 +50,10 @@ export default {
|
|
|
|
|
this.state.date = dayjs()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.props.namespace) {
|
|
|
|
|
this.state.namespace = this.props.namespace + '.'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// change
|
|
|
|
|
if (this.props.isoFormat === 0) {
|
|
|
|
|
this.state.isoFormat = false
|
|
|
|
@ -69,7 +74,7 @@ export default {
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
onBeforeUpdate() {
|
|
|
|
|
store.trigger('change', {
|
|
|
|
|
store.trigger(this.state.namespace + 'change', {
|
|
|
|
|
date: this.state.date
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|