mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
Deploying to gh-pages from @ DGP-Studio/Snap.Hutao.Docs@123d5acf49 🚀
This commit is contained in:
1
assets/VuePlayground-dd0908f4.js
Normal file
1
assets/VuePlayground-dd0908f4.js
Normal file
@@ -0,0 +1 @@
|
||||
import{l as p,s as d,_ as v}from"./app-9a2c5168.js";import{c as m,r as i,z as w,h as f,o as g,j as e}from"./framework-e266aaef.js";const h=()=>e(p,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map(a=>e("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[e("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:a}),e("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:a})]))),y='<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M240.496 272c-13.504 0-25.664 5.632-34.384 14.608l-.048-.048-189.216 189.2A47.664 47.664 0 0 0 0 512c0 13.504 5.616 25.664 14.592 34.368l-.032.064 192 192 .048-.064A47.68 47.68 0 0 0 240 752a48 48 0 0 0 48-48c0-12.992-5.216-24.752-13.616-33.392l.048-.048-158.304-158.32 157.808-157.808-.048-.048A47.808 47.808 0 0 0 288.496 320a48 48 0 0 0-48-48zm784 240c0-14.56-6.608-27.44-16.848-36.24l-189.216-189.2-.032.048A47.872 47.872 0 0 0 784 272a48 48 0 0 0-48 48c0 13.504 5.632 25.664 14.608 34.384l-.048.048L908.368 512.24l-158.32 158.32.048.048A47.808 47.808 0 0 0 736.48 704a48 48 0 0 0 48 48c12.992 0 24.752-5.216 33.408-13.632l.048.064 192-192-.048-.064A47.68 47.68 0 0 0 1024.496 512zM640 128c-20.8 0-38.496 13.232-45.168 31.712L339.2 830.784a48 48 0 0 0 89.968 33.504L684.8 193.216A48 48 0 0 0 640 128z"/></svg>',C=a=>d({},{autoResize:!0,showCode:!1,showCompileOutput:!1,showImportMap:!0,clearConsole:!1,layout:"vertical",ssr:!1},JSON.parse(decodeURIComponent(a)));var R=m({name:"VuePlayground",props:{title:{type:String,default:""},files:{type:String,required:!0},settings:{type:String,default:"{}"}},setup(a){const n=i(!0),s=w(),l=i(),t=f(()=>C(a.settings)),o=i(t.value.showCode||!1),r=async()=>{const{ReplStore:u,Repl:c}=await v(()=>import("./vue-repl-64f43f43.js"),["assets/vue-repl-64f43f43.js","assets/app-9a2c5168.js","assets/framework-e266aaef.js"]);s.value=c,l.value=new u({serializedState:decodeURIComponent(a.files),showOutput:!0}),t.value.vueVersion&&await l.value.setVueVersion(t.value.vueVersion)};return g(async()=>{await r(),n.value=!1}),()=>[e("div",{class:"vue-playground-wrapper"},[e("div",{class:"title-wrapper"},[a.title?e("div",{class:"title"},decodeURIComponent(a.title)):null,e("div",{class:"actions"},[e("button",{class:"action",innerHTML:y,onClick:()=>{o.value=!o.value}})])]),e("div",{class:["repl-container",o.value?"show-code":"hide-code"]},[n.value?e("div",{class:"preview-loading-wrapper"},e(h)):null,s.value?e(s.value,{store:l.value,...t.value}):null])])]}});export{R as default};
|
||||
Reference in New Issue
Block a user