File tree 2 files changed +4
-2
lines changed
playground/app/pages/components
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ const items = [
52
52
label: ' NavigationMenu' ,
53
53
icon: ' i-lucide-file' ,
54
54
description: ' Display a list of links.' ,
55
- to: ' /components/navigation-menu'
55
+ to: ' /components/navigation-menu' ,
56
+ trailingIcon: ' i-lucide-check'
56
57
}, {
57
58
label: ' Pagination' ,
58
59
icon: ' i-lucide-file' ,
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ const lists = computed(() => props.items?.length ? (Array.isArray(props.items[0]
187
187
<UIcon v-if =" item.target === '_blank'" :name =" appConfig.ui.icons.external" :class =" ui.linkLabelExternalIcon({ class: props.ui?.linkLabelExternalIcon, active })" />
188
188
</span >
189
189
190
- <span v-if =" item.badge || item.children?.length || !!slots[item.slot ? `${item.slot}-trailing` : 'item-trailing']" :class =" ui.linkTrailing({ class: props.ui?.linkTrailing })" >
190
+ <span v-if =" item.badge || (orientation === 'horizontal' && ( item.children?.length || !!slots[item.slot ? `${item.slot}-content` : 'item-content'])) || (orientation === 'vertical' && item.children?.length) || item.trailingIcon || !!slots[item.slot ? `${item.slot}-trailing` : 'item-trailing']" :class =" ui.linkTrailing({ class: props.ui?.linkTrailing })" >
191
191
<slot :name =" item.slot ? `${item.slot}-trailing` : 'item-trailing'" :item =" (item as T)" :active =" active" :index =" index" >
192
192
<UBadge
193
193
v-if =" item.badge"
@@ -199,6 +199,7 @@ const lists = computed(() => props.items?.length ? (Array.isArray(props.items[0]
199
199
/>
200
200
201
201
<UIcon v-if =" (orientation === 'horizontal' && (item.children?.length || !!slots[item.slot ? `${item.slot}-content` : 'item-content'])) || (orientation === 'vertical' && item.children?.length)" :name =" item.trailingIcon || trailingIcon || appConfig.ui.icons.chevronDown" :class =" ui.linkTrailingIcon({ class: props.ui?.linkTrailingIcon, active })" />
202
+ <UIcon v-else-if =" item.trailingIcon" :name =" item.trailingIcon" :class =" ui.linkTrailingIcon({ class: props.ui?.linkTrailingIcon, active })" />
202
203
</slot >
203
204
</span >
204
205
</slot >
You can’t perform that action at this time.
0 commit comments