fix(promptlib): 1.6.14 未选中时变量输入不拦截指针 + 修复 props 引用崩溃
This commit is contained in:
1 parent
d190cc6433
commit
4f92ec12dc
3 files changed
+6
-2
No files matched your search
@@ -1538,7 +1538,7 @@
|
||||
global.IWBPluginHost.register({
|
||||
id: 'promptlib',
|
||||
name: '提示词库',
|
||||
version: '1.6.12',
|
||||
version: '1.6.14',
|
||||
apiVersion: 1,
|
||||
capabilities: ['panels', 'promptlib', 'nodeTypes', 'canvasWrite'],
|
||||
data: { schemaVersion: 3, maxBytes: 4 * 1024 * 1024 },
|
||||
@@ -1608,6 +1608,7 @@
|
||||
var st = host.__plp
|
||||
if (!st) { host.textContent = ''; st = host.__plp = buildTplSkeleton(host) }
|
||||
st.node = node
|
||||
if (st.root && props) st.root.classList.toggle('is-selected', !!props.selected)
|
||||
st.props = props
|
||||
syncTplNode(st, (node && node.data) || {})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user