Some layout progress.
This commit is contained in:
parent
4031fd18f1
commit
2b4ab9c6ea
4 changed files with 187 additions and 1 deletions
48
components/JohnHacks.vue
Normal file
48
components/JohnHacks.vue
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<template>
|
||||
<div class="hello">
|
||||
<h1>{{ msg }}</h1>
|
||||
<button @click="button_clicky()"> Click Me </button>
|
||||
<div> clicks = {{ clicks }} </div>
|
||||
<ul>
|
||||
<li v-for="value in testvalues.slice(0, clicks)" :key="value">{{value}}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'JohnHacks',
|
||||
data () {
|
||||
return {
|
||||
msg: 'John copies files and makes a mess',
|
||||
testvalues: [1, 1, 2, 3, 5, 8, 13, 21],
|
||||
clicks: 0,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
button_clicky () {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log("!")
|
||||
this.clicks += 1
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only
|
||||
<style scoped>
|
||||
h1, h2 {
|
||||
font-weight: normal;
|
||||
}
|
||||
ul {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
}
|
||||
li {
|
||||
display: inline-block;
|
||||
margin: 0 10px;
|
||||
}
|
||||
a {
|
||||
color: #42b983;
|
||||
}
|
||||
</style>-->
|
||||
Reference in a new issue