Merge pull request #25 from zhengxiongwei520/main

fix: 修复RSegment组件Popover warning提示
This commit is contained in:
XiaoDaiGua-Ray 2024-04-14 23:03:32 +08:00 committed by GitHub
commit 683367cfd8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ const popoverSegmentTab = (option: RSegmentOptions) => {
return (
<NPopover>
{{
trigger: iconSegmentTab(option),
trigger: () => iconSegmentTab(option),
default: () => option.popover,
}}
</NPopover>
@ -54,7 +54,7 @@ const popoverSegmentTab = (option: RSegmentOptions) => {
return (
<NPopover {...parameters}>
{{
trigger: iconSegmentTab(option),
trigger: () => iconSegmentTab(option),
default: () => label,
}}
</NPopover>