@vtj/renderer 0.19.6 → 0.19.7
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/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +3 -3
- package/types/version.d.ts +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/renderer
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.19.
|
|
5
|
+
* @version 0.19.7
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
|
-
*/const _e="0.19.
|
|
7
|
+
*/const _e="0.19.7";var T=(t=>(t.Runtime="Runtime",t.Design="Design",t.Raw="Raw",t.VNode="VNode",t))(T||{});const pt=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],mi=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],gi=["onBeforeMount","onMounted","onBeforeUpdate","onUpdated","onBeforeUnmount","onUnmounted","onErrorCaptured","onRenderTracked","onRenderTriggered","onActivated","onDeactivated"],is=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],rs={String,Number,Boolean,Array,Object,Function,Date},Se="VtjPage",Ae="VtjHomepage",yt="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg".split(","),ns="component,slot".split(","),vi=["h","t","t","p","s",":","/","/","a","p","p",".","v","t","j",".","p","r","o"].join(""),xi={auth:["h","t","t","p","s",":","/","/","a","p","p",".","v","t","j",".","p","r","o","/","a","u","t","h",".","h","t","m","l"].join(""),storageKey:["R","R","O","_","I","D","E","_","A","C","C","E","S","S","_","S","T","O","R","A","G","E","_","_"].join(""),privateKey:"MIIBOgIBAAJBAKoIzmn1FYQ1YOhOBw9EhABxZ+PySAIaydI+zdhoKflrdgJ4A5E4/5gbQmRpk09hPWG8nvX7h+l/QLU8kXxAIBECAwEAAQJAAlgpxQY6sByLsXqzJcthC8LSGsLf2JEJkHwlnpwFqlEV8UCkoINpuZ2Wzl+aftURu5rIfAzRCQBvHmeOTW9/zQIhAO5ufWDmnSLyfAAsNo5JRNpVuLFCFodR8Xm+ulDlosR/AiEAtpAltyP9wmCABKG/v/hrtTr3mcvFNGCjoGa9bUAok28CIHbrVs9w1ijrBlvTsXYwJw46uP539uKRRT4ymZzlm9QjAiB+1KH/G9f9pEEL9rtaSOG7JF5D0JcOjlze4MGVFs+ZrQIhALKOUFBNr2zEsyJIjw2PlvEucdlG77UniszjXTROHSPd"};function Ie(t,e){return t.map(s=>d.isUrl(s)||s.startsWith("/")?s:`${e}${s}`)}function Ve(t){return/\.css$/.test(t)}function Fe(t){return/\.js$/.test(t)}function as(t){return/\.json$/.test(t)}function bi(t){return t.map(e=>`<script src="${d.url.append(e,{v:_e})}"><\/script>`).join("")}function yi(t=[]){return t.map(e=>`<link rel="stylesheet" href="${d.url.append(e,{v:_e})}" />`).join("")}function os(t,e=!1){return e&&t.endsWith(".prod.js")?t.replace(".prod.js",".js"):t}function us(t,e,s=!1){const i=t.filter(m=>!!m.enabled),r=[],n=[],a=[],o=[],c={},h={},l=[],p={};return i.forEach(({urls:m,assetsUrl:f,library:g,assetsLibrary:v,localeLibrary:x})=>{m?.forEach(b=>{Fe(b)&&r.push(os(b,s)),Ve(b)&&n.push(b)}),g&&(o.push(g),c[g]=Ie(m||[],e),x&&(h[g]=x)),f&&a.push(f),v&&l.push(v),g&&v&&(p[v]=g)}),{scripts:Ie(r,e),css:Ie(n,e),materials:Ie(a,e),libraryExports:o,materialExports:d.dedupArray(l),materialMapLibrary:p,libraryMap:c,libraryLocaleMap:h}}function cs(t,e){const{name:s,parent:i,alias:r}=t;return i?e[i]?.[r||s]:e[r||s]}function ls(t=[]){const e=t.filter(i=>Ve(i)),s=t.filter(i=>Fe(i));return{css:e,js:s}}function hs(t,e){const s=h=>{const l=[];let p=0;for(;p<h.length;){if(/\s/.test(h[p])){p++;continue}if(h.substring(p,p+2)==="/*"){const b=h.indexOf("*/",p+2);if(b!==-1){p=b+2;continue}}if(h[p]==="@"){const b=p;for(;p<h.length&&h[p]!=="{"&&h[p]!==";";)p++;const I=h.substring(b,p).trim(),P=I.includes("@keyframes");if(h[p]===";")l.push({type:"simple-at-rule",content:h.substring(b,p+1)}),p++;else if(h[p]==="{"){const S=p+1;let $=1;for(p++;p<h.length&&$>0;)h[p]==="{"?$++:h[p]==="}"&&$--,p++;const me=h.substring(b,p),ge=h.substring(S,p-1);l.push({type:P?"keyframes":"at-rule",rule:I,content:me,inner:ge})}continue}const m=p;for(;p<h.length&&h[p]!=="{";)p++;if(p>=h.length)break;const f=h.substring(m,p).trim();if(!f){p++;continue}const g=p+1;let v=1;for(p++;p<h.length&&v>0;)h[p]==="{"?v++:h[p]==="}"&&v--,p++;const x=h.substring(g,p-1);l.push({type:"rule",selector:f,content:x.trim()})}return l},i=h=>{const l=h.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(l)},r=h=>h.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(l,p,m)=>{const f=p.trim(),g=m.trim();return f?`${f}[${e}] ${g}`:`[${e}] ${g}`}),n=h=>{const l=h.trim();if(!l||l.includes(`[${e}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(l)||i(l))return l;const p=l.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(p){const[,m,f=""]=p,g=m.trim();return g?`${g}[${e}]${f}`:l}return`${l}[${e}]`},a=h=>r(h).split(",").map(p=>n(p)).filter(p=>p.trim()).join(", "),o=h=>h.map(l=>{switch(l.type){case"simple-at-rule":return l.content;case"keyframes":return l.content;case"at-rule":try{const m=s(l.inner),f=o(m);return`${l.rule} { ${f} }`}catch{return l.content}case"rule":if(!l.selector||!l.content)return"";const p=a(l.selector);return p.trim()?`${p} { ${l.content} }`:"";default:return""}}).filter(l=>l.trim()).join(" "),c=h=>h.replace(/\s*{\s*/g," { ").replace(/\s*}\s*/g," } ").replace(/\s*;\s*/g,"; ").replace(/\s*,\s*/g,", ").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"").replace(/\s*}\s*}/g," } }").trim();try{const h=t.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
|
|
8
8
|
`),l=s(h),p=o(l);return c(p)}catch(h){return console.error("CSS scoping failed:",h),console.error("Input CSS:",t),t.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,l=>l).replace(/([^{}@]+)(?=\s*{)/g,l=>{const p=l.trim();return!p||p.startsWith("@")||p.includes(`[${e}]`)||i(p)?l:`${p}[${e}]`})}}const _i=750;function ps(t,e,s){let i;typeof t<"u"?i=t.innerWidth||t.document.documentElement.clientWidth:(console.warn("无法获取屏幕宽度,使用默认值375"),i=375);const r=s||_i;return e*i/r}function fs(t,e){let s=!1,i=!1,r=!1,n="";for(let a=0;a<e.length;a++){const o=e[a];if(o==="'"&&!i&&!r?s=!s:o==='"'&&!s&&!r?i=!i:e.substr(a,4).toLowerCase()==="url("&&!s&&!i?r=!0:o===")"&&r&&(r=!1),!s&&!i&&!r){const c=e.substr(a).match(/^(-?\d+(?:\.\d+)?)\s*rpx/);if(c){const h=c[1],l=parseFloat(h),m=`${ps(t,l).toFixed(6).replace(/\.?0+$/,"")}px`;n+=m,a+=c[0].length-1;continue}}n+=o}return n}function _t(t){return d.isString(t)?t:JSON.stringify(t)}function qe(t,e,s,i=!1){const r=t.CSSStyleSheet,n=i?`data-v-${e}`:e,a=t.__uniConfig?fs(t,s):s,o=!!t.__uniConfig,c=t.document,h=!!r?.prototype?.replaceSync&&!o,l=h?Array.from(c.adoptedStyleSheets||[]).find(f=>f.id===e):c.getElementById(e),p=`${n}
|
|
9
9
|
${a}`;if(l?.__vtjSource===p)return;const m=i?hs(a,n):a;if(h){const f=new r;f.id=e,f.__vtjSource=p,f.replaceSync(m);const g=c.adoptedStyleSheets||[],v=Array.from(g).filter(x=>x.id!==e);c.adoptedStyleSheets=[...v,f]}else{let f=l;f?f.innerHTML=m:(f=c.createElement("style"),f.id=e,f.innerHTML=m,c.head.appendChild(f)),f.__vtjSource=p}}function Si(t){const e=t.adoptedStyleSheets||[];let s="";if(e.forEach(i=>{try{for(const r of i.cssRules)s+=r.cssText+`
|
|
10
10
|
`}catch(r){console.error("Failed to read cssRules from adopted stylesheet:",r)}}),s){const i=t.createElement("style");i.textContent=s,t.head.appendChild(i)}}async function ds(t,e){const s=await globalThis.fetch(e).then(i=>i.text()).catch(()=>"");s&&qe(globalThis,t,s)}function St(t,e=globalThis){const s=e.document,i=e.document.head;for(const r of t)if(!s.getElementById(r)){const a=s.createElement("link");a.rel="stylesheet",a.id=r,a.href=r,i.appendChild(a)}}async function Ct(t,e,s=globalThis){const i=s.document,r=s.document.head;let n=s[e];if(n)return n.default||n;for(const a of t){const o=i.getElementById?.(a);if(o?.__vtjLoading){await o.__vtjLoading;continue}if(o)continue;const c=i.createElement("script");c.id=a,c.src=a,c.__vtjLoading=new Promise((h,l)=>{c.onload=()=>h(),c.onerror=p=>{c.remove?.(),l(p)}}),r.appendChild(c),await c.__vtjLoading}return n=s[e],n?n.default||n:Promise.reject(null)}function ms(t){return d.isFunction(t)&&Object.getOwnPropertyNames(t.prototype||{}).length===0||d.isFunction(t?.install)}function gs(t){return ns.includes(t)}function vs(t){return yt.includes(t)}function Ce(t=globalThis){const e=globalThis?.Mock;if(e)return e;const s=t?.Mock;if(s&&globalThis)return globalThis.Mock=s,s}function Ci(t,e,s){Object.assign(e.meta,s.meta);const i=t?._container;s?.type==="page"&&i.classList.add("is-page"),s?.pure&&i.classList.add("is-pure")}function xs(t){return/^\([\s\S]*\)/.test(t.trim())}function bs(t){return/\w+\([\s\S]*\)$/.test(t.trim())}function ys(t){return t.includes("=")}var at={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ot="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",wi={5:ot,"5module":ot+" export import",6:ot+" const class extends export import super"},Ei=/^in(stanceof)?$/,wt="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",_s="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",ki=new RegExp("["+wt+"]"),Ii=new RegExp("["+wt+_s+"]");wt=_s=null;var Ss=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],Ai=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function ft(t,e){for(var s=65536,i=0;i<e.length;i+=2){if(s+=e[i],s>t)return!1;if(s+=e[i+1],s>=t)return!0}}function oe(t,e){return t<65?t===36:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&ki.test(String.fromCharCode(t)):e===!1?!1:ft(t,Ss)}function we(t,e){return t<48?t===36:t<58?!0:t<65?!1:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&Ii.test(String.fromCharCode(t)):e===!1?!1:ft(t,Ss)||ft(t,Ai)}var k=function(e,s){s===void 0&&(s={}),this.label=e,this.keyword=s.keyword,this.beforeExpr=!!s.beforeExpr,this.startsExpr=!!s.startsExpr,this.isLoop=!!s.isLoop,this.isAssign=!!s.isAssign,this.prefix=!!s.prefix,this.postfix=!!s.postfix,this.binop=s.binop||null,this.updateContext=null};function G(t,e){return new k(t,{beforeExpr:!0,binop:e})}var q={beforeExpr:!0},U={startsExpr:!0},Et={};function E(t,e){return e===void 0&&(e={}),e.keyword=t,Et[t]=new k(t,e)}var u={num:new k("num",U),regexp:new k("regexp",U),string:new k("string",U),name:new k("name",U),eof:new k("eof"),bracketL:new k("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new k("]"),braceL:new k("{",{beforeExpr:!0,startsExpr:!0}),braceR:new k("}"),parenL:new k("(",{beforeExpr:!0,startsExpr:!0}),parenR:new k(")"),comma:new k(",",q),semi:new k(";",q),colon:new k(":",q),dot:new k("."),question:new k("?",q),questionDot:new k("?."),arrow:new k("=>",q),template:new k("template"),invalidTemplate:new k("invalidTemplate"),ellipsis:new k("...",q),backQuote:new k("`",U),dollarBraceL:new k("${",{beforeExpr:!0,startsExpr:!0}),eq:new k("=",{beforeExpr:!0,isAssign:!0}),assign:new k("_=",{beforeExpr:!0,isAssign:!0}),incDec:new k("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new k("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:G("||",1),logicalAND:G("&&",2),bitwiseOR:G("|",3),bitwiseXOR:G("^",4),bitwiseAND:G("&",5),equality:G("==/!=/===/!==",6),relational:G("</>/<=/>=",7),bitShift:G("<</>>/>>>",8),plusMin:new k("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:G("%",10),star:G("*",10),slash:G("/",10),starstar:new k("**",{beforeExpr:!0}),coalesce:G("??",1),_break:E("break"),_case:E("case",q),_catch:E("catch"),_continue:E("continue"),_debugger:E("debugger"),_default:E("default",q),_do:E("do",{isLoop:!0,beforeExpr:!0}),_else:E("else",q),_finally:E("finally"),_for:E("for",{isLoop:!0}),_function:E("function",U),_if:E("if"),_return:E("return",q),_switch:E("switch"),_throw:E("throw",q),_try:E("try"),_var:E("var"),_const:E("const"),_while:E("while",{isLoop:!0}),_with:E("with"),_new:E("new",{beforeExpr:!0,startsExpr:!0}),_this:E("this",U),_super:E("super",U),_class:E("class",U),_extends:E("extends",q),_export:E("export"),_import:E("import",U),_null:E("null",U),_true:E("true",U),_false:E("false",U),_in:E("in",{beforeExpr:!0,binop:7}),_instanceof:E("instanceof",{beforeExpr:!0,binop:7}),_typeof:E("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:E("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:E("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},z=/\r\n?|\n|\u2028|\u2029/,Te=new RegExp(z.source,"g");function Le(t,e){return t===10||t===13||!e&&(t===8232||t===8233)}var Cs=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,W=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ws=Object.prototype,Pi=ws.hasOwnProperty,Ti=ws.toString;function We(t,e){return Pi.call(t,e)}var Wt=Array.isArray||(function(t){return Ti.call(t)==="[object Array]"});function he(t){return new RegExp("^(?:"+t.replace(/ /g,"|")+")$")}var Ne=function(e,s){this.line=e,this.column=s};Ne.prototype.offset=function(e){return new Ne(this.line,this.column+e)};var Ke=function(e,s,i){this.start=s,this.end=i,e.sourceFile!==null&&(this.source=e.sourceFile)};function Es(t,e){for(var s=1,i=0;;){Te.lastIndex=i;var r=Te.exec(t);if(r&&r.index<e)++s,i=r.index+r[0].length;else return new Ne(s,e-i)}}var dt={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function Ni(t){var e={};for(var s in dt)e[s]=t&&We(t,s)?t[s]:dt[s];if(e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),e.allowReserved==null&&(e.allowReserved=e.ecmaVersion<5),Wt(e.onToken)){var i=e.onToken;e.onToken=function(r){return i.push(r)}}return Wt(e.onComment)&&(e.onComment=Ri(e,e.onComment)),e}function Ri(t,e){return function(s,i,r,n,a,o){var c={type:s?"Block":"Line",value:i,start:r,end:n};t.locations&&(c.loc=new Ke(this,a,o)),t.ranges&&(c.range=[r,n]),e.push(c)}}var Re=1,je=2,kt=Re|je,ks=4,Is=8,As=16,Ps=32,Ts=64,Ns=128;function It(t,e){return je|(t?ks:0)|(e?Is:0)}var Kt=0,At=1,ee=2,Rs=3,Os=4,Vs=5,N=function(e,s,i){this.options=e=Ni(e),this.sourceFile=e.sourceFile,this.keywords=he(wi[e.ecmaVersion>=6?6:e.sourceType==="module"?"5module":5]);var r="";if(e.allowReserved!==!0){for(var n=e.ecmaVersion;!(r=at[n]);n--);e.sourceType==="module"&&(r+=" await")}this.reservedWords=he(r);var a=(r?r+" ":"")+at.strict;this.reservedWordsStrict=he(a),this.reservedWordsStrictBind=he(a+" "+at.strictBind),this.input=String(s),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
|
package/dist/index.mjs
CHANGED
|
@@ -7,10 +7,10 @@ import { useRoute as ms } from "vue-router";
|
|
|
7
7
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
8
8
|
* @name @vtj/renderer
|
|
9
9
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
10
|
-
* @version 0.19.
|
|
10
|
+
* @version 0.19.7
|
|
11
11
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
12
12
|
*/
|
|
13
|
-
const we = "0.19.
|
|
13
|
+
const we = "0.19.7";
|
|
14
14
|
var T = /* @__PURE__ */ ((t) => (t.Runtime = "Runtime", t.Design = "Design", t.Raw = "Raw", t.VNode = "VNode", t))(T || {});
|
|
15
15
|
const Zt = [
|
|
16
16
|
"$el",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/renderer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.19.
|
|
4
|
+
"version": "0.19.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"低代码引擎",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"eval5": "^1.4.8",
|
|
25
|
-
"@vtj/
|
|
26
|
-
"@vtj/
|
|
25
|
+
"@vtj/core": "~0.19.7",
|
|
26
|
+
"@vtj/utils": "~0.19.7"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"vue": "~3.5.37",
|
package/types/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/renderer
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.19.
|
|
5
|
+
* @version 0.19.6
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.19.
|
|
8
|
+
export declare const version = "0.19.6";
|