import{_ as t,i,h as e,j as s,r as n,o as a,b as o,g as l,a as d,w as c,e as f,p as b,f as u}from"./index-ea5b20ee.js";const p={data:()=>({views:[{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}]}),mounted(){this.init()},methods:{init(){i.removeAllListeners(e.sendNotification),i.on(e.sendNotification,((t,i)=>{"[object Object]"==Object.prototype.toString.call(i)&&this.$message.info(i.msg)}))},sendNotification(t){i.send(e.sendNotification,s(this.views[t]))}}},r={id:"app-base-notification"},m=(t=>(b("data-v-6555f14e"),t=t(),u(),t))((()=>l("div",{class:"one-block-1"},[l("span",null," 1. 弹出桌面通知 ")],-1))),v={class:"one-block-2"};const y=t(p,[["render",function(t,i,e,s,b,u){const p=n("a-button"),y=n("a-space");return a(),o("div",r,[m,l("div",v,[d(y,null,{default:c((()=>[d(p,{onClick:i[0]||(i[0]=t=>u.sendNotification(0))},{default:c((()=>[f("默认")])),_:1}),d(p,{onClick:i[1]||(i[1]=t=>u.sendNotification(1))},{default:c((()=>[f("发出提示音")])),_:1}),d(p,{onClick:i[2]||(i[2]=t=>u.sendNotification(2))},{default:c((()=>[f("点击通知触发事件")])),_:1}),d(p,{onClick:i[3]||(i[3]=t=>u.sendNotification(3))},{default:c((()=>[f("关闭通知触发事件")])),_:1})])),_:1})])])}],["__scopeId","data-v-6555f14e"]]);export{y as default};
