fix(canvas): 没有上游样式节点的提示词/文本节点不再显示「已固定 / 恢复跟随」(避免误点清空手写文案)
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 1m19s
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 1m19s
This commit is contained in:
1 parent
9623d932f7
commit
f2c634ff38
2 files changed
+13
-3
No files matched your search
@@ -370,6 +370,9 @@
|
||||
function inheritBar(info, opts) {
|
||||
const o = opts || {}
|
||||
const own = !!info.own
|
||||
// 没有上游节点(纯手写提示词)就不要显示「已固定 / 恢复跟随」,
|
||||
// 否则点「恢复跟随」会把用户手写的文案清空。
|
||||
if (!info.hasUpstream) return null
|
||||
if (!own && !info.text) return null
|
||||
const srcName = nodeLabelOf(info.sourceNodeId, o.nodes)
|
||||
const parts = [
|
||||
|
||||
Reference in new issue
Block a user