2
2
// Definitions by: akki-jat <https://github.com/akki-jat>
3
3
// Definitions: https://github.com/vueComponent/ant-design-vue/types
4
4
5
- import { AntdComponent } from '../component' ;
6
-
5
+ import { CSSProperties } from 'vue' ;
7
6
export declare type triggerType = 'hover' | 'focus' | 'click' | 'contextmenu' ;
8
7
9
- export declare class TooltipCommon extends AntdComponent {
10
- /**
11
- * Whether the arrow is pointed at the center of target
12
- * @default false
13
- * @type boolean
14
- */
15
- arrowPointAtCenter : boolean ;
8
+ export declare class TooltipCommon {
9
+ // $props: {
10
+ /**
11
+ * Whether the arrow is pointed at the center of target
12
+ * @default false
13
+ * @type boolean
14
+ */
15
+ arrowPointAtCenter ?: boolean ;
16
16
17
- /**
18
- * Whether to adjust popup placement automatically when popup is off screen
19
- * @default true
20
- * @type boolean
21
- */
22
- autoAdjustOverflow : boolean | object ;
17
+ /**
18
+ * Whether to adjust popup placement automatically when popup is off screen
19
+ * @default true
20
+ * @type boolean
21
+ */
22
+ autoAdjustOverflow ? : boolean | object ;
23
23
24
- /**
25
- * Whether the floating tooltip card is visible by default
26
- * @default false
27
- * @type boolean
28
- */
29
- defaultVisible : boolean ;
24
+ /**
25
+ * Whether the floating tooltip card is visible by default
26
+ * @default false
27
+ * @type boolean
28
+ */
29
+ defaultVisible ? : boolean ;
30
30
31
- /**
32
- * The DOM container of the tip, the default behavior is to create a div element in body.
33
- * @default () => document.body
34
- * @type Function
35
- */
36
- getPopupContainer : ( triggerNode : any ) => any ;
31
+ /**
32
+ * The DOM container of the tip, the default behavior is to create a div element in body.
33
+ * @default () => document.body
34
+ * @type Function
35
+ */
36
+ getPopupContainer ? : ( triggerNode : HTMLElement ) => HTMLElement ;
37
37
38
- /**
39
- * Delay in seconds, before tooltip is shown on mouse enter
40
- * @default 0
41
- * @type number
42
- */
43
- mouseEnterDelay : number ;
38
+ /**
39
+ * Delay in seconds, before tooltip is shown on mouse enter
40
+ * @default 0
41
+ * @type number
42
+ */
43
+ mouseEnterDelay ? : number ;
44
44
45
- /**
46
- * Delay in seconds, before tooltip is hidden on mouse leave
47
- * @default 0.1
48
- * @type number
49
- */
50
- mouseLeaveDelay : number ;
45
+ /**
46
+ * Delay in seconds, before tooltip is hidden on mouse leave
47
+ * @default 0.1
48
+ * @type number
49
+ */
50
+ mouseLeaveDelay ? : number ;
51
51
52
- /**
53
- * Class name of the tooltip card
54
- * @type string
55
- */
56
- overlayClassName : string ;
52
+ /**
53
+ * Class name of the tooltip card
54
+ * @type string
55
+ */
56
+ overlayClassName ? : string ;
57
57
58
- /**
59
- * Style of the tooltip card
60
- * @type undefined
61
- */
62
- overlayStyle : object ;
58
+ /**
59
+ * Style of the tooltip card
60
+ * @type undefined
61
+ */
62
+ overlayStyle ?: CSSProperties ;
63
63
64
- /**
65
- * The position of the tooltip relative to the target, which can be one of top
66
- * left right bottom topLeft topRight bottomLeft bottomRight leftTop leftBottom rightTop rightBottom
67
- * @default 'top'
68
- * @type string
69
- */
70
- placement :
64
+ /**
65
+ * The position of the tooltip relative to the target, which can be one of top
66
+ * left right bottom topLeft topRight bottomLeft bottomRight leftTop leftBottom rightTop rightBottom
67
+ * @default 'top'
68
+ * @type string
69
+ */
70
+ placement ? :
71
71
| 'top'
72
72
| 'left'
73
73
| 'right'
@@ -81,30 +81,31 @@ export declare class TooltipCommon extends AntdComponent {
81
81
| 'rightTop'
82
82
| 'rightBottom' ;
83
83
84
- /**
85
- * Tooltip trigger mode
86
- * @default 'hover'
87
- * @type triggerType | triggerType[]
88
- */
89
- trigger : triggerType | triggerType [ ] ;
84
+ /**
85
+ * Tooltip trigger mode
86
+ * @default 'hover'
87
+ * @type triggerType | triggerType[]
88
+ */
89
+ trigger ? : triggerType | triggerType [ ] ;
90
90
91
- /**
92
- * Whether the floating tooltip card is visible or not
93
- * @default false
94
- * @type boolean
95
- */
96
- visible : boolean ;
91
+ /**
92
+ * Whether the floating tooltip card is visible or not
93
+ * @default false
94
+ * @type boolean
95
+ */
96
+ visible ? : boolean ;
97
97
98
- /**
99
- * Whether to destroy tooltip on hide
100
- * @default false
101
- * @type boolean
102
- */
103
- destroyTooltipOnHide : boolean ;
98
+ /**
99
+ * Whether to destroy tooltip on hide
100
+ * @default false
101
+ * @type boolean
102
+ */
103
+ destroyTooltipOnHide ? : boolean ;
104
104
105
- /**
106
- * this value will be merged into placement's config, please refer to the settings dom-align
107
- * @type object
108
- */
109
- align : object ;
105
+ /**
106
+ * this value will be merged into placement's config, please refer to the settings dom-align
107
+ * @type object
108
+ */
109
+ align ?: unknown ;
110
+ // }
110
111
}
0 commit comments