feat(plugins): 同步便利贴 sticky v1.0.7(自定义调色后自动收起色板)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 48s

This commit is contained in:
qiqi committed 2026-11-24 11:55:08 +08:00
1 parent 18dad1b9af
commit 1d9ef0cc99
2 files changed
+9 -4

No files matched your search

+3 -3
View File
@@ -64,9 +64,9 @@
},
{
"id": "sticky",
"file": "plugin-sticky.11daf5129b91.js",
"version": "1.0.6",
"integrity": "sha256-Edr1EpuRGNLA4VpHjXgZ7voREYyjTtnmMtwFvTFxOMQ="
"file": "plugin-sticky.af8e7249f0c7.js",
"version": "1.0.7",
"integrity": "sha256-r45ySfDHwBDMFUTuWpOpq21cJcqlYtq5DnOKUtndSLI="
},
{
"id": "style-source",
@@ -218,6 +218,9 @@
}
var act = t.getAttribute && t.getAttribute('data-act')
if (act === 'wheel') {
// 点开系统取色器后这个浮层就完成使命:无论最终确认还是取消都先收起,
// 避免取色器关闭后色板还压在便签上(用户报的“自定义调色后面板不退出”)。
st.palOpen = false; pal.hidden = true
try { colorInput.click() } catch (e2) { /* noop */ }
}
}
@@ -227,6 +230,8 @@
var up = st.props && st.props.onUpdate
var id = st.node && st.node.id
if (up && id && e.target && e.target.value) up(id, { bgColor: e.target.value })
// 自定义色确认后兜底再收一次(个别平台 change 先于上面的收起逻辑到达)。
st.palOpen = false; pal.hidden = true
}
colorInput.addEventListener('change', onColor)
@@ -436,7 +441,7 @@
global.IWBPluginHost.register({
id: 'sticky',
name: '便利贴',
version: '1.0.6',
version: '1.0.7',
apiVersion: 1,
capabilities: ['panels', 'nodeTypes', 'canvas'],
}, function (ctx) {