improve demo component
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
<template>
|
||||
<div>
|
||||
Time: {{ new Date() }}
|
||||
Time: {{ time }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
div {
|
||||
background-color: black;
|
||||
border-radius: 5px;
|
||||
color: white;
|
||||
padding: 20px;
|
||||
}
|
||||
</style>s
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
time: new Date()
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style src="./style.css" scoped />
|
||||
Reference in New Issue
Block a user