tmagic-editor/docs/api/editor/historyServiceMethods.md
roymondchen 3eb8cc0614 docs: 完善 editor/form/runtime/stage 等 API 文档参数与说明
补全方法的参数类型、返回值类型与详情说明,规范字段编辑器/字段配置/运行时 API 等文档。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-07 17:33:58 +08:00

1.5 KiB
Raw Blame History

historyService方法

reset

  • 详情:

    重置记录

resetPage

  • 详情:

    重置当前页面的历史记录状态清空当前页面id重置 canRedo/canUndo

resetState

  • 详情:

    重置历史记录全部内部状态(清空 pageId、pageSteps、canRedo、canUndo

changePage

push

  • 参数:

  • 返回:

  • 详情:

    添加一条历史记录

undo

  • 返回:

  • 详情:

    撤销当前操作

redo

  • 返回:

  • 详情:

    恢复到下一步

destroy

  • 详情:

    销毁