mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-29 22:39:45 +08:00
✨ 插件适配窗口缩放;修复窗口尺寸调整的bug;新增 createBrowserWindow、getCursorScreenPoint、getDisplayNearestPoint、outPlugin API
This commit is contained in:
@@ -76,13 +76,16 @@ getPluginInfo({
|
||||
remote.getGlobal('LOCAL_PLUGINS').addPlugin(res);
|
||||
});
|
||||
|
||||
watch([options, pluginHistory], () => {
|
||||
watch([options, pluginHistory, currentPlugin], () => {
|
||||
currentSelect.value = 0;
|
||||
if (currentPlugin.value.name) return;
|
||||
nextTick(() => {
|
||||
ipcRenderer.sendSync('msg-trigger', {
|
||||
type: 'setExpendHeight',
|
||||
data: getWindowHeight(options.value, pluginHistory.value),
|
||||
data: getWindowHeight(
|
||||
options.value,
|
||||
pluginLoading.value ? [] : pluginHistory.value
|
||||
),
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -121,6 +121,7 @@ const createPluginManager = (): any => {
|
||||
const {
|
||||
options,
|
||||
searchFocus,
|
||||
setOptionsRef,
|
||||
clipboardFile,
|
||||
clearClipboardFile,
|
||||
readClipboardContent,
|
||||
@@ -172,6 +173,7 @@ const createPluginManager = (): any => {
|
||||
window.initRubick = () => {
|
||||
state.currentPlugin = {};
|
||||
setSearchValue('');
|
||||
setOptionsRef([]);
|
||||
window.setSubInput({ placeholder: '' });
|
||||
};
|
||||
|
||||
|
||||
@@ -157,6 +157,7 @@ const optionsManager = ({
|
||||
});
|
||||
|
||||
return {
|
||||
setOptionsRef,
|
||||
options: optionsRef,
|
||||
searchFocus,
|
||||
clipboardFile,
|
||||
|
||||
Reference in New Issue
Block a user