specify left click on some components

This commit is contained in:
Jörn-Michael Miehe 2023-09-07 02:12:17 +00:00
parent f603a9947c
commit 9cd2e51eb8
4 changed files with 7 additions and 5 deletions

View file

@ -12,7 +12,7 @@
</div> </div>
<div class="section"> <div class="section">
<button class="button" @click="$refs.login_modal.set_active(true)"> <button class="button" @click.left="$refs.login_modal.set_active(true)">
Login Login
</button> </button>
</div> </div>

View file

@ -5,7 +5,7 @@
v-for="(step, index) in steps" v-for="(step, index) in steps"
:key="`step-${index}`" :key="`step-${index}`"
:class="modelValue === index ? 'is-active' : ''" :class="modelValue === index ? 'is-active' : ''"
@click="change_step(index)" @click.left="change_step(index)"
> >
<a> <a>
<span class="icon is-small"> <span class="icon is-small">

View file

@ -26,8 +26,10 @@
</section> </section>
<footer class="modal-card-foot"> <footer class="modal-card-foot">
<button class="button is-success" @click="submit()">Login</button> <button class="button is-success" @click.left="submit()">
<button class="button is-danger" @click="set_active(false)"> Login
</button>
<button class="button is-danger" @click.left="set_active(false)">
Cancel Cancel
</button> </button>
</footer> </footer>

View file

@ -1,5 +1,5 @@
<template> <template>
<SVGRect :rectangle="door.position" :focused="false" @click="on_click" /> <SVGRect :rectangle="door.position" :focused="false" @click.left="on_click" />
</template> </template>
<script lang="ts"> <script lang="ts">