summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/views/widgets/timemachine.vue
blob: 22a41204039339dace7bedf50218f15d38980fa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<template>
<div class="mkw-timemachine">
	<mk-calendar :design="props.design" @chosen="chosen"/>
</div>
</template>

<script lang="ts">
import define from '../../../common/define-widget';
export default define({
	name: 'timemachine',
	props: () => ({
		design: 0
	})
}).extend({
	methods: {
		chosen(date) {
			this.$emit('chosen', date);
		},
		func() {
			if (this.props.design == 5) {
				this.props.design = 0;
			} else {
				this.props.design++;
			}
			this.save();
		}
	}
});
</script>