feat(componentTest): 实现组件测试实例页面
- 新增查询单个组件测试用例列表的 API 接口 - 实现测试实例页面的 UI 界面与交互逻辑 - 添加测试实例页面的样式文件 - 优化登录页面的代码格式和逻辑处理 - 修复登录页面 token 处理相关的问题 - 移除组件测试页面面包屑导航的内边距 - 完善组件设计获取及显示功能master
parent
1fa8c545c0
commit
0fe805ce81
@ -0,0 +1,338 @@
|
||||
.test-instance {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: #f0f2f5;
|
||||
|
||||
// 顶部标签栏
|
||||
.tabs {
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #e5e6eb;
|
||||
padding: 10px 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.tab-left {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.tab-center {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
margin-left: 20%;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.tab-right {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
// 主内容区
|
||||
.main-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
background: #f0f2f5;
|
||||
|
||||
// 左侧面板
|
||||
.left-panel {
|
||||
width: 280px;
|
||||
background: #fff;
|
||||
border-right: 1px solid #e5e6eb;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.panel-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid #e5e6eb;
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: #1d2129;
|
||||
|
||||
.icon-btn {
|
||||
cursor: pointer;
|
||||
color: #4e5969;
|
||||
font-size: 16px;
|
||||
|
||||
&:hover {
|
||||
color: #165dff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tree-container {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
|
||||
.tree-list {
|
||||
.tree-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 8px 5px;
|
||||
margin-bottom: 4px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
|
||||
&:hover {
|
||||
background: #f2f3f5;
|
||||
}
|
||||
|
||||
.item-icon {
|
||||
margin-right: 8px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.item-text {
|
||||
flex: 1;
|
||||
font-size: 13px;
|
||||
color: #4e5969;
|
||||
}
|
||||
|
||||
.item-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
opacity: 1;
|
||||
transition: opacity 0.2s;
|
||||
|
||||
svg {
|
||||
font-size: 14px;
|
||||
color: #86909c;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: #165dff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 中间流程图区域
|
||||
.center-panel {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 16px 120px;
|
||||
overflow: auto;
|
||||
|
||||
.flow-wrapper {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 0;
|
||||
|
||||
.flow-node {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
||||
.node-box {
|
||||
background: #fff;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||||
min-width: 160px;
|
||||
|
||||
.node-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 6px 10px;
|
||||
border-bottom: 1px solid #e5e6eb;
|
||||
|
||||
.node-icon {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.node-title {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: #1d2129;
|
||||
}
|
||||
}
|
||||
|
||||
.node-label {
|
||||
padding: 4px 10px;
|
||||
font-size: 10px;
|
||||
color: #86909c;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&.node-start {
|
||||
.node-header {
|
||||
background: #5a6c7d;
|
||||
color: #fff;
|
||||
border-radius: 6px 6px 0 0;
|
||||
|
||||
.node-title {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.node-end {
|
||||
.node-header {
|
||||
background: #5a6c7d;
|
||||
color: #fff;
|
||||
border-radius: 6px 6px 0 0;
|
||||
|
||||
.node-title {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.node-component {
|
||||
.node-header {
|
||||
background: #ffb800;
|
||||
color: #fff;
|
||||
border-radius: 6px 6px 0 0;
|
||||
|
||||
.node-title {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.node-body {
|
||||
padding: 8px;
|
||||
|
||||
.node-function {
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
color: #1d2129;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.node-params {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
margin-bottom: 4px;
|
||||
|
||||
.param-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
|
||||
.param-dot {
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
border-radius: 50%;
|
||||
background: #86909c;
|
||||
}
|
||||
|
||||
.param-label {
|
||||
font-size: 10px;
|
||||
color: #4e5969;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.param-item-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 4px;
|
||||
|
||||
.param-dot {
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
border-radius: 50%;
|
||||
background: #86909c;
|
||||
}
|
||||
|
||||
.param-label {
|
||||
font-size: 10px;
|
||||
color: #4e5969;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.node-connector {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin: 0;
|
||||
|
||||
.connector-line {
|
||||
width: 24px;
|
||||
height: 2px;
|
||||
background: #d9d9d9;
|
||||
}
|
||||
|
||||
.connector-dot {
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
border-radius: 50%;
|
||||
background: #d9d9d9;
|
||||
margin-left: -2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 右侧面板
|
||||
.right-panel {
|
||||
flex: 1;
|
||||
background: #fff;
|
||||
border-left: 1px solid #e5e6eb;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.panel-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid #e5e6eb;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #1d2129;
|
||||
|
||||
.header-actions {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
|
||||
.icon-btn {
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
opacity: 0.6;
|
||||
transition: opacity 0.2s;
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.log-content {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 20px;
|
||||
|
||||
.log-empty {
|
||||
text-align: center;
|
||||
color: #86909c;
|
||||
font-size: 13px;
|
||||
line-height: 1.8;
|
||||
|
||||
p {
|
||||
margin: 8px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue