mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 19:30:37 +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)
|
return ['absolute', 'fixed'].includes(value)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
flip: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
wrapperClass: {
|
wrapperClass: {
|
||||||
type: String,
|
type: String,
|
||||||
default: () => $ui.tooltip.wrapper
|
default: () => $ui.tooltip.wrapper
|
||||||
@@ -80,6 +84,9 @@ const [trigger, container] = usePopper({
|
|||||||
options: {
|
options: {
|
||||||
padding: 8
|
padding: 8
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
name: 'flip',
|
||||||
|
enabled: props.flip
|
||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user