-
-
+
+
+
+
-
{{ child.name }}
-
在招 {{ child.job_count }} 岗
+
+
+
{{ child.name }}
+
在招 {{ child.job_count }} 岗
+
@@ -261,16 +266,29 @@ onMounted(async () => {
box-shadow: 0 1px 6px rgba(0,0,0,.06);
overflow-x: auto;
}
+/* 内层:所有元素同宽、列方向排列 */
+.org-inner {
+ display: flex;
+ flex-direction: column;
+ align-items: stretch; /* 子元素全部拉伸到同一宽度 */
+ min-width: 880px;
+}
+/* 根节点区:居中 */
.org-root {
display: flex;
flex-direction: column;
align-items: center;
- margin-bottom: 0;
}
.root-v-line {
width: 2px;
- height: 24px;
- background: #d0d0d0;
+ height: 20px;
+ background: #c8c8c8;
+}
+/* 横线:和 org-inner 等宽,天然对齐 */
+.org-h-line {
+ height: 2px;
+ background: #c8c8c8;
+ width: 100%;
}
.org-node {
border-radius: 8px;
@@ -296,13 +314,10 @@ onMounted(async () => {
color: #c9a84c;
margin-top: 4px;
}
-/* 子节点行 */
+/* 子节点行:和 org-inner 等宽 */
.org-children {
display: flex;
- justify-content: space-between;
- gap: 8px;
- min-width: 900px;
- border-top: 2px solid #d0d0d0;
+ width: 100%;
}
.org-child-wrap {
display: flex;
@@ -313,7 +328,7 @@ onMounted(async () => {
.child-v-line {
width: 2px;
height: 20px;
- background: #d0d0d0;
+ background: #c8c8c8;
}
.child-node {
background: #f0f4ff;