We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuxt
v3.0.2
<template> <div class="flex flex-col items-center justify-center gap-4 h-screen"> {{ state }} <div class="flex items-center gap-2"> <UTree :items="gates" label-key="label" value-key="id" v-model="state.gate" > </UTree> </div> </div> </template> <script lang="ts" setup > import type { FormSubmitEvent } from '@nuxt/ui' interface Gate { id: number, label: string, uname: string } type Schema = { gate: Gate } const state = reactive<Partial<Schema>>({ gate: undefined, }) const gates = [{id:0, uname: null, label: "unknown"}, {id:1, uname: "first-gate", label: "First"}] </script>
value-key points to id or missed.
v-model type check points to id:number but there is full object.
How to get full object here when bug fixed?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Is this bug related to Nuxt or Vue?
Nuxt
Version
v3.0.2
Reproduction
Description
value-key points to id or missed.
v-model type check points to id:number but there is full object.
Additional context
How to get full object here when bug fixed?
Logs
The text was updated successfully, but these errors were encountered: