feat: 新增组件

This commit is contained in:
DEV_DSW
2025-09-23 16:59:32 +08:00
parent 3c4f14be7f
commit c77c5350aa
14 changed files with 739 additions and 155 deletions

View File

@@ -8,4 +8,18 @@ const handleSend = async (vue_params) => {
contextBridge.exposeInMainWorld("myApi", {
handleSend: handleSend,
// 能暴露的不仅仅是函数,我们还可以暴露变量
// 最小化
windowMin: () => {
ipcRenderer.send("window-min");
},
// 最大化
windowMax: () => {
ipcRenderer.send("window-max");
},
// 关闭窗口
windowClose: () => {
ipcRenderer.send("window-close");
},
});