mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 19:57:55 +01:00
docs(VerticalNavigation): add truncate in icon slot example (#998)
This commit is contained in:
@@ -32,7 +32,10 @@ const links = [{
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<UVerticalNavigation :links="links">
|
<UVerticalNavigation
|
||||||
|
:links="links"
|
||||||
|
:ui="{ wrapper: 'truncate' }"
|
||||||
|
>
|
||||||
<template #icon="{ link }">
|
<template #icon="{ link }">
|
||||||
<UIcon v-if="link.type" :name="types[link.type].icon" :class="types[link.type].color" class="text-base" />
|
<UIcon v-if="link.type" :name="types[link.type].icon" :class="types[link.type].color" class="text-base" />
|
||||||
<UIcon v-else :name="types.default.icon" :class="types.default.color" class="text-base" />
|
<UIcon v-else :name="types.default.icon" :class="types.default.color" class="text-base" />
|
||||||
|
|||||||
Reference in New Issue
Block a user