fix(nodes): 未编辑态的 readonly 文本不拦截指针(单击选节点)+ promptlib 1.6.14
This commit is contained in:
1 parent
76115bcce8
commit
a4550d5654
5 files changed
+14
-7
No files matched your search
+3
-3
@@ -44,10 +44,10 @@
|
||||
"dir": "promptlib",
|
||||
"main": "main.js",
|
||||
"style": "styles.css",
|
||||
"version": "1.6.12",
|
||||
"version": "1.6.14",
|
||||
"files": {
|
||||
"main.js": "d91005c1e6fabf3434cf39f82a4ded5ad91f30893415a169ca77524178bf6611",
|
||||
"styles.css": "95ff9b134b23278ca4f61d68b8bfc3ccc9046fba9d458f50aced84481eb16512"
|
||||
"main.js": "e16c61af81472fd644cbc8ce039cb6202bc3527011a114765a748b5d5bb46221",
|
||||
"styles.css": "052891bfe2e9cdd636103ab424aec484574a92f0e87bc3edf1ffc03385a25cc5"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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) || {})
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "promptlib",
|
||||
"name": "提示词库",
|
||||
"version": "1.6.12",
|
||||
"version": "1.6.14",
|
||||
"apiVersion": 1,
|
||||
"main": "main.js",
|
||||
"style": "styles.css",
|
||||
@@ -13,7 +13,7 @@
|
||||
"提示词"
|
||||
],
|
||||
"files": {
|
||||
"main.js": "d91005c1e6fabf3434cf39f82a4ded5ad91f30893415a169ca77524178bf6611",
|
||||
"styles.css": "95ff9b134b23278ca4f61d68b8bfc3ccc9046fba9d458f50aced84481eb16512"
|
||||
"main.js": "e16c61af81472fd644cbc8ce039cb6202bc3527011a114765a748b5d5bb46221",
|
||||
"styles.css": "052891bfe2e9cdd636103ab424aec484574a92f0e87bc3edf1ffc03385a25cc5"
|
||||
}
|
||||
}
|
||||
@@ -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}
|
||||
@@ -2475,3 +2475,6 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
|
||||
.iwb-mk-row:hover { background: color-mix(in srgb, var(--iwb-text) 3%, transparent); transform: none; box-shadow: none; }
|
||||
.iwb-mk-row-actions .iwb-btn { transform: none; box-shadow: none; transition: background .12s ease; }
|
||||
.iwb-mk-row-actions .iwb-btn:hover { transform: none; box-shadow: none; background: color-mix(in srgb, var(--iwb-text) 10%, var(--iwb-panel)); }
|
||||
|
||||
/* v3.26.38:未进入编辑态的节点正文不参与指针/文本选择 —— 单击=选中节点,双击=编辑 */
|
||||
.iwb-node textarea[readonly], .iwb-node input[readonly] { pointer-events: none; }
|
||||
Reference in new issue
Block a user