Skip to content

Commit 9d41d55

Browse files
committed
docs(examples): consistent typicode users transform
1 parent ee48446 commit 9d41d55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/app/components/content/examples/input-menu/InputMenuContentWidthExample.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const { data: users } = await useFetch('https://jsonplaceholder.typicode.com/use
44
transform: (data: { id: number, name: string, email: string }[]) => {
55
return data?.map(user => ({
66
label: user.name,
7-
value: String(user.id),
87
email: user.email,
8+
value: String(user.id),
99
avatar: { src: `https://i.pravatar.cc/120?img=${user.id}` }
1010
}))
1111
},

docs/app/components/content/examples/select-menu/SelectMenuContentWidthExample.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const { data: users } = await useFetch('https://jsonplaceholder.typicode.com/use
44
transform: (data: { id: number, name: string, email: string }[]) => {
55
return data?.map(user => ({
66
label: user.name,
7-
value: String(user.id),
87
email: user.email,
8+
value: String(user.id),
99
avatar: { src: `https://i.pravatar.cc/120?img=${user.id}` }
1010
}))
1111
},

0 commit comments

Comments
 (0)