Leo преди 1 година
родител
ревизия
88366c9aa2
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 2 2
      src/module/datasource/component/DatasourceData.jsx
  2. 2 2
      src/module/datasource/component/DatasourceManage.jsx

+ 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>