File tree Expand file tree Collapse file tree 5 files changed +13
-5
lines changed Expand file tree Collapse file tree 5 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
+ import type { DropdownMenuItem } from ' @nuxt/ui'
3
+
2
4
defineProps <{
3
5
collapsed? : boolean
4
6
}>()
@@ -24,7 +26,7 @@ const teams = ref([{
24
26
}])
25
27
const selectedTeam = ref (teams .value [0 ])
26
28
27
- const items = computed (() => {
29
+ const items = computed < DropdownMenuItem [][]> (() => {
28
30
return [teams .value .map (team => ({
29
31
... team ,
30
32
onSelect() {
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
+ import type { DropdownMenuItem } from ' @nuxt/ui'
2
3
import type { Member } from ' ~/types'
3
4
4
5
defineProps <{
@@ -12,7 +13,7 @@ const items = [{
12
13
label: ' Remove member' ,
13
14
color: ' error' as const ,
14
15
onSelect : () => console .log (' Remove member' )
15
- }]
16
+ }] satisfies DropdownMenuItem []
16
17
</script >
17
18
18
19
<template >
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
+ import type { NavigationMenuItem } from ' @nuxt/ui'
3
+
2
4
const route = useRoute ()
3
5
const toast = useToast ()
4
6
@@ -67,7 +69,7 @@ const links = [[{
67
69
icon: ' i-lucide-info' ,
68
70
to: ' https://github.com/nuxt/ui-pro' ,
69
71
target: ' _blank'
70
- }]]
72
+ }]] satisfies NavigationMenuItem [][]
71
73
72
74
const groups = computed (() => [{
73
75
id: ' links' ,
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
2
import { sub } from ' date-fns'
3
+ import type { DropdownMenuItem } from ' @nuxt/ui'
3
4
import type { Period , Range } from ' ~/types'
4
5
5
6
const { isNotificationsSlideoverOpen } = useDashboard ()
@@ -12,7 +13,7 @@ const items = [[{
12
13
label: ' New customer' ,
13
14
icon: ' i-lucide-user-plus' ,
14
15
to: ' /customers'
15
- }]]
16
+ }]] satisfies DropdownMenuItem [][]
16
17
17
18
const range = shallowRef <Range >({
18
19
start: sub (new Date (), { days: 14 }),
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
+ import type { NavigationMenuItem } from ' @nuxt/ui'
3
+
2
4
const links = [[{
3
5
label: ' General' ,
4
6
icon: ' i-lucide-user' ,
@@ -26,7 +28,7 @@ const links = [[{
26
28
icon: ' i-lucide-shopping-cart' ,
27
29
to: ' https://ui.nuxt.com/pro/purchase' ,
28
30
target: ' _blank'
29
- }]]
31
+ }]] satisfies NavigationMenuItem [][]
30
32
</script >
31
33
32
34
<template >
You can’t perform that action at this time.
0 commit comments