feat(plugins): 拖入节点一律不选中 + promptlib 1.6.12 同步
This commit is contained in:
1 parent
84df19fb59
commit
ea219d92c4
4 files changed
+13
-10
No files matched your search
@@ -1103,8 +1103,8 @@
|
||||
: { id, type: 'prompt', x: Math.round(wx - 132), y: Math.round(wy - 20), data: { text: obj.text || '', title: obj.name || '' } }
|
||||
pushHistory() // 拖拽入画布新增节点:入撤销历史(鼠标落点保留)
|
||||
commitCanvas(refs.nodes.concat([node]), undefined, undefined)
|
||||
// 模板节点插入后不选中:选中态下变量输入框可编辑,点它就无法拖节点
|
||||
setSel(hasVars ? [] : [id])
|
||||
// 插入后不选中:选中态下模板节点的变量输入框可编辑,点它就无法拖节点
|
||||
setSel([])
|
||||
setNotice({ type: 'ok', text: (hasVars ? '已插入提示词模板:' : '已插入提示词:') + (obj.name || '') })
|
||||
return
|
||||
} catch (err) { /* 非本应用拖入 */ }
|
||||
|
||||
Reference in new issue
Block a user