mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
chore(Tooltip): allow to disable popper flip (#87)
This commit is contained in:
committed by
GitHub
parent
2560088b2b
commit
03b0e07a53
@@ -40,6 +40,10 @@ const props = defineProps({
|
||||
return ['absolute', 'fixed'].includes(value)
|
||||
}
|
||||
},
|
||||
flip: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
wrapperClass: {
|
||||
type: String,
|
||||
default: () => $ui.tooltip.wrapper
|
||||
@@ -80,6 +84,9 @@ const [trigger, container] = usePopper({
|
||||
options: {
|
||||
padding: 8
|
||||
}
|
||||
}, {
|
||||
name: 'flip',
|
||||
enabled: props.flip
|
||||
}]
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user