From 1d9ef0cc99ada2fa1255028252ff10db724f7f6d Mon Sep 17 00:00:00 2001 From: qiqi Date: Tue, 24 Nov 2026 11:55:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(plugins):=20=E5=90=8C=E6=AD=A5=E4=BE=BF?= =?UTF-8?q?=E5=88=A9=E8=B4=B4=20sticky=20v1.0.7=EF=BC=88=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E8=B0=83=E8=89=B2=E5=90=8E=E8=87=AA=E5=8A=A8=E6=94=B6?= =?UTF-8?q?=E8=B5=B7=E8=89=B2=E6=9D=BF=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/index.json | 6 +++--- ...ticky.11daf5129b91.js => plugin-sticky.af8e7249f0c7.js} | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) rename plugins/runtime/{plugin-sticky.11daf5129b91.js => plugin-sticky.af8e7249f0c7.js} (98%) diff --git a/plugins/index.json b/plugins/index.json index 709ca23..cea38a7 100644 --- a/plugins/index.json +++ b/plugins/index.json @@ -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", diff --git a/plugins/runtime/plugin-sticky.11daf5129b91.js b/plugins/runtime/plugin-sticky.af8e7249f0c7.js similarity index 98% rename from plugins/runtime/plugin-sticky.11daf5129b91.js rename to plugins/runtime/plugin-sticky.af8e7249f0c7.js index fbba3fe..65b1a30 100644 --- a/plugins/runtime/plugin-sticky.11daf5129b91.js +++ b/plugins/runtime/plugin-sticky.af8e7249f0c7.js @@ -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) {