Merge pull request #3645 from icarusion/Time-component

add Time component
This commit is contained in:
Aresn 2018-06-20 10:46:32 +08:00 committed by GitHub
commit 92ffd65dda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 218 additions and 1 deletions

18
examples/routers/time.vue Normal file
View file

@ -0,0 +1,18 @@
<template>
<div>
<Time :time="1526608921" />
<Time :time="1652839997" />
<Time :time="ddd" :interval="1" />
</div>
</template>
<script>
export default {
data () {
return {
ddd: new Date('2018-04-27 14:23:00')
};
},
computed: {},
methods: {}
};
</script>