3 Commits

Author SHA1 Message Date
ae0155eb2c fix(web): editor.html CSS 改 import 进 bundle,修生产构建 404
editor.html 三条 /node_modules/*.css 绝对 link 在 vite build 后不入 dist,
preview/静态托管下 404 → 设计器裸样式。改由 src/editor/main.tsx import,
rollup 收集进 dist/assets/*.css。dev 不受影响(vite 转译同源)。
注:amis-ui/amis-editor-core 的 exports 字段不暴露 css 子路径,裸包名 import 被 rollup 拒绝,
故用相对 node_modules 路径直引真实 css 文件。
REQUIRED-before-any-hosted-demo, OPTIONAL-for-pure-dev。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 09:33:34 +08:00
3abeefebac fix(designer): constrain amis-editor height so canvas scrolls (was clipped)
设计器「整个页面没有滚动条、看不到底部」真因:amis-editor 自带 CSS 未把
.ae-Editor 约束到容器高度,它按内容自然撑高(新闻管理页达 ~2804px),超出被
DesignerPage 外层 wrapper(flex:1;overflow:hidden) 裁掉、底部够不到。
(此前 theme.css 滚动条改动只作用主应用,editor.html 隔离入口未受影响 → 用户
反馈「没修」。)

修:editor.html <style> 强制 .ae-Editor / .ae-Editor-inner 填满父容器高度 →
编辑器适配视口,画布(.ae-Preview-body 本就 overflow:auto)内部滚动长页面,三栏
框架固定。实测:.ae-Editor 831px、clippedLayers=0(无裁切层)、新闻管理页
776px 完整显示;高于画布的页面经 .ae-Preview-body 滚动。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 22:22:27 +08:00
dc9e424d06 F4-L1: amis-editor 页面设计器(多页入口隔离)+overlay 编辑闭环
- editor.html 独立 vite 入口,amis-editor npm 依赖与主应用本地 SDK 隔离
- 设计器:画布编辑/保存→overlay/还原标准版/预览;页面 Tab 管理员「设计」入口
- designer.spec.ts 7 用例(编辑→保存→渲染 overlay→还原,X-Schema-Layer 断言);全套 e2e 68/68

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