From a9c767b0ab8768a2fdf4fa0415a5808b9a60f50e Mon Sep 17 00:00:00 2001 From: tangying1027 <33517362+tangying1027@users.noreply.github.com> Date: Mon, 11 Mar 2024 13:56:24 +0800 Subject: [PATCH] fix: player guide visible (#1936) Co-authored-by: xuying.xu --- packages/f2/src/components/guide/withGuide.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/f2/src/components/guide/withGuide.tsx b/packages/f2/src/components/guide/withGuide.tsx index 7907a660a..de7e08e7c 100644 --- a/packages/f2/src/components/guide/withGuide.tsx +++ b/packages/f2/src/components/guide/withGuide.tsx @@ -76,7 +76,8 @@ export default function( render() { const { props, context } = this; - const { coord, records = [], animation, chart, style, onClick } = props; + const { coord, records = [], animation, chart, style, onClick, visible = true } = props; + if(!visible) return; const { width, height } = context; const points = this.convertPoints(records); const theme = this.getGuideTheme();