mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
20 lines
318 B
Vue
20 lines
318 B
Vue
<script setup lang="ts">
|
|
const countries = [{
|
|
name: 'United States',
|
|
value: 'US'
|
|
}, {
|
|
name: 'Canada',
|
|
value: 'CA',
|
|
disabled: true
|
|
}, {
|
|
name: 'Mexico',
|
|
value: 'MX'
|
|
}]
|
|
|
|
const country = ref('CA')
|
|
</script>
|
|
|
|
<template>
|
|
<USelect v-model="country" :options="countries" option-attribute="name" />
|
|
</template>
|