File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { ActionType } from '@rc-component/trigger' ;
2- import type { OffsetType } from '@rc-component/trigger/lib/interface' ;
32import Tooltip from 'rc-tooltip' ;
43import type { CSSProperties } from 'react' ;
54import React , { Component } from 'react' ;
65import '../../assets/bootstrap.less' ;
76import { placements } from '../../src/placements' ;
87
8+ type OffsetType = string | number ;
9+
910interface TestState {
1011 destroyOnHidden : boolean ;
1112 destroyTooltipOptions : { name : string ; value : number } [ ] ;
Original file line number Diff line number Diff line change 4242 },
4343 "dependencies" : {
4444 "@rc-component/trigger" : " ^3.7.1" ,
45- "@rc-component/util" : " ^1.3.0 " ,
45+ "@rc-component/util" : " ^1.11.1 " ,
4646 "clsx" : " ^2.1.1"
4747 },
4848 "devDependencies" : {
49- "@rc-component/father-plugin" : " ^2.0.1 " ,
49+ "@rc-component/father-plugin" : " ^2.2.0 " ,
5050 "@rc-component/np" : " ^1.0.3" ,
5151 "@testing-library/jest-dom" : " ^6.9.1" ,
5252 "@testing-library/react" : " ^16.3.0" ,
Original file line number Diff line number Diff line change 1- import type { ArrowType , TriggerProps , TriggerRef } from '@rc-component/trigger' ;
1+ import type {
2+ ActionType ,
3+ AlignType ,
4+ ArrowType ,
5+ TriggerProps ,
6+ TriggerRef ,
7+ } from '@rc-component/trigger' ;
28import Trigger from '@rc-component/trigger' ;
3- import type { ActionType , AlignType } from '@rc-component/trigger/lib/interface' ;
4- import useId from '@rc-component/util/lib/hooks/useId' ;
9+ import { useId } from '@rc-component/util' ;
510import { clsx } from 'clsx' ;
611import * as React from 'react' ;
712import { useImperativeHandle , useRef } from 'react' ;
@@ -10,18 +15,17 @@ import Popup from './Popup';
1015
1116export type SemanticName = 'root' | 'arrow' | 'container' | 'uniqueContainer' ;
1217
13- export interface TooltipProps
14- extends Pick <
15- TriggerProps ,
16- | 'onPopupAlign'
17- | 'builtinPlacements'
18- | 'fresh'
19- | 'mouseLeaveDelay'
20- | 'mouseEnterDelay'
21- | 'prefixCls'
22- | 'forceRender'
23- | 'popupVisible'
24- > {
18+ export interface TooltipProps extends Pick <
19+ TriggerProps ,
20+ | 'onPopupAlign'
21+ | 'builtinPlacements'
22+ | 'fresh'
23+ | 'mouseLeaveDelay'
24+ | 'mouseEnterDelay'
25+ | 'prefixCls'
26+ | 'forceRender'
27+ | 'popupVisible'
28+ > {
2529 children : React . ReactElement ;
2630 // Style
2731 classNames ?: Partial < Record < SemanticName , string > > ;
You can’t perform that action at this time.
0 commit comments