mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
701 B
31 lines
701 B
3 weeks ago
|
<script setup lang="ts">
|
||
|
import type { TooltipPlacement } from 'ant-design-vue/es/tooltip'
|
||
|
import type { CSSProperties } from '@vue/runtime-dom'
|
||
|
|
||
|
defineProps<{
|
||
|
tooltipStyle?: CSSProperties
|
||
|
overlayInnerStyle?: CSSProperties
|
||
|
mouseLeaveDelay?: number
|
||
|
placement?: TooltipPlacement
|
||
|
trigger?: 'hover' | 'click'
|
||
|
message?: string
|
||
|
enabled?: boolean
|
||
|
}>()
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<NcTooltip
|
||
|
:disabled="!enabled"
|
||
|
:tooltip-style="{ 'min-width': 'max-content' }"
|
||
|
:overlay-inner-style="{ 'min-width': 'max-content' }"
|
||
|
:mouse-leave-delay="0.3"
|
||
|
placement="left"
|
||
|
trigger="hover"
|
||
|
>
|
||
|
<template #title>
|
||
|
{{ message }}
|
||
|
</template>
|
||
|
<slot />
|
||
|
</NcTooltip>
|
||
|
</template>
|