fix(promptlib): 1.6.14 未选中时变量输入不拦截指针 + 修复 props 引用崩溃

This commit is contained in:
qiqi committed 2026-11-22 20:41:19 +08:00
1 parent d190cc6433
commit 4f92ec12dc
3 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@iwb-plugin/promptlib",
"private": true,
"version": "1.6.12",
"version": "1.6.14",
"description": "提示词库:右栏提示词列表(搜索/分组/收藏/新建编辑/插入画布/复制/删除),数据由宿主 promptlib 能力提供",
"ibwPlugin": {
"id": "promptlib",
+2 -1
View File
@@ -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) || {})
}
+3
View File
@@ -384,3 +384,6 @@ box-shadow: 0 24px 60px rgba(0,0,0,.32);
.iwb-plp-bg{position:relative;inset:auto;width:100%}
.iwb-plp-card.no-cover .iwb-plp-bg{position:absolute;inset:0}
.iwb-plp-bg .iwb-plp-cover{width:100%;height:auto;object-fit:contain;display:block}
/* v1.6.13:未选中时变量输入框不拦截指针 —— 单击节点=选中/可拖动;选中后再点输入框编辑 */
.iwb-plp-node:not(.is-selected) input{pointer-events:none}