diff --git a/src/pages/ideContainer/index.tsx b/src/pages/ideContainer/index.tsx
index fa1ed6d..68d872c 100644
--- a/src/pages/ideContainer/index.tsx
+++ b/src/pages/ideContainer/index.tsx
@@ -1,7 +1,8 @@
import React, { useState } from 'react';
+import { Layout } from '@arco-design/web-react';
import styles from './style/index.module.less';
import SideBar from './sideBar';
-import { Layout } from '@arco-design/web-react';
+import LogBar from './logBar';
const Content = Layout.Content;
@@ -11,11 +12,11 @@ interface Selected {
}
// 假设您有这些组件
-const AppFlowComponent = () =>
应用编排
;
-const CompListComponent = () => 组件列表
;
-const AppInstanceComponent = () => 应用实例
;
-const EventComponent = () => 事件
;
-const GlobalVarComponent = () => 全局变量
;
+const AppFlowComponent = () => 应用编排
;
+const CompListComponent = () => 组件列表
;
+const AppInstanceComponent = () => 应用实例
;
+const EventComponent = () => 事件
;
+const GlobalVarComponent = () => 全局变量
;
function IDEContainer() {
@@ -40,16 +41,19 @@ function IDEContainer() {
};
return (
<>
-
+
setSelected(select)}
selectedKey={selected.currentKey}
/>
-
- {renderContent()}
-
-
-
+
+
+ {renderContent()}
+
+
+
+
+
>
);
}
diff --git a/src/pages/ideContainer/logBar.tsx b/src/pages/ideContainer/logBar.tsx
new file mode 100644
index 0000000..71542f4
--- /dev/null
+++ b/src/pages/ideContainer/logBar.tsx
@@ -0,0 +1,63 @@
+import React, { useState } from 'react';
+import { ResizeBox } from '@arco-design/web-react';
+import styles from './style/logBar.module.less';
+import { Tabs, Typography } from '@arco-design/web-react';
+
+const TabPane = Tabs.TabPane;
+
+
+interface LogBarProps {
+ a?: string;
+}
+
+const data = [
+ {
+ key: '1',
+ title: '运行日志',
+ content: '运行时日志...'
+ },
+ {
+ key: '2',
+ title: '校验日志',
+ content: '校验日志...'
+ },
+ {
+ key: '3',
+ title: '流程运行日志',
+ content: '流程运行时日志...'
+ },
+ {
+ key: '4',
+ title: '组件日志',
+ content: '组件日志...'
+ }
+];
+
+const LogBar: React.FC = () => {
+ const [tabs, setTabs] = useState(data);
+ const [activeTab, setActiveTab] = useState('1');
+
+
+ return (
+ <>
+
+
+ {tabs.map((x, i) => (
+
+ {x.content}
+
+ ))}
+
+
+ >
+ );
+};
+
+export default LogBar;
\ No newline at end of file
diff --git a/src/pages/ideContainer/style/index.module.less b/src/pages/ideContainer/style/index.module.less
index 85bbbcd..79ac4f5 100644
--- a/src/pages/ideContainer/style/index.module.less
+++ b/src/pages/ideContainer/style/index.module.less
@@ -1,4 +1,27 @@
+@layout-max-width: 1100px;
+
.IDEContainer {
width: 100%;
height: 100%;
+ padding: 0;
+
+ .content {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+ background-color: var(--color-fill-2);
+ min-width: @layout-max-width;
+ transition: padding-left 0.2s;
+ box-sizing: border-box;
+ padding-left: 220px;
+
+
+ .mainContent {
+ overflow: auto;
+
+ > div {
+ flex: 1;
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/src/pages/ideContainer/style/logBar.module.less b/src/pages/ideContainer/style/logBar.module.less
new file mode 100644
index 0000000..0edae89
--- /dev/null
+++ b/src/pages/ideContainer/style/logBar.module.less
@@ -0,0 +1,12 @@
+.logBar {
+ width: calc(100% - 220px);
+ min-height: 150px;
+ position: absolute;
+ bottom: 0;
+ right: 0;
+ background-color: #fff;
+ border-top: 2px solid #ddd;
+ transform: translateZ(0);
+ will-change: height;
+ z-index: 100;
+}
\ No newline at end of file