import{d as e,o as t,k as i,a as s,g as o,f as n,e as a,w as l,b as c,i as d,_ as f}from"./index-CdSAAqTC.js";import{i as r}from"./index-B8zeLGbR.js";import{i as u}from"./ipcRenderer-CjF5QmVd.js";const p={id:"app-os-notification"},b={class:"one-block-2"},m=f(e({__name:"Index",setup(e){const f=[{type:"main",title:"通知标题",subtitle:"副标题",body:"这是通知内容-默认",silent:!0},{type:"main",title:"提示音",subtitle:"副标题-提示音",body:"这是通知内容-提示音",silent:!1},{type:"main",title:"点击通知事件",subtitle:"副标题-点击通知事件",body:"这是通知内容-点击通知事件",clickEvent:!0},{type:"main",title:"关闭通知事件",subtitle:"副标题-关闭通知事件",body:"这是通知内容-点击通知事件",closeEvent:!0}];function m(e){u.send(r.os.sendNotification,f[e])}return t((()=>{u.removeAllListeners(r.os.sendNotification),u.on(r.os.sendNotification,((e,t)=>{"[object Object]"==Object.prototype.toString.call(t)&&i.info(t.msg)}))})),(e,t)=>{const i=s("a-button"),f=s("a-space");return c(),o("div",p,[t[8]||(t[8]=n("div",{class:"one-block-1"},[n("span",null," 1. 弹出桌面通知 ")],-1)),n("div",b,[a(f,null,{default:l((()=>[a(i,{onClick:t[0]||(t[0]=e=>m(0))},{default:l((()=>t[4]||(t[4]=[d("默认")]))),_:1}),a(i,{onClick:t[1]||(t[1]=e=>m(1))},{default:l((()=>t[5]||(t[5]=[d("发出提示音")]))),_:1}),a(i,{onClick:t[2]||(t[2]=e=>m(2))},{default:l((()=>t[6]||(t[6]=[d("点击通知触发事件")]))),_:1}),a(i,{onClick:t[3]||(t[3]=e=>m(3))},{default:l((()=>t[7]||(t[7]=[d("关闭通知触发事件")]))),_:1})])),_:1})])])}}}),[["__scopeId","data-v-04b1ee0f"],["__file","/Users/gsx/www/gofile/src/ee/ee-demo-ts/frontend/src/views/os/notification/Index.vue"]]);export{m as default};
|