fix(plugins): 模板节点拖入后不选中(避免输入框拦截拖动)+ 1.6.11 同步

This commit is contained in:
qiqi committed 2026-11-22 20:26:45 +08:00
1 parent af1070ec78
commit 84df19fb59
5 files changed
+14 -8

No files matched your search

+3 -3
View File
@@ -44,10 +44,10 @@
"dir": "promptlib",
"main": "main.js",
"style": "styles.css",
"version": "1.6.10",
"version": "1.6.11",
"files": {
"main.js": "72568741a7e33b3e9c0c7c666a39c7e2263699323629deab352799cbccc786ee",
"styles.css": "7bd4531924e0b1bd9e9a20bcb234db0920edad3321066c9542d0b44b6b7ff533"
"main.js": "89c7ba2d4eb814b391c7c1f41aaed101ce264bb511d9dc3414ee888267a1bef8",
"styles.css": "95ff9b134b23278ca4f61d68b8bfc3ccc9046fba9d458f50aced84481eb16512"
}
},
{
+1 -1
View File
@@ -1535,7 +1535,7 @@
global.IWBPluginHost.register({
id: 'promptlib',
name: '提示词库',
version: '1.6.10',
version: '1.6.11',
apiVersion: 1,
capabilities: ['panels', 'promptlib', 'nodeTypes', 'canvasWrite'],
data: { schemaVersion: 3, maxBytes: 4 * 1024 * 1024 },
+3 -3
View File
@@ -1,7 +1,7 @@
{
"id": "promptlib",
"name": "提示词库",
"version": "1.6.10",
"version": "1.6.11",
"apiVersion": 1,
"main": "main.js",
"style": "styles.css",
@@ -13,7 +13,7 @@
"提示词"
],
"files": {
"main.js": "72568741a7e33b3e9c0c7c666a39c7e2263699323629deab352799cbccc786ee",
"styles.css": "7bd4531924e0b1bd9e9a20bcb234db0920edad3321066c9542d0b44b6b7ff533"
"main.js": "89c7ba2d4eb814b391c7c1f41aaed101ce264bb511d9dc3414ee888267a1bef8",
"styles.css": "95ff9b134b23278ca4f61d68b8bfc3ccc9046fba9d458f50aced84481eb16512"
}
}
+5
View File
@@ -379,3 +379,8 @@ box-shadow: 0 24px 60px rgba(0,0,0,.32);
.iwb-plp-card:hover{transform:none;z-index:auto}
.iwb-plp-card.is-dragging{opacity:.55}
.iwb-plp-bg,.iwb-plp-cover{pointer-events:none}
/* v1.6.11:封面卡瀑布流高度由图片决定 —— 背景层必须是普通流,不能绝对定位(否则卡塌成一条线) */
.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}
+2 -1
View File
@@ -1103,7 +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([id])
// 模板节点插入后不选中:选中态下变量输入框可编辑,点它就无法拖节点
setSel(hasVars ? [] : [id])
setNotice({ type: 'ok', text: (hasVars ? '已插入提示词模板:' : '已插入提示词:') + (obj.name || '') })
return
} catch (err) { /* 非本应用拖入 */ }