Commit 5c879afa by zhaochengxiang

bug fix

parent daba7b45
...@@ -543,8 +543,10 @@ const ImportAction = React.forwardRef((props, ref) => { ...@@ -543,8 +543,10 @@ const ImportAction = React.forwardRef((props, ref) => {
</div> : <div> </div> : <div>
<div style={{ position: 'sticky', top: 0 }}> <div style={{ position: 'sticky', top: 0 }}>
<Tabs centered onChange={(val) => { <Tabs centered onChange={(val) => {
var targetElement = document.getElementById(val); // 找到目标元素 var targetElements = document.getElementsByClassName(val); // 找到目标元素
targetElement?.scrollIntoView() for (const element of targetElements) {
element?.scrollIntoView()
}
}} style={{ margin: 0 }}> }} style={{ margin: 0 }}>
<Tabs.TabPane tab='基本信息' key="1" /> <Tabs.TabPane tab='基本信息' key="1" />
<Tabs.TabPane tab='数据表结构' key="model-import-action-table" /> <Tabs.TabPane tab='数据表结构' key="model-import-action-table" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment