mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-05 07:03:00 +08:00
Merge pull request #25 from zhengxiongwei520/main
fix: 修复RSegment组件Popover warning提示
This commit is contained in:
commit
683367cfd8
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user