docs: refactor dropdown avatar

This commit is contained in:
Benjamin Canac
2022-07-21 23:32:33 +02:00
parent 5a596eb2b0
commit 002a8f6803

View File

@@ -87,11 +87,6 @@
<button class="flex">
<UAvatar src="https://picsum.photos/200/300" />
</button>
<template #item-with-avatar="{ item }">
<UAvatar v-if="item.avatar" :src="item.avatar" size="xxs" />
{{ item.label }}
</template>
</UDropdown>
</div>
@@ -318,10 +313,9 @@ const dropdownItems = [
const customDropdownItems = [
[{
label: 'benjamincanac',
avatar: 'https://picsum.photos/200/300',
avatar: { src: 'https://picsum.photos/200/300' },
href: 'https://google.fr',
target: '_blank',
slot: 'item-with-avatar'
target: '_blank'
}],
[{
label: 'About',