Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/components/guide/Guide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ const Guide: React.FC<GuideProps> = (originalProps) => {

// 设置高亮层的位置
const setHighlightLayerPosition = (highlightLayer: HTMLElement) => {
if (!highlightLayer) return; // 避免在 setTimeout 中访问时,可能元素已经被摧毁

let { top, left } = getRelativePosition(currentHighlightLayerElm.current);
let { width, height } = currentHighlightLayerElm.current.getBoundingClientRect();
const highlightPadding = getCurrentCrossProps('highlightPadding');
Expand Down
Loading