diff --git a/src/shell/amis-theme.css b/src/shell/amis-theme.css index 8d53586..211196f 100644 --- a/src/shell/amis-theme.css +++ b/src/shell/amis-theme.css @@ -302,3 +302,15 @@ justify-content: flex-end; padding: 10px 0 4px; } + +/* ============================================================================ + 9. TreeGrid 左树高度跟随视口 + amis 的 .cxd-Tree--outline 默认 max-height:300px,多级分类树会「只露一半」、 + 下方大片留白。转换器给 treegrid 左树挂 className eip4-treegrid-tree + (见 TemplateToAmisConverter.convertTreeGrid),这里把其内树容器抬到视口相对 + 高度并内部滚动——填满可用区域、超出在树内滚(既非定高只露一半,也非随内容无限撑高)。 + ============================================================================ */ +.amis-scope .eip4-treegrid-tree .cxd-Tree, +.amis-scope .eip4-treegrid-tree.cxd-Tree { + max-height: calc(100vh - 230px); +}