mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
21 lines
348 B
Vue
21 lines
348 B
Vue
<script setup lang="ts">
|
|
const items = ref(['Backlog', 'Todo', 'In Progress', 'Done'])
|
|
const value = ref('Backlog')
|
|
|
|
function onCreate(item: string) {
|
|
items.value.push(item)
|
|
|
|
value.value = item
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<UInputMenu
|
|
v-model="value"
|
|
create-item
|
|
:items="items"
|
|
class="w-48"
|
|
@create="onCreate"
|
|
/>
|
|
</template>
|