feat(编辑能力): 完善页面、目录与对象样式编辑,优化轮廓选中和撤销体验
build.yaml / build (push) Successful in 36s

This commit is contained in:
xiaoqidun committed 2026-09-17 00:06:12 +08:00
1 parent ee48ca666d
commit 4a6174c2ae
12 files changed
+1249 -101

No files matched your search

+16
View File
@@ -159,6 +159,22 @@ func (e *Editor) sourceParts() (map[string][]byte, error) {
}
parts["OFD.xml"] = data
}
if e.outlines != nil {
name := reader.ResPath(reader.OFD.DocBody[0].DocRoot)
data, ok := parts[name]
if !ok {
var err error
data, err = reader.readFile(name)
if err != nil {
return nil, err
}
}
updated, err := e.withOutlines(data)
if err != nil {
return nil, err
}
parts[name] = updated
}
if err := e.prunePageReferences(parts); err != nil {
return nil, err
}