@@ -83,20 +83,6 @@ export interface TooltipProps extends Omit<TriggerProps, "popup" | "defaultPopup
83
83
delay: 100 ,
84
84
trigger: [" hover" ],
85
85
outsideHideEventName: [" mousedown" , " click" ],
86
- transition: {
87
- classNames: {
88
- appear: " tooltip-animated" ,
89
- appearActive: " tooltip-fade-in" ,
90
- appearDone: " " ,
91
- enter: " tooltip-animated" ,
92
- enterActive: " tooltip-fade-in" ,
93
- enterDone: " " ,
94
- exit: " tooltip-animated" ,
95
- exitActive: " tooltip-fade-out" ,
96
- exitDone: " " ,
97
- },
98
- timeout: 300 ,
99
- },
100
86
}
101
87
```
102
88
@@ -154,82 +140,86 @@ export interface TooltipProps extends Omit<TriggerProps, "popup" | "defaultPopup
154
140
box-sizing : border-box ;
155
141
}
156
142
157
- .rw-tooltip-placement-top > .rw-tooltip-arrow ,
158
- .rw-tooltip-placement-top-left > .rw-tooltip-arrow ,
159
- .rw-tooltip-placement-top-right > .rw-tooltip-arrow {
143
+ .rw-tooltip-placement-top > .rw-tooltip-arrow ,
144
+ .rw-tooltip-placement-top-left > .rw-tooltip-arrow ,
145
+ .rw-tooltip-placement-top-right > .rw-tooltip-arrow {
160
146
bottom : -5px ;
161
147
border-width : 5px 5px 0 ;
162
148
border-top-color : rgba (0 , 0 , 0 , 0.9 );
163
149
}
164
150
165
- .rw-tooltip-placement-bottom > .rw-tooltip-arrow ,
166
- .rw-tooltip-placement-bottom-left > .rw-tooltip-arrow ,
167
- .rw-tooltip-placement-bottom-right > .rw-tooltip-arrow {
151
+ .rw-tooltip-placement-bottom > .rw-tooltip-arrow ,
152
+ .rw-tooltip-placement-bottom-left > .rw-tooltip-arrow ,
153
+ .rw-tooltip-placement-bottom-right > .rw-tooltip-arrow {
168
154
top : -5px ;
169
155
border-width : 0 5px 5px ;
170
156
border-bottom-color : rgba (0 , 0 , 0 , 0.9 );
171
157
}
172
158
173
- .rw-tooltip-placement-left > .rw-tooltip-arrow ,
174
- .rw-tooltip-placement-left-top > .rw-tooltip-arrow ,
175
- .rw-tooltip-placement-left-bottom > .rw-tooltip-arrow {
159
+ .rw-tooltip-placement-left > .rw-tooltip-arrow ,
160
+ .rw-tooltip-placement-left-top > .rw-tooltip-arrow ,
161
+ .rw-tooltip-placement-left-bottom > .rw-tooltip-arrow {
176
162
right : -5px ;
177
163
border-width : 5px 0 5px 5px ;
178
164
border-left-color : rgba (0 , 0 , 0 , 0.9 );
179
165
}
180
166
181
- .rw-tooltip-placement-right > .rw-tooltip-arrow ,
182
- .rw-tooltip-placement-right-top > .rw-tooltip-arrow ,
183
- .rw-tooltip-placement-right-bottom > .rw-tooltip-arrow {
167
+ .rw-tooltip-placement-right > .rw-tooltip-arrow ,
168
+ .rw-tooltip-placement-right-top > .rw-tooltip-arrow ,
169
+ .rw-tooltip-placement-right-bottom > .rw-tooltip-arrow {
184
170
left : -5px ;
185
171
border-width : 5px 5px 5px 0 ;
186
172
border-right-color : rgba (0 , 0 , 0 , 0.9 );
187
173
}
188
174
189
- .rw-tooltip-placement-top-left > .rw-tooltip-arrow ,
190
- .rw-tooltip-placement-bottom-left > .rw-tooltip-arrow {
175
+ .rw-tooltip-placement-top-left > .rw-tooltip-arrow ,
176
+ .rw-tooltip-placement-bottom-left > .rw-tooltip-arrow {
191
177
left : 16px ;
192
178
}
193
179
194
- .rw-tooltip-placement-top > .rw-tooltip-arrow ,
195
- .rw-tooltip-placement-bottom > .rw-tooltip-arrow {
180
+ .rw-tooltip-placement-top > .rw-tooltip-arrow ,
181
+ .rw-tooltip-placement-bottom > .rw-tooltip-arrow {
196
182
left : 50% ;
197
183
margin-left : -5px ;
198
184
}
199
185
200
- .rw-tooltip-placement-top-right > .rw-tooltip-arrow ,
201
- .rw-tooltip-placement-bottom-right > .rw-tooltip-arrow {
186
+ .rw-tooltip-placement-top-right > .rw-tooltip-arrow ,
187
+ .rw-tooltip-placement-bottom-right > .rw-tooltip-arrow {
202
188
right : 16px ;
203
189
}
204
190
205
- .rw-tooltip-placement-left-top > .rw-tooltip-arrow ,
206
- .rw-tooltip-placement-right-top > .rw-tooltip-arrow {
191
+ .rw-tooltip-placement-left-top > .rw-tooltip-arrow ,
192
+ .rw-tooltip-placement-right-top > .rw-tooltip-arrow {
207
193
top : 8px ;
208
194
}
209
195
210
- .rw-tooltip-placement-left > .rw-tooltip-arrow ,
211
- .rw-tooltip-placement-right > .rw-tooltip-arrow {
196
+ .rw-tooltip-placement-left > .rw-tooltip-arrow ,
197
+ .rw-tooltip-placement-right > .rw-tooltip-arrow {
212
198
top : 50% ;
213
199
margin-top : -5px ;
214
200
}
215
201
216
- .rw-tooltip-placement-left-bottom > .rw-tooltip-arrow ,
217
- .rw-tooltip-placement-right-bottom > .rw-tooltip-arrow {
202
+ .rw-tooltip-placement-left-bottom > .rw-tooltip-arrow ,
203
+ .rw-tooltip-placement-right-bottom > .rw-tooltip-arrow {
218
204
bottom : 8px ;
219
205
}
220
206
221
- .tooltip-animated {
222
- animation-duration : 0.3 s ;
207
+ .rw- tooltip-animated {
208
+ animation-duration : 0.2 s ;
223
209
}
224
210
225
- .tooltip-fade-in {
211
+ .rw- tooltip-fade-in {
226
212
animation-name : TooltipFadeIn;
227
213
}
228
214
229
- .tooltip-fade-out {
215
+ .rw- tooltip-fade-out {
230
216
animation-name : TooltipFadeOut;
231
217
}
232
218
219
+ .rw-tooltip-exit-done {
220
+ opacity : 0 ;
221
+ }
222
+
233
223
@keyframes TooltipFadeIn {
234
224
from {
235
225
opacity : 0 ;
@@ -239,6 +229,7 @@ export interface TooltipProps extends Omit<TriggerProps, "popup" | "defaultPopup
239
229
opacity : 1 ;
240
230
}
241
231
}
232
+
242
233
@keyframes TooltipFadeOut {
243
234
from {
244
235
opacity : 1 ;
0 commit comments