2020-02-14 14:31:24 +00:00
|
|
|
<template>
|
2020-02-14 14:55:13 +00:00
|
|
|
<div>
|
2020-02-14 14:31:24 +00:00
|
|
|
<mk-container :naked="props.style % 2 === 0" :show-header="false">
|
2020-02-14 14:55:13 +00:00
|
|
|
<div class="vubelbmv">
|
|
|
|
<mk-analog-clock class="clock" :smooth="props.style < 2"/>
|
2020-02-14 14:31:24 +00:00
|
|
|
</div>
|
|
|
|
</mk-container>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import define from './define';
|
|
|
|
import MkContainer from '../components/ui/container.vue';
|
|
|
|
import MkAnalogClock from '../components/analog-clock.vue';
|
|
|
|
|
|
|
|
export default define({
|
|
|
|
name: 'clock',
|
|
|
|
props: () => ({
|
|
|
|
style: 0
|
|
|
|
})
|
|
|
|
}).extend({
|
|
|
|
components: {
|
|
|
|
MkContainer,
|
|
|
|
MkAnalogClock
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
func() {
|
|
|
|
this.props.style = (this.props.style + 1) % 4;
|
|
|
|
this.save();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2020-02-14 14:55:13 +00:00
|
|
|
.vubelbmv {
|
|
|
|
padding: 8px;
|
|
|
|
|
|
|
|
> .clock {
|
|
|
|
height: 150px;
|
|
|
|
margin: auto;
|
2020-02-14 14:31:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|