@vtj/pro 0.10.8 → 0.10.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- var F=Object.defineProperty,M=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?F(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,w=(o,e)=>{for(var t in e||(e={}))q.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))H.call(e,t)&&E(o,t,e[t]);return o},v=(o,e)=>M(o,T(e));var A=(o,e,t)=>new Promise((u,i)=>{var m=n=>{try{r(t.next(n))}catch(a){i(a)}},l=n=>{try{r(t.throw(n))}catch(a){i(a)}},r=n=>n.done?u(n.value):Promise.resolve(n.value).then(m,l);r((t=t.apply(o,e)).next())});import{useRoute as K}from"./vue-router-Dv428VRb.js";import{A as W,O as j,I as G,M as J,a as N}from"./index-CixnE82_.js";import{a as U}from"./element-plus-oE4l1K8x.js";import"./vxe-prHpAmaX.js";import{u as P,I as V,E as Y}from"./extension-C1GTcSPg.js";import{n as C,l as z}from"./utils-Du5uEC3_.js";import{d as D,e as L,aC as B,f as Q,c as X,o as Z}from"./vue-DpQa2Qs4.js";import{_ as ee}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-B8dwQNlP.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-dS-W09Vv.js";import"./@element-plus-icons-vue-CRZvKNrz.js";import"./shared-CFJLz5mK.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-BEvXV3hb.js";const te=D({__name:"index",setup(o){return A(this,null,function*(){let e,t;const u=W({loading:z,notify:C}),i=K(),m=L(),l=new j(G(C)),r=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e),{options:n,adapters:a}=r?([e,t]=B(()=>new Y(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:d="/",history:I="hash",base:g="/",pageRouteName:O="page"}=r||{},$=a==null?void 0:a.access,S=a==null?void 0:a.remote,b=$?new J(w({alert:U.alert,storageKey:N},$)):void 0,R=()=>I==="hash",k=s=>s==="/"?"":(s.startsWith("/")&&(s=s.substring(1)),s.endsWith("/")||(s=s+"/"),s);P.set("Switcher",{props:{onClick:s=>{const _=s.platform==="uniapp",c=location.pathname;let p=c===`${d}__vtj__/`?d:c;const f=s.currentFile;if(f&&f.type==="page"&&s.homepage!==f.id){const x=`${k(g)}${_?"pages":O}/${f.id}`;p=R()?`${p}#/${x}`:`${p}${x}`}window.open(p,"VTJProject")}}}),P.set("Previewer",{props:{path:(s,_)=>{const c=location.pathname;return _.platform==="uniapp"?`${c}uni/#/pages/${s.id}`:`${c}#/preview/${s.id}`}}});const h=new V(v(w({container:m,service:l,materialPath:d,pageBasePath:g==="/"?"":g},n),{adapter:Object.assign(u,{access:b,remote:S},(n==null?void 0:n.adapter)||{})}));return h.ready(()=>{h.openFile(i.query.id)}),Q(()=>i.query.id,s=>{h.openFile(s)}),(s,_)=>(Z(),X("div",{class:"designer",ref_key:"container",ref:m},null,512))})}}),$e=ee(te,[["__scopeId","data-v-fbbd9127"]]);export{$e as default};
1
+ var F=Object.defineProperty,M=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?F(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,w=(o,e)=>{for(var t in e||(e={}))q.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))H.call(e,t)&&E(o,t,e[t]);return o},v=(o,e)=>M(o,T(e));var A=(o,e,t)=>new Promise((u,i)=>{var m=n=>{try{r(t.next(n))}catch(a){i(a)}},l=n=>{try{r(t.throw(n))}catch(a){i(a)}},r=n=>n.done?u(n.value):Promise.resolve(n.value).then(m,l);r((t=t.apply(o,e)).next())});import{useRoute as K}from"./vue-router-Dv428VRb.js";import{A as W,O as j,I as G,M as J,a as N}from"./index-DsCqhanp.js";import{a as U}from"./element-plus-oE4l1K8x.js";import"./vxe-prHpAmaX.js";import{u as P,I as V,E as Y}from"./extension-DeER1NbG.js";import{n as C,l as z}from"./utils-Du5uEC3_.js";import{d as D,e as L,aC as B,f as Q,c as X,o as Z}from"./vue-DpQa2Qs4.js";import{_ as ee}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-B8dwQNlP.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-dS-W09Vv.js";import"./@element-plus-icons-vue-CRZvKNrz.js";import"./shared-CFJLz5mK.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-BEvXV3hb.js";const te=D({__name:"index",setup(o){return A(this,null,function*(){let e,t;const u=W({loading:z,notify:C}),i=K(),m=L(),l=new j(G(C)),r=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e),{options:n,adapters:a}=r?([e,t]=B(()=>new Y(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:d="/",history:I="hash",base:g="/",pageRouteName:O="page"}=r||{},$=a==null?void 0:a.access,S=a==null?void 0:a.remote,b=$?new J(w({alert:U.alert,storageKey:N},$)):void 0,R=()=>I==="hash",k=s=>s==="/"?"":(s.startsWith("/")&&(s=s.substring(1)),s.endsWith("/")||(s=s+"/"),s);P.set("Switcher",{props:{onClick:s=>{const _=s.platform==="uniapp",c=location.pathname;let p=c===`${d}__vtj__/`?d:c;const f=s.currentFile;if(f&&f.type==="page"&&s.homepage!==f.id){const x=`${k(g)}${_?"pages":O}/${f.id}`;p=R()?`${p}#/${x}`:`${p}${x}`}window.open(p,"VTJProject")}}}),P.set("Previewer",{props:{path:(s,_)=>{const c=location.pathname;return _.platform==="uniapp"?`${c}uni/#/pages/${s.id}`:`${c}#/preview/${s.id}`}}});const h=new V(v(w({container:m,service:l,materialPath:d,pageBasePath:g==="/"?"":g},n),{adapter:Object.assign(u,{access:b,remote:S},(n==null?void 0:n.adapter)||{})}));return h.ready(()=>{h.openFile(i.query.id)}),Q(()=>i.query.id,s=>{h.openFile(s)}),(s,_)=>(Z(),X("div",{class:"designer",ref_key:"container",ref:m},null,512))})}}),$e=ee(te,[["__scopeId","data-v-fbbd9127"]]);export{$e as default};