Blame view

examples/routers/time.vue 394 Bytes
7f9ea0dc   梁灏   init Time component
1
2
  <template>
      <div>
eb37e68c   梁灏   update Time
3
4
          <Time :time="1526608921" />
          <Time :time="1652839997" />
6918b81d   梁灏   update demo
5
          <Time :time="ddd" :interval="1" />
2b98434e   梁灏   update Time
6
  
9e4b6e8e   梁灏   Time support String
7
          <Time time="2018-06-20T13:09:14.000Z" />
7f9ea0dc   梁灏   init Time component
8
9
10
11
12
      </div>
  </template>
  <script>
      export default {
          data () {
eb37e68c   梁灏   update Time
13
              return {
2b98434e   梁灏   update Time
14
                  ddd: new Date()
eb37e68c   梁灏   update Time
15
              };
7f9ea0dc   梁灏   init Time component
16
17
18
19
20
          },
          computed: {},
          methods: {}
      };
  </script>