all button

This commit is contained in:
2024-05-20 13:21:15 +02:00
parent 617d3b281e
commit b81282b42e

View File

@@ -54,7 +54,12 @@ defineExpose({ open });
<div class="flex p-4"> <div class="flex p-4">
<div class="flex me-2 mb-auto"> <div class="flex me-2 mb-auto">
<span>Count: </span> <span>Count: </span>
<input class="ms-2" type="number" min="0" step="1" v-model="count" @keyup.enter="remove" /> <div class="ms-2">
<input type="number" min="0" step="1" v-model="count" @keyup.enter="remove" />
<div>
<button class="px-2 mt-2 bg-slate-600 hover:bg-slate-700 border rounded cursor-pointer" @click="count = types.reduce((acc, t) => acc + t.remaining, 0)">All</button>
</div>
</div>
</div> </div>
<button class="mb-auto" @click="remove">Remove</button> <button class="mb-auto" @click="remove">Remove</button>
</div> </div>