chore(Tooltip): improve v-bind

This commit is contained in:
Benjamin Canac
2024-03-18 15:30:38 +01:00
parent 35a50ae60d
commit ec95ae664d

View File

@@ -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>