Commit Graph

2 Commits

Author SHA1 Message Date
693a8576ee amis-theme: treegrid 左树高度跟随视口(.cxd-Tree max-height 视口相对)
amis .cxd-Tree--outline 默认 max-height:300px,treegrid 多级分类树「只露一半」、
下方大片留白。转换器给 treegrid 左树挂 className=eip4-treegrid-tree(见
TemplateToAmisConverter.convertTreeGrid),这里把该类内 .cxd-Tree max-height 抬到
calc(100vh-230px)+内部滚动——填满可用区域、超出树内滚(既非定高只露一半,
也非随内容无限撑高)。浏览器实证树高 615px、底部 783<视口 845。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-13 22:01:58 +08:00
8bd012cc0c F2-12: amis 主题变量层落地 + 状态标签风格 + 二轮截图
- 新建 src/shell/amis-theme.css:覆盖 amis cxd 底层 token(品牌色
  --colors-brand-5:#2B5CE6、圆角 --borders-radius-3:6px、字体族、
  中性色),对齐 theme.css 设计 token;[data-dark="1"] 覆盖层实现
  amis 区域深色模式跟随;.label-* 全局改为浅底+前置圆点样式;
  查询面板密度压缩;表格行高 42px
- src/main.tsx:在 theme.css 后引入 amis-theme.css
- e2e/artifacts/f2-12/:工作台/待办/用户查询/角色/深色/消息 Drawer 截图

实测验证:--colors-brand-5=#2B5CE6 ✓,--borders-radius-3=6px ✓,
label-success bg=#e2f5ec ✓,深色 label bg=#18352a ✓;
e2e 75/75 通过,零回归。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 04:59:14 +08:00