import{_ as e,i as t,h as o,j as n,r as a,o as l,b as s,g as i,a as d,w as c,e as w,p as v,f as u}from"./index-ea5b20ee.js";const m={data:()=>({views:[{type:"web",content:"https://www.baidu.com/"},{type:"html",content:"/public/html/view_example.html"}]}),methods:{loadViewContent(e){t.invoke(o.loadViewContent,n(this.views[e])).then((e=>{console.log(e)}))},removeViewContent(e){t.invoke(o.removeViewContent,n(this.views[e])).then((e=>{console.log(e)}))}}},p=e=>(v("data-v-792e445a"),e=e(),u(),e),h={id:"app-base-window-view"},r=p((()=>i("div",{class:"one-block-1"},[i("span",null," 1. 嵌入web内容 ")],-1))),C={class:"one-block-2"},b=p((()=>i("div",{class:"one-block-1"},[i("span",null," 2. 嵌入html内容 ")],-1))),f={class:"one-block-2"};const k=e(m,[["render",function(e,t,o,n,v,u){const m=a("a-button"),p=a("a-space");return l(),s("div",h,[r,i("div",C,[d(p,null,{default:c((()=>[d(m,{onClick:t[0]||(t[0]=e=>u.loadViewContent(0))},{default:c((()=>[w("加载百度页面")])),_:1}),d(m,{onClick:t[1]||(t[1]=e=>u.removeViewContent(0))},{default:c((()=>[w("移除百度页面")])),_:1})])),_:1})]),b,i("div",f,[d(p,null,{default:c((()=>[d(m,{onClick:t[2]||(t[2]=e=>u.loadViewContent(1))},{default:c((()=>[w("加载html页面")])),_:1}),d(m,{onClick:t[3]||(t[3]=e=>u.removeViewContent(1))},{default:c((()=>[w("移除html页面")])),_:1})])),_:1})])])}],["__scopeId","data-v-792e445a"]]);export{k as default};
