[F1] @vue-flow/core 依赖 + DagCanvas 基础组件

- apps/web-antd/src/components/iot-dag/ 7 文件
  - DagCanvas.vue / DagCanvasToolbar.vue
  - hooks/useDagState.ts(50 步撤销栈 + structuredClone 深拷贝)
  - hooks/useDagShortcuts.ts(Del/Ctrl+Z/Ctrl+Y + input guard)
  - types.ts(DagNode/DagEdge/DagCanvasProps + 6 emits)
  - index.ts barrel + __tests__/DagCanvas.spec.ts(16 用例全绿)
- pnpm-workspace.yaml: catalog 新增 @vue-flow/{core,background,controls,minimap}
- apps/web-antd/package.json: 4 包全部 'catalog:' 引用
- i18n: zh-CN/en-US iot.dag.toolbar.* + iot.dag.canvas.* 同步
- Known Pitfalls 落地: ⚠️ catalog 约束 / 样式 import / TS 严格零 any

note: Acceptance #7 (Storybook/playground) 项目未集成 Storybook,
      由 F7 规则链编辑页自然 dogfood。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
lzh
2026-04-23 21:32:11 +08:00
parent c0646a4f4f
commit 7dbf41b75f
12 changed files with 1159 additions and 0 deletions

View File

@@ -23,6 +23,10 @@ overrides:
catalog:
'@ast-grep/napi': ^0.39.9
'@vue-flow/background': ^1.3.0
'@vue-flow/controls': ^1.1.0
'@vue-flow/core': ^1.41.0
'@vue-flow/minimap': ^1.5.0
'@changesets/changelog-github': ^0.5.2
'@changesets/cli': ^2.29.8
'@changesets/git': ^3.0.4