fix(admin): 部门树列贴合内容宽度,剩余宽度全部让给成员面板
This commit is contained in:
1 parent
dd3a671a3d
commit
4105fd92f2
1 file changed
+6
-3
@@ -132,7 +132,7 @@ onMounted(() => {
|
||||
|
||||
<div v-loading="isLoading" class="admin-dept-body">
|
||||
<!-- 左侧:组织树(公司虚拟分组 + 层级缩进);定宽写在 style 上,避免 HMR 样式层滞后导致宽度不生效 -->
|
||||
<div class="admin-dept-tree" style="width: 360px; flex-shrink: 0;">
|
||||
<div class="admin-dept-tree" style="width: max-content; min-width: 260px; max-width: 45%; flex-shrink: 0;">
|
||||
<ElEmpty v-if="displayRows.length === 0" :description="treeEmptyText" :image-size="80" />
|
||||
<template v-for="row in displayRows" :key="row.key">
|
||||
<!-- 公司虚拟分组行(不入库,前端按 company 字段归堆) -->
|
||||
@@ -325,9 +325,12 @@ onMounted(() => {
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
overflow-x: auto;
|
||||
}
|
||||
.admin-dept-tree {
|
||||
width: 360px;
|
||||
width: max-content;
|
||||
min-width: 260px;
|
||||
max-width: 45%;
|
||||
flex-shrink: 0;
|
||||
padding: 12px 8px 12px 24px;
|
||||
border-right: 1px solid var(--el-border-color-lighter);
|
||||
@@ -391,7 +394,7 @@ onMounted(() => {
|
||||
}
|
||||
.admin-dept-members {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
min-width: 280px;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
Reference in new issue
Block a user