File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5555 "@types/node" : " ^24.5.2" ,
5656 "@types/react" : " ^18.0.0" ,
5757 "@types/react-dom" : " ^18.0.0" ,
58- "@umijs/fabric" : " ^2.5.2 " ,
58+ "@umijs/fabric" : " ^4.0.0 " ,
5959 "cheerio" : " 1.0.0-rc.12" ,
6060 "dumi" : " ^2.1.2" ,
61- "eslint" : " ^7.18 .0" ,
61+ "eslint" : " ^8.0 .0" ,
6262 "father" : " ^4.0.0" ,
6363 "gh-pages" : " ^3.1.0" ,
6464 "prettier" : " ^3.0.0" ,
Original file line number Diff line number Diff line change 11import type { BuildInPlacements } from '@rc-component/trigger' ;
22
3- const autoAdjustOverflow = {
4- adjustX : 1 ,
5- adjustY : 1 ,
6- } ;
7-
83export type PlacementType =
94 | 'left'
105 | 'leftTop'
@@ -76,7 +71,11 @@ const basePlacements: BuildInPlacements = {
7671export function getPlacements ( arrowPointAtCenter = false ) {
7772 const placements : BuildInPlacements = { } ;
7873 Object . keys ( basePlacements ) . forEach ( key => {
79- placements [ key ] = { ...basePlacements [ key ] , autoArrow : arrowPointAtCenter , targetOffset} ;
74+ placements [ key ] = {
75+ ...basePlacements [ key ] ,
76+ autoArrow : arrowPointAtCenter ,
77+ targetOffset,
78+ } ;
8079 } ) ;
8180 return placements ;
8281}
You can’t perform that action at this time.
0 commit comments