@vtj/pro 0.8.31 → 0.8.32
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/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +3 -3
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +3 -3
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +17 -9
- package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -1
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/assets/{@element-plus-D-VgZRoc.js → @element-plus-Bht7m-4_.js} +1 -1
- package/dist/assets/{@vue-DQ4WxKa6.js → @vue-Ci56gdp5.js} +1 -1
- package/dist/assets/@vueuse-Byosgoxu.js +1 -0
- package/dist/assets/{Editor-bVAaI2zL-DPZFq3jT.js → Editor-bVAaI2zL-DHmWmw0l.js} +1 -1
- package/dist/assets/{element-plus-CLmasM-H.js → element-plus-DA-eQMr_.js} +2 -2
- package/dist/assets/extension-CUgzEiGh.css +1 -0
- package/dist/assets/extension-FGNDYBHT.js +216 -0
- package/dist/assets/{index-BMifl1Ue.js → index-Cu35JwHd.js} +2 -2
- package/dist/assets/index-D2IJveMn.css +1 -0
- package/dist/assets/index-Nm_sMQ6Q.js +1 -0
- package/dist/assets/{mockjs-IStUBvTQ.js → mockjs-CA9SFGkl.js} +3 -3
- package/dist/assets/preview-CsnfblCM.js +2 -0
- package/dist/assets/vue-DgRxL806.js +5 -0
- package/dist/assets/{vue-router-CPADLzbG.js → vue-router-BQUDL0Tq.js} +2 -2
- package/dist/index.html +6 -6
- package/package.json +11 -11
- package/dist/assets/@vueuse-8c25s-Jh.js +0 -1
- package/dist/assets/extension-C5hqhoir.css +0 -1
- package/dist/assets/extension-DtUZpYgL.js +0 -208
- package/dist/assets/index-DoXX_wdr.css +0 -1
- package/dist/assets/index-IfEbLJEe.js +0 -1
- package/dist/assets/preview-V__c-1ij.js +0 -2
- package/dist/assets/vue-J7T6X87Y.js +0 -5
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
* @vue/shared v3.4.21
|
|
27
27
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
28
28
|
* @license MIT
|
|
29
|
-
**/const La=()=>{},du=Object.prototype.hasOwnProperty,$a=(e,t)=>du.call(e,t),Ha=Array.isArray,Va=e=>pr(e)==="[object Date]",ms=e=>typeof e=="function",Da=e=>typeof e=="string",hu=e=>e!==null&&typeof e=="object",ka=e=>(hu(e)||ms(e))&&ms(e.then)&&ms(e.catch),pu=Object.prototype.toString,pr=e=>pu.call(e),ja=e=>pr(e).slice(8,-1),Ba=e=>pr(e)==="[object Object]",gr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},gu=/-(\w)/g,Ua=gr(e=>e.replace(gu,(t,n)=>n?n.toUpperCase():"")),mu=/\B([A-Z])/g,Ka=gr(e=>e.replace(mu,"-$1").toLowerCase()),Wa=gr(e=>e.charAt(0).toUpperCase()+e.slice(1));export{
|
|
29
|
+
**/const La=()=>{},du=Object.prototype.hasOwnProperty,$a=(e,t)=>du.call(e,t),Ha=Array.isArray,Va=e=>pr(e)==="[object Date]",ms=e=>typeof e=="function",Da=e=>typeof e=="string",hu=e=>e!==null&&typeof e=="object",ka=e=>(hu(e)||ms(e))&&ms(e.then)&&ms(e.catch),pu=Object.prototype.toString,pr=e=>pu.call(e),ja=e=>pr(e).slice(8,-1),Ba=e=>pr(e)==="[object Object]",gr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},gu=/-(\w)/g,Ua=gr(e=>e.replace(gu,(t,n)=>n?n.toUpperCase():"")),mu=/\B([A-Z])/g,Ka=gr(e=>e.replace(mu,"-$1").toLowerCase()),Wa=gr(e=>e.charAt(0).toUpperCase()+e.slice(1));export{Au as $,ir as A,pe as B,he as C,Sn as D,Fl as E,ae as F,or as G,hf as H,Oc as I,Bc as J,Gu as K,qn as L,Gn as M,La as N,of as O,ta as P,xo as Q,Yi as R,ju as S,ca as T,Hu as U,da as V,So as W,Nu as X,ne as Y,Lf as Z,$o as _,Ao as a,Sa as a$,Ws as a0,vu as a1,rr as a2,Ra as a3,na as a4,Na as a5,De as a6,At as a7,Ac as a8,Ku as a9,Mu as aA,ba as aB,Uu as aC,Bt as aD,xt as aE,Du as aF,Su as aG,Ou as aH,hr as aI,Pu as aJ,ve as aK,Xe as aL,Re as aM,zs as aN,xa as aO,Xc as aP,ia as aQ,Zc as aR,Fa as aS,aa as aT,Bu as aU,Zf as aV,Yu as aW,zu as aX,Qu as aY,Zu as aZ,Ju as a_,Pa as aa,Wu as ab,Va as ac,Ru as ad,rf as ae,z as af,Go as ag,qo as ah,$u as ai,Rc as aj,ka as ak,Ds as al,qu as am,Ml as an,_u as ao,ja as ap,Vu as aq,fi as ar,Ba as as,Ma as at,Ka as au,Pl as av,wc as aw,to as ax,va as ay,hi as az,yu as b,Xu as b0,Ca as b1,bu as b2,sr as b3,Nt as b4,la as b5,au as b6,ma as b7,Ia as b8,pf as b9,xn as bA,xu as bB,ua as bC,wu as bD,Oa as bE,Aa as bF,ga as bG,yc as bH,eo as bI,ou as bJ,iu as bK,gf as bL,bc as bM,Cc as bN,oa as bO,ea as bP,_a as bQ,Lu as bR,Ri as ba,$t as bb,Ut as bc,pa as bd,Mn as be,sa as bf,ra as bg,vc as bh,Fc as bi,Mc as bj,Pc as bk,Nc as bl,Iu as bm,Fi as bn,Fu as bo,Es as bp,ha as bq,wa as br,zt as bs,Ur as bt,Ea as bu,vt as bv,Eu as bw,_c as bx,Ta as by,Cu as bz,fa as c,so as d,Oi as e,An as f,ul as g,Hl as h,st as i,Xn as j,df as k,Ha as l,hu as m,Xs as n,ur as o,Da as p,Wa as q,wn as r,Tu as s,Ua as t,Mi as u,$a as v,ku as w,ya as x,ms as y,ht as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as G,b as q,u as K,r as m,e as z,s as k,w as X,f as y,h as Y,i as B,j as Z,n as ee,k as H}from"./@vue-Ci56gdp5.js";var te=Object.defineProperty,ne=Object.defineProperties,re=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,R=(e,t,n)=>t in e?te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,se=(e,t)=>{for(var n in t||(t={}))oe.call(t,n)&&R(e,n,t[n]);if(C)for(var n of C(t))ie.call(t,n)&&R(e,n,t[n]);return e},ue=(e,t)=>ne(e,re(t));function Ce(e,t){var n;const r=k();return X(()=>{r.value=e()},ue(se({},t),{flush:(n=void 0)!=null?n:"sync"})),z(r)}var W;const S=typeof window!="undefined",ae=e=>typeof e!="undefined",j=e=>typeof e=="function",le=e=>typeof e=="string",E=()=>{},ce=S&&((W=window==null?void 0:window.navigator)==null?void 0:W.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function h(e){return typeof e=="function"?e():K(e)}function J(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}function fe(e,t={}){let n,r,o=E;const s=a=>{clearTimeout(a),o(),o=E};return a=>{const l=h(e),c=h(t.maxWait);return n&&s(n),l<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((f,p)=>{o=t.rejectOnCancel?p:f,c&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,f(a())},c)),n=setTimeout(()=>{r&&s(r),r=null,f(a())},l)})}}function de(e,t=!0,n=!0,r=!1){let o=0,s,i=!0,a=E,l;const c=()=>{s&&(clearTimeout(s),s=void 0,a(),a=E)};return p=>{const u=h(e),d=Date.now()-o,v=()=>l=p();return c(),u<=0?(o=Date.now(),v()):(d>u&&(n||!i)?(o=Date.now(),v()):t&&(l=new Promise((b,O)=>{a=r?O:b,s=setTimeout(()=>{o=Date.now(),i=!0,b(v()),c()},Math.max(0,u-d))})),!n&&!s&&(s=setTimeout(()=>i=!0,u)),i=!1,l)}}function ve(e){return e}function pe(e,t){let n,r,o;const s=m(!0),i=()=>{s.value=!0,o()};y(e,i,{flush:"sync"});const a=j(t)?t:t.get,l=j(t)?void 0:t.set,c=Y((f,p)=>(r=f,o=p,{get(){return s.value&&(n=a(),s.value=!1),r(),n},set(u){l==null||l(u)}}));return Object.isExtensible(c)&&(c.trigger=i),c}function T(e){return G()?(q(e),!0):!1}function me(e,t=200,n={}){return J(fe(t,n),e)}function Re(e,t=200,n={}){const r=m(e.value),o=me(()=>{r.value=e.value},t,n);return y(e,()=>o()),r}function We(e,t=200,n=!1,r=!0,o=!1){return J(de(t,n,r,o),e)}function x(e,t=!0){B()?Z(e):t?e():ee(e)}function Ae(e,t,n={}){const{immediate:r=!0}=n,o=m(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function a(){o.value=!1,i()}function l(...c){i(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,e(...c)},h(t))}return r&&(o.value=!0,S&&l()),T(a),{isPending:z(o),start:l,stop:a}}function g(e){var t;const n=h(e);return(t=n==null?void 0:n.$el)!=null?t:n}const w=S?window:void 0,Oe=S?window.document:void 0;function _(...e){let t,n,r,o;if(le(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=w):[t,n,r,o]=e,!t)return E;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],i=()=>{s.forEach(f=>f()),s.length=0},a=(f,p,u,d)=>(f.addEventListener(p,u,d),()=>f.removeEventListener(p,u,d)),l=y(()=>[g(t),h(o)],([f,p])=>{i(),f&&s.push(...n.flatMap(u=>r.map(d=>a(f,u,d,p))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return T(c),c}let A=!1;function Fe(e,t,n={}){const{window:r=w,ignore:o=[],capture:s=!0,detectIframe:i=!1}=n;if(!r)return;ce&&!A&&(A=!0,Array.from(r.document.body.children).forEach(u=>u.addEventListener("click",E)));let a=!0;const l=u=>o.some(d=>{if(typeof d=="string")return Array.from(r.document.querySelectorAll(d)).some(v=>v===u.target||u.composedPath().includes(v));{const v=g(d);return v&&(u.target===v||u.composedPath().includes(v))}}),f=[_(r,"click",u=>{const d=g(e);if(!(!d||d===u.target||u.composedPath().includes(d))){if(u.detail===0&&(a=!l(u)),!a){a=!0;return}t(u)}},{passive:!0,capture:s}),_(r,"pointerdown",u=>{const d=g(e);d&&(a=!u.composedPath().includes(d)&&!l(u))},{passive:!0}),i&&_(r,"blur",u=>{var d;const v=g(e);((d=r.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(v!=null&&v.contains(r.document.activeElement))&&t(u)})].filter(Boolean);return()=>f.forEach(u=>u())}function De(e={}){var t;const{window:n=w}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,o=pe(()=>null,()=>r==null?void 0:r.activeElement);return n&&(_(n,"blur",s=>{s.relatedTarget===null&&o.trigger()},!0),_(n,"focus",o.trigger,!0)),o}function U(e,t=!1){const n=m(),r=()=>n.value=!!e();return r(),x(r,t),n}function _e(e){return JSON.parse(JSON.stringify(e))}const F=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},D="__vueuse_ssr_handlers__";F[D]=F[D]||{};function Ne(e,t,{window:n=w,initialValue:r=""}={}){const o=m(r),s=H(()=>{var i;return g(t)||((i=n==null?void 0:n.document)==null?void 0:i.documentElement)});return y([s,()=>h(e)],([i,a])=>{var l;if(i&&n){const c=(l=n.getComputedStyle(i).getPropertyValue(a))==null?void 0:l.trim();o.value=c||r}},{immediate:!0}),y(o,i=>{var a;(a=s.value)!=null&&a.style&&s.value.style.setProperty(h(e),i)}),o}function Ve({document:e=Oe}={}){if(!e)return m("visible");const t=m(e.visibilityState);return _(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var N=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ye=(e,t)=>{var n={};for(var r in e)be.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&N)for(var r of N(e))t.indexOf(r)<0&&ge.call(e,r)&&(n[r]=e[r]);return n};function he(e,t,n={}){const r=n,{window:o=w}=r,s=ye(r,["window"]);let i;const a=U(()=>o&&"ResizeObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},c=y(()=>g(e),p=>{l(),a.value&&o&&p&&(i=new ResizeObserver(t),i.observe(p,s))},{immediate:!0,flush:"post"}),f=()=>{l(),c()};return T(f),{isSupported:a,stop:f}}function Me(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:s=!0}=t,i=m(0),a=m(0),l=m(0),c=m(0),f=m(0),p=m(0),u=m(0),d=m(0);function v(){const b=g(e);if(!b){n&&(i.value=0,a.value=0,l.value=0,c.value=0,f.value=0,p.value=0,u.value=0,d.value=0);return}const O=b.getBoundingClientRect();i.value=O.height,a.value=O.bottom,l.value=O.left,c.value=O.right,f.value=O.top,p.value=O.width,u.value=O.x,d.value=O.y}return he(e,v),y(()=>g(e),b=>!b&&v()),o&&_("scroll",v,{capture:!0,passive:!0}),r&&_("resize",v,{passive:!0}),x(()=>{s&&v()}),{height:i,bottom:a,left:l,right:c,top:f,width:p,x:u,y:d,update:v}}var V=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,Ee=(e,t)=>{var n={};for(var r in e)we.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&V)for(var r of V(e))t.indexOf(r)<0&&Pe.call(e,r)&&(n[r]=e[r]);return n};function Qe(e,t,n={}){const r=n,{window:o=w}=r,s=Ee(r,["window"]);let i;const a=U(()=>o&&"MutationObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},c=y(()=>g(e),p=>{l(),a.value&&o&&p&&(i=new MutationObserver(t),i.observe(p,s))},{immediate:!0}),f=()=>{l(),c()};return T(f),{isSupported:a,stop:f}}var M;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(M||(M={}));var Ie=Object.defineProperty,Q=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,L=(e,t,n)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$e=(e,t)=>{for(var n in t||(t={}))Se.call(t,n)&&L(e,n,t[n]);if(Q)for(var n of Q(t))Te.call(t,n)&&L(e,n,t[n]);return e};const je={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};$e({linear:ve},je);function Le(e,t,n,r={}){var o,s,i;const{clone:a=!1,passive:l=!1,eventName:c,deep:f=!1,defaultValue:p}=r,u=B(),d=n||(u==null?void 0:u.emit)||((o=u==null?void 0:u.$emit)==null?void 0:o.bind(u))||((i=(s=u==null?void 0:u.proxy)==null?void 0:s.$emit)==null?void 0:i.bind(u==null?void 0:u.proxy));let v=c;t||(t="modelValue"),v=c||v||`update:${t.toString()}`;const b=P=>a?j(a)?a(P):_e(P):P,O=()=>ae(e[t])?b(e[t]):p;if(l){const P=O(),$=m(P);return y(()=>e[t],I=>$.value=b(I)),y($,I=>{(I!==e[t]||f)&&d(v,I)},{deep:f}),$}else return H({get(){return O()},set(P){d(v,P)}})}function ze({window:e=w}={}){if(!e)return m(!1);const t=m(e.document.hasFocus());return _(e,"blur",()=>{t.value=!1}),_(e,"focus",()=>{t.value=!0}),t}function Be(e={}){const{window:t=w,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:s=!0}=e,i=m(n),a=m(r),l=()=>{t&&(s?(i.value=t.innerWidth,a.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};return l(),x(l),_("resize",l,{passive:!0}),o&&_("orientationchange",l,{passive:!0}),{width:i,height:a}}export{g as a,Be as b,Me as c,he as d,We as e,Ne as f,Ae as g,Qe as h,S as i,Ve as j,ze as k,Ce as l,Le as m,De as n,Fe as o,Re as r,T as t,_ as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var v=Object.defineProperty;var y=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var f=(o,a,t)=>a in o?v(o,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[a]=t,g=(o,a)=>{for(var t in a||(a={}))h.call(a,t)&&f(o,t,a[t]);if(y)for(var t of y(a))E.call(a,t)&&f(o,t,a[t]);return o};var _=(o,a,t)=>new Promise((r,d)=>{var c=l=>{try{u(t.next(l))}catch(m){d(m)}},e=l=>{try{u(t.throw(l))}catch(m){d(m)}},u=l=>l.done?r(l.value):Promise.resolve(l.value).then(c,e);u((t=t.apply(o,a)).next())});import{_ as p,e as V}from"./monaco-editor-DwlLClUG.js";import{d as w,r as T,j as k,n as D,
|
|
1
|
+
var v=Object.defineProperty;var y=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var f=(o,a,t)=>a in o?v(o,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[a]=t,g=(o,a)=>{for(var t in a||(a={}))h.call(a,t)&&f(o,t,a[t]);if(y)for(var t of y(a))E.call(a,t)&&f(o,t,a[t]);return o};var _=(o,a,t)=>new Promise((r,d)=>{var c=l=>{try{u(t.next(l))}catch(m){d(m)}},e=l=>{try{u(t.throw(l))}catch(m){d(m)}},u=l=>l.done?r(l.value):Promise.resolve(l.value).then(c,e);u((t=t.apply(o,a)).next())});import{_ as p,e as V}from"./monaco-editor-DwlLClUG.js";import{d as w,r as T,j as k,n as D,G as b,f as B,o as L,c as P,L as A,aa as O,a5 as x,M as I}from"./@vue-Ci56gdp5.js";const j=w({__name:"Editor",props:{lang:{default:"typescript"},modelValue:{default:""},options:{default:()=>({})},height:{default:"300px"},readonly:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},border:{type:Boolean},minimap:{type:Boolean,default:!1}},emits:["change","blur","update:modelValue"],setup(o,{expose:a,emit:t}){const r=o;self.MonacoEnvironment={createTrustedTypesPolicy:void 0,getWorker(i,n){return _(this,null,function*(){let s;return n==="json"&&(s=yield p(()=>import("./json.worker-BhNp9C2F-DV_Vc8JJ.js"),[],import.meta.url)),["css","scss","less"].includes(n)&&(s=yield p(()=>import("./css.worker-BG3X4ypZ-CEcCZxtT.js"),[],import.meta.url)),["html","handlebars","razor","vue"].includes(n)&&(s=yield p(()=>import("./html.worker-BCBdCLMV-Dzznz_ni.js"),[],import.meta.url)),["typescript","javascript"].includes(n)&&(s=yield p(()=>import("./ts.worker-yjAiJiOi-BhFdT8k5.js"),[],import.meta.url)),s=s||(yield p(()=>import("./editor.worker-CdJourTJ-XsdejOxF.js"),[],import.meta.url)),new s.default})}};const d=t,c=T();let e=null;const u=()=>_(this,null,function*(){var i;e&&(yield(i=e.getAction("editor.action.formatDocument"))==null?void 0:i.run(),e.setValue(e.getValue()))}),l=()=>_(this,null,function*(){yield u();const i=e==null?void 0:e.getValue();d("update:modelValue",i),d("blur",i)}),m=()=>{e=V.create(c.value,g({value:r.modelValue,language:r.lang,readOnly:r.readonly,theme:r.dark?"vs-dark":"vs",automaticLayout:!0,minimap:{enabled:r.minimap}},r.options)),e.onDidChangeModelContent(i=>{d("change",e==null?void 0:e.getValue(),i)}),e.onDidBlurEditorText(l)};return k(()=>{D(m)}),b(()=>{e&&e.dispose()}),B(()=>r.modelValue,i=>{e&&e.setValue(i)}),a({getEditor:()=>e}),(i,n)=>(L(),P("div",{class:A(["v-code-editor",{"is-border":r.border}]),ref_key:"container",ref:c,onKeyup:n[0]||(n[0]=O(x(()=>{},["stop"]),["enter"])),style:I({height:r.height})},null,38))}});export{j as default};
|