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) {