mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
sample interactivity.
This commit is contained in:
parent
ec1e0c63f4
commit
2c5ec6545a
@ -1,6 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h1>Hello world, Neko.</h1>
|
<h1>Hello world, Neko.</h1>
|
||||||
|
<button @click="visible = !visible">Toggle</button>
|
||||||
|
<div v-if="visible">Is this visible?</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -10,5 +12,7 @@
|
|||||||
@Component({
|
@Component({
|
||||||
name: 'neko',
|
name: 'neko',
|
||||||
})
|
})
|
||||||
export default class extends Vue {}
|
export default class extends Vue {
|
||||||
|
public visible: boolean = false
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user