From c0a72cb6eb094d1669e11a406460e66ea62834a8 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Thu, 2 Mar 2023 09:31:36 +0000 Subject: [PATCH] Tooltip d.ts updated --- components/tooltip/Tooltip.d.ts | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/components/tooltip/Tooltip.d.ts b/components/tooltip/Tooltip.d.ts index 4c89dd733..3ff0a93c8 100755 --- a/components/tooltip/Tooltip.d.ts +++ b/components/tooltip/Tooltip.d.ts @@ -1,16 +1,6 @@ -import { ObjectDirective } from 'vue'; +import { DirectiveBinding, ObjectDirective } from 'vue'; -declare const Tooltip: ObjectDirective; - -/** - * Defines options of Tooltip. - * @group Model - */ -export interface TooltipProps { - /** - * Text of the tooltip. - */ - value?: string | undefined; +export declare type TooltipDirectiveModifiers = { /** * When present, it specifies that the component should be disabled. * @defaultValue false @@ -30,10 +20,24 @@ export interface TooltipProps { */ escape?: boolean | undefined; /** - * Automatically adjusts the element position when there is not enough space on the selected position. + * Automatically adjusts the element position when there is not enough space on the selected position. * @defaultValue true */ fitContent?: boolean | undefined; +}; + +export interface TooltipDirectiveBinding extends Omit { + /** + * Text of the tooltip. + */ + value?: string | undefined; + /** + * Tooltip modifiers + * @type {TooltipDirectiveModifiers} + */ + modifiers?: TooltipDirectiveModifiers | undefined; } +declare const Tooltip: ObjectDirective; + export default Tooltip;