未验证 提交 16965751 编写于 作者: O oasis-cloud 提交者: GitHub

chore: typescript 4.8 (#298)

上级 1853313f
......@@ -93,10 +93,11 @@ export const Tabs: FunctionComponent<Partial<TabsProps>> = (props) => {
return null
}
const title = new Title()
if (child?.props?.title || child?.props?.paneKey) {
title.title = child.props?.title
title.paneKey = child.props?.paneKey || idx
title.disabled = child.props?.disabled
const childProps = child?.props
if (childProps?.title || childProps?.paneKey) {
title.title = childProps?.title
title.paneKey = childProps?.paneKey || idx
title.disabled = childProps?.disabled
title.index = idx
if (title.paneKey === value) {
currentIndex = idx
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册