fix: 修改warning提示

This commit is contained in:
bearer 2024-04-14 22:50:00 +08:00
parent e95c06b009
commit a6f7843ff9

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>