mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-28 02:40:35 +01:00
chore(CommandPalette): command avatar is now an object
This commit is contained in:
@@ -18,10 +18,7 @@
|
|||||||
<UIcon v-if="command.icon" :name="command.icon" :class="['h-5 w-5 flex-shrink-0 text-opacity-40', active && 'text-opacity-100', command.iconClass || 'text-gray-900 dark:text-gray-50']" aria-hidden="true" />
|
<UIcon v-if="command.icon" :name="command.icon" :class="['h-5 w-5 flex-shrink-0 text-opacity-40', active && 'text-opacity-100', command.iconClass || 'text-gray-900 dark:text-gray-50']" aria-hidden="true" />
|
||||||
<UAvatar
|
<UAvatar
|
||||||
v-else-if="command.avatar"
|
v-else-if="command.avatar"
|
||||||
:src="command.avatar"
|
v-bind="{ size: 'xxs', ...command.avatar }"
|
||||||
:alt="command[commandAttribute]"
|
|
||||||
:rounded="false"
|
|
||||||
size="xxs"
|
|
||||||
class="flex-shrink-0"
|
class="flex-shrink-0"
|
||||||
/>
|
/>
|
||||||
<span v-else-if="command.chip" class="flex-shrink-0 w-2 h-2 mx-1.5 rounded-full" :style="{ background: `#${command.chip}` }" />
|
<span v-else-if="command.chip" class="flex-shrink-0 w-2 h-2 mx-1.5 rounded-full" :style="{ background: `#${command.chip}` }" />
|
||||||
|
|||||||
Reference in New Issue
Block a user