playwright/tests/components/ct-vue-vite/src/components/Button.vue

15 lines
314 B
Vue

<script lang="ts" setup>
import { useAttrs } from 'vue';
defineProps<{ title: string }>();
const attrs: Record<string, any> = useAttrs();
</script>
<template>
<button
@click="$emit('submit', 'hello')"
@dblclick="() => attrs.dbclick('fallthroughEvent')"
>
{{ title }}
</button>
</template>