import{_ as E}from"./app-9444f1fe.js";import{E as f,a as L,b as C}from"./index-9d5bf97d.js";import{H as V}from"./github-42a3adc5.js";import{h as k}from"./listData-9dae369c.js";import{_ as I,b as T,r as h,o as M,L as R,p as B,q as H,Q as o,N as n,V as c,B as t,y as N,t as _,a9 as S,aa as w}from"./framework-2d0bbdc3.js";import{E as m}from"./index-93c4d27d.js";import"./index-2653f279.js";const P=r=>(S("data-v-4e3df679"),r=r(),w(),r),q={class:"context"},A={class:"bottom"},D={class:"options"},O=["innerHTML"],J={class:"set"},Q=P(()=>o("div",{class:"foot"},[o("a",{href:"https://uiverse.io/loaders",target:"_blank"},"推荐网站")],-1)),U={__name:"index.html",setup(r){let s=T({html:"",css:""}),a=h("html"),u=h(null),i=null;g(),M(()=>{E(()=>import("./loading-5117cee7.js"),["assets/loading-5117cee7.js","assets/utils-e9a9aa23.js"]).then(d=>{i=d.default(),p()})});function p(){i.getLoadingId()||i.loading(u.value,b())}function v(){i&&i.close()}function g(){let e=R().query.model;if(e){let l=k.find(x=>x.model===e);s.html=l.html,s.css=l.css}}function y(d){let e=document.createElement("input");e.value=d,document.body.appendChild(e),e.select(),document.execCommand("Copy"),e.remove(),C.success("复制成功!")}function b(){return u.value.innerHTML=`<style>${s.css}</style >`,s}return(d,e)=>(B(),H("div",null,[o("div",q,[o("div",{class:"top",ref_key:"topRef",ref:u},null,512),o("div",A,[n(t(L),{modelValue:t(a),"onUpdate:modelValue":e[0]||(e[0]=l=>N(a)?a.value=l:a=l),class:"demo-tabs"},{default:c(()=>[n(t(f),{label:"html",name:"html"}),n(t(f),{label:"css",name:"css"})]),_:1},8,["modelValue"]),o("div",D,[o("pre",{innerHTML:t(V).highlightAuto(t(s)[t(a)]).value},null,8,O)]),o("div",J,[n(t(m),{type:"primary",onClick:p},{default:c(()=>[_("加载")]),_:1}),n(t(m),{type:"danger",onClick:v},{default:c(()=>[_("关闭")]),_:1}),n(t(m),{type:"success",onClick:e[1]||(e[1]=l=>y(t(s)[t(a)]))},{default:c(()=>[_("复制")]),_:1})]),Q])])]))}},X=I(U,[["__scopeId","data-v-4e3df679"],["__file","index.html.vue"]]);export{X as default};
