@vtj/pro 0.7.0
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.
- package/LICENSE +21 -0
- package/dist/@vtj/assets/antdv/index.umd.js +7 -0
- package/dist/@vtj/assets/element/index.umd.js +7 -0
- package/dist/@vtj/assets/ui/index.umd.js +7 -0
- package/dist/@vtj/deps/@vtj/icons/index.umd.js +7 -0
- package/dist/@vtj/deps/@vtj/icons/style.css +1 -0
- package/dist/@vtj/deps/@vtj/ui/index.umd.js +7 -0
- package/dist/@vtj/deps/@vtj/ui/style.css +1 -0
- package/dist/@vtj/deps/@vtj/utils/index.umd.js +59 -0
- package/dist/@vtj/deps/ant-design-vue/antd.min.js +3 -0
- package/dist/@vtj/deps/ant-design-vue/dayjs/dayjs.min.js +1 -0
- package/dist/@vtj/deps/ant-design-vue/dayjs/plugin/advancedFormat.js +1 -0
- package/dist/@vtj/deps/ant-design-vue/dayjs/plugin/customParseFormat.js +1 -0
- package/dist/@vtj/deps/ant-design-vue/dayjs/plugin/localeData.js +1 -0
- package/dist/@vtj/deps/ant-design-vue/dayjs/plugin/quarterOfYear.js +1 -0
- package/dist/@vtj/deps/ant-design-vue/dayjs/plugin/weekOfYear.js +1 -0
- package/dist/@vtj/deps/ant-design-vue/dayjs/plugin/weekYear.js +1 -0
- package/dist/@vtj/deps/ant-design-vue/dayjs/plugin/weekday.js +1 -0
- package/dist/@vtj/deps/ant-design-vue/reset.css +253 -0
- package/dist/@vtj/deps/echarts/echarts.min.js +45 -0
- package/dist/@vtj/deps/element-plus/index.css +1 -0
- package/dist/@vtj/deps/element-plus/index.full.min.js +78 -0
- package/dist/@vtj/deps/vue/vue.global.prod.js +11 -0
- package/dist/@vtj/deps/vue-router/vue-router.global.prod.js +6 -0
- package/dist/@vtj/materials/assets/antdv/index.umd.js +7 -0
- package/dist/@vtj/materials/assets/element/index.umd.js +23 -0
- package/dist/@vtj/materials/assets/ui/index.umd.js +7 -0
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +7 -0
- package/dist/@vtj/materials/deps/@vtj/icons/style.css +1 -0
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +7 -0
- package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -0
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +59 -0
- package/dist/@vtj/materials/deps/ant-design-vue/antd.min.js +3 -0
- package/dist/@vtj/materials/deps/ant-design-vue/dayjs/dayjs.min.js +1 -0
- package/dist/@vtj/materials/deps/ant-design-vue/dayjs/plugin/advancedFormat.js +1 -0
- package/dist/@vtj/materials/deps/ant-design-vue/dayjs/plugin/customParseFormat.js +1 -0
- package/dist/@vtj/materials/deps/ant-design-vue/dayjs/plugin/localeData.js +1 -0
- package/dist/@vtj/materials/deps/ant-design-vue/dayjs/plugin/quarterOfYear.js +1 -0
- package/dist/@vtj/materials/deps/ant-design-vue/dayjs/plugin/weekOfYear.js +1 -0
- package/dist/@vtj/materials/deps/ant-design-vue/dayjs/plugin/weekYear.js +1 -0
- package/dist/@vtj/materials/deps/ant-design-vue/dayjs/plugin/weekday.js +1 -0
- package/dist/@vtj/materials/deps/ant-design-vue/reset.css +253 -0
- package/dist/@vtj/materials/deps/echarts/echarts.min.js +45 -0
- package/dist/@vtj/materials/deps/element-plus/index.css +1 -0
- package/dist/@vtj/materials/deps/element-plus/index.full.min.js +78 -0
- package/dist/@vtj/materials/deps/vue/vue.global.prod.js +11 -0
- package/dist/@vtj/materials/deps/vue-router/vue-router.global.prod.js +6 -0
- package/dist/assets/@ctrl-ZggoHSuR.js +1 -0
- package/dist/assets/@element-plus-0iGvOhcs.js +1 -0
- package/dist/assets/@floating-ui-fSnuQPPg.js +1 -0
- package/dist/assets/@popperjs-UUtjUkU3.js +1 -0
- package/dist/assets/@vue-3K-Vdqr2.js +25 -0
- package/dist/assets/@vueuse-1-Jun0o2.js +1 -0
- package/dist/assets/Editor-ctkAn2cu-J9BpKj5_.js +7 -0
- package/dist/assets/async-validator-dHyGCDyC.js +12 -0
- package/dist/assets/codicon-B7HMvkfX.ttf +0 -0
- package/dist/assets/css.worker-5fHi_Glb.js +84 -0
- package/dist/assets/dayjs-nXyUZ0Ym.js +1 -0
- package/dist/assets/echarts-w40geAFS.js +1 -0
- package/dist/assets/editor.worker-E2YKyfJw.js +11 -0
- package/dist/assets/element-plus-5Wi4i1TZ.js +20 -0
- package/dist/assets/element-plus-CrqXjnKo.css +1 -0
- package/dist/assets/escape-html-tGLYdTR1.js +7 -0
- package/dist/assets/html.worker-86R1FDoj.js +458 -0
- package/dist/assets/index-5bASjMSy.js +1 -0
- package/dist/assets/index-AjK7aYfE.css +1 -0
- package/dist/assets/index-Lxhk7rJd.css +1 -0
- package/dist/assets/index-MnFtNpiI.js +7 -0
- package/dist/assets/index-XhAT5uBa.css +1 -0
- package/dist/assets/index-mCpGBrjx.js +154 -0
- package/dist/assets/json.worker-e2MIaH_v.js +42 -0
- package/dist/assets/lodash-es-vX_HzjT0.js +1 -0
- package/dist/assets/lodash-unified-w40geAFS.js +1 -0
- package/dist/assets/memoize-one-JaOscZgY.js +1 -0
- package/dist/assets/monaco-editor-cf__QvdG.css +1 -0
- package/dist/assets/monaco-editor-ginzV8u1.js +1479 -0
- package/dist/assets/normalize-wheel-es-1urBKM79.js +14 -0
- package/dist/assets/preview-7lJVcnC8.js +7 -0
- package/dist/assets/ts.worker-NzTvDa2F.js +37021 -0
- package/dist/assets/tslib-w40geAFS.js +1 -0
- package/dist/assets/vue-Xy_G9hDD.js +5 -0
- package/dist/assets/vue-demi-w40geAFS.js +1 -0
- package/dist/assets/vue-router-EE3hBg2_.js +5 -0
- package/dist/assets/zrender-w40geAFS.js +1 -0
- package/dist/index.html +129 -0
- package/dist/link.js +115 -0
- package/package.json +50 -0
- package/src/index.ts +9 -0
- package/src/vite.d.ts +1 -0
- package/src/vite.mjs +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{ax as a,ay as e,E as s,az as o,aA as t,aB as r,aC as n,F as i,aD as l,aE as c,aF as d,aG as b,T as p,a7 as m,aH as f,a0 as u,a3 as S,aI as h,aJ as R,aK as v,aL as y,aM as C,as as g,aN as T,a6 as w,aO as E,j as M,at as x,S as k,W as D,c as P,a as V,aP as B,aQ as N,aR as A,aS as H,ab as O,aT as z,Y as F,Z as I,k as U,aU as K,d as j,aV as _,aW as G,aX as L,aY as W,aZ as q,a_ as J,a$ as Q,b0 as X,b1 as Y,b2 as Z,ao as $,h as aa,g as ea,b3 as sa,am as oa,J as ta,b4 as ra,b5 as na,b6 as ia,b7 as la,b8 as ca,G as da,b9 as ba,ba as pa,bb as ma,bc as fa,m as ua,bd as Sa,be as ha,D as Ra,an as va,bf as ya,bg as Ca,Q as ga,n as Ta,O as wa,ad as Ea,P as Ma,bh as xa,K as ka,l as Da,ai as Pa,a8 as Va,bi as Ba,i as Na,bj as Aa,bk as Ha,b as Oa,bl as za,I as Fa,a2 as Ia,o as Ua,bm as Ka,L as ja,bn as _a,bo as Ga,bp as La,a1 as Wa,e as qa,r as Ja,bq as Qa,aw as Xa,a9 as Ya,M as Za,ah as $a,aq as ae,V as ee,br as se,bs as oe,bt as te,bu as re,bv as ne,av as ie,bw as le,s as ce,bx as de,by as be,bz as pe,X as me,bA as fe,al as ue,ae as Se,t as he,p as Re,bB as ve,bC as ye,bD as Ce,u as ge,a4 as Te,bE as we,bF as Ee,bG as Me,bH as xe,R as ke,bI as De,af as Pe,bJ as Ve,ag as Be,bK as Ne,ak as Ae,_ as He,bL as Oe,B as ze,f as Fe,w as Ie,bM as Ue,bN as Ke,bO as je,U as _e,bP as Ge,$ as Le,aa as We,bQ as qe,a5 as Je,bR as Qe}from"./@vue-3K-Vdqr2.js";/**
|
|
2
|
+
* vue v3.4.14
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/const Xe=()=>{},Ze=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:a,BaseTransitionPropsValidators:e,Comment:s,DeprecationTypes:o,EffectScope:t,ErrorCodes:r,ErrorTypeStrings:n,Fragment:i,KeepAlive:l,ReactiveEffect:c,Static:d,Suspense:b,Teleport:p,Text:m,TrackOpTypes:f,Transition:u,TransitionGroup:S,TriggerOpTypes:h,VueElement:R,assertNumber:v,callWithAsyncErrorHandling:y,callWithErrorHandling:C,camelize:g,capitalize:T,cloneVNode:w,compatUtils:E,compile:Xe,computed:M,createApp:x,createBlock:k,createCommentVNode:D,createElementBlock:P,createElementVNode:V,createHydrationRenderer:B,createPropsRestProxy:N,createRenderer:A,createSSRApp:H,createSlots:O,createStaticVNode:z,createTextVNode:F,createVNode:I,customRef:U,defineAsyncComponent:K,defineComponent:j,defineCustomElement:_,defineEmits:G,defineExpose:L,defineModel:W,defineOptions:q,defineProps:J,defineSSRCustomElement:Q,defineSlots:X,devtools:Y,effect:Z,effectScope:$,getCurrentInstance:aa,getCurrentScope:ea,getTransitionRawChildren:sa,guardReactiveProps:oa,h:ta,handleError:ra,hasInjectionContext:na,hydrate:ia,initCustomFormatter:la,initDirectivesForSSR:ca,inject:da,isMemoSame:ba,isProxy:pa,isReactive:ma,isReadonly:fa,isRef:ua,isRuntimeOnly:Sa,isShallow:ha,isVNode:Ra,markRaw:va,mergeDefaults:ya,mergeModels:Ca,mergeProps:ga,nextTick:Ta,normalizeClass:wa,normalizeProps:Ea,normalizeStyle:Ma,onActivated:xa,onBeforeMount:ka,onBeforeUnmount:Da,onBeforeUpdate:Pa,onDeactivated:Va,onErrorCaptured:Ba,onMounted:Na,onRenderTracked:Aa,onRenderTriggered:Ha,onScopeDispose:Oa,onServerPrefetch:za,onUnmounted:Fa,onUpdated:Ia,openBlock:Ua,popScopeId:Ka,provide:ja,proxyRefs:_a,pushScopeId:Ga,queuePostFlushCb:La,reactive:Wa,readonly:qa,ref:Ja,registerRuntimeCompiler:Qa,render:Xa,renderList:Ya,renderSlot:Za,resolveComponent:$a,resolveDirective:ae,resolveDynamicComponent:ee,resolveFilter:se,resolveTransitionHooks:oe,setBlockTracking:te,setDevtoolsHook:re,setTransitionHooks:ne,shallowReactive:ie,shallowReadonly:le,shallowRef:ce,ssrContextKey:de,ssrUtils:be,stop:pe,toDisplayString:me,toHandlerKey:fe,toHandlers:ue,toRaw:Se,toRef:he,toRefs:Re,toValue:ve,transformVNodeArgs:ye,triggerRef:Ce,unref:ge,useAttrs:Te,useCssModule:we,useCssVars:Ee,useModel:Me,useSSRContext:xe,useSlots:ke,useTransitionState:De,vModelCheckbox:Pe,vModelDynamic:Ve,vModelRadio:Be,vModelSelect:Ne,vModelText:Ae,vShow:He,version:Oe,warn:ze,watch:Fe,watchEffect:Ie,watchPostEffect:Ue,watchSyncEffect:Ke,withAsyncContext:je,withCtx:_e,withDefaults:Ge,withDirectives:Le,withKeys:We,withMemo:qe,withModifiers:Je,withScopeId:Qe},Symbol.toStringTag,{value:"Module"}));export{Ze as O};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{s as ct,u as Y,av as at,G as I,j as T,n as lt,I as ut,a8 as ft,bh as ht,d as ze,a1 as pt,J as Ue,L as ae,r as dt,f as mt}from"./@vue-3K-Vdqr2.js";/*!
|
|
2
|
+
* vue-router v4.2.5
|
|
3
|
+
* (c) 2023 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/const z=typeof window<"u";function Ke(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const S=Object.assign;function le(e,t){const n={};for(const r in t){const o=t[r];n[r]=M(o)?o.map(e):e(o)}return n}const X=()=>{},M=Array.isArray,gt=/\/$/,vt=e=>e.replace(gt,"");function ue(e,t,n="/"){let r,o={},a="",d="";const h=t.indexOf("#");let c=t.indexOf("?");return h<c&&h>=0&&(c=-1),c>-1&&(r=t.slice(0,c),a=t.slice(c+1,h>-1?h:t.length),o=e(a)),h>-1&&(r=r||t.slice(0,h),d=t.slice(h,t.length)),r=Pt(r??t,n),{fullPath:r+(a&&"?")+a+d,path:r,query:o,hash:d}}function yt(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ke(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Rt(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&U(t.matched[r],n.matched[o])&&Ve(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function U(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ve(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Et(e[n],t[n]))return!1;return!0}function Et(e,t){return M(e)?Ae(e,t):M(t)?Ae(t,e):e===t}function Ae(e,t){return M(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Pt(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,d,h;for(d=0;d<r.length;d++)if(h=r[d],h!==".")if(h==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(d-(d===r.length?1:0)).join("/")}var K;(function(e){e.pop="pop",e.push="push"})(K||(K={}));var G;(function(e){e.back="back",e.forward="forward",e.unknown=""})(G||(G={}));const fe="";function De(e){if(!e)if(z){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),vt(e)}const wt=/^[^#]+#/;function We(e,t){return e.replace(wt,"#")+t}function St(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const te=()=>({left:window.pageXOffset,top:window.pageYOffset});function Ct(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=St(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Oe(e,t){return(history.state?history.state.position-t:-1)+e}const pe=new Map;function bt(e,t){pe.set(e,t)}function kt(e){const t=pe.get(e);return pe.delete(e),t}let At=()=>location.protocol+"//"+location.host;function Qe(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let h=o.includes(e.slice(a))?e.slice(a).length:1,c=o.slice(h);return c[0]!=="/"&&(c="/"+c),ke(c,"")}return ke(n,e)+r+o}function Ot(e,t,n,r){let o=[],a=[],d=null;const h=({state:f})=>{const g=Qe(e,location),R=n.value,k=t.value;let b=0;if(f){if(n.value=g,t.value=f,d&&d===R){d=null;return}b=k?f.position-k.position:0}else r(g);o.forEach(E=>{E(n.value,R,{delta:b,type:K.pop,direction:b?b>0?G.forward:G.back:G.unknown})})};function c(){d=n.value}function u(f){o.push(f);const g=()=>{const R=o.indexOf(f);R>-1&&o.splice(R,1)};return a.push(g),g}function s(){const{history:f}=window;f.state&&f.replaceState(S({},f.state,{scroll:te()}),"")}function l(){for(const f of a)f();a=[],window.removeEventListener("popstate",h),window.removeEventListener("beforeunload",s)}return window.addEventListener("popstate",h),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:c,listen:u,destroy:l}}function _e(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?te():null}}function _t(e){const{history:t,location:n}=window,r={value:Qe(e,n)},o={value:t.state};o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(c,u,s){const l=e.indexOf("#"),f=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+c:At()+e+c;try{t[s?"replaceState":"pushState"](u,"",f),o.value=u}catch(g){console.error(g),n[s?"replace":"assign"](f)}}function d(c,u){const s=S({},t.state,_e(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});a(c,s,!0),r.value=c}function h(c,u){const s=S({},o.value,t.state,{forward:c,scroll:te()});a(s.current,s,!0);const l=S({},_e(r.value,c,null),{position:s.position+1},u);a(c,l,!1),r.value=c}return{location:r,state:o,push:h,replace:d}}function xt(e){e=De(e);const t=_t(e),n=Ot(e,t.state,t.location,t.replace);function r(a,d=!0){d||n.pauseListeners(),history.go(a)}const o=S({location:"",base:e,go:r,createHref:We.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function gn(e=""){let t=[],n=[fe],r=0;e=De(e);function o(h){r++,r!==n.length&&n.splice(r),n.push(h)}function a(h,c,{direction:u,delta:s}){const l={direction:u,delta:s,type:K.pop};for(const f of t)f(h,c,l)}const d={location:fe,state:{},base:e,createHref:We.bind(null,e),replace(h){n.splice(r--,1),o(h)},push(h,c){o(h)},listen(h){return t.push(h),()=>{const c=t.indexOf(h);c>-1&&t.splice(c,1)}},destroy(){t=[],n=[fe],r=0},go(h,c=!0){const u=this.location,s=h<0?G.back:G.forward;r=Math.max(0,Math.min(r+h,n.length-1)),c&&a(this.location,u,{direction:s,delta:h})}};return Object.defineProperty(d,"location",{enumerable:!0,get:()=>n[r]}),d}function vn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),xt(e)}function Lt(e){return typeof e=="string"||e&&typeof e=="object"}function Fe(e){return typeof e=="string"||typeof e=="symbol"}const $={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Ye=Symbol("");var xe;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(xe||(xe={}));function V(e,t){return S(new Error,{type:e,[Ye]:!0},t)}function N(e,t){return e instanceof Error&&Ye in e&&(t==null||!!(e.type&t))}const Le="[^/]+?",Mt={sensitive:!1,strict:!1,start:!0,end:!0},Tt=/[.+*?^${}()[\]/\\]/g;function jt(e,t){const n=S({},Mt,t),r=[];let o=n.start?"^":"";const a=[];for(const u of e){const s=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let l=0;l<u.length;l++){const f=u[l];let g=40+(n.sensitive?.25:0);if(f.type===0)l||(o+="/"),o+=f.value.replace(Tt,"\\$&"),g+=40;else if(f.type===1){const{value:R,repeatable:k,optional:b,regexp:E}=f;a.push({name:R,repeatable:k,optional:b});const w=E||Le;if(w!==Le){g+=10;try{new RegExp(`(${w})`)}catch(L){throw new Error(`Invalid custom RegExp for param "${R}" (${w}): `+L.message)}}let _=k?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;l||(_=b&&u.length<2?`(?:/${_})`:"/"+_),b&&(_+="?"),o+=_,g+=20,b&&(g+=-8),k&&(g+=-20),w===".*"&&(g+=-50)}s.push(g)}r.push(s)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const d=new RegExp(o,n.sensitive?"":"i");function h(u){const s=u.match(d),l={};if(!s)return null;for(let f=1;f<s.length;f++){const g=s[f]||"",R=a[f-1];l[R.name]=g&&R.repeatable?g.split("/"):g}return l}function c(u){let s="",l=!1;for(const f of e){(!l||!s.endsWith("/"))&&(s+="/"),l=!1;for(const g of f)if(g.type===0)s+=g.value;else if(g.type===1){const{value:R,repeatable:k,optional:b}=g,E=R in u?u[R]:"";if(M(E)&&!k)throw new Error(`Provided param "${R}" is an array but it is not repeatable (* or + modifiers)`);const w=M(E)?E.join("/"):E;if(!w)if(b)f.length<2&&(s.endsWith("/")?s=s.slice(0,-1):l=!0);else throw new Error(`Missing required param "${R}"`);s+=w}}return s||"/"}return{re:d,score:r,keys:a,parse:h,stringify:c}}function Nt(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function It(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const a=Nt(r[n],o[n]);if(a)return a;n++}if(Math.abs(o.length-r.length)===1){if(Me(r))return 1;if(Me(o))return-1}return o.length-r.length}function Me(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const $t={type:0,value:""},Ht=/[a-zA-Z0-9_]/;function Bt(e){if(!e)return[[]];if(e==="/")return[[$t]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,r=n;const o=[];let a;function d(){a&&o.push(a),a=[]}let h=0,c,u="",s="";function l(){u&&(n===0?a.push({type:0,value:u}):n===1||n===2||n===3?(a.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:s,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=c}for(;h<e.length;){if(c=e[h++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(u&&l(),d()):c===":"?(l(),n=1):f();break;case 4:f(),n=r;break;case 1:c==="("?n=2:Ht.test(c)?f():(l(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&h--);break;case 2:c===")"?s[s.length-1]=="\\"?s=s.slice(0,-1)+c:n=3:s+=c;break;case 3:l(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&h--,s="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),l(),d(),o}function Gt(e,t,n){const r=jt(Bt(e.path),n),o=S(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function qt(e,t){const n=[],r=new Map;t=Ne({strict:!1,end:!0,sensitive:!1},t);function o(s){return r.get(s)}function a(s,l,f){const g=!f,R=zt(s);R.aliasOf=f&&f.record;const k=Ne(t,s),b=[R];if("alias"in s){const _=typeof s.alias=="string"?[s.alias]:s.alias;for(const L of _)b.push(S({},R,{components:f?f.record.components:R.components,path:L,aliasOf:f?f.record:R}))}let E,w;for(const _ of b){const{path:L}=_;if(l&&L[0]!=="/"){const B=l.record.path,j=B[B.length-1]==="/"?"":"/";_.path=l.record.path+(L&&j+L)}if(E=Gt(_,l,k),f?f.alias.push(E):(w=w||E,w!==E&&w.alias.push(E),g&&s.name&&!je(E)&&d(s.name)),R.children){const B=R.children;for(let j=0;j<B.length;j++)a(B[j],E,f&&f.children[j])}f=f||E,(E.record.components&&Object.keys(E.record.components).length||E.record.name||E.record.redirect)&&c(E)}return w?()=>{d(w)}:X}function d(s){if(Fe(s)){const l=r.get(s);l&&(r.delete(s),n.splice(n.indexOf(l),1),l.children.forEach(d),l.alias.forEach(d))}else{const l=n.indexOf(s);l>-1&&(n.splice(l,1),s.record.name&&r.delete(s.record.name),s.children.forEach(d),s.alias.forEach(d))}}function h(){return n}function c(s){let l=0;for(;l<n.length&&It(s,n[l])>=0&&(s.record.path!==n[l].record.path||!Xe(s,n[l]));)l++;n.splice(l,0,s),s.record.name&&!je(s)&&r.set(s.record.name,s)}function u(s,l){let f,g={},R,k;if("name"in s&&s.name){if(f=r.get(s.name),!f)throw V(1,{location:s});k=f.record.name,g=S(Te(l.params,f.keys.filter(w=>!w.optional).map(w=>w.name)),s.params&&Te(s.params,f.keys.map(w=>w.name))),R=f.stringify(g)}else if("path"in s)R=s.path,f=n.find(w=>w.re.test(R)),f&&(g=f.parse(R),k=f.record.name);else{if(f=l.name?r.get(l.name):n.find(w=>w.re.test(l.path)),!f)throw V(1,{location:s,currentLocation:l});k=f.record.name,g=S({},l.params,s.params),R=f.stringify(g)}const b=[];let E=f;for(;E;)b.unshift(E.record),E=E.parent;return{name:k,path:R,params:g,matched:b,meta:Kt(b)}}return e.forEach(s=>a(s)),{addRoute:a,resolve:u,removeRoute:d,getRoutes:h,getRecordMatcher:o}}function Te(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function zt(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Ut(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Ut(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function je(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Kt(e){return e.reduce((t,n)=>S(t,n.meta),{})}function Ne(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Xe(e,t){return t.children.some(n=>n===e||Xe(e,n))}const Ze=/#/g,Vt=/&/g,Dt=/\//g,Wt=/=/g,Qt=/\?/g,Je=/\+/g,Ft=/%5B/g,Yt=/%5D/g,et=/%5E/g,Xt=/%60/g,tt=/%7B/g,Zt=/%7C/g,nt=/%7D/g,Jt=/%20/g;function ge(e){return encodeURI(""+e).replace(Zt,"|").replace(Ft,"[").replace(Yt,"]")}function en(e){return ge(e).replace(tt,"{").replace(nt,"}").replace(et,"^")}function de(e){return ge(e).replace(Je,"%2B").replace(Jt,"+").replace(Ze,"%23").replace(Vt,"%26").replace(Xt,"`").replace(tt,"{").replace(nt,"}").replace(et,"^")}function tn(e){return de(e).replace(Wt,"%3D")}function nn(e){return ge(e).replace(Ze,"%23").replace(Qt,"%3F")}function rn(e){return e==null?"":nn(e).replace(Dt,"%2F")}function ee(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function on(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const a=r[o].replace(Je," "),d=a.indexOf("="),h=ee(d<0?a:a.slice(0,d)),c=d<0?null:ee(a.slice(d+1));if(h in t){let u=t[h];M(u)||(u=t[h]=[u]),u.push(c)}else t[h]=c}return t}function Ie(e){let t="";for(let n in e){const r=e[n];if(n=tn(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(M(r)?r.map(a=>a&&de(a)):[r&&de(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function sn(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=M(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const ve=Symbol(""),$e=Symbol(""),ne=Symbol(""),ye=Symbol(""),me=Symbol("");function F(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function rt(e,t,n){const r=()=>{e[t].delete(n)};ut(r),ft(r),ht(()=>{e[t].add(n)}),e[t].add(n)}function yn(e){const t=I(ve,{}).value;t&&rt(t,"leaveGuards",e)}function Rn(e){const t=I(ve,{}).value;t&&rt(t,"updateGuards",e)}function H(e,t,n,r,o){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((d,h)=>{const c=l=>{l===!1?h(V(4,{from:n,to:t})):l instanceof Error?h(l):Lt(l)?h(V(2,{from:t,to:l})):(a&&r.enterCallbacks[o]===a&&typeof l=="function"&&a.push(l),d())},u=e.call(r&&r.instances[o],t,n,c);let s=Promise.resolve(u);e.length<3&&(s=s.then(c)),s.catch(l=>h(l))})}function he(e,t,n,r){const o=[];for(const a of e)for(const d in a.components){let h=a.components[d];if(!(t!=="beforeRouteEnter"&&!a.instances[d]))if(cn(h)){const u=(h.__vccOpts||h)[t];u&&o.push(H(u,n,r,a,d))}else{let c=h();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${a.path}"`));const s=Ke(u)?u.default:u;a.components[d]=s;const f=(s.__vccOpts||s)[t];return f&&H(f,n,r,a,d)()}))}}return o}function cn(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function En(e){return e.matched.every(t=>t.redirect)?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map(t=>t.components&&Promise.all(Object.keys(t.components).reduce((n,r)=>{const o=t.components[r];return typeof o=="function"&&!("displayName"in o)&&n.push(o().then(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${t.path}". Ensure you passed a function that returns a promise.`));const d=Ke(a)?a.default:a;t.components[r]=d})),n},[])))).then(()=>e)}function He(e){const t=I(ne),n=I(ye),r=T(()=>t.resolve(Y(e.to))),o=T(()=>{const{matched:c}=r.value,{length:u}=c,s=c[u-1],l=n.matched;if(!s||!l.length)return-1;const f=l.findIndex(U.bind(null,s));if(f>-1)return f;const g=Be(c[u-2]);return u>1&&Be(s)===g&&l[l.length-1].path!==g?l.findIndex(U.bind(null,c[u-2])):f}),a=T(()=>o.value>-1&&fn(n.params,r.value.params)),d=T(()=>o.value>-1&&o.value===n.matched.length-1&&Ve(n.params,r.value.params));function h(c={}){return un(c)?t[Y(e.replace)?"replace":"push"](Y(e.to)).catch(X):Promise.resolve()}return{route:r,href:T(()=>r.value.href),isActive:a,isExactActive:d,navigate:h}}const an=ze({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:He,setup(e,{slots:t}){const n=pt(He(e)),{options:r}=I(ne),o=T(()=>({[Ge(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ge(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:Ue("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),ln=an;function un(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function fn(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!M(o)||o.length!==r.length||r.some((a,d)=>a!==o[d]))return!1}return!0}function Be(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ge=(e,t,n)=>e??t??n,hn=ze({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=I(me),o=T(()=>e.route||r.value),a=I($e,0),d=T(()=>{let u=Y(a);const{matched:s}=o.value;let l;for(;(l=s[u])&&!l.components;)u++;return u}),h=T(()=>o.value.matched[d.value]);ae($e,T(()=>d.value+1)),ae(ve,h),ae(me,o);const c=dt();return mt(()=>[c.value,h.value,e.name],([u,s,l],[f,g,R])=>{s&&(s.instances[l]=u,g&&g!==s&&u&&u===f&&(s.leaveGuards.size||(s.leaveGuards=g.leaveGuards),s.updateGuards.size||(s.updateGuards=g.updateGuards))),u&&s&&(!g||!U(s,g)||!f)&&(s.enterCallbacks[l]||[]).forEach(k=>k(u))},{flush:"post"}),()=>{const u=o.value,s=e.name,l=h.value,f=l&&l.components[s];if(!f)return qe(n.default,{Component:f,route:u});const g=l.props[s],R=g?g===!0?u.params:typeof g=="function"?g(u):g:null,b=Ue(f,S({},R,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(l.instances[s]=null)},ref:c}));return qe(n.default,{Component:b,route:u})||b}}});function qe(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const pn=hn;function Pn(e){const t=qt(e.routes,e),n=e.parseQuery||on,r=e.stringifyQuery||Ie,o=e.history,a=F(),d=F(),h=F(),c=ct($);let u=$;z&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const s=le.bind(null,i=>""+i),l=le.bind(null,rn),f=le.bind(null,ee);function g(i,m){let p,v;return Fe(i)?(p=t.getRecordMatcher(i),v=m):v=i,t.addRoute(v,p)}function R(i){const m=t.getRecordMatcher(i);m&&t.removeRoute(m)}function k(){return t.getRoutes().map(i=>i.record)}function b(i){return!!t.getRecordMatcher(i)}function E(i,m){if(m=S({},m||c.value),typeof i=="string"){const y=ue(n,i,m.path),O=t.resolve({path:y.path},m),Q=o.createHref(y.fullPath);return S(y,O,{params:f(O.params),hash:ee(y.hash),redirectedFrom:void 0,href:Q})}let p;if("path"in i)p=S({},i,{path:ue(n,i.path,m.path).path});else{const y=S({},i.params);for(const O in y)y[O]==null&&delete y[O];p=S({},i,{params:l(y)}),m.params=l(m.params)}const v=t.resolve(p,m),C=i.hash||"";v.params=s(f(v.params));const A=yt(r,S({},i,{hash:en(C),path:v.path})),P=o.createHref(A);return S({fullPath:A,hash:C,query:r===Ie?sn(i.query):i.query||{}},v,{redirectedFrom:void 0,href:P})}function w(i){return typeof i=="string"?ue(n,i,c.value.path):S({},i)}function _(i,m){if(u!==i)return V(8,{from:m,to:i})}function L(i){return D(i)}function B(i){return L(S(w(i),{replace:!0}))}function j(i){const m=i.matched[i.matched.length-1];if(m&&m.redirect){const{redirect:p}=m;let v=typeof p=="function"?p(i):p;return typeof v=="string"&&(v=v.includes("?")||v.includes("#")?v=w(v):{path:v},v.params={}),S({query:i.query,hash:i.hash,params:"path"in v?{}:i.params},v)}}function D(i,m){const p=u=E(i),v=c.value,C=i.state,A=i.force,P=i.replace===!0,y=j(p);if(y)return D(S(w(y),{state:typeof y=="object"?S({},C,y.state):C,force:A,replace:P}),m||p);const O=p;O.redirectedFrom=m;let Q;return!A&&Rt(r,v,p)&&(Q=V(16,{to:O,from:v}),Ce(v,v,!0,!1)),(Q?Promise.resolve(Q):Ee(O,v)).catch(x=>N(x)?N(x,2)?x:se(x):oe(x,O,v)).then(x=>{if(x){if(N(x,2))return D(S({replace:P},w(x.to),{state:typeof x.to=="object"?S({},C,x.to.state):C,force:A}),m||O)}else x=we(O,v,!0,P,C);return Pe(O,v,x),x})}function ot(i,m){const p=_(i,m);return p?Promise.reject(p):Promise.resolve()}function Re(i){const m=J.values().next().value;return m&&typeof m.runWithContext=="function"?m.runWithContext(i):i()}function Ee(i,m){let p;const[v,C,A]=dn(i,m);p=he(v.reverse(),"beforeRouteLeave",i,m);for(const y of v)y.leaveGuards.forEach(O=>{p.push(H(O,i,m))});const P=ot.bind(null,i,m);return p.push(P),q(p).then(()=>{p=[];for(const y of a.list())p.push(H(y,i,m));return p.push(P),q(p)}).then(()=>{p=he(C,"beforeRouteUpdate",i,m);for(const y of C)y.updateGuards.forEach(O=>{p.push(H(O,i,m))});return p.push(P),q(p)}).then(()=>{p=[];for(const y of A)if(y.beforeEnter)if(M(y.beforeEnter))for(const O of y.beforeEnter)p.push(H(O,i,m));else p.push(H(y.beforeEnter,i,m));return p.push(P),q(p)}).then(()=>(i.matched.forEach(y=>y.enterCallbacks={}),p=he(A,"beforeRouteEnter",i,m),p.push(P),q(p))).then(()=>{p=[];for(const y of d.list())p.push(H(y,i,m));return p.push(P),q(p)}).catch(y=>N(y,8)?y:Promise.reject(y))}function Pe(i,m,p){h.list().forEach(v=>Re(()=>v(i,m,p)))}function we(i,m,p,v,C){const A=_(i,m);if(A)return A;const P=m===$,y=z?history.state:{};p&&(v||P?o.replace(i.fullPath,S({scroll:P&&y&&y.scroll},C)):o.push(i.fullPath,C)),c.value=i,Ce(i,m,p,P),se()}let W;function st(){W||(W=o.listen((i,m,p)=>{if(!be.listening)return;const v=E(i),C=j(v);if(C){D(S(C,{replace:!0}),v).catch(X);return}u=v;const A=c.value;z&&bt(Oe(A.fullPath,p.delta),te()),Ee(v,A).catch(P=>N(P,12)?P:N(P,2)?(D(P.to,v).then(y=>{N(y,20)&&!p.delta&&p.type===K.pop&&o.go(-1,!1)}).catch(X),Promise.reject()):(p.delta&&o.go(-p.delta,!1),oe(P,v,A))).then(P=>{P=P||we(v,A,!1),P&&(p.delta&&!N(P,8)?o.go(-p.delta,!1):p.type===K.pop&&N(P,20)&&o.go(-1,!1)),Pe(v,A,P)}).catch(X)}))}let re=F(),Se=F(),Z;function oe(i,m,p){se(i);const v=Se.list();return v.length?v.forEach(C=>C(i,m,p)):console.error(i),Promise.reject(i)}function it(){return Z&&c.value!==$?Promise.resolve():new Promise((i,m)=>{re.add([i,m])})}function se(i){return Z||(Z=!i,st(),re.list().forEach(([m,p])=>i?p(i):m()),re.reset()),i}function Ce(i,m,p,v){const{scrollBehavior:C}=e;if(!z||!C)return Promise.resolve();const A=!p&&kt(Oe(i.fullPath,0))||(v||!p)&&history.state&&history.state.scroll||null;return lt().then(()=>C(i,m,A)).then(P=>P&&Ct(P)).catch(P=>oe(P,i,m))}const ie=i=>o.go(i);let ce;const J=new Set,be={currentRoute:c,listening:!0,addRoute:g,removeRoute:R,hasRoute:b,getRoutes:k,resolve:E,options:e,push:L,replace:B,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:a.add,beforeResolve:d.add,afterEach:h.add,onError:Se.add,isReady:it,install(i){const m=this;i.component("RouterLink",ln),i.component("RouterView",pn),i.config.globalProperties.$router=m,Object.defineProperty(i.config.globalProperties,"$route",{enumerable:!0,get:()=>Y(c)}),z&&!ce&&c.value===$&&(ce=!0,L(o.location).catch(C=>{}));const p={};for(const C in $)Object.defineProperty(p,C,{get:()=>c.value[C],enumerable:!0});i.provide(ne,m),i.provide(ye,at(p)),i.provide(me,c);const v=i.unmount;J.add(i),i.unmount=function(){J.delete(i),J.size<1&&(u=$,W&&W(),W=null,c.value=$,ce=!1,Z=!1),v()}}};function q(i){return i.reduce((m,p)=>m.then(()=>Re(p)),Promise.resolve())}return be}function dn(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let d=0;d<a;d++){const h=t.matched[d];h&&(e.matched.find(u=>U(u,h))?r.push(h):n.push(h));const c=e.matched[d];c&&(t.matched.find(u=>U(u,c))||o.push(c))}return[n,r,o]}function wn(){return I(ne)}function Sn(){return I(ye)}export{xe as NavigationFailureType,ln as RouterLink,pn as RouterView,$ as START_LOCATION,gn as createMemoryHistory,Pn as createRouter,qt as createRouterMatcher,vn as createWebHashHistory,xt as createWebHistory,N as isNavigationFailure,En as loadRouteLocation,ve as matchedRouteKey,yn as onBeforeRouteLeave,Rn as onBeforeRouteUpdate,on as parseQuery,ye as routeLocationKey,ne as routerKey,me as routerViewLocationKey,Ie as stringifyQuery,He as useLink,Sn as useRoute,wn as useRouter,$e as viewDepthKey};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/index.html
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
|
|
7
|
+
<meta http-equiv="Pragma" content="no-cache"/>
|
|
8
|
+
<meta http-equiv="Expires" content="0"/>
|
|
9
|
+
<title>VTJ 设计器</title>
|
|
10
|
+
<script type="module" crossorigin src="./assets/index-MnFtNpiI.js"></script>
|
|
11
|
+
<link rel="modulepreload" crossorigin href="./assets/@vue-3K-Vdqr2.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="./assets/lodash-es-vX_HzjT0.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="./assets/@vueuse-1-Jun0o2.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="./assets/@element-plus-0iGvOhcs.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="./assets/@popperjs-UUtjUkU3.js">
|
|
16
|
+
<link rel="modulepreload" crossorigin href="./assets/@ctrl-ZggoHSuR.js">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="./assets/dayjs-nXyUZ0Ym.js">
|
|
18
|
+
<link rel="modulepreload" crossorigin href="./assets/async-validator-dHyGCDyC.js">
|
|
19
|
+
<link rel="modulepreload" crossorigin href="./assets/memoize-one-JaOscZgY.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="./assets/escape-html-tGLYdTR1.js">
|
|
21
|
+
<link rel="modulepreload" crossorigin href="./assets/normalize-wheel-es-1urBKM79.js">
|
|
22
|
+
<link rel="modulepreload" crossorigin href="./assets/@floating-ui-fSnuQPPg.js">
|
|
23
|
+
<link rel="modulepreload" crossorigin href="./assets/element-plus-5Wi4i1TZ.js">
|
|
24
|
+
<link rel="modulepreload" crossorigin href="./assets/monaco-editor-ginzV8u1.js">
|
|
25
|
+
<link rel="modulepreload" crossorigin href="./assets/vue-router-EE3hBg2_.js">
|
|
26
|
+
<link rel="stylesheet" crossorigin href="./assets/element-plus-CrqXjnKo.css">
|
|
27
|
+
<link rel="stylesheet" crossorigin href="./assets/monaco-editor-cf__QvdG.css">
|
|
28
|
+
<link rel="stylesheet" crossorigin href="./assets/index-AjK7aYfE.css">
|
|
29
|
+
|
|
30
|
+
<style>
|
|
31
|
+
.dark {
|
|
32
|
+
background-color: #141414;
|
|
33
|
+
}
|
|
34
|
+
#vtj-ide-loading {
|
|
35
|
+
width: 400px;
|
|
36
|
+
height: 100px;
|
|
37
|
+
position: fixed;
|
|
38
|
+
left:50%;
|
|
39
|
+
top: 50%;
|
|
40
|
+
transform: translate(-50%,-50%);
|
|
41
|
+
z-index: 9999;
|
|
42
|
+
border-radius: 4px;
|
|
43
|
+
background-color: rgba(255,255,255,0.1);
|
|
44
|
+
box-shadow: 0 0 10px rgba(0,0,0,0.2);
|
|
45
|
+
padding: 20px;
|
|
46
|
+
font-size: 12px;
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
}
|
|
49
|
+
.vtj-ide-loading__bar {
|
|
50
|
+
height: 14px;
|
|
51
|
+
border-radius: 4px;
|
|
52
|
+
margin-top: 10px;
|
|
53
|
+
border: 1px solid #eee;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
}
|
|
56
|
+
.vtj-ide-loading__title {
|
|
57
|
+
display: flex;
|
|
58
|
+
justify-content: space-between;
|
|
59
|
+
}
|
|
60
|
+
.dark .vtj-ide-loading__title {
|
|
61
|
+
color:#fff;
|
|
62
|
+
}
|
|
63
|
+
.vtj-ide-loading__value {
|
|
64
|
+
display: block;
|
|
65
|
+
height: 100%;
|
|
66
|
+
background-color: #409eff;
|
|
67
|
+
border-radius: 4px;
|
|
68
|
+
font-size: 0;
|
|
69
|
+
}
|
|
70
|
+
</style>
|
|
71
|
+
</head>
|
|
72
|
+
<body>
|
|
73
|
+
<div id="vtj-ide-loading">
|
|
74
|
+
<div class="vtj-ide-loading__title"><span>正在加载资源.... </span><span id="vtj-ide-loading-count"></span></div>
|
|
75
|
+
<div class="vtj-ide-loading__bar">
|
|
76
|
+
<span class="vtj-ide-loading__value" id="vtj-ide-loading-value" style="width:0%"></span>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<div id="app"></div>
|
|
81
|
+
<script>
|
|
82
|
+
var _hmt = _hmt || [];
|
|
83
|
+
(function() {
|
|
84
|
+
var hm = document.createElement("script");
|
|
85
|
+
hm.src = "https://hm.baidu.com/hm.js?ef1ba59d70b12a005a6058f563f634bb";
|
|
86
|
+
var s = document.getElementsByTagName("script")[0];
|
|
87
|
+
s.parentNode.insertBefore(hm, s);
|
|
88
|
+
})();
|
|
89
|
+
|
|
90
|
+
</script>
|
|
91
|
+
|
|
92
|
+
<script>
|
|
93
|
+
(function(){
|
|
94
|
+
var loading = document.querySelector('#vtj-ide-loading');
|
|
95
|
+
var countEl = document.querySelector('#vtj-ide-loading-count');
|
|
96
|
+
var valueEl = document.querySelector('#vtj-ide-loading-value');
|
|
97
|
+
var links = document.querySelectorAll('link,script');
|
|
98
|
+
var total = links.length;
|
|
99
|
+
var setValue = function(current) {
|
|
100
|
+
countEl.innerHTML = current + '/' +total;
|
|
101
|
+
valueEl.style.width = (current * 100 / total) + '%';
|
|
102
|
+
if(!total || current === total) {
|
|
103
|
+
setTimeout(function() {
|
|
104
|
+
loading.parentNode.removeChild(loading);
|
|
105
|
+
loading = null;
|
|
106
|
+
countEl = null;
|
|
107
|
+
valueEl = null;
|
|
108
|
+
}, 100);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
var current = 0;
|
|
113
|
+
links.forEach(function(link) {
|
|
114
|
+
link.onload = function() {
|
|
115
|
+
++current;
|
|
116
|
+
setValue(current);
|
|
117
|
+
link.onload = null;
|
|
118
|
+
}
|
|
119
|
+
})
|
|
120
|
+
window.addEventListener('load',function() {
|
|
121
|
+
current = total
|
|
122
|
+
setValue(current)
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
})()
|
|
126
|
+
|
|
127
|
+
</script>
|
|
128
|
+
</body>
|
|
129
|
+
</html>
|
package/dist/link.js
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
(function () {
|
|
2
|
+
const url = '/link.html?t=' + new Date().getTime();
|
|
3
|
+
const el = document.createElement('div');
|
|
4
|
+
const style = document.createElement('style');
|
|
5
|
+
style.innerHTML = `
|
|
6
|
+
#vtjLink {
|
|
7
|
+
position: absolute;
|
|
8
|
+
right: 50px;
|
|
9
|
+
bottom: 50px;
|
|
10
|
+
width: 40px;
|
|
11
|
+
height: 40px;
|
|
12
|
+
border: none;
|
|
13
|
+
z-index: 9999;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
border-radius: 50%;
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
border: 1px solid #eee;
|
|
20
|
+
background: #fff;
|
|
21
|
+
box-shadow: 0 0 3px rgba(0,0,0,.1);
|
|
22
|
+
}
|
|
23
|
+
#vtjLink svg{
|
|
24
|
+
height: 20px;
|
|
25
|
+
width: 20px;
|
|
26
|
+
color: #333;
|
|
27
|
+
}
|
|
28
|
+
#vtjLink:hover {
|
|
29
|
+
background: #ecf5ff;
|
|
30
|
+
}
|
|
31
|
+
#vtjLink:hover svg {
|
|
32
|
+
color:#409eff;
|
|
33
|
+
}
|
|
34
|
+
.vtj-link-dragging {
|
|
35
|
+
user-select: none;
|
|
36
|
+
iframe {
|
|
37
|
+
user-select: none;
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
42
|
+
|
|
43
|
+
el.src = url;
|
|
44
|
+
el.id = 'vtjLink';
|
|
45
|
+
el.innerHTML =
|
|
46
|
+
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path fill="currentColor" d="m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64h-448z"></path></svg>';
|
|
47
|
+
document.head.appendChild(style);
|
|
48
|
+
document.body.appendChild(el);
|
|
49
|
+
let dragging = false;
|
|
50
|
+
let diffX;
|
|
51
|
+
let diffY;
|
|
52
|
+
let timer = null;
|
|
53
|
+
let isDragged = false;
|
|
54
|
+
let startPosition = null;
|
|
55
|
+
const size = 50;
|
|
56
|
+
const update = function (e) {
|
|
57
|
+
if (dragging) {
|
|
58
|
+
const x = Math.min(
|
|
59
|
+
Math.max(0, e.clientX - diffX),
|
|
60
|
+
window.innerWidth - size
|
|
61
|
+
);
|
|
62
|
+
const y = Math.min(
|
|
63
|
+
Math.max(0, e.clientY - diffX),
|
|
64
|
+
window.innerHeight - size
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
el.style.left = x + 'px';
|
|
68
|
+
el.style.top = y + 'px';
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
el.addEventListener('mousedown', function (e) {
|
|
72
|
+
const rect = el.getBoundingClientRect();
|
|
73
|
+
diffX = e.clientX - rect.left;
|
|
74
|
+
diffY = e.clientY - rect.top;
|
|
75
|
+
document.body.classList.add('vtj-link-dragging');
|
|
76
|
+
startPosition = {
|
|
77
|
+
x: e.clientX,
|
|
78
|
+
y: e.clientY
|
|
79
|
+
};
|
|
80
|
+
isDragged = false;
|
|
81
|
+
dragging = true;
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
window.addEventListener('mouseup', function (e) {
|
|
85
|
+
dragging = false;
|
|
86
|
+
e.stopPropagation();
|
|
87
|
+
e.preventDefault();
|
|
88
|
+
document.body.classList.remove('vtj-link-dragging');
|
|
89
|
+
if (
|
|
90
|
+
startPosition &&
|
|
91
|
+
Math.abs(startPosition.x - e.clientX) < 10 &&
|
|
92
|
+
Math.abs(startPosition.y - e.clientY) < 10
|
|
93
|
+
) {
|
|
94
|
+
isDragged = false;
|
|
95
|
+
} else {
|
|
96
|
+
isDragged = true;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
window.addEventListener('mousemove', function (e) {
|
|
101
|
+
update(e);
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
el.addEventListener('click', function (e) {
|
|
105
|
+
if (!isDragged) {
|
|
106
|
+
const section = window.location.hash.split('/');
|
|
107
|
+
const id = section.pop() || '';
|
|
108
|
+
let path = window.location.pathname + '@vtj/pro/#/';
|
|
109
|
+
if (id) {
|
|
110
|
+
path += '?id=' + id;
|
|
111
|
+
}
|
|
112
|
+
window.open(path, 'VTJDesigner');
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
})();
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vtj/pro",
|
|
3
|
+
"description": "VTJ.PRO",
|
|
4
|
+
"private": false,
|
|
5
|
+
"version": "0.7.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"dev": "cross-env ENV_TYPE=local vite",
|
|
9
|
+
"build": "vue-tsc && cross-env ENV_TYPE=live vite build",
|
|
10
|
+
"preview": "vite preview"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@vtj/core": "^0.7.0",
|
|
14
|
+
"@vtj/designer": "^0.7.0",
|
|
15
|
+
"@vtj/local": "^0.7.0",
|
|
16
|
+
"@vtj/renderer": "^0.7.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@vtj/cli": "^0.7.0",
|
|
20
|
+
"@vtj/icons": "^0.7.0",
|
|
21
|
+
"@vtj/materials": "^0.7.0",
|
|
22
|
+
"@vtj/ui": "^0.7.0",
|
|
23
|
+
"@vtj/utils": "^0.7.0",
|
|
24
|
+
"vue": "~3.4.14",
|
|
25
|
+
"vue-router": "~4.2.5"
|
|
26
|
+
},
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./src/index.ts",
|
|
30
|
+
"import": "./src/index.ts",
|
|
31
|
+
"require": "./src/index.ts"
|
|
32
|
+
},
|
|
33
|
+
"./vite": {
|
|
34
|
+
"types": "./src/vite.d.ts",
|
|
35
|
+
"import": "./src/vite.mjs",
|
|
36
|
+
"require": "./src/vite.mjs"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"main": "./src/index.ts",
|
|
40
|
+
"module": "./src/index.ts",
|
|
41
|
+
"types": "./src/index.ts",
|
|
42
|
+
"files": [
|
|
43
|
+
"dist",
|
|
44
|
+
"src"
|
|
45
|
+
],
|
|
46
|
+
"gitHead": "b65d1b19322cbd0721173d094db1b5ece018d980",
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public"
|
|
49
|
+
}
|
|
50
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import 'element-plus/theme-chalk/dark/css-vars.css';
|
|
2
|
+
import 'element-plus/theme-chalk/index.css';
|
|
3
|
+
import '@vtj/ui/dist/style.css';
|
|
4
|
+
import '@vtj/icons/dist/style.css';
|
|
5
|
+
import '@vtj/designer/dist/style.css';
|
|
6
|
+
|
|
7
|
+
export * from '@vtj/core';
|
|
8
|
+
export * from '@vtj/designer';
|
|
9
|
+
export * from '@vtj/renderer';
|
package/src/vite.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vtj/local';
|
package/src/vite.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vtj/local';
|