lt-flow-chart 0.1.19 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,3 +13,10 @@
|
|
|
13
13
|
- drawById 新建 Node 节点时立即分配 DetailId = 现有 max+1
|
|
14
14
|
|
|
15
15
|
注意:组件库改动需 yarn lib 重编并拷 lib → LIMSManagement/node_modules(编译由杨哥负责)。
|
|
16
|
+
|
|
17
|
+
## 图形不显示排查(重要教训)
|
|
18
|
+
- 症状:重编拷贝后页面报 `Cannot set properties of null (setting '__vnode')` / `instance.update is not a function`,画布不渲染。
|
|
19
|
+
- 真凶:把**整个 lt-flow-chart 仓库文件夹**(连同其 node_modules,内含独立 vue@3.5.26)拷进 LIMSManagement/node_modules → Vite 解析 lib 内 `import 'vue'` 命中嵌套 vue → 双 Vue 实例 → 补丁崩溃。与代码改动无关。
|
|
20
|
+
- 修复:删除 `node_modules/lt-flow-chart/node_modules` + 清 `.vite`/`.cache` 缓存,重启 dev server。
|
|
21
|
+
- **以后拷贝只拷 lib + package.json(+README),绝不能把仓库的 node_modules 一起拷**。
|
|
22
|
+
|