mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-24 08:50:34 +01:00
feat(CommandPalette): new component (#80)
This commit is contained in:
@@ -10,7 +10,13 @@ const TooltipWrapper = defineComponent({
|
||||
UTooltip: Tooltip
|
||||
},
|
||||
inheritAttrs: false,
|
||||
template: '<TooltipProvider><UTooltip v-bind="$attrs"><slot /></UTooltip></TooltipProvider>'
|
||||
template: `<TooltipProvider>
|
||||
<UTooltip v-bind="$attrs">
|
||||
<template v-for="(_, name) in $slots" #[name]="slotData">
|
||||
<slot :name="name" v-bind="slotData" />
|
||||
</template>
|
||||
</UTooltip>
|
||||
</TooltipProvider>`
|
||||
})
|
||||
|
||||
describe('Tooltip', () => {
|
||||
|
||||
Reference in New Issue
Block a user