import{_ as e,i as t,a as o,g as n,b as a,o as l,c as s,f as i,e as d,w as c,h as w,p as v,k as u}from"./index-4c6e30ca.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"},C=p((()=>i("div",{class:"one-block-1"},[i("span",null," 1. 嵌入web内容 ")],-1))),b={class:"one-block-2"},k=p((()=>i("div",{class:"one-block-1"},[i("span",null," 2. 嵌入html内容 ")],-1))),r={class:"one-block-2"};const f=e(m,[["render",function(e,t,o,n,v,u){const m=a("a-button"),p=a("a-space");return l(),s("div",h,[C,i("div",b,[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})]),k,i("div",r,[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{f as default};
