Blame view

examples/routers/time.vue 365 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" />
7f9ea0dc   梁灏   init Time component
6
7
8
9
10
      </div>
  </template>
  <script>
      export default {
          data () {
eb37e68c   梁灏   update Time
11
              return {
de30f1b3   梁灏   update Time func
12
                  ddd: new Date('2019-05-28 14:12:00')
eb37e68c   梁灏   update Time
13
              };
7f9ea0dc   梁灏   init Time component
14
15
16
17
18
          },
          computed: {},
          methods: {}
      };
  </script>