Commit 42f644a31c525d45b78f29f1cd3ae6ddaf09f814
1 parent
492f652b
add CSS
Showing
4 changed files
with
14 additions
and
3 deletions
Show diff stats
examples/routers/time.vue
src/components/time/time.vue
| 1 | 1 | <template> |
| 2 | - <span :class="classes" @click="handleClick">time</span> | |
| 2 | + <span :class="classes" @click="handleClick">{{ date }}</span> | |
| 3 | 3 | </template> |
| 4 | 4 | <script> |
| 5 | 5 | import Vue from 'vue'; |
| ... | ... | @@ -51,7 +51,7 @@ |
| 51 | 51 | if (this.hash !== '') window.location.hash = this.hash; |
| 52 | 52 | }, |
| 53 | 53 | setTime () { |
| 54 | - | |
| 54 | + this.date = this.time; | |
| 55 | 55 | } |
| 56 | 56 | }, |
| 57 | 57 | mounted () { | ... | ... |
src/styles/components/index.less