mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
27 lines
390 B
Vue
27 lines
390 B
Vue
<template>
|
|
<button @click="handleClick">
|
|
{{ label }}
|
|
</button>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
// eslint-disable-next-line vue/no-reserved-component-names
|
|
name: 'Button',
|
|
props: {
|
|
label: {
|
|
type: String,
|
|
required: true
|
|
}
|
|
},
|
|
data: () => ({
|
|
clicked: false
|
|
}),
|
|
methods: {
|
|
handleClick () {
|
|
this.clicked = true
|
|
}
|
|
}
|
|
}
|
|
</script>
|