@jiess/core
Version:
基于javascript的配置式渲染库,同时支持vue2,vue3和react
1 lines • 18.9 kB
JavaScript
const t="JIESS_CONSTRUCTOR",e="isJiess",s="THIS_IS_JIESS",n="JIESS_INIT_VALUE",i="_isJiessRef",r="_isJiessComputed",o="_initialParent",c=[t,"_isVue","_uid","_Ctor","__v_isRef","__v_isReactive","$$typeof","_store",{field:"install",type:"function"}],a=["is","component","$exclude"],u=(t,e,s=!0)=>{if(Object.is(t,e))return!0;const n=Object.prototype.toString.call(t);if(n!==Object.prototype.toString.call(e))return!1;if("[object Date]"===n)return t.getTime()===e.getTime();if("[object Promise]"===n)return!1;if("function"==typeof t)return String(t)===String(e);if(t&&"object"==typeof t){const n=Object.keys(t),i=Object.keys(e);if(n.length===i.length){let n=t,i=e;if(s){const s=[],r=[];if(n=l(t,(t=>(s.push(t),s.length))),i=l(e,(t=>(r.push(t),r.length))),s.length!==r.length)return!1;if(!s.every(((t,e)=>Object.is(t,r[e]))))return!1}return function(t,e){const s=Object.keys(t),n=Object.keys(e);for(let i of s){if(!n.includes(i))return!1;if(!u(t[i],e[i],!1))return!1}return!0}(n,i)}}return!1};const h=(...t)=>{},f=function(t,e,s=!0){if("exp"===e&&(e="RegExp"),Array.isArray(e))return e.some((e=>f(t,e)));if(s&&!f(e,"string",!1))throw new Error(`${e} Error:须提供字符串`);return e=(n=e).slice(0,1).toUpperCase()+n.slice(1),Object.prototype.toString.call(t)===`[object ${e}]`;var n},l=(t,e,s=new WeakSet)=>{if(f(t,["array","object"])){if(s.has(t))return e?.(t,"loop");if(s.add(t),Array.isArray(t))return t.map((t=>l(t,e,s)));if(g(t))return e?.(t,"filter")||t;{const n={};for(const i in t)if(a.includes(i))n[i]=t[i];else if(Reflect.has(t,i)){const r=t[i];n[i]=l(r,e,s)}return n}}return t},p=(t,e)=>!(!e||""!==t)||[null,void 0,NaN].some((e=>Object.is(e,t))),d=(t,e)=>!p(t,e),y=(t=!1)=>{let e;return function(s,n=100){d(e,!0)?clearTimeout(e):t&&s(),e=setTimeout(s,n)}},b=((((y(),()=>{let t=0;return function(e,s=100){let n=(new Date).getTime();n-t>s&&e(),t=n}})(),()=>{let t=!0;return function(e,s=100){t&&(t=!1,setTimeout((()=>{t=!0,e()}),s))}})(),()=>{let t=0;return function(e,s=100){let n=(new Date).getTime();n-t>s&&(t=n,e())}})(),(t,e)=>{throw new Error(`${t} Error:${e}`)}),v=(e,s,n=t)=>!!f(e,"object")&&Object.is(e[n],s),g=t=>c.some((e=>{if("string"==typeof e)return Reflect.has(t,e);{const{field:s,type:n}=e;if(Reflect.has(t,s))return f(t[s],n)}}));function m(t,e,s=h,n="数据类型"){if(f(t,e))return s();b(n,`须提供 ${e} 类型`)}function _(t={},e="toString"){if("function"==typeof t[e]){if("string"==typeof e){const s=new RegExp(e,"g");return(t[e]+"").replace(s,"")}return t[e]+""}}const x=(()=>{const t=_();return(e,s)=>_(e,s)===t})(),$=(t,e)=>Array.isArray(t)?[...t]:f(t,"object")?{...t}:e?void b("shallowCopy","须提供对象或数组"):t,w=(t,e,s={})=>{if(t.has(e)){const n=s;s=t.get(e),"function"==typeof n&&n(s)}return s};function j(t){return v(t,"JsRender")}function R(t,e){j(t)?e(t):Array.isArray(t)&&t.forEach((t=>{j(t)&&e(t)}))}function S(t){R(t,(t=>{t.destory()}))}const O=new WeakMap;function P(t){return!(!t||"object"!=typeof t||!t[s])}const C=t=>!!f(t,"object")&&Reflect.has(t,"$proxy"),E=t=>{const{$proxy:e,field:s,done:n}=t;return n?n(e):s?e[s]:e},k=t=>{if(C(t)){const{$proxy:e,field:s="value"}=t;return e[s]}return t},N=(t,e)=>Array.isArray(t)?function(t){let e=null;return t.filter((t=>{if(!j(t))return!0;{const s=t,{_resConfig:n,_resData:i}=s;if(void 0!==n.$show){const t=i.style={...i.style};if(O.has(s)||O.set(s,t.display),n.$show){if("none"===t.display){const e=O.get(s);e?t.display=e:delete t.display}}else t.display="none"}let{$if:r=!0,$elseIf:o}=n;if(r=k(r),o=k(o),!d(o,!0))return n.hasOwnProperty("$if")?(e=!!r,r):(e=null,r);if("boolean"==typeof e){const t=o&&!e;return t&&(e=!0),t}b("$elseIf","须配合$if")}}))}(t).map(N):j(t)?t.getNative(e):d(t)?t:void 0;class A{static uid=1;constructor(e,s={}){this[t]=e,this.J_uid=A.uid++,"function"==typeof s&&(s=s(this)),Object.assign(this,s),this.bindCxt()}bindCxt(){for(const t of Reflect.ownKeys(this.__proto__))"constructor"!==t&&"string"==typeof t&&("function"==typeof this[t]&&(this[t]=this[t].bind(this)),this.freezeField(t))}resetField(t,e){Object.prototype.hasOwnProperty.call(this,t)&&Object.defineProperty(this,t,{value:e})}freezeField(t){Object.prototype.hasOwnProperty.call(this,t)&&Object.defineProperty(this,t,{writable:!1,enumerable:!0,configurable:!0})}}const J=class extends A{watcher;fn;flush;constructor(t,e,s="async"){super("Composite"),this.watcher=t,this.fn=e,this.flush=s,this.effecting="doned",this.debounce1=y()}initComputed(t,e){this.computer=!0,this.target=t,this.proxy=e}init(t,e,s,n){return this.watcher.effecter.addCurrent(this),this.done(t,e,s,n),this.watcher.effecter.removeCurrent(),this.value}done(t,e,s,n){return this.effecting="start",this.value=this.fn(t,e,s,n),this.effecting="computed",this.computer&&(this.proxy.value=this.value),this.effecting="doned",this.value}check(t){this.computer?"start"===this.effecting?b("Computed","计算中禁止赋值"):"function"==typeof t&&t((t=>{this.target.value=t,this.watcher.effecter.trigger(this.target,"value",t,this.proxy)})):"function"==typeof t&&t()}trigger(t,e,s,n){this.check(((i=h)=>{"sync"===this.flush?i(this.init(t,e,s,n)):this.debounce1((()=>i(this.init())),0)}))}},T=[Symbol.iterator,"constructor","__proto__","prototype",NaN,null,void 0,1/0],D=class extends A{watcher;current;execStack=[];mapStore;constructor(t){super("Effecter"),this.watcher=t,this.mapStore=new WeakMap}addCurrent(t){this.current&&this.execStack.push(this.current),this.current=t}removeCurrent(){this.current=this.execStack.pop()}collect(t,e){if("start"!==this.current?.effecting)return;if(T.includes(e))return;if(x(t,e))return;const s=w(this.mapStore,t),n=e;s[n]=s[n]||new Set,s[n].add(this.current),this.mapStore.set(t,s)}trigger(t,e,s,n){if(T.includes(e))return;if(x(t,e))return;this.current?.check();const i=w(this.mapStore,t);i.hasOwnProperty(e)&&i[e].forEach((i=>i.trigger(t,e,s,n))),this.watcher.update(n,e,s)}},V=(t,e)=>void 0===t?e:t;class I extends A{proxy;field;config;reuse=!1;constructor(t,e,s={}){super("Observe"),this.proxy=t,this.field=e,this.config=s,this.cbs=new Set,this.debounce1=y();const{hasKey:n,defaultValue:i,observe:r,...o}=s;this.observe(r),this.other=o,this.value=n?t[e]:$(t);const c=this.value=V(this.value,i);this.getValue(((t,e)=>{this.result=t,e&&this.dispatch(t,{value:c,...o})}))}getValue(t){const{value:e,config:s,result:n}=this,{defaultValue:i,done:r}=s;"function"==typeof r?f(r,"AsyncFunction")?(r(e,this).then((e=>t(e,!0))),t(V(n,i))):t(r(e,this)):t(e)}observe(t){return"function"==typeof t&&this.cbs.add(t),this}resolve(t){const e=this.value,s={value:t,oldValue:e,...this.other};let{isSync:n,hasKey:i,sameState:r=!1}=this.config;if(i){try{r=u(e,t)}catch(t){console.error(t)}if(r)return;this.value=t,this.oldValue=e,this.getValue((t=>this.dispatch(t,s)))}else{const e=()=>{this.value=$(t),this.getValue((t=>this.dispatch(t,s)))};n?e():this.debounce1((()=>e()),0)}}dispatch(t,e){e.oldResult=this.result,e.result=this.result=t,this.cbs.forEach((s=>s(t,e.oldResult,e)))}}const U=class extends A{watcher;constructor(t){super("Observer"),this.watcher=t}create(e,n){return g(e)&&"Target"!==e[t]?e:m(e,["array","object"],(()=>{const t=new Proxy(e,{get:(t,e,i)=>e===s||("_initialTarget"===e?t:e===o?n:e===Symbol.toStringTag?Array.isArray(t)?"Array":"Object":(this.watcher.effecter.collect(t,e),v(t,!0,r)&&"value"===e?t.getValue():Reflect.get(t,e,i))),set:(t,e,s,i)=>(e===o&&(n=s),!!Object.is(t[e],s)||(this.trigger(t,e,s,i),Reflect.set(t,e,s,i))),deleteProperty:(e,s)=>(s in e&&this.trigger(e,s,void 0,t),Reflect.deleteProperty(e,s))});for(const s in e)a.includes(s)||f(e[s],["array","object"])&&(e[s]=this.create(e[s],t));return t}),"创建响应式数据")}trigger(t,e,s,n){const{effecter:i}=this.watcher;v(t,!0,r)?t.setValue(s,e):i.trigger(t,e,s,n)}},M=class extends A{_setter;_composite;constructor(){super("Target"),this[s]=!0,this.value=n,this[r]=!0}initSetter(t){this._setter=t}initComposite(t){this._composite=t}getValue(){return this.value===n&&(this.value=this._composite?.init()),this.value}setValue(t,e){"value"!==e?b("Computed","仅允许对value赋值"):"function"==typeof this._setter?this._setter(t):"computed"===this._composite?.effecting||b("Computed","须提供setter")}},W=new WeakMap,K=new WeakMap;class F extends A{static instance;effecter;observer;constructor(){return super("Watcher"),this.observer=new U(this),this.effecter=new D(this),F.instance?F.instance:F.instance=this}createProxy(t){let e=!1;const s=l(t,((t,s)=>{"loop"===s&&(e=!0)}));return e?this.observer?.create(s):this.observer?.create(t)}createComputed(t,e){const s=new M,n=this.createProxy(s);if(f(t,"object")){const{get:e,set:n}=t;"function"==typeof e&&(t=e),"function"==typeof n&&s.initSetter(n)}const i=new J(this,t,e);return s.initComposite(i),i.initComputed(s,n),n}watchEffect(t,e){new J(this,t,e).init()}observe(t={$proxy:{}}){const{$proxy:e,field:n,warn:o=!0,...c}=t,a=Reflect.has(e,r)||Reflect.has(e,i)?"value":n,u=c.hasKey=f(a,["number","string"]);if(e[s]){const t=new I(e,a,c);if(u){const s=w(W,e,[]),n=a;s[n]=s[n]||[],s[n].push(t),W.set(e,s)}else{const s=w(K,e,[]);K.set(e,s),s.push(t)}return t}if(!o)return E(t);if("function"==typeof o){const t=c.done,s=o(e,a);return t?t(s):s}console.warn("$proxy:需要定义为响应式对象")}bind(t,e,s,{cb:n}){if(!f(s,["number","string"])){const i=s,r=this.createProxy(i);return r[o]=t,"function"==typeof n?n(r):e&&(t[e]=r),r}t[e]=s}update(t,e,s){w(W,t,(t=>{const n=t[e];Array.isArray(n)&&n.forEach((t=>t.resolve(s)))})),this.resolveParent(t)}resolveParent(t){w(K,t,(e=>{Array.isArray(e)&&e.forEach((e=>e.resolve(t)))}));const e=t[o];e?.[s]&&this.resolveParent(e)}}let B=1,z="jiess";const q=class extends A{ctx;expose={};isDestory=!1;constructor(t,e){super("JsRender"),this.ctx=t,this._buildNode(e)}_buildNode({config:t,data:s}){s.is=yt(s.is),this[e]=v(s.is,!0,e),this._resData=this._initParam(s),this._resConfig=this._initParam(t);const{$ref:n}=this._resConfig;"function"==typeof n?this.ctx.nextTick((()=>{((t=h,e=0)=>{let s=setTimeout((()=>{null!==s&&clearTimeout(s),t()}),e)})((()=>n(this.expose,this)))})):f(n,"object")&&n[i]&&(n.value=this.expose)}_initParam(t){const e={};for(const s in t){const n=t[s];f(n,["object","array"])?this._analyObserve(e,n,s):e[s]=n}return e}_analyObserve(t,s,n){const i=this.ctx._slotRender;if("$if"!==n&&"$elseIf"!==n&&this[e])t[n]=s;else if(C(s))if(P(s.$proxy)){const e=(s=this.ctx._observe(s)).result;t[n]="children"===n?i.initNodes(e):e,s.observe(((e,s)=>{this.isDestory||("children"===n?(S(s),t[n]=i.initNodes(e)):t[n]=e,this.ctx.forceUpdate())}))}else t[n]=E(s);else t[n]="children"===n?i.initNodes(s):s}_initKey(t,e){return f(t,"object")&&p(t.key)&&(t.key=d(e)?`${z}_${e}`:"auto_"+B++),t}_injectKey({J_uid:t}){let{key:e}=this._resData;if(e){if("string"==typeof e){if(e.startsWith("_static_"))return;if(Number(e.split("_")[1])===t)return}}else e=this.J_uid;this._resData.key=`${z}_${t}_${e}`}getNative(t){const{ctx:s,_resData:n}=this,{component:i,_slotRender:r}=s,{is:o,key:c,children:a,...u}=n;if(v(o,!0,e)){if(!this._vnode){const{jiessEnv:e}=i,{slot:s,...n}=u,r=this._initKey({is:o,key:c,slot:s},t);this._vnode=e.createVNode(r,(()=>(this.component=new st(o,e),{NativeComponent:this.component.start(n,a,this),component:this.component})))}return this._vnode}return r.toRender(this,t)}destory(){this.isDestory||(this.isDestory=!0,this[e]?this.component&&S(this.ctx._nodes):S(this._resData.children))}},H=[];class L extends A{contextParam;static instance;$env="";$render;$moTag="div";JiessComponent;constructor(t={},e){super("Jiess"),this.contextParam=e,Object.assign(this,t),L.instance=this}static addCtx(t){H.push(t)}static removeCtx(t){H.splice(H.indexOf(t),1)}static useCtx(){return H[H.length-1]}useInjects(t){if(this.contextParam){const{$page:e,...s}=this.contextParam;return"function"==typeof e&&(s.$page=e.call(t,this)),s}}}const G=L,Q=class extends A{ctx;constructor(t,e){super("Attrs"),this.ctx=t,this.config={},this.data={},this.init(this.initAttrs(e))}initAttrs({...t}={}){const e=t.class||t.className,{env:s}=this.ctx.component.jiessEnv;return delete t.class,delete t.className,e&&(t["vue3"===s?"class":"className"]=e),t}init(t){const{env:e}=this.ctx.component.jiessEnv,{children:s,...n}=function(t,e){const{$mergeAttrs:s,...n}=e;return Object.assign(n,s?.[t])}(e,t);var i,r,o;return i=["$if","$ref","$elseIf","$name","$show","$slots","$render","$observe","$slotData","$mergeAttrs"],r=n,o=this.config,i.forEach((t=>{r.hasOwnProperty(t)&&(o[t]=r[t],delete r[t])})),d(s)&&(n.children=s),this.data=n,this}},X=new WeakMap,Y=class extends A{ctx;attrs;constructor(t,e){if(super("Done"),this.ctx=t,this.attrs=e,X.has(e))return X.get(e);X.set(e,this)}beginSetup(t){const{ctx:e}=this,s={},{setup:n,props:r,name:o}=t,c=new Q(e,this.attrs);s.$param=c.data,s.$props=function(t,e,s=""){if(e){let n="",r={};return s&&(n=`${s} 组件 `),m(e,"function",(()=>{let s=e();m(s,"object",(()=>{for(let e in s){const o=s[e];let c,a=!1,u=null,h=!1,l=!1;if("string"==typeof o)u=o;else if("object"==typeof o){const t=o;u=t.type,c=t.default,l=!!t.isRef,a=!!t.required,h=!!t.isResponsive}a&&!t.hasOwnProperty(e)&&b(`${n}${e}`,"必须");const p=t=>{if(void 0!==t)return"string"!=typeof u||f(t,u)||b(`${n}${e}`,`须提供 ${u} 类型`),t},d=t=>t&&"object"==typeof t&&t[i],y=t.hasOwnProperty(e)?t[e]:c;h&&!P(y)&&b(`${n}${e}`,"须提供 Jiess 响应式数据"),d(y)?(p(y.value),r[e]=y):void 0!==y&&l?b(`${n}${e}`,"须提供 JiessRef 响应式数据"):r[e]=p(y)}}),`${n}Props 返回`)}),`${n}Props 定义`),r}return{...t}}(c.data,r,o),e.expose(s),m(n,["function","asyncFunction"],(()=>{G.addCtx(e),n.call(e,s.$props,s.$param),G.removeCtx(e)}),"setup函数")}buildRender(t=this.attrs){return this.jsRender&&!this.jsRender.isDestory||(this.jsRender=new q(this.ctx,new Q(this.ctx,t))),this.jsRender}},Z=class extends A{ctx;children;constructor(t,e){super("SlotRender"),this.ctx=t,this.children=e}initNodes(t){return p(t)?t:[t].flat(1/0).filter((t=>d(t))).map((t=>{if("function"==typeof t)return t;if("object"!=typeof t)return t+"";if(!("$slot"in t))return j(t)?t:new Y(this.ctx,t).buildRender();{const{$slot:e="default",...s}=t,{slots:n,baseCnf:i}=this.initSlots(e,s);if(d(n))return this.initNodes(n);if(f(s,"object"))return this.initNodes(i)}}))}initSlots(t="default",{$slotData:e,...s}={}){const{$slots:n}=this.ctx.PJR?._resConfig||{};if(n&&"object"==typeof n){let i=n[t];return f(i,"function")&&(i=i.call(this.ctx,e)),"default"===t&&d(this.children)&&(i=d(i)?i:this.children),{baseCnf:s,slots:i}}return{baseCnf:s,slots:this.children}}toRender(t,e){const{$moTag:s,$env:n}=this.ctx.jiess,{is:i=s,children:r,...o}=t._resData;t._initKey(o,e);const c=this.getSlots(o,r,t);return"JiessFragment"===i?"vue3"===n?c.default.call(this):c:this.$h(i,o,c,t)}$h(t,e,s,n){const{jiessEnv:i}=this.ctx.component;return i.createElement(t,e,s,n)}getSlots(t,e,s){const{ctx:n}=this,{env:i}=n.component.jiessEnv,r=t=>{const e=this.initNodes(t);return R(e,(t=>t._injectKey(s))),N(e)};let{$slots:o}=s._resConfig||{};if("react"!==i){t.scopedSlots=t.scopedSlots||{};const s=t.scopedSlots;o={...o};let c={};for(let t in o){let e=o[t];"vue2"===i?"function"==typeof e?s[t]=t=>r(e.call(n,t)):c[t]=r(e):c[t]=t=>r(f(e,"function")?e.call(n,t):e)}return c.hasOwnProperty("default")||("vue2"===i?s.hasOwnProperty("default")||d(e)&&(c.default=r(e)):d(e)&&(c.default=()=>r(e))),"vue2"===i?Object.values(c).flat(1/0):c}if(d(e)){let t=r(e);return t.length>1?t:t[0]}}};function tt(t,e=1/0,s){const{_provideData:n,PJR:i}=s?.ctx||{},r=n;return f(r,"object")&&r.hasOwnProperty(t)?r[t]:i&&e>0?tt(t,--e,i):null}const et=class extends A{component;PJR;$obs={};_provideData={};_slotRender;_nodes=[];_lifts={beforeRender:[],beforeMount:[],mounted:[],beforeUpdate:[],updated:[],beforeUnmount:[]};constructor(t,e,s,n){const{IS:i,jiessEnv:r}=t;super("Context",(t=>r.jiess.useInjects(t))),this.component=t,this.PJR=n,this.jiess=r.jiess,this._slotRender=new Z(this,s),new Y(this,e).beginSetup(i)}forceUpdate(){this.component.frame?.forceUpdate()}onBeforeRender(t){this._lifts.beforeRender.push({fn:t,once:!1})}onBeforeMount(t){this._lifts.beforeMount.push({fn:t,once:!1})}onMounted(t){this._lifts.mounted.push({fn:t,once:!1})}onBeforeUpdate(t,e=!1){this._lifts.beforeUpdate.push({fn:t,once:e})}onUpdated(t,e=!1){this._lifts.updated.push({fn:t,once:e})}onBeforeUnmount(t){this._lifts.beforeUnmount.push({fn:t,once:!1})}nextTick(t){switch(this.jiess.$env){case"vue3":this.jiess.nextTick(t);break;case"vue2":this.component.frame?.$nextTick(t);break;default:p(t)}}add(...t){return this._nodes=[...this._nodes,...this._slotRender.initNodes(t)],this}native(...t){return N(this._slotRender.initNodes(t))}provide(t={}){Object.assign(this._provideData,t)}inject(t,e){return tt(t,e,this.PJR)}expose(t){this.PJR&&Object.assign(this.PJR.expose,t)}_buildVNodeTree(){let t=N(this._nodes);return this._lifts.beforeRender.forEach((e=>{"function"==typeof e.fn&&(t=e.fn(t)||t,e.once&&delete e.fn)})),t}_observe({key:t,...e}){const{$proxy:s,field:n="value"}=e;let i=null;if(t&&"string"==typeof t){this.$obs[t]=this.$obs[t]||new WeakMap;const r=this.$obs[t].get(s)||{};Reflect.has(r,n)&&(e={defaultValue:r[n].result,...e}),i=r[n]=(new F).observe(e),this.$obs[t].set(s,r)}else i=(new F).observe(e);return i}},st=class extends A{IS;jiessEnv;cpn;ctx;frame;frameProps={};constructor(t,s){super("Component"),this.IS=t,this.jiessEnv=s,this[e]=!0}start(t={},e,s){return this.cpn=this.cpn||this.component(t,e,s)}component(t,e,s){return this.jiessEnv.component(this,(()=>{const n={...t};return this.ctx=new et(this,n,e,s),t=>{this.ctx._lifts[t].forEach((t=>{"function"==typeof t.fn&&(t.fn(),t.once&&delete t.fn)}))}}))}},nt=new WeakMap,it=new WeakMap,rt={},ot=v;function ct(t,e,s){const n={};e&&("object"==typeof e?Object.assign(n,e):n.field=e);const i=(new F).observe({$proxy:t,...n});v(i,"Observe")&&i.observe(s)}const at=(t,e="async")=>m(t,"function",(()=>(new F).watchEffect(t,e))),ut=t=>P(t);let ht=1;function ft(t){return lt({value:t,[i]:!0,__uid:ht++})}function lt(t){return m(t,["Object","Array"],(()=>{let e=null;return nt.has(t)?e=nt.get(t):(e=(new F).createProxy(t),nt.set(t,e)),e}))}function pt(t,e="async"){return m(t,["Object","Function"],(()=>{let s=null;return it.has(t)?s=it.get(t):(s=(new F).createComputed(t,e),it.set(t,s)),s}))}function dt(t,e){m(t,"string"),rt[t]=e}function yt(t){return rt[t]||t}function bt(t,e,s,n={}){return(new F).bind(t,e,s,n)}function vt(t,s,n){const i=new G((t=>{const e={...t},s=e.default;return delete e.default,Object.assign(e,s)})(s),n);return new t(i,(({is:t,setup:s,jiessEnv:n})=>{if(v(t,!0,e));else{if("function"!=typeof s)throw new Error("须提供(组件is)或(setup函数)");t={isJiess:!0,name:"JiessComponent",setup:s}}return new st(t,n)})),i}const gt=vt;export{ot as $check,dt as $component,pt as $computed,vt as $entry,ut as $isReactive,lt as $reactive,ft as $ref,bt as $set,yt as $useComponent,ct as $watch,at as $watchEffect,gt as default};