Feature(custom): add tray tooltip

This commit is contained in:
Kuingsmile
2024-06-07 22:59:08 +08:00
parent 6432837909
commit 8a565c1333
11 changed files with 42 additions and 104 deletions
+2 -16
View File
@@ -51,29 +51,15 @@
</el-row>
</div>
</template>
<script lang="ts" setup>
// Element Plus 图标
import { Close } from '@element-plus/icons-vue'
// 事件常量
import { GET_RENAME_FILE_NAME, RENAME_FILE_NAME } from '#/events/constants'
// 数据发送工具函数
import { sendToMain } from '@/utils/dataSender'
// 国际化函数
import { T as $T } from '@/i18n/index'
// Electron 相关
import { ipcRenderer, IpcRendererEvent } from 'electron'
// Vue 生命周期钩子
import { onBeforeUnmount, onBeforeMount, ref, reactive } from 'vue'
// 自定义钩子
import { useIPCOn } from '@/hooks/useIPC'
// Element Plus 表单实例类型
import { FormInstance } from 'element-plus'
const id = ref<string | null>(null)
@@ -84,7 +70,7 @@ const form = reactive({
originName: ''
})
const handleFileName = (event: IpcRendererEvent, newName: string, _originName: string, _id: string) => {
const handleFileName = (_: IpcRendererEvent, newName: string, _originName: string, _id: string) => {
form.fileName = newName
form.originName = _originName
id.value = _id