mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-29 22:39:45 +08:00
@@ -44,6 +44,7 @@ import useDrag from '../common/utils/dragWindow';
|
||||
import { getGlobal } from '@electron/remote';
|
||||
import { PLUGIN_HISTORY } from '@/common/constans/renderer';
|
||||
import { message } from 'ant-design-vue';
|
||||
import localConfig from './confOp';
|
||||
|
||||
const { onMouseDown } = useDrag();
|
||||
const remote = window.require('@electron/remote');
|
||||
@@ -74,6 +75,8 @@ initPlugins();
|
||||
const currentSelect = ref(0);
|
||||
const menuPluginInfo: any = ref({});
|
||||
|
||||
const config: any = ref(localConfig.getConfig());
|
||||
|
||||
getPluginInfo({
|
||||
pluginName: 'feature',
|
||||
// eslint-disable-next-line no-undef
|
||||
@@ -91,7 +94,7 @@ watch(
|
||||
window.rubick.setExpendHeight(
|
||||
getWindowHeight(
|
||||
options.value,
|
||||
pluginLoading.value ? [] : pluginHistory.value
|
||||
(pluginLoading.value || !config.value.perf.common.history) ? [] : pluginHistory.value
|
||||
)
|
||||
);
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div v-show="!currentPlugin.name" class="options">
|
||||
<div v-show="!currentPlugin.name && config.perf.common.history" class="options">
|
||||
<div
|
||||
class="history-plugins"
|
||||
v-if="!options.length || !(searchValue || !!clipboardFile.length)"
|
||||
@@ -44,12 +44,16 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import {defineEmits, defineProps, reactive, toRaw, watch} from 'vue';
|
||||
import { defineEmits, defineProps, reactive, ref, toRaw, watch } from 'vue';
|
||||
import localConfig from '../confOp';
|
||||
|
||||
const path = window.require('path');
|
||||
const remote = window.require('@electron/remote');
|
||||
|
||||
declare const __static: string;
|
||||
|
||||
const config: any = ref(localConfig.getConfig());
|
||||
|
||||
const props: any = defineProps({
|
||||
searchValue: {
|
||||
type: [String, Number],
|
||||
|
||||
@@ -96,6 +96,7 @@ const emit = defineEmits([
|
||||
]);
|
||||
|
||||
const keydownEvent = (e, key: string) => {
|
||||
e.preventDefault();
|
||||
const { ctrlKey, shiftKey, altKey, metaKey } = e;
|
||||
const modifiers: Array<string> = [];
|
||||
ctrlKey && modifiers.push('control');
|
||||
|
||||
Reference in New Issue
Block a user