From a6f7843ff9522e61a13698b3620f0f38fba03147 Mon Sep 17 00:00:00 2001
From: bearer <892652940@qq.com>
Date: Sun, 14 Apr 2024 22:50:00 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9warning=E6=8F=90?=
=?UTF-8?q?=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/RSegment/src/Segment.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/components/RSegment/src/Segment.tsx b/src/components/RSegment/src/Segment.tsx
index 2c9a91a2..9b277b5f 100644
--- a/src/components/RSegment/src/Segment.tsx
+++ b/src/components/RSegment/src/Segment.tsx
@@ -40,7 +40,7 @@ const popoverSegmentTab = (option: RSegmentOptions) => {
return (
{{
- trigger: iconSegmentTab(option),
+ trigger: () => iconSegmentTab(option),
default: () => option.popover,
}}
@@ -54,7 +54,7 @@ const popoverSegmentTab = (option: RSegmentOptions) => {
return (
{{
- trigger: iconSegmentTab(option),
+ trigger: () => iconSegmentTab(option),
default: () => label,
}}