mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
21 lines
349 B
Vue
21 lines
349 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>
|
|
<USelectMenu
|
|
v-model="value"
|
|
create-item
|
|
:items="items"
|
|
class="w-48"
|
|
@create="onCreate"
|
|
/>
|
|
</template>
|