This repository has been archived on 2019-07-17. You can view files and clone it, but cannot push or open issues or pull requests.
meticulous/src/components/TouchArea.vue

24 lines
383 B
Vue

<template>
<div class="area" @click="touched"></div>
</template>
<style lang="scss" scoped>
.area {
cursor: pointer;
}
</style>
<script lang="ts">
import { Component, Vue, Prop } from "vue-property-decorator";
@Component
export default class TouchArea extends Vue {
@Prop()
private name!: string;
private touched() {
this.$emit("touch", this.name);
}
}
</script>