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.
39 lines
983 B
39 lines
983 B
<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> |
|
{{ $t('tooltip.schemaChangeDisabled') }} <br /> |
|
{{ message }} |
|
<br v-if="message" /> |
|
<a |
|
class="!text-current" |
|
href="https://docs.nocodb.com/data-sources/connect-to-data-source#configuring-permissions" |
|
target="_blank" |
|
> |
|
Learn more |
|
</a> |
|
</template> |
|
<slot /> |
|
</NcTooltip> |
|
</template>
|
|
|