Commit 00487b7d authored by 邓超's avatar 邓超

fix: 修改web配置procard对全局样式的影响

parent aab13fe7
Pipeline #65715 passed with stages
...@@ -164,7 +164,7 @@ const MobileConfigPage = props => { ...@@ -164,7 +164,7 @@ const MobileConfigPage = props => {
}; };
const ContentTab = () => ( const ContentTab = () => (
<ProCard> <Card style={{ height: '100%' }}>
{/* <Spin tip="loading..." spinning={loading}> */} {/* <Spin tip="loading..." spinning={loading}> */}
<Tabs activeKey={activeKey} type="card" onChange={handleChange}> <Tabs activeKey={activeKey} type="card" onChange={handleChange}>
{showConfig && ( {showConfig && (
...@@ -189,7 +189,7 @@ const MobileConfigPage = props => { ...@@ -189,7 +189,7 @@ const MobileConfigPage = props => {
)} */} )} */}
</Tabs> </Tabs>
{/* </Spin> */} {/* </Spin> */}
</ProCard> </Card>
); );
const cts = (tabPaneItem, id) => ( const cts = (tabPaneItem, id) => (
<TabPane key={tabPaneItem.id} tab={tabPaneItem.text}> <TabPane key={tabPaneItem.id} tab={tabPaneItem.text}>
......
.mobileContainer { .mobileContainer {
height: 100%; height: 100%;
.ant-card-body {
height: 100%;
}
.ant-tabs { .ant-tabs {
height: 100%; height: 100%;
.ant-tabs-content { .ant-tabs-content {
......
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import PageContainer from '@/components/BasePageContainer'; import PageContainer from '@/components/BasePageContainer';
import { notification, Spin, Tabs, Button, Tooltip } from 'antd'; import { notification, Spin, Tabs, Button, Tooltip, Card } from 'antd';
import { import {
getWebModuleTree, getWebModuleTree,
getWebconfig, getWebconfig,
...@@ -327,7 +327,7 @@ const WebConfigPage = props => { ...@@ -327,7 +327,7 @@ const WebConfigPage = props => {
const renderTabPane = tabPaneItem => ( const renderTabPane = tabPaneItem => (
<TabPane key={tabPaneItem.id} tab={tabPaneItem.text}> <TabPane key={tabPaneItem.id} tab={tabPaneItem.text}>
<> <>
<ProCard className={styles.webConfigTabcontent}> <Card className={styles.webConfigTabcontent}>
<span <span
className={styles.link} className={styles.link}
onClick={() => { onClick={() => {
...@@ -392,7 +392,7 @@ const WebConfigPage = props => { ...@@ -392,7 +392,7 @@ const WebConfigPage = props => {
subSystemValue={tabPaneItem?.subSystemValue} subSystemValue={tabPaneItem?.subSystemValue}
productList={productList} productList={productList}
/> />
</ProCard> </Card>
</> </>
</TabPane> </TabPane>
); );
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden;
.link { .link {
color: #000; color: #000;
...@@ -32,6 +33,9 @@ ...@@ -32,6 +33,9 @@
.webConfigTabcontent { .webConfigTabcontent {
background: #fff; background: #fff;
height: 100%; height: 100%;
.ant-card-body {
height: 100%;
}
} }
} }
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
border: 1px solid #eee; border: 1px solid #eee;
padding: 10px; padding: 10px;
// height: calc( 100vh - 198px); // height: calc( 100vh - 198px);
overflow-y: auto; // overflow-y: auto;
.ant-tree-node-content-wrapper { .ant-tree-node-content-wrapper {
display: flex; display: flex;
......
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