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@a4fcb8f1f6 🚀
This commit is contained in:
1
assets/VuePlayground-192c1c06.js
Normal file
1
assets/VuePlayground-192c1c06.js
Normal file
@@ -0,0 +1 @@
|
||||
import{I as p,f as d,_ as v}from"./app-843bbcab.js";import{c,r as n,y as f,h as m,o as y,j as a}from"./framework-caa722f8.js";const g=e=>d({},{showCompileOutput:!1,clearConsole:!1,ssr:!1},JSON.parse(decodeURIComponent(e)));var R=c({name:"VuePlayground",props:{title:{type:String,default:""},files:{type:String,required:!0},settings:{type:String,default:"{}"}},setup(e){const o=n(!0),t=f(),l=n(),s=m(()=>g(e.settings)),r=async()=>{const{ReplStore:u,Repl:i}=await v(()=>import("./vue-repl-30a5a0a0.js"),["assets/vue-repl-30a5a0a0.js","assets/app-843bbcab.js","assets/framework-caa722f8.js"]);t.value=i,l.value=new u({serializedState:decodeURIComponent(e.files)}),s.value.vueVersion&&await l.value.setVueVersion(s.value.vueVersion)};return y(async()=>{await r(),o.value=!1}),()=>[a("div",{class:"vue-playground-wrapper"},[e.title?a("div",{class:"header"},decodeURIComponent(e.title)):null,a("div",{class:"repl-container"},[o.value?a(p,{class:"preview-loading",height:192}):null,t.value?a(t.value,{store:l.value,autoResize:!0,...s.value,layout:"horizontal"}):null])])]}});export{R as default};
|
||||
Reference in New Issue
Block a user