mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
chore(Tooltip): improve v-bind
This commit is contained in:
@@ -58,7 +58,7 @@ const ui = computed(() => tv({ extend: tooltip, slots: props.ui })())
|
||||
<span :class="ui.text()">{{ text }}</span>
|
||||
|
||||
<span v-if="shortcuts?.length" :class="ui.shortcuts()">
|
||||
<UKbd v-for="(shortcut, index) in shortcuts" :key="index" v-bind="typeof shortcut === 'string' ? { value: shortcut, size: 'xs' } : { size: 'xs', ...shortcut }" />
|
||||
<UKbd v-for="(shortcut, index) in shortcuts" :key="index" size="xs" v-bind="typeof shortcut === 'string' ? { value: shortcut } : shortcut" />
|
||||
</span>
|
||||
</slot>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user