mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
fix: tour arrow pointAtCenter (#46301)
This commit is contained in:
parent
43e7fed80c
commit
a4286e170a
@ -40,13 +40,14 @@ const Tour: React.FC<TourProps> & { _InternalPanelDoNotUseOrYouWillBeFired: type
|
||||
[steps, type],
|
||||
);
|
||||
|
||||
const builtinPlacements = getPlacements({
|
||||
arrowPointAtCenter: true,
|
||||
autoAdjustOverflow: true,
|
||||
offset: token.marginXXS,
|
||||
arrowWidth: token.sizePopupArrow,
|
||||
borderRadius: token.borderRadius,
|
||||
});
|
||||
const builtinPlacements: TourProps['builtinPlacements'] = (config) =>
|
||||
getPlacements({
|
||||
arrowPointAtCenter: config?.arrowPointAtCenter ?? true,
|
||||
autoAdjustOverflow: true,
|
||||
offset: token.marginXXS,
|
||||
arrowWidth: token.sizePopupArrow,
|
||||
borderRadius: token.borderRadius,
|
||||
});
|
||||
|
||||
const customClassName = classNames(
|
||||
{
|
||||
|
@ -119,7 +119,7 @@
|
||||
"@ctrl/tinycolor": "^3.6.1",
|
||||
"@rc-component/color-picker": "~1.4.1",
|
||||
"@rc-component/mutate-observer": "^1.1.0",
|
||||
"@rc-component/tour": "~1.11.1",
|
||||
"@rc-component/tour": "~1.12.0",
|
||||
"@rc-component/trigger": "^1.18.2",
|
||||
"classnames": "^2.3.2",
|
||||
"copy-to-clipboard": "^3.3.3",
|
||||
|
Loading…
Reference in New Issue
Block a user