Update Segment.tsx

修复segment内容没有正常显示的问题
This commit is contained in:
admover 2025-01-15 11:16:48 +08:00 committed by GitHub
parent 4bfdbccd88
commit bd3f94af40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,6 @@
import './index.scss'
import { NTabs, NTab, NPopover, NFlex } from 'naive-ui'
import { NTabs, NTabPane, NPopover, NFlex } from 'naive-ui'
import props from './props'
import { themeOverrides } from './constant'
@ -103,7 +103,7 @@ export default defineComponent({
>
{options.map((curr) => {
return (
<NTab
<NTabPane
key={curr.key}
name={curr.key}
tab={
@ -114,7 +114,7 @@ export default defineComponent({
{{
...curr.slots,
}}
</NTab>
</NTabPane>
)
})}
</NTabs>