add vue :(
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<footer>
|
||||
<slot>All rights reserved</slot>
|
||||
<template v-if="this.date">
|
||||
|
||||
• {{ this.year }}
|
||||
</template>
|
||||
</footer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
new Date().getFullYear()
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
year: 0,
|
||||
};
|
||||
},
|
||||
props: {
|
||||
date: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.year = new Date().getFullYear();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user