From 382f60330138ecaf2ee2df459739070afb817365 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sun, 30 Aug 2020 22:59:47 +0800 Subject: [PATCH] style: pretty-quick --- types/cascader.d.ts | 2 +- types/comment.d.ts | 10 +- types/dropdown/dropdown-button.d.ts | 12 +- types/dropdown/dropdown.d.ts | 20 +-- types/grid/col.d.ts | 3 +- types/grid/row.d.ts | 24 ++-- types/input-number.d.ts | 2 +- types/input/input-group.d.ts | 2 +- types/input/input-search.d.ts | 2 +- types/input/input.d.ts | 2 +- types/input/password.d.ts | 5 +- types/mentions/mentions.d.ts | 2 +- types/mentions/option.d.ts | 10 +- types/menu/menu-item.d.ts | 2 +- types/menu/menu.d.ts | 2 +- types/menu/sub-menu.d.ts | 8 +- types/page-header.d.ts | 3 +- types/pagination.d.ts | 10 +- types/popconfirm.d.ts | 3 +- types/popover.d.ts | 2 +- types/progress.d.ts | 10 +- types/radio/radio-button.d.ts | 8 +- types/radio/radio-group.d.ts | 10 +- types/radio/radio.d.ts | 10 +- types/rate.d.ts | 11 +- types/select/option-group.d.ts | 9 +- types/select/option.d.ts | 11 +- types/slider.d.ts | 7 +- types/statistic/statistic-countdown.d.ts | 4 +- types/statistic/statistic.d.ts | 10 +- types/steps/step.d.ts | 10 +- types/steps/steps.d.ts | 2 +- types/switch.d.ts | 11 +- types/tabs/tab-pane.d.ts | 2 +- types/tabs/tabs.d.ts | 2 +- types/time-picker.d.ts | 2 +- types/timeline/timeline-item.d.ts | 15 ++- types/timeline/timeline.d.ts | 4 +- types/tootip/common.d.ts | 152 +++++++++++------------ 39 files changed, 208 insertions(+), 208 deletions(-) diff --git a/types/cascader.d.ts b/types/cascader.d.ts index 0a76db9c1..35136979f 100644 --- a/types/cascader.d.ts +++ b/types/cascader.d.ts @@ -198,7 +198,7 @@ export declare class Cascader extends AntdComponent { * @type Array */ value?: Array; - } + }; /** * remove focus */ diff --git a/types/comment.d.ts b/types/comment.d.ts index dbaa6babb..d8503c5c3 100644 --- a/types/comment.d.ts +++ b/types/comment.d.ts @@ -6,12 +6,12 @@ import { AntdComponent } from './component'; export declare class Comment extends AntdComponent { $props: { - /** List of action items rendered below the comment content + /** List of action items rendered below the comment content * any ( array | slot ) */ actions?: VNodeChild | JSX.Element; - /** The element to display as the comment author + /** The element to display as the comment author * @type any ( string | slot) */ author?: VNodeChild | JSX.Element; @@ -21,7 +21,7 @@ export declare class Comment extends AntdComponent { */ avatar?: VNodeChild | JSX.Element; - /** The main content of the comment + /** The main content of the comment * @type any ( string | slot) */ content?: VNodeChild | JSX.Element; @@ -31,9 +31,9 @@ export declare class Comment extends AntdComponent { */ prefixCls?: string; - /** A datetime element containing the time to be displayed + /** A datetime element containing the time to be displayed * @type any ( string | slot) */ datetime?: VNodeChild | JSX.Element; - } + }; } diff --git a/types/dropdown/dropdown-button.d.ts b/types/dropdown/dropdown-button.d.ts index 68c7775e1..904711b97 100644 --- a/types/dropdown/dropdown-button.d.ts +++ b/types/dropdown/dropdown-button.d.ts @@ -18,14 +18,20 @@ export declare class DropdownButton extends AntdComponent { * the dropdown menu * @type () => Menu */ - overlay?: () => Menu + overlay?: () => Menu; /** * placement of pop menu: bottomLeft bottomCenter bottomRight topLeft topCenter topRight * @default 'bottomLeft' * @type string */ - placement?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight'; + placement?: + | 'topLeft' + | 'topCenter' + | 'topRight' + | 'bottomLeft' + | 'bottomCenter' + | 'bottomRight'; /** * size of the button, the same as Button @@ -57,5 +63,5 @@ export declare class DropdownButton extends AntdComponent { * Icon (appears on the right) (1.5.0) */ icon?: VNodeChild | JSX.Element; - } + }; } diff --git a/types/dropdown/dropdown.d.ts b/types/dropdown/dropdown.d.ts index df5701281..a7f2b6ab6 100644 --- a/types/dropdown/dropdown.d.ts +++ b/types/dropdown/dropdown.d.ts @@ -11,17 +11,17 @@ export declare class Dropdown extends AntdComponent { static Button: typeof DropdownButton; $props: { /** - * the trigger mode which executes the drop-down action - * @default ['hover'] - * @type string[] - */ + * the trigger mode which executes the drop-down action + * @default ['hover'] + * @type string[] + */ trigger?: Array<'click' | 'hover' | 'contextmenu'>; /** * the dropdown menu * @type () => Menu */ - overlay?: () => Menu + overlay?: () => Menu; /** * Class name of the dropdown root element @@ -59,6 +59,12 @@ export declare class Dropdown extends AntdComponent { * @default 'bottomLeft' * @type string */ - placement?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight'; - } + placement?: + | 'topLeft' + | 'topCenter' + | 'topRight' + | 'bottomLeft' + | 'bottomCenter' + | 'bottomRight'; + }; } diff --git a/types/grid/col.d.ts b/types/grid/col.d.ts index b93e558c2..5380f94a0 100644 --- a/types/grid/col.d.ts +++ b/types/grid/col.d.ts @@ -83,6 +83,5 @@ export declare class Col extends AntdComponent { * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType */ xxl?: { span: ColSpanType; offset: ColSpanType } | ColSpanType; - } - + }; } diff --git a/types/grid/row.d.ts b/types/grid/row.d.ts index 708f39880..80cf7a021 100644 --- a/types/grid/row.d.ts +++ b/types/grid/row.d.ts @@ -7,20 +7,20 @@ import { AntdComponent } from '../component'; type Gutter = | number | { - xs: number; - sm: number; - md: number; - lg: number; - xl: number; - xxl: number; - }; + xs: number; + sm: number; + md: number; + lg: number; + xl: number; + xxl: number; + }; export declare class Row extends AntdComponent { $props: { /** - * spacing between grids, could be a number or a object like { xs: 8, sm: 16, md: 24} - * @default 0 - * @type numner | object - */ + * spacing between grids, could be a number or a object like { xs: 8, sm: 16, md: 24} + * @default 0 + * @type numner | object + */ gutter?: Gutter | [Gutter, Gutter]; /** @@ -42,5 +42,5 @@ export declare class Row extends AntdComponent { * @type string */ justify?: 'start' | 'end' | 'center' | 'space-around' | 'space-between'; - } + }; } diff --git a/types/input-number.d.ts b/types/input-number.d.ts index 0368c2462..b3d36fe78 100644 --- a/types/input-number.d.ts +++ b/types/input-number.d.ts @@ -83,5 +83,5 @@ export declare class InputNumber extends AntdComponent { * @type number | string */ value?: number | string; - } + }; } diff --git a/types/input/input-group.d.ts b/types/input/input-group.d.ts index 2c6197a13..10ab044d8 100644 --- a/types/input/input-group.d.ts +++ b/types/input/input-group.d.ts @@ -19,5 +19,5 @@ export declare class InputGroup extends AntdComponent { * @type string */ size?: 'small' | 'large' | 'default'; - } + }; } diff --git a/types/input/input-search.d.ts b/types/input/input-search.d.ts index f83d7a1d3..c014f1704 100644 --- a/types/input/input-search.d.ts +++ b/types/input/input-search.d.ts @@ -13,5 +13,5 @@ export declare class InputSearch extends AntdComponent { * @type any (boolean | slot) */ enterButton?: boolean | VNodeChild | JSX.Element; - } + }; } diff --git a/types/input/input.d.ts b/types/input/input.d.ts index 63b15ccaf..31ef0f7f5 100644 --- a/types/input/input.d.ts +++ b/types/input/input.d.ts @@ -81,5 +81,5 @@ export declare class Input extends AntdComponent { * allow to remove input content with clear icon */ allowClear?: boolean; - } + }; } diff --git a/types/input/password.d.ts b/types/input/password.d.ts index a7e01c849..d61890238 100644 --- a/types/input/password.d.ts +++ b/types/input/password.d.ts @@ -5,12 +5,11 @@ import { AntdComponent } from '../component'; export declare class Password extends AntdComponent { - $props:{ + $props: { /** * Whether show toggle button * @default true */ visibilityToggle?: boolean; - } - + }; } diff --git a/types/mentions/mentions.d.ts b/types/mentions/mentions.d.ts index b6a48309e..bdc853d42 100644 --- a/types/mentions/mentions.d.ts +++ b/types/mentions/mentions.d.ts @@ -71,5 +71,5 @@ export declare class Mentions extends AntdComponent { * @default () => HTMLElement */ getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement; - } + }; } diff --git a/types/mentions/option.d.ts b/types/mentions/option.d.ts index e0721fb4b..5ee789784 100644 --- a/types/mentions/option.d.ts +++ b/types/mentions/option.d.ts @@ -6,10 +6,10 @@ import { AntdComponent } from '../component'; export declare class Option extends AntdComponent { $props: { /** - * value of suggestion, the value will insert into input filed while selected - * @default '' - * @type string - */ + * value of suggestion, the value will insert into input filed while selected + * @default '' + * @type string + */ value?: string; - } + }; } diff --git a/types/menu/menu-item.d.ts b/types/menu/menu-item.d.ts index b4986c77e..1b02ee58a 100644 --- a/types/menu/menu-item.d.ts +++ b/types/menu/menu-item.d.ts @@ -24,5 +24,5 @@ export declare class MenuItem extends AntdComponent { * @type string */ title?: string; - } + }; } diff --git a/types/menu/menu.d.ts b/types/menu/menu.d.ts index 37ed8d9eb..4735d53e8 100644 --- a/types/menu/menu.d.ts +++ b/types/menu/menu.d.ts @@ -106,5 +106,5 @@ export declare class Menu extends AntdComponent { * @type boolean */ inlineCollapsed?: boolean; - } + }; } diff --git a/types/menu/sub-menu.d.ts b/types/menu/sub-menu.d.ts index 9eae9d9ae..fa8c4bdff 100644 --- a/types/menu/sub-menu.d.ts +++ b/types/menu/sub-menu.d.ts @@ -9,9 +9,9 @@ import { VNodeChild } from 'vue'; export declare class SubMenu extends AntdComponent { $props: { /** - * unique id of the menu item - * @type string - */ + * unique id of the menu item + * @type string + */ key?: string; /** @@ -30,5 +30,5 @@ export declare class SubMenu extends AntdComponent { * Sub-menu class name (1.5.0) */ popupClassName?: string; - } + }; } diff --git a/types/page-header.d.ts b/types/page-header.d.ts index 5bc8cec7b..ed59a8a2b 100644 --- a/types/page-header.d.ts +++ b/types/page-header.d.ts @@ -70,6 +70,5 @@ export declare class PageHeader extends AntdComponent { * Specify a callback that will be called when a user clicks backIcon. */ onBack(): () => void; - } - + }; } diff --git a/types/pagination.d.ts b/types/pagination.d.ts index f3d41fdd5..c771b72b7 100644 --- a/types/pagination.d.ts +++ b/types/pagination.d.ts @@ -5,9 +5,9 @@ import { AntdComponent } from './component'; import { VNodeChild } from 'vue'; interface PaginationRenderProps { - page: number - type: 'page' | 'prev' | 'next' - originalElement: any + page: number; + type: 'page' | 'prev' | 'next'; + originalElement: any; } export declare class Pagination extends AntdComponent { $props: { @@ -95,6 +95,6 @@ export declare class Pagination extends AntdComponent { * to customize item innerHTML * @type Function */ - itemRender?: (props:PaginationRenderProps) => VNodeChild | JSX.Element; - } + itemRender?: (props: PaginationRenderProps) => VNodeChild | JSX.Element; + }; } diff --git a/types/popconfirm.d.ts b/types/popconfirm.d.ts index c3d56ad84..dc486d13b 100644 --- a/types/popconfirm.d.ts +++ b/types/popconfirm.d.ts @@ -46,6 +46,5 @@ export declare class Popconfirm extends AntdComponent { * @type boolean */ disabled?: boolean; - } & TooltipCommon - + } & TooltipCommon; } diff --git a/types/popover.d.ts b/types/popover.d.ts index d275319e2..df8604802 100644 --- a/types/popover.d.ts +++ b/types/popover.d.ts @@ -18,5 +18,5 @@ export declare class Popover extends AntdComponent { * @type any (string | slot | VNode) */ title?: VNodeChild | JSX.Element; - } & TooltipCommon + } & TooltipCommon; } diff --git a/types/progress.d.ts b/types/progress.d.ts index a571fd096..d21f33c3c 100644 --- a/types/progress.d.ts +++ b/types/progress.d.ts @@ -10,10 +10,10 @@ export type ProgressGradient = { direction?: string } & (StringGradients | FromT export declare class Progress extends AntdComponent { $props: { /** - * template function of the content - * @default percent => percent + '%' - * @type Function - */ + * template function of the content + * @default percent => percent + '%' + * @type Function + */ format?: (percent?: number, successPercent?: number) => any; /** @@ -92,5 +92,5 @@ export declare class Progress extends AntdComponent { * @type number */ width?: number; - } + }; } diff --git a/types/radio/radio-button.d.ts b/types/radio/radio-button.d.ts index d8050edd8..244b60f7c 100644 --- a/types/radio/radio-button.d.ts +++ b/types/radio/radio-button.d.ts @@ -6,11 +6,11 @@ import { RadioProps, Radio } from './radio'; declare class RadioButtonProps extends RadioProps { /** -* Type of radio button -* @type string -*/ + * Type of radio button + * @type string + */ type?: 'primary' | 'danger' | 'dashed' | 'ghost' | 'default'; } export declare class RadioButton extends Radio { - $props: RadioButtonProps + $props: RadioButtonProps; } diff --git a/types/radio/radio-group.d.ts b/types/radio/radio-group.d.ts index 4b099816c..416c9c009 100644 --- a/types/radio/radio-group.d.ts +++ b/types/radio/radio-group.d.ts @@ -7,9 +7,9 @@ import { AntdComponent } from '../component'; export declare class RadioGroup extends AntdComponent { $props: { /** - * Specifies the initial state: whether or not the radio is selected. - * @type boolean - */ + * Specifies the initial state: whether or not the radio is selected. + * @type boolean + */ defaultValue?: any; /** @@ -53,6 +53,6 @@ export declare class RadioGroup extends AntdComponent { /** * The callback function that is triggered when the state changes. */ - onChange?:(e:Event)=>void - } + onChange?: (e: Event) => void; + }; } diff --git a/types/radio/radio.d.ts b/types/radio/radio.d.ts index 2f510359b..2e1f3d863 100644 --- a/types/radio/radio.d.ts +++ b/types/radio/radio.d.ts @@ -8,10 +8,10 @@ import { RadioButton } from './radio-button'; export declare class RadioProps { /** - * get focus when component mounted - * @default false - * @type boolean - */ + * get focus when component mounted + * @default false + * @type boolean + */ autofocus?: boolean; /** @@ -42,7 +42,7 @@ export declare class RadioProps { export declare class Radio extends AntdComponent { static Group: typeof RadioGroup; static Button: typeof RadioButton; - $props: RadioProps + $props: RadioProps; /** * remove focus */ diff --git a/types/rate.d.ts b/types/rate.d.ts index 743e31a56..ec9a449cd 100644 --- a/types/rate.d.ts +++ b/types/rate.d.ts @@ -7,10 +7,10 @@ import { VNodeChild } from 'vue'; export declare class Rate extends AntdComponent { $props: { /** - * whether to allow clear when click again - * @default true - * @type boolean - */ + * whether to allow clear when click again + * @default true + * @type boolean + */ allowClear?: boolean; /** @@ -62,8 +62,7 @@ export declare class Rate extends AntdComponent { value?: number; tooltips?: Array; - - } + }; /** * remove focus */ diff --git a/types/select/option-group.d.ts b/types/select/option-group.d.ts index ce98b7f45..db6e30ed1 100644 --- a/types/select/option-group.d.ts +++ b/types/select/option-group.d.ts @@ -8,9 +8,9 @@ import { VNodeChild } from 'vue'; export declare class OptionGroup extends AntdComponent { $props: { /** - * Key - * @type string - */ + * Key + * @type string + */ key?: string; /** @@ -18,6 +18,5 @@ export declare class OptionGroup extends AntdComponent { * @type any (string | slot) */ label?: VNodeChild | JSX.Element; - } - + }; } diff --git a/types/select/option.d.ts b/types/select/option.d.ts index f8fedb603..026194c0a 100644 --- a/types/select/option.d.ts +++ b/types/select/option.d.ts @@ -7,10 +7,10 @@ import { AntdComponent } from '../component'; export declare class Option extends AntdComponent { $props: { /** - * Disable this option - * @default false - * @type boolean - */ + * Disable this option + * @default false + * @type boolean + */ disabled?: boolean; /** @@ -36,6 +36,5 @@ export declare class Option extends AntdComponent { * @type string */ class?: string; - } - + }; } diff --git a/types/slider.d.ts b/types/slider.d.ts index d789c0ead..9652fe0bf 100644 --- a/types/slider.d.ts +++ b/types/slider.d.ts @@ -48,10 +48,7 @@ export declare class Slider extends AntdComponent { * @type object */ marks?: { - [key: number]: string - | VNodeChild - | { style: object; label: string | VNodeChild } - | Function; + [key: number]: string | VNodeChild | { style: object; label: string | VNodeChild } | Function; }; /** @@ -133,7 +130,7 @@ export declare class Slider extends AntdComponent { * @param value */ onChange?: (value?: any) => void; - } + }; /** * remove focus diff --git a/types/statistic/statistic-countdown.d.ts b/types/statistic/statistic-countdown.d.ts index ffa5d5dec..929402b61 100644 --- a/types/statistic/statistic-countdown.d.ts +++ b/types/statistic/statistic-countdown.d.ts @@ -6,7 +6,7 @@ import { AntdComponent } from '../component'; import { VNodeChild, CSSProperties } from 'vue'; export declare class StatisticCountdown extends AntdComponent { - $props:{ + $props: { /** * Format as moment * @default 'HH:mm:ss' @@ -39,5 +39,5 @@ export declare class StatisticCountdown extends AntdComponent { * Set value css style */ valueStyle?: CSSProperties; - } + }; } diff --git a/types/statistic/statistic.d.ts b/types/statistic/statistic.d.ts index dbdb3b5ae..3b4014269 100644 --- a/types/statistic/statistic.d.ts +++ b/types/statistic/statistic.d.ts @@ -10,10 +10,10 @@ export declare class Statistic extends AntdComponent { static Countdown: typeof StatisticCountdown; $props: { /** - * decimal separator - * @default '.' - * @type string - */ + * decimal separator + * @default '.' + * @type string + */ decimalSeparator?: string; /** @@ -58,5 +58,5 @@ export declare class Statistic extends AntdComponent { * @type string or number */ value?: string | number; - } + }; } diff --git a/types/steps/step.d.ts b/types/steps/step.d.ts index 0130d4e8f..da7d681cb 100644 --- a/types/steps/step.d.ts +++ b/types/steps/step.d.ts @@ -3,13 +3,13 @@ // Definitions: https://github.com/vueComponent/ant-design-vue/types import { AntdComponent } from '../component'; -import {VNodeChild} from 'vue'; +import { VNodeChild } from 'vue'; export declare class Step extends AntdComponent { $props: { /** - * description of the step, optional property - * @type any (string | slot) - */ + * description of the step, optional property + * @type any (string | slot) + */ description?: VNodeChild | JSX.Element; /** @@ -32,5 +32,5 @@ export declare class Step extends AntdComponent { title?: VNodeChild | JSX.Element; disabled?: boolean; subTitle?: VNodeChild | JSX.Element; - } + }; } diff --git a/types/steps/steps.d.ts b/types/steps/steps.d.ts index cba8016e4..11c9e2b6f 100644 --- a/types/steps/steps.d.ts +++ b/types/steps/steps.d.ts @@ -57,5 +57,5 @@ export declare class Steps extends AntdComponent { * @type boolean | Funtion */ progressDot?: boolean | Function; - } + }; } diff --git a/types/switch.d.ts b/types/switch.d.ts index b80d36044..193f38e78 100644 --- a/types/switch.d.ts +++ b/types/switch.d.ts @@ -7,10 +7,10 @@ import { VNodeChild } from 'vue'; export declare class Switch extends AntdComponent { $props: { /** - * get focus when component mounted - * @default false - * @type boolean - */ + * get focus when component mounted + * @default false + * @type boolean + */ autofocus?: boolean; /** @@ -59,8 +59,7 @@ export declare class Switch extends AntdComponent { * @type any (string | slot) */ unCheckedChildren?: VNodeChild | JSX.Element; - - } + }; /** * remove focus */ diff --git a/types/tabs/tab-pane.d.ts b/types/tabs/tab-pane.d.ts index 639649edd..c91c04199 100644 --- a/types/tabs/tab-pane.d.ts +++ b/types/tabs/tab-pane.d.ts @@ -25,5 +25,5 @@ export declare class TabPane extends AntdComponent { * @type any (string | slot) */ tab?: VNodeChild | JSX.Element; - } + }; } diff --git a/types/tabs/tabs.d.ts b/types/tabs/tabs.d.ts index 7a9e4feb2..802ffda4a 100644 --- a/types/tabs/tabs.d.ts +++ b/types/tabs/tabs.d.ts @@ -73,5 +73,5 @@ export declare class Tabs extends AntdComponent { * @type number */ tabBarGutter?: number; - } + }; } diff --git a/types/time-picker.d.ts b/types/time-picker.d.ts index 47cc8110a..168e20383 100644 --- a/types/time-picker.d.ts +++ b/types/time-picker.d.ts @@ -207,7 +207,7 @@ export declare class TimePicker extends AntdComponent { * @param open */ onOpenChange?: (open?: boolean) => void; - } + }; /** * remove focus diff --git a/types/timeline/timeline-item.d.ts b/types/timeline/timeline-item.d.ts index b5675f19f..1ba645ef1 100644 --- a/types/timeline/timeline-item.d.ts +++ b/types/timeline/timeline-item.d.ts @@ -6,12 +6,12 @@ import { VNodeChild } from 'vue'; import { AntdComponent } from '../component'; export declare class TimelineItem extends AntdComponent { - $props:{ - /** - * Set the circle's color to blue, red, green or other custom colors - * @default 'blue' - * @type string - */ + $props: { + /** + * Set the circle's color to blue, red, green or other custom colors + * @default 'blue' + * @type string + */ color?: string; /** @@ -19,6 +19,5 @@ export declare class TimelineItem extends AntdComponent { * @type any (string | slot) */ dot?: VNodeChild | JSX.Element; - - } + }; } diff --git a/types/timeline/timeline.d.ts b/types/timeline/timeline.d.ts index 4e019d131..0ac3f10f5 100644 --- a/types/timeline/timeline.d.ts +++ b/types/timeline/timeline.d.ts @@ -9,7 +9,7 @@ import { TimelineItem } from './timeline-item'; export declare class Timeline extends AntdComponent { static Item: typeof TimelineItem; - $props:{ + $props: { /** * Set the last ghost node's existence or its content * @default false @@ -37,5 +37,5 @@ export declare class Timeline extends AntdComponent { * @type string */ mode?: 'left' | 'alternate' | 'right'; - } + }; } diff --git a/types/tootip/common.d.ts b/types/tootip/common.d.ts index 660a24e43..f4cdd9ef2 100644 --- a/types/tootip/common.d.ts +++ b/types/tootip/common.d.ts @@ -7,67 +7,67 @@ export declare type triggerType = 'hover' | 'focus' | 'click' | 'contextmenu'; export declare class TooltipCommon { // $props: { - /** - * Whether the arrow is pointed at the center of target - * @default false - * @type boolean - */ - arrowPointAtCenter?: boolean; + /** + * Whether the arrow is pointed at the center of target + * @default false + * @type boolean + */ + arrowPointAtCenter?: boolean; - /** - * Whether to adjust popup placement automatically when popup is off screen - * @default true - * @type boolean - */ - autoAdjustOverflow?: boolean | object; + /** + * Whether to adjust popup placement automatically when popup is off screen + * @default true + * @type boolean + */ + autoAdjustOverflow?: boolean | object; - /** - * Whether the floating tooltip card is visible by default - * @default false - * @type boolean - */ - defaultVisible?: boolean; + /** + * Whether the floating tooltip card is visible by default + * @default false + * @type boolean + */ + defaultVisible?: boolean; - /** - * The DOM container of the tip, the default behavior is to create a div element in body. - * @default () => document.body - * @type Function - */ - getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement; + /** + * The DOM container of the tip, the default behavior is to create a div element in body. + * @default () => document.body + * @type Function + */ + getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement; - /** - * Delay in seconds, before tooltip is shown on mouse enter - * @default 0 - * @type number - */ - mouseEnterDelay?: number; + /** + * Delay in seconds, before tooltip is shown on mouse enter + * @default 0 + * @type number + */ + mouseEnterDelay?: number; - /** - * Delay in seconds, before tooltip is hidden on mouse leave - * @default 0.1 - * @type number - */ - mouseLeaveDelay?: number; + /** + * Delay in seconds, before tooltip is hidden on mouse leave + * @default 0.1 + * @type number + */ + mouseLeaveDelay?: number; - /** - * Class name of the tooltip card - * @type string - */ - overlayClassName?: string; + /** + * Class name of the tooltip card + * @type string + */ + overlayClassName?: string; - /** - * Style of the tooltip card - * @type undefined - */ - overlayStyle?: CSSProperties; + /** + * Style of the tooltip card + * @type undefined + */ + overlayStyle?: CSSProperties; - /** - * The position of the tooltip relative to the target, which can be one of top - * left right bottom topLeft topRight bottomLeft bottomRight leftTop leftBottom rightTop rightBottom - * @default 'top' - * @type string - */ - placement?: + /** + * The position of the tooltip relative to the target, which can be one of top + * left right bottom topLeft topRight bottomLeft bottomRight leftTop leftBottom rightTop rightBottom + * @default 'top' + * @type string + */ + placement?: | 'top' | 'left' | 'right' @@ -81,31 +81,31 @@ export declare class TooltipCommon { | 'rightTop' | 'rightBottom'; - /** - * Tooltip trigger mode - * @default 'hover' - * @type triggerType | triggerType[] - */ - trigger?: triggerType | triggerType[]; + /** + * Tooltip trigger mode + * @default 'hover' + * @type triggerType | triggerType[] + */ + trigger?: triggerType | triggerType[]; - /** - * Whether the floating tooltip card is visible or not - * @default false - * @type boolean - */ - visible?: boolean; + /** + * Whether the floating tooltip card is visible or not + * @default false + * @type boolean + */ + visible?: boolean; - /** - * Whether to destroy tooltip on hide - * @default false - * @type boolean - */ - destroyTooltipOnHide?: boolean; + /** + * Whether to destroy tooltip on hide + * @default false + * @type boolean + */ + destroyTooltipOnHide?: boolean; - /** - * this value will be merged into placement's config, please refer to the settings dom-align - * @type object - */ - align?: unknown; + /** + * this value will be merged into placement's config, please refer to the settings dom-align + * @type object + */ + align?: unknown; // } }