|
@@ -21,6 +21,7 @@ const props = withDefaults(
|
|
|
appendTo?: HTMLElement | "parent"
|
|
|
contentStyle?: CSSProperties
|
|
|
center?: boolean
|
|
|
+ offsetOne?: number
|
|
|
offset?: number
|
|
|
}>(),
|
|
|
{
|
|
@@ -28,6 +29,7 @@ const props = withDefaults(
|
|
|
trigger: "click",
|
|
|
placement: "bottom",
|
|
|
center: false,
|
|
|
+ offsetOne: 0,
|
|
|
offset: 8
|
|
|
}
|
|
|
)
|
|
@@ -67,7 +69,7 @@ onMounted(() => {
|
|
|
interactive: true,
|
|
|
appendTo: props.appendTo || document.body,
|
|
|
maxWidth: "none",
|
|
|
- offset: [0, props.offset],
|
|
|
+ offset: [props.offsetOne, props.offset],
|
|
|
duration: 200,
|
|
|
animation: "scale",
|
|
|
theme: "popover",
|