瀏覽代碼

滚动条

Leo 1 年之前
父節點
當前提交
88366c9aa2

+ 2 - 2
src/module/datasource/component/DatasourceData.jsx

@@ -179,7 +179,7 @@ const DatasourceData = props => {
             dataSource={contentData}
             bordered
             loading={contentLoading}
-            scroll={{ x: 3500 }}
+            scroll={{ x: contentCols.length * 120 }}
           />
         </TabPane>
         <TabPane tab="预览表结构" key="schema">
@@ -188,7 +188,7 @@ const DatasourceData = props => {
             dataSource={schemaData}
             bordered
             loading={schemaLoading}
-            scroll={{ x: 3500 }}
+            scroll={{ x: schemaCols.length * 120 }}
           />
         </TabPane>
       </Tabs>

+ 2 - 2
src/module/datasource/component/DatasourceManage.jsx

@@ -577,7 +577,7 @@ const DatasourceManage = forwardRef(({ dataType }, ref) => {
               dataSource={contentData}
               bordered
               loading={contentLoading}
-              scroll={{ x: 3500 }}
+              scroll={{ x: contentCols.length * 120 }}
             />
           </TabPane>
           <TabPane
@@ -589,7 +589,7 @@ const DatasourceManage = forwardRef(({ dataType }, ref) => {
               dataSource={schemaData}
               bordered
               loading={schemaLoading}
-              scroll={{ x: 3500 }}
+              scroll={{ x: schemaCols.length * 120 }}
             />
           </TabPane>
         </Tabs>