Skip to content

[console/setup] 权限集「权限配置」页对象权限列表被压成 9px 且整页无滚动条——系统能力区不收缩,挤占全部高度 #3332

Description

@baozhoutao

症状

Setup 的权限集权限配置页 /_console/apps/com.objectstack.setup/metadata/permission/:name(权限集详情「对象权限 → Design in Studio」入口进入),当权限集声明的系统能力较多(能力胶囊墙 20+ 行)时,页面下半部分的对象权限配置列表完全无法展示:头部显示「127 / 127 个对象」与 C/R/U/D 图例,但列表本体在视口里高度只剩 9px,整页又没有任何滚动条,内容彻底不可达。

复现步骤

  1. 任一权限集声明较多系统能力(本项目为 44+ 个 requiredPermissions 导航能力,导航:xxx 胶囊约 12 行 + 组织能力区);
  2. Setup → 权限集 → 打开该权限集 → 「对象权限 Design in Studio →」;
  3. 页面只见「系统能力」胶囊墙、「筛选对象...」输入框与 C/R/U/D 图例;对象列表不可见,鼠标滚轮无效,页面无滚动条。

DOM 量化证据(Chrome,1280x720 与 800x450 两种视口同现)

  • document.documentElement / body:scrollHeight = clientHeight = 720,overflow-y: visible → 整页不滚;
  • 对象列表滚动容器 div.flex-1.overflow-auto:scrollHeight = 7134,clientHeight = 9 → 弹性布局把 flex-1 的列表压到 9px,上方能力区不收缩、也无自身 max-height。

期望

对象权限列表可达:能力区可折叠/给自身 max-height,或列表容器保有最小可用高度,或整页出滚动条——三者任一。

影响

权限集的对象级 C/R/U/D 配置在 UI 上完全无法操作,只能回源码改元数据。平台自带 demo 能力少看不出,能力一多必现。

版本

@objectstack/runtime 17.0.0-rc.3(ConsoleUI 随包),spec/objectql/cli 同 17.0.0-rc.3;macOS Chrome。

应用侧未做任何绕行。

Part of steedos-labs/os-project-titanwind-ehr#761

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions