@duxweb/dvha-naiveui 1.0.4 → 1.0.5
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/cjs/hooks/menu.cjs +1 -1
- package/dist/cjs/hooks/tab.cjs +1 -1
- package/dist/cjs/hooks/table.cjs +1 -1
- package/dist/cjs/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.cjs +1 -1
- package/dist/cjs/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.cjs +1 -1
- package/dist/cjs/node_modules/@vueuse/shared/index.cjs +1 -1
- package/dist/esm/hooks/menu.js +1 -1
- package/dist/esm/hooks/tab.js +14 -13
- package/dist/esm/hooks/table.js +91 -68
- package/dist/esm/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +80 -76
- package/dist/esm/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +5 -4
- package/dist/esm/node_modules/@vueuse/shared/index.js +65 -34
- package/dist/types/hooks/table.d.ts +9 -3
- package/package.json +1 -1
package/dist/cjs/hooks/menu.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@duxweb/dvha-core");require("../node_modules/vue/dist/vue.runtime.esm-bundler.cjs");const t=require("../node_modules/vue-router/dist/vue-router.cjs"),r=require("../node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.cjs");function s(u){const n=o.useMenu(u);return{options:r.computed(()=>{const a=n.getMenu(!0).map(e=>({...e,key:e.name,icon:e!=null&&e.icon?()=>r.h("div",{class:`${e.icon} size-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@duxweb/dvha-core");require("../node_modules/vue/dist/vue.runtime.esm-bundler.cjs");const t=require("../node_modules/vue-router/dist/vue-router.cjs"),r=require("../node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.cjs");function s(u){const n=o.useMenu(u);return{options:r.computed(()=>{const a=n.getMenu(!0).map(e=>({...e,key:e.name,icon:e!=null&&e.icon?()=>r.h("div",{class:`${e.icon} size-5`}):void 0,labelName:e.label,label:()=>e.path?r.h(t.RouterLink,{to:{path:e.path}},{default:()=>e.label}):e.label}));return o.arrayToTree(a,{idKey:"key",parentKey:"parent",childrenKey:"children",sortKey:"sort"},void 0)}),...n}}exports.useNaiveMenu=s;
|
package/dist/cjs/hooks/tab.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@duxweb/dvha-core");require("../node_modules/vue/dist/vue.runtime.esm-bundler.cjs");const n=require("../node_modules/vue-router/dist/vue-router.cjs"),s=require("../node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.cjs");function c(){const e=a.useTabStore(),t=n.useRouter(),o=s.computed(()=>({value:e.current,defaultValue:e.current,onClose:r=>{e.delTab(r,u=>{t.push(u.path||"")})},onUpdateValue:r=>{e.changeTab(r,u=>{t.push(u.path||"")})}}));return{...e,props:o}}exports.useNaiveTab=c;
|
package/dist/cjs/hooks/table.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("@duxweb/dvha-core");require("../node_modules/vue/dist/vue.runtime.esm-bundler.cjs");const x=require("../node_modules/@vueuse/shared/index.cjs"),F=require("../node_modules/lodash-es/cloneDeep.cjs"),u=require("../node_modules/@vue/reactivity/dist/reactivity.esm-bundler.cjs"),l=require("../node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.cjs");function O(o){const f=u.toRef(o.filters);l.watch(()=>o.filters,e=>{f.value=e},{deep:!0});const r=u.toRef(typeof o.pagination=="object"?o.pagination:{page:1,pageSize:20}),s=u.ref([]),d=u.ref({}),i=u.ref({}),g=u.ref([]),c=u.ref({...f.value,...i.value});x.debouncedWatch([f,i],([e,t])=>{Object.keys(c.value).forEach(n=>{delete c.value[n]}),Object.assign(c.value,e,t)},{debounce:300,deep:!0}),l.watch(c,()=>{s.value=[]});const{data:p,isLoading:h,refetch:k}=m.useList({path:o.path,pagination:o.pagination?r.value:!1,filters:c.value,sorters:d.value}),U=l.computed(()=>{var e,t;return Math.ceil(((t=(e=p.value)==null?void 0:e.meta)==null?void 0:t[o.totalField||"total"])/r.value.pageSize)||0}),v=u.ref([]);l.watch(()=>o.columns,e=>{v.value=e},{immediate:!0});const C=l.computed(()=>v.value.filter(e=>e.show!==!1&&"key"in e).map(e=>e.key)),z=e=>{var n;const t=(n=F(o.columns))==null?void 0:n.map(a=>(!("key"in a)||!(a!=null&&a.key)||!("title"in a)||!(a!=null&&a.title)||e.includes(a.key)||(a.show=!1),a));v.value=[...t]},y=e=>{s.value=e},b=e=>{const t=Array.isArray(e)?e:[e],n={...d.value};t==null||t.forEach(a=>{a!=null&&a.columnKey&&(a.order?n[a.columnKey]=a.order==="ascend"?"asc":"desc":delete n[a.columnKey])}),d.value=n},S=e=>{const t={...i.value};Object.entries(e).forEach(([n,a])=>{t[n]=a}),i.value=t},w=e=>{g.value=e},R=e=>{r.value.pageSize=e,r.value.page=1},K=e=>{r.value.page=e},q=l.computed(()=>({page:r.value.page,pageSize:r.value.pageSize,pageCount:U.value,pageSizes:[10,20,30,40,50],pageSlot:5,onUpdatePage:K,onUpdatePageSize:R,showSizePicker:!0,showQuickJumper:!0})),E=l.computed(()=>{var e;return{remote:!0,checkedRowKeys:s.value,expandedRowKeys:g.value,onUpdateCheckedRowKeys:y,onUpdateExpandedRowKeys:w,onUpdateSorter:b,onUpdateFilters:S,loading:h.value,data:((e=p.value)==null?void 0:e.data)||[],columns:v.value.filter(t=>t.show!==!1)}}),P=l.computed(()=>{var e;return((e=p.value)==null?void 0:e.data)||[]}),j=l.computed(()=>{var e;return((e=p.value)==null?void 0:e.meta)||{}});return{list:P,meta:j,tablePagination:q,tableProps:E,columns:v,isLoading:h,columnSelected:C,tableCheckeds:s,tableExpanded:g,tableFilters:i,tableSorters:d,onRefresh:()=>{s.value=[],k()},onUpdateColumnSelected:z,onUpdateChecked:y,onUpdateExpanded:w,onUpdateSorter:b,onUpdateFilter:S,dataFilters:c,dataSorters:d}}exports.useNaiveTable=O;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* @vue/reactivity v3.5.14
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**/function N(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let d;const ee=new WeakSet;class ve{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ee.has(this)&&(ee.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||be(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,de(this),Ee(this);const t=d,s=y;d=this,y=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&d!==this&&N("Active effect was not restored correctly - this is likely a Vue internal bug."),we(this),d=t,y=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ae(t);this.deps=this.depsTail=void 0,de(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ee.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ie(this)&&this.run()}get dirty(){return ie(this)}}let ge=0,C,L;function be(e,t=!1){if(e.flags|=8,t){e.next=L,L=e;return}e.next=C,C=e}function ne(){ge++}function oe(){if(--ge>0)return;if(L){let t=L;for(L=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;C;){let t=C;for(C=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=s}}if(e)throw e}function Ee(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function we(e){let t,s=e.depsTail,r=s;for(;r;){const i=r.prevDep;r.version===-1?(r===s&&(s=i),ae(r),Ve(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=s}function ie(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ye(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ye(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===H)||(e.globalVersion=H,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ie(e))))return;e.flags|=2;const t=e.dep,s=d,r=y;d=e,y=!0;try{Ee(e);const i=e.fn(e._value);(t.version===0||c.hasChanged(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{d=s,y=r,we(e),e.flags&=-3}}function ae(e,t=!1){const{dep:s,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),process.env.NODE_ENV!=="production"&&s.subsHead===e&&(s.subsHead=i),s.subs===e&&(s.subs=r,!r&&s.computed)){s.computed.flags&=-5;for(let n=s.computed.deps;n;n=n.nextDep)ae(n,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Ve(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let y=!0;const Re=[];function ce(){Re.push(y),y=!1}function fe(){const e=Re.pop();y=e===void 0?!0:e}function de(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=d;d=void 0;try{t()}finally{d=s}}}let H=0;class je{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class le{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!d||!y||d===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==d)s=this.activeLink=new je(d,this),d.deps?(s.prevDep=d.depsTail,d.depsTail.nextDep=s,d.depsTail=s):d.deps=d.depsTail=s,Se(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const r=s.nextDep;r.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=r),s.prevDep=d.depsTail,s.nextDep=void 0,d.depsTail.nextDep=s,d.depsTail=s,d.deps===s&&(d.deps=r)}return process.env.NODE_ENV!=="production"&&d.onTrack&&d.onTrack(c.extend({effect:d},t)),s}trigger(t){this.version++,H++,this.notify(t)}notify(t){ne();try{if(process.env.NODE_ENV!=="production")for(let s=this.subsHead;s;s=s.nextSub)s.sub.onTrigger&&!(s.sub.flags&8)&&s.sub.onTrigger(c.extend({effect:s.sub},t));for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{oe()}}}function Se(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Se(r)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),process.env.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const q=new WeakMap,O=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),Q=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),V=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function b(e,t,s){if(y&&d){let r=q.get(e);r||q.set(e,r=new Map);let i=r.get(s);i||(r.set(s,i=new le),i.map=r,i.key=s),process.env.NODE_ENV!=="production"?i.track({target:e,type:t,key:s}):i.track()}}function D(e,t,s,r,i,n){const o=q.get(e);if(!o){H++;return}const a=f=>{f&&(process.env.NODE_ENV!=="production"?f.trigger({target:e,type:t,key:s,newValue:r,oldValue:i,oldTarget:n}):f.trigger())};if(ne(),t==="clear")o.forEach(a);else{const f=c.isArray(e),p=f&&c.isIntegerKey(s);if(f&&s==="length"){const v=Number(r);o.forEach((l,_)=>{(_==="length"||_===V||!c.isSymbol(_)&&_>=v)&&a(l)})}else switch((s!==void 0||o.has(void 0))&&a(o.get(s)),p&&a(o.get(V)),t){case"add":f?p&&a(o.get("length")):(a(o.get(O)),c.isMap(e)&&a(o.get(Q)));break;case"delete":f||(a(o.get(O)),c.isMap(e)&&a(o.get(Q)));break;case"set":c.isMap(e)&&a(o.get(O));break}}oe()}function Ke(e,t){const s=q.get(e);return s&&s.get(t)}function A(e){const t=h(e);return t===e?t:(b(t,"iterate",V),w(e)?t:t.map(g))}function Z(e){return b(e=h(e),"iterate",V),e}const Pe={__proto__:null,[Symbol.iterator](){return te(this,Symbol.iterator,g)},concat(...e){return A(this).concat(...e.map(t=>c.isArray(t)?A(t):t))},entries(){return te(this,"entries",e=>(e[1]=g(e[1]),e))},every(e,t){return S(this,"every",e,t,void 0,arguments)},filter(e,t){return S(this,"filter",e,t,s=>s.map(g),arguments)},find(e,t){return S(this,"find",e,t,g,arguments)},findIndex(e,t){return S(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return S(this,"findLast",e,t,g,arguments)},findLastIndex(e,t){return S(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return S(this,"forEach",e,t,void 0,arguments)},includes(...e){return se(this,"includes",e)},indexOf(...e){return se(this,"indexOf",e)},join(e){return A(this).join(e)},lastIndexOf(...e){return se(this,"lastIndexOf",e)},map(e,t){return S(this,"map",e,t,void 0,arguments)},pop(){return P(this,"pop")},push(...e){return P(this,"push",e)},reduce(e,...t){return pe(this,"reduce",e,t)},reduceRight(e,...t){return pe(this,"reduceRight",e,t)},shift(){return P(this,"shift")},some(e,t){return S(this,"some",e,t,void 0,arguments)},splice(...e){return P(this,"splice",e)},toReversed(){return A(this).toReversed()},toSorted(e){return A(this).toSorted(e)},toSpliced(...e){return A(this).toSpliced(...e)},unshift(...e){return P(this,"unshift",e)},values(){return te(this,"values",g)}};function te(e,t,s){const r=Z(e),i=r[t]();return r!==e&&!w(e)&&(i._next=i.next,i.next=()=>{const n=i._next();return n.value&&(n.value=s(n.value)),n}),i}const Ce=Array.prototype;function S(e,t,s,r,i,n){const o=Z(e),a=o!==e&&!w(e),f=o[t];if(f!==Ce[t]){const l=f.apply(e,n);return a?g(l):l}let p=s;o!==e&&(a?p=function(l,_){return s.call(this,g(l),_,e)}:s.length>2&&(p=function(l,_){return s.call(this,l,_,e)}));const v=f.call(o,p,r);return a&&i?i(v):v}function pe(e,t,s,r){const i=Z(e);let n=s;return i!==e&&(w(e)?s.length>3&&(n=function(o,a,f){return s.call(this,o,a,f,e)}):n=function(o,a,f){return s.call(this,o,g(a),f,e)}),i[t](n,...r)}function se(e,t,s){const r=h(e);b(r,"iterate",V);const i=r[t](...s);return(i===-1||i===!1)&&Ae(s[0])?(s[0]=h(s[0]),r[t](...s)):i}function P(e,t,s=[]){ce(),ne();const r=h(e)[t].apply(e,s);return oe(),fe(),r}const Le=c.makeMap("__proto__,__v_isRef,__isVue"),De=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(c.isSymbol));function We(e){c.isSymbol(e)||(e=String(e));const t=h(this);return b(t,"has",e),t.hasOwnProperty(e)}class me{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,r){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,n=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return n;if(s==="__v_raw")return r===(i?n?Qe:Te:n?qe:Oe).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=c.isArray(t);if(!i){let f;if(o&&(f=Pe[s]))return f;if(s==="hasOwnProperty")return We}const a=Reflect.get(t,s,E(t)?t:r);return(c.isSymbol(s)?De.has(s):Le(s))||(i||b(t,"get",s),n)?a:E(a)?o&&c.isIntegerKey(s)?a:a.value:c.isObject(a)?i?he(a):ue(a):a}}class He extends me{constructor(t=!1){super(!1,t)}set(t,s,r,i){let n=t[s];if(!this._isShallow){const f=T(n);if(!w(r)&&!T(r)&&(n=h(n),r=h(r)),!c.isArray(t)&&E(n)&&!E(r))return f?!1:(n.value=r,!0)}const o=c.isArray(t)&&c.isIntegerKey(s)?Number(s)<t.length:c.hasOwn(t,s),a=Reflect.set(t,s,r,E(t)?t:i);return t===h(i)&&(o?c.hasChanged(r,n)&&D(t,"set",s,r,n):D(t,"add",s,r)),a}deleteProperty(t,s){const r=c.hasOwn(t,s),i=t[s],n=Reflect.deleteProperty(t,s);return n&&r&&D(t,"delete",s,void 0,i),n}has(t,s){const r=Reflect.has(t,s);return(!c.isSymbol(s)||!De.has(s))&&b(t,"has",s),r}ownKeys(t){return b(t,"iterate",c.isArray(t)?"length":O),Reflect.ownKeys(t)}}class Ye extends me{constructor(t=!1){super(!0,t)}set(t,s){return process.env.NODE_ENV!=="production"&&N(`Set operation on key "${String(s)}" failed: target is readonly.`,t),!0}deleteProperty(t,s){return process.env.NODE_ENV!=="production"&&N(`Delete operation on key "${String(s)}" failed: target is readonly.`,t),!0}}const $e=new He,Fe=new Ye,re=e=>e,z=e=>Reflect.getPrototypeOf(e);function Be(e,t,s){return function(...r){const i=this.__v_raw,n=h(i),o=c.isMap(n),a=e==="entries"||e===Symbol.iterator&&o,f=e==="keys"&&o,p=i[e](...r),v=s?re:t?U:g;return!t&&b(n,"iterate",f?Q:O),{next(){const{value:l,done:_}=p.next();return _?{value:l,done:_}:{value:a?[v(l[0]),v(l[1])]:v(l),done:_}},[Symbol.iterator](){return this}}}}function G(e){return function(...t){if(process.env.NODE_ENV!=="production"){const s=t[0]?`on key "${t[0]}" `:"";N(`${c.capitalize(e)} operation ${s}failed: target is readonly.`,h(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function ze(e,t){const s={get(i){const n=this.__v_raw,o=h(n),a=h(i);e||(c.hasChanged(i,a)&&b(o,"get",i),b(o,"get",a));const{has:f}=z(o),p=t?re:e?U:g;if(f.call(o,i))return p(n.get(i));if(f.call(o,a))return p(n.get(a));n!==o&&n.get(i)},get size(){const i=this.__v_raw;return!e&&b(h(i),"iterate",O),Reflect.get(i,"size",i)},has(i){const n=this.__v_raw,o=h(n),a=h(i);return e||(c.hasChanged(i,a)&&b(o,"has",i),b(o,"has",a)),i===a?n.has(i):n.has(i)||n.has(a)},forEach(i,n){const o=this,a=o.__v_raw,f=h(a),p=t?re:e?U:g;return!e&&b(f,"iterate",O),a.forEach((v,l)=>i.call(n,p(v),p(l),o))}};return c.extend(s,e?{add:G("add"),set:G("set"),delete:G("delete"),clear:G("clear")}:{add(i){!t&&!w(i)&&!T(i)&&(i=h(i));const n=h(this);return z(n).has.call(n,i)||(n.add(i),D(n,"add",i,i)),this},set(i,n){!t&&!w(n)&&!T(n)&&(n=h(n));const o=h(this),{has:a,get:f}=z(o);let p=a.call(o,i);p?process.env.NODE_ENV!=="production"&&_e(o,a,i):(i=h(i),p=a.call(o,i));const v=f.call(o,i);return o.set(i,n),p?c.hasChanged(n,v)&&D(o,"set",i,n,v):D(o,"add",i,n),this},delete(i){const n=h(this),{has:o,get:a}=z(n);let f=o.call(n,i);f?process.env.NODE_ENV!=="production"&&_e(n,o,i):(i=h(i),f=o.call(n,i));const p=a?a.call(n,i):void 0,v=n.delete(i);return f&&D(n,"delete",i,void 0,p),v},clear(){const i=h(this),n=i.size!==0,o=process.env.NODE_ENV!=="production"?c.isMap(i)?new Map(i):new Set(i):void 0,a=i.clear();return n&&D(i,"clear",void 0,void 0,o),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=Be(i,e,t)}),s}function Ne(e,t){const s=ze(e,t);return(r,i,n)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(c.hasOwn(s,i)&&i in r?s:r,i,n)}const Ge={get:Ne(!1,!1)},Je={get:Ne(!0,!1)};function _e(e,t,s){const r=h(s);if(r!==s&&t.call(e,r)){const i=c.toRawType(e);N(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Oe=new WeakMap,qe=new WeakMap,Te=new WeakMap,Qe=new WeakMap;function Ue(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xe(e){return e.__v_skip||!Object.isExtensible(e)?0:Ue(c.toRawType(e))}function ue(e){return T(e)?e:xe(e,!1,$e,Ge,Oe)}function he(e){return xe(e,!0,Fe,Je,Te)}function xe(e,t,s,r,i){if(!c.isObject(e))return process.env.NODE_ENV!=="production"&&N(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const n=Xe(e);if(n===0)return e;const o=i.get(e);if(o)return o;const a=new Proxy(e,n===2?r:s);return i.set(e,a),a}function W(e){return T(e)?W(e.__v_raw):!!(e&&e.__v_isReactive)}function T(e){return!!(e&&e.__v_isReadonly)}function w(e){return!!(e&&e.__v_isShallow)}function Ae(e){return e?!!e.__v_raw:!1}function h(e){const t=e&&e.__v_raw;return t?h(t):e}const g=e=>c.isObject(e)?ue(e):e,U=e=>c.isObject(e)?he(e):e;function E(e){return e?e.__v_isRef===!0:!1}function Ie(e){return Ze(e,!1)}function Ze(e,t){return E(e)?e:new ke(e,t)}class ke{constructor(t,s){this.dep=new le,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:h(t),this._value=s?t:g(t),this.__v_isShallow=s}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const s=this._rawValue,r=this.__v_isShallow||w(t)||T(t);t=r?t:h(t),c.hasChanged(t,s)&&(this._rawValue=t,this._value=r?t:g(t),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:s}):this.dep.trigger())}}function et(e){return E(e)?e.value:e}class tt{constructor(t,s,r){this._object=t,this._key=s,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ke(h(this._object),this._key)}}class st{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function it(e,t,s){return E(e)?e:c.isFunction(e)?new st(e):c.isObject(e)&&arguments.length>1?rt(e,t,s):Ie(e)}function rt(e,t,s){const r=e[t];return E(r)?r:new tt(e,t,s)}class nt{constructor(t,s,r){this.fn=t,this.setter=s,this._value=void 0,this.dep=new le(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=H-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&d!==this)return be(this,!0),!0;process.env.NODE_ENV}get value(){const t=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return ye(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):process.env.NODE_ENV!=="production"&&N("Write operation failed: computed value is readonly")}}function ot(e,t,s=!1){let r,i;c.isFunction(e)?r=e:(r=e.get,i=e.set);const n=new nt(r,i,s);return process.env.NODE_ENV,n}const J={},X=new WeakMap;let I;function Me(e,t=!1,s=I){if(s){let r=X.get(s);r||X.set(s,r=[]),r.push(e)}else process.env.NODE_ENV!=="production"&&!t&&N("onWatcherCleanup() was called when there was no active watcher to associate with.")}function at(e,t,s=c.EMPTY_OBJ){const{immediate:r,deep:i,once:n,scheduler:o,augmentJob:a,call:f}=s,p=u=>{(s.onWarn||N)("Invalid watch source: ",u,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},v=u=>i?u:w(u)||i===!1||i===0?m(u,1):m(u);let l,_,j,Y,$=!1,F=!1;if(E(e)?(_=()=>e.value,$=w(e)):W(e)?(_=()=>v(e),$=!0):c.isArray(e)?(F=!0,$=e.some(u=>W(u)||w(u)),_=()=>e.map(u=>{if(E(u))return u.value;if(W(u))return v(u);if(c.isFunction(u))return f?f(u,2):u();process.env.NODE_ENV!=="production"&&p(u)})):c.isFunction(e)?t?_=f?()=>f(e,2):e:_=()=>{if(j){ce();try{j()}finally{fe()}}const u=I;I=l;try{return f?f(e,3,[Y]):e(Y)}finally{I=u}}:(_=c.NOOP,process.env.NODE_ENV!=="production"&&p(e)),t&&i){const u=_,R=i===!0?1/0:i;_=()=>m(u(),R)}const M=()=>{l.stop()};if(n&&t){const u=t;t=(...R)=>{u(...R),M()}}let x=F?new Array(e.length).fill(J):J;const K=u=>{if(!(!(l.flags&1)||!l.dirty&&!u))if(t){const R=l.run();if(i||$||(F?R.some((k,B)=>c.hasChanged(k,x[B])):c.hasChanged(R,x))){j&&j();const k=I;I=l;try{const B=[R,x===J?void 0:F&&x[0]===J?[]:x,Y];f?f(t,3,B):t(...B),x=R}finally{I=k}}}else l.run()};return a&&a(K),l=new ve(_),l.scheduler=o?()=>o(K,!1):K,Y=u=>Me(u,!1,l),j=l.onStop=()=>{const u=X.get(l);if(u){if(f)f(u,4);else for(const R of u)R();X.delete(l)}},process.env.NODE_ENV!=="production"&&(l.onTrack=s.onTrack,l.onTrigger=s.onTrigger),t?r?K(!0):x=l.run():o?o(K.bind(null,!0),!0):l.run(),M.pause=l.pause.bind(l),M.resume=l.resume.bind(l),M.stop=M,M}function m(e,t=1/0,s){if(t<=0||!c.isObject(e)||e.__v_skip||(s=s||new Set,s.has(e)))return e;if(s.add(e),t--,E(e))m(e.value,t,s);else if(c.isArray(e))for(let r=0;r<e.length;r++)m(e[r],t,s);else if(c.isSet(e)||c.isMap(e))e.forEach(r=>{m(r,t,s)});else if(c.isPlainObject(e)){for(const r in e)m(e[r],t,s);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&m(e[r],t,s)}return e}exports.ARRAY_ITERATE_KEY=V;exports.ITERATE_KEY=O;exports.MAP_KEY_ITERATE_KEY=Q;exports.ReactiveEffect=ve;exports.computed=ot;exports.isProxy=Ae;exports.isReactive=W;exports.isReadonly=T;exports.isRef=E;exports.isShallow=w;exports.onWatcherCleanup=Me;exports.pauseTracking=ce;exports.reactive=ue;exports.reactiveReadArray=A;exports.readonly=he;exports.ref=Ie;exports.resetTracking=fe;exports.shallowReadArray=Z;exports.toRaw=h;exports.toReactive=g;exports.toReadonly=U;exports.toRef=it;exports.track=b;exports.traverse=m;exports.trigger=D;exports.unref=et;exports.watch=at;
|
|
5
|
+
**/function N(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let d;const ee=new WeakSet;class ve{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ee.has(this)&&(ee.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||be(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,de(this),Ee(this);const t=d,s=y;d=this,y=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&d!==this&&N("Active effect was not restored correctly - this is likely a Vue internal bug."),we(this),d=t,y=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ae(t);this.deps=this.depsTail=void 0,de(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ee.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ie(this)&&this.run()}get dirty(){return ie(this)}}let ge=0,C,L;function be(e,t=!1){if(e.flags|=8,t){e.next=L,L=e;return}e.next=C,C=e}function ne(){ge++}function oe(){if(--ge>0)return;if(L){let t=L;for(L=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;C;){let t=C;for(C=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=s}}if(e)throw e}function Ee(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function we(e){let t,s=e.depsTail,r=s;for(;r;){const i=r.prevDep;r.version===-1?(r===s&&(s=i),ae(r),je(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=s}function ie(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ye(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ye(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===H)||(e.globalVersion=H,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ie(e))))return;e.flags|=2;const t=e.dep,s=d,r=y;d=e,y=!0;try{Ee(e);const i=e.fn(e._value);(t.version===0||c.hasChanged(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{d=s,y=r,we(e),e.flags&=-3}}function ae(e,t=!1){const{dep:s,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),process.env.NODE_ENV!=="production"&&s.subsHead===e&&(s.subsHead=i),s.subs===e&&(s.subs=r,!r&&s.computed)){s.computed.flags&=-5;for(let n=s.computed.deps;n;n=n.nextDep)ae(n,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function je(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let y=!0;const Re=[];function ce(){Re.push(y),y=!1}function fe(){const e=Re.pop();y=e===void 0?!0:e}function de(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=d;d=void 0;try{t()}finally{d=s}}}let H=0;class Ke{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class le{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!d||!y||d===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==d)s=this.activeLink=new Ke(d,this),d.deps?(s.prevDep=d.depsTail,d.depsTail.nextDep=s,d.depsTail=s):d.deps=d.depsTail=s,Se(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const r=s.nextDep;r.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=r),s.prevDep=d.depsTail,s.nextDep=void 0,d.depsTail.nextDep=s,d.depsTail=s,d.deps===s&&(d.deps=r)}return process.env.NODE_ENV!=="production"&&d.onTrack&&d.onTrack(c.extend({effect:d},t)),s}trigger(t){this.version++,H++,this.notify(t)}notify(t){ne();try{if(process.env.NODE_ENV!=="production")for(let s=this.subsHead;s;s=s.nextSub)s.sub.onTrigger&&!(s.sub.flags&8)&&s.sub.onTrigger(c.extend({effect:s.sub},t));for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{oe()}}}function Se(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Se(r)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),process.env.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const q=new WeakMap,O=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),Q=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),M=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function b(e,t,s){if(y&&d){let r=q.get(e);r||q.set(e,r=new Map);let i=r.get(s);i||(r.set(s,i=new le),i.map=r,i.key=s),process.env.NODE_ENV!=="production"?i.track({target:e,type:t,key:s}):i.track()}}function D(e,t,s,r,i,n){const o=q.get(e);if(!o){H++;return}const a=f=>{f&&(process.env.NODE_ENV!=="production"?f.trigger({target:e,type:t,key:s,newValue:r,oldValue:i,oldTarget:n}):f.trigger())};if(ne(),t==="clear")o.forEach(a);else{const f=c.isArray(e),p=f&&c.isIntegerKey(s);if(f&&s==="length"){const v=Number(r);o.forEach((l,_)=>{(_==="length"||_===M||!c.isSymbol(_)&&_>=v)&&a(l)})}else switch((s!==void 0||o.has(void 0))&&a(o.get(s)),p&&a(o.get(M)),t){case"add":f?p&&a(o.get("length")):(a(o.get(O)),c.isMap(e)&&a(o.get(Q)));break;case"delete":f||(a(o.get(O)),c.isMap(e)&&a(o.get(Q)));break;case"set":c.isMap(e)&&a(o.get(O));break}}oe()}function Pe(e,t){const s=q.get(e);return s&&s.get(t)}function A(e){const t=h(e);return t===e?t:(b(t,"iterate",M),w(e)?t:t.map(g))}function Z(e){return b(e=h(e),"iterate",M),e}const Ce={__proto__:null,[Symbol.iterator](){return te(this,Symbol.iterator,g)},concat(...e){return A(this).concat(...e.map(t=>c.isArray(t)?A(t):t))},entries(){return te(this,"entries",e=>(e[1]=g(e[1]),e))},every(e,t){return S(this,"every",e,t,void 0,arguments)},filter(e,t){return S(this,"filter",e,t,s=>s.map(g),arguments)},find(e,t){return S(this,"find",e,t,g,arguments)},findIndex(e,t){return S(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return S(this,"findLast",e,t,g,arguments)},findLastIndex(e,t){return S(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return S(this,"forEach",e,t,void 0,arguments)},includes(...e){return se(this,"includes",e)},indexOf(...e){return se(this,"indexOf",e)},join(e){return A(this).join(e)},lastIndexOf(...e){return se(this,"lastIndexOf",e)},map(e,t){return S(this,"map",e,t,void 0,arguments)},pop(){return P(this,"pop")},push(...e){return P(this,"push",e)},reduce(e,...t){return pe(this,"reduce",e,t)},reduceRight(e,...t){return pe(this,"reduceRight",e,t)},shift(){return P(this,"shift")},some(e,t){return S(this,"some",e,t,void 0,arguments)},splice(...e){return P(this,"splice",e)},toReversed(){return A(this).toReversed()},toSorted(e){return A(this).toSorted(e)},toSpliced(...e){return A(this).toSpliced(...e)},unshift(...e){return P(this,"unshift",e)},values(){return te(this,"values",g)}};function te(e,t,s){const r=Z(e),i=r[t]();return r!==e&&!w(e)&&(i._next=i.next,i.next=()=>{const n=i._next();return n.value&&(n.value=s(n.value)),n}),i}const Le=Array.prototype;function S(e,t,s,r,i,n){const o=Z(e),a=o!==e&&!w(e),f=o[t];if(f!==Le[t]){const l=f.apply(e,n);return a?g(l):l}let p=s;o!==e&&(a?p=function(l,_){return s.call(this,g(l),_,e)}:s.length>2&&(p=function(l,_){return s.call(this,l,_,e)}));const v=f.call(o,p,r);return a&&i?i(v):v}function pe(e,t,s,r){const i=Z(e);let n=s;return i!==e&&(w(e)?s.length>3&&(n=function(o,a,f){return s.call(this,o,a,f,e)}):n=function(o,a,f){return s.call(this,o,g(a),f,e)}),i[t](n,...r)}function se(e,t,s){const r=h(e);b(r,"iterate",M);const i=r[t](...s);return(i===-1||i===!1)&&Ae(s[0])?(s[0]=h(s[0]),r[t](...s)):i}function P(e,t,s=[]){ce(),ne();const r=h(e)[t].apply(e,s);return oe(),fe(),r}const We=c.makeMap("__proto__,__v_isRef,__isVue"),De=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(c.isSymbol));function He(e){c.isSymbol(e)||(e=String(e));const t=h(this);return b(t,"has",e),t.hasOwnProperty(e)}class me{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,r){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,n=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return n;if(s==="__v_raw")return r===(i?n?Ue:Te:n?Qe:Oe).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=c.isArray(t);if(!i){let f;if(o&&(f=Ce[s]))return f;if(s==="hasOwnProperty")return He}const a=Reflect.get(t,s,E(t)?t:r);return(c.isSymbol(s)?De.has(s):We(s))||(i||b(t,"get",s),n)?a:E(a)?o&&c.isIntegerKey(s)?a:a.value:c.isObject(a)?i?he(a):ue(a):a}}class Ye extends me{constructor(t=!1){super(!1,t)}set(t,s,r,i){let n=t[s];if(!this._isShallow){const f=T(n);if(!w(r)&&!T(r)&&(n=h(n),r=h(r)),!c.isArray(t)&&E(n)&&!E(r))return f?!1:(n.value=r,!0)}const o=c.isArray(t)&&c.isIntegerKey(s)?Number(s)<t.length:c.hasOwn(t,s),a=Reflect.set(t,s,r,E(t)?t:i);return t===h(i)&&(o?c.hasChanged(r,n)&&D(t,"set",s,r,n):D(t,"add",s,r)),a}deleteProperty(t,s){const r=c.hasOwn(t,s),i=t[s],n=Reflect.deleteProperty(t,s);return n&&r&&D(t,"delete",s,void 0,i),n}has(t,s){const r=Reflect.has(t,s);return(!c.isSymbol(s)||!De.has(s))&&b(t,"has",s),r}ownKeys(t){return b(t,"iterate",c.isArray(t)?"length":O),Reflect.ownKeys(t)}}class $e extends me{constructor(t=!1){super(!0,t)}set(t,s){return process.env.NODE_ENV!=="production"&&N(`Set operation on key "${String(s)}" failed: target is readonly.`,t),!0}deleteProperty(t,s){return process.env.NODE_ENV!=="production"&&N(`Delete operation on key "${String(s)}" failed: target is readonly.`,t),!0}}const Fe=new Ye,Be=new $e,re=e=>e,z=e=>Reflect.getPrototypeOf(e);function ze(e,t,s){return function(...r){const i=this.__v_raw,n=h(i),o=c.isMap(n),a=e==="entries"||e===Symbol.iterator&&o,f=e==="keys"&&o,p=i[e](...r),v=s?re:t?U:g;return!t&&b(n,"iterate",f?Q:O),{next(){const{value:l,done:_}=p.next();return _?{value:l,done:_}:{value:a?[v(l[0]),v(l[1])]:v(l),done:_}},[Symbol.iterator](){return this}}}}function G(e){return function(...t){if(process.env.NODE_ENV!=="production"){const s=t[0]?`on key "${t[0]}" `:"";N(`${c.capitalize(e)} operation ${s}failed: target is readonly.`,h(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Ge(e,t){const s={get(i){const n=this.__v_raw,o=h(n),a=h(i);e||(c.hasChanged(i,a)&&b(o,"get",i),b(o,"get",a));const{has:f}=z(o),p=t?re:e?U:g;if(f.call(o,i))return p(n.get(i));if(f.call(o,a))return p(n.get(a));n!==o&&n.get(i)},get size(){const i=this.__v_raw;return!e&&b(h(i),"iterate",O),Reflect.get(i,"size",i)},has(i){const n=this.__v_raw,o=h(n),a=h(i);return e||(c.hasChanged(i,a)&&b(o,"has",i),b(o,"has",a)),i===a?n.has(i):n.has(i)||n.has(a)},forEach(i,n){const o=this,a=o.__v_raw,f=h(a),p=t?re:e?U:g;return!e&&b(f,"iterate",O),a.forEach((v,l)=>i.call(n,p(v),p(l),o))}};return c.extend(s,e?{add:G("add"),set:G("set"),delete:G("delete"),clear:G("clear")}:{add(i){!t&&!w(i)&&!T(i)&&(i=h(i));const n=h(this);return z(n).has.call(n,i)||(n.add(i),D(n,"add",i,i)),this},set(i,n){!t&&!w(n)&&!T(n)&&(n=h(n));const o=h(this),{has:a,get:f}=z(o);let p=a.call(o,i);p?process.env.NODE_ENV!=="production"&&_e(o,a,i):(i=h(i),p=a.call(o,i));const v=f.call(o,i);return o.set(i,n),p?c.hasChanged(n,v)&&D(o,"set",i,n,v):D(o,"add",i,n),this},delete(i){const n=h(this),{has:o,get:a}=z(n);let f=o.call(n,i);f?process.env.NODE_ENV!=="production"&&_e(n,o,i):(i=h(i),f=o.call(n,i));const p=a?a.call(n,i):void 0,v=n.delete(i);return f&&D(n,"delete",i,void 0,p),v},clear(){const i=h(this),n=i.size!==0,o=process.env.NODE_ENV!=="production"?c.isMap(i)?new Map(i):new Set(i):void 0,a=i.clear();return n&&D(i,"clear",void 0,void 0,o),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=ze(i,e,t)}),s}function Ne(e,t){const s=Ge(e,t);return(r,i,n)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(c.hasOwn(s,i)&&i in r?s:r,i,n)}const Je={get:Ne(!1,!1)},qe={get:Ne(!0,!1)};function _e(e,t,s){const r=h(s);if(r!==s&&t.call(e,r)){const i=c.toRawType(e);N(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Oe=new WeakMap,Qe=new WeakMap,Te=new WeakMap,Ue=new WeakMap;function Xe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ze(e){return e.__v_skip||!Object.isExtensible(e)?0:Xe(c.toRawType(e))}function ue(e){return T(e)?e:xe(e,!1,Fe,Je,Oe)}function he(e){return xe(e,!0,Be,qe,Te)}function xe(e,t,s,r,i){if(!c.isObject(e))return process.env.NODE_ENV!=="production"&&N(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const n=Ze(e);if(n===0)return e;const o=i.get(e);if(o)return o;const a=new Proxy(e,n===2?r:s);return i.set(e,a),a}function W(e){return T(e)?W(e.__v_raw):!!(e&&e.__v_isReactive)}function T(e){return!!(e&&e.__v_isReadonly)}function w(e){return!!(e&&e.__v_isShallow)}function Ae(e){return e?!!e.__v_raw:!1}function h(e){const t=e&&e.__v_raw;return t?h(t):e}const g=e=>c.isObject(e)?ue(e):e,U=e=>c.isObject(e)?he(e):e;function E(e){return e?e.__v_isRef===!0:!1}function Ie(e){return ke(e,!1)}function ke(e,t){return E(e)?e:new et(e,t)}class et{constructor(t,s){this.dep=new le,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:h(t),this._value=s?t:g(t),this.__v_isShallow=s}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const s=this._rawValue,r=this.__v_isShallow||w(t)||T(t);t=r?t:h(t),c.hasChanged(t,s)&&(this._rawValue=t,this._value=r?t:g(t),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:s}):this.dep.trigger())}}function Ve(e){return E(e)?e.value:e}function tt(e){return c.isFunction(e)?e():Ve(e)}class st{constructor(t,s,r){this._object=t,this._key=s,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Pe(h(this._object),this._key)}}class it{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function rt(e,t,s){return E(e)?e:c.isFunction(e)?new it(e):c.isObject(e)&&arguments.length>1?nt(e,t,s):Ie(e)}function nt(e,t,s){const r=e[t];return E(r)?r:new st(e,t,s)}class ot{constructor(t,s,r){this.fn=t,this.setter=s,this._value=void 0,this.dep=new le(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=H-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&d!==this)return be(this,!0),!0;process.env.NODE_ENV}get value(){const t=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return ye(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):process.env.NODE_ENV!=="production"&&N("Write operation failed: computed value is readonly")}}function at(e,t,s=!1){let r,i;c.isFunction(e)?r=e:(r=e.get,i=e.set);const n=new ot(r,i,s);return process.env.NODE_ENV,n}const J={},X=new WeakMap;let I;function Me(e,t=!1,s=I){if(s){let r=X.get(s);r||X.set(s,r=[]),r.push(e)}else process.env.NODE_ENV!=="production"&&!t&&N("onWatcherCleanup() was called when there was no active watcher to associate with.")}function ct(e,t,s=c.EMPTY_OBJ){const{immediate:r,deep:i,once:n,scheduler:o,augmentJob:a,call:f}=s,p=u=>{(s.onWarn||N)("Invalid watch source: ",u,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},v=u=>i?u:w(u)||i===!1||i===0?m(u,1):m(u);let l,_,j,Y,$=!1,F=!1;if(E(e)?(_=()=>e.value,$=w(e)):W(e)?(_=()=>v(e),$=!0):c.isArray(e)?(F=!0,$=e.some(u=>W(u)||w(u)),_=()=>e.map(u=>{if(E(u))return u.value;if(W(u))return v(u);if(c.isFunction(u))return f?f(u,2):u();process.env.NODE_ENV!=="production"&&p(u)})):c.isFunction(e)?t?_=f?()=>f(e,2):e:_=()=>{if(j){ce();try{j()}finally{fe()}}const u=I;I=l;try{return f?f(e,3,[Y]):e(Y)}finally{I=u}}:(_=c.NOOP,process.env.NODE_ENV!=="production"&&p(e)),t&&i){const u=_,R=i===!0?1/0:i;_=()=>m(u(),R)}const V=()=>{l.stop()};if(n&&t){const u=t;t=(...R)=>{u(...R),V()}}let x=F?new Array(e.length).fill(J):J;const K=u=>{if(!(!(l.flags&1)||!l.dirty&&!u))if(t){const R=l.run();if(i||$||(F?R.some((k,B)=>c.hasChanged(k,x[B])):c.hasChanged(R,x))){j&&j();const k=I;I=l;try{const B=[R,x===J?void 0:F&&x[0]===J?[]:x,Y];f?f(t,3,B):t(...B),x=R}finally{I=k}}}else l.run()};return a&&a(K),l=new ve(_),l.scheduler=o?()=>o(K,!1):K,Y=u=>Me(u,!1,l),j=l.onStop=()=>{const u=X.get(l);if(u){if(f)f(u,4);else for(const R of u)R();X.delete(l)}},process.env.NODE_ENV!=="production"&&(l.onTrack=s.onTrack,l.onTrigger=s.onTrigger),t?r?K(!0):x=l.run():o?o(K.bind(null,!0),!0):l.run(),V.pause=l.pause.bind(l),V.resume=l.resume.bind(l),V.stop=V,V}function m(e,t=1/0,s){if(t<=0||!c.isObject(e)||e.__v_skip||(s=s||new Set,s.has(e)))return e;if(s.add(e),t--,E(e))m(e.value,t,s);else if(c.isArray(e))for(let r=0;r<e.length;r++)m(e[r],t,s);else if(c.isSet(e)||c.isMap(e))e.forEach(r=>{m(r,t,s)});else if(c.isPlainObject(e)){for(const r in e)m(e[r],t,s);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&m(e[r],t,s)}return e}exports.ARRAY_ITERATE_KEY=M;exports.ITERATE_KEY=O;exports.MAP_KEY_ITERATE_KEY=Q;exports.ReactiveEffect=ve;exports.computed=at;exports.isProxy=Ae;exports.isReactive=W;exports.isReadonly=T;exports.isRef=E;exports.isShallow=w;exports.onWatcherCleanup=Me;exports.pauseTracking=ce;exports.reactive=ue;exports.reactiveReadArray=A;exports.readonly=he;exports.ref=Ie;exports.resetTracking=fe;exports.shallowReadArray=Z;exports.toRaw=h;exports.toReactive=g;exports.toReadonly=U;exports.toRef=rt;exports.toValue=tt;exports.track=b;exports.traverse=m;exports.trigger=D;exports.unref=Ve;exports.watch=ct;
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
`),r]);else{const s=[`[Vue warn]: ${e}`,...t];r.length&&s.push(`
|
|
7
7
|
`,...Oe(r)),console.warn(...s)}a.resetTracking(),M=!1}function Se(){let e=S[S.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function Oe(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
|
|
8
8
|
`],...Re(n))}),t}function Re({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${ye(e.component,e.type,o)}`,s=">"+n;return e.props?[r,...Ce(e.props),s]:[r+s]}function Ce(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...Y(o,e[o]))}),n.length>3&&t.push(" ..."),t}function Y(e,t,n){return c.isString(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:a.isRef(t)?(t=Y(e,a.toRaw(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):c.isFunction(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=a.toRaw(t),n?t:[`${e}=`,t])}const G={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function k(e,t,n,o){try{return o?e(...o):e()}catch(r){$(r,t,n)}}function J(e,t,n,o){if(c.isFunction(e)){const r=k(e,t,n,o);return r&&c.isPromise(r)&&r.catch(s=>{$(s,t,n)}),r}if(c.isArray(e)){const r=[];for(let s=0;s<e.length;s++)r.push(J(e[s],t,n,o));return r}else process.env.NODE_ENV!=="production"&&m(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function $(e,t,n,o=!0){const r=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:u}=t&&t.appContext.config||c.EMPTY_OBJ;if(t){let l=t.parent;const p=t.proxy,g=process.env.NODE_ENV!=="production"?G[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const h=l.ec;if(h){for(let i=0;i<h.length;i++)if(h[i](e,p,g)===!1)return}l=l.parent}if(s){a.pauseTracking(),k(s,null,10,[e,p,g]),a.resetTracking();return}}Ve(e,n,r,o,u)}function Ve(e,t,n,o=!0,r=!1){if(process.env.NODE_ENV!=="production"){const s=G[t];if(n&&Ne(n),m(`Unhandled error${s?` during execution of ${s}`:""}`),n&&we(),o)throw e;console.error(e)}else{if(r)throw e;console.error(e)}}const y=[];let E=-1;const V=[];let N=null,O=0;const xe=Promise.resolve();let U=null;const ve=100;function be(e){let t=E+1,n=y.length;for(;t<n;){const o=t+n>>>1,r=y[o],s=v(r);s<e||s===e&&r.flags&2?t=o+1:n=o}return t}function Q(e){if(!(e.flags&1)){const t=v(e),n=y[y.length-1];!n||!(e.flags&2)&&t>=v(n)?y.push(e):y.splice(be(t),0,e),e.flags|=1,X()}}function X(){U||(U=xe.then(Z))}function q(e){c.isArray(e)?V.push(...e):N&&e.id===-1?N.splice(O+1,0,e):e.flags&1||(V.push(e),e.flags|=1),X()}function ke(e){if(V.length){const t=[...new Set(V)].sort((n,o)=>v(n)-v(o));if(V.length=0,N){N.push(...t);return}for(N=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),O=0;O<N.length;O++){const n=N[O];process.env.NODE_ENV!=="production"&&ee(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}N=null,O=0}}const v=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Z(e){process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?n=>ee(e,n):c.NOOP;try{for(E=0;E<y.length;E++){const n=y[E];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),k(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;E<y.length;E++){const n=y[E];n&&(n.flags&=-2)}E=-1,y.length=0,ke(e),U=null,(y.length||V.length)&&Z(e)}}function ee(e,t){const n=e.get(t)||0;if(n>ve){const o=t.i,r=o&&_e(o.type);return $(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}const W=new Map;process.env.NODE_ENV!=="production"&&(c.getGlobalThis().__VUE_HMR_RUNTIME__={createRecord:z(Te),rerender:z(Fe),reload:z(Ie)});const I=new Map;function Te(e,t){return I.has(e)?!1:(I.set(e,{initialDef:P(t),instances:new Set}),!0)}function P(e){return Ee(e)?e.__vccOpts:e}function Fe(e,t){const n=I.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(o=>{t&&(o.render=t,P(o.type).render=t),o.renderCache=[],o.update()}))}function Ie(e,t){const n=I.get(e);if(!n)return;t=P(t),j(n.initialDef,t);const o=[...n.instances];for(let r=0;r<o.length;r++){const s=o[r],u=P(s.type);let l=W.get(u);l||(u!==n.initialDef&&j(u,t),W.set(u,l=new Set)),l.add(s),s.appContext.propsCache.delete(s.type),s.appContext.emitsCache.delete(s.type),s.appContext.optionsCache.delete(s.type),s.ceReload?(l.add(s),s.ceReload(t.styles),l.delete(s)):s.parent?Q(()=>{s.parent.update(),l.delete(s)}):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),s.root.ce&&s!==s.root&&s.root.ce._removeChildStyle(u)}q(()=>{W.clear()})}function j(e,t){c.extend(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function z(e){return(t,n)=>{try{return e(t,n)}catch(o){console.error(o),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let R,T=[];function te(e,t){var n,o;R=e,R?(R.enabled=!0,T.forEach(({event:r,args:s})=>R.emit(r,...s)),T=[]):typeof window<"u"&&window.HTMLElement&&!((o=(n=window.navigator)==null?void 0:n.userAgent)!=null&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{te(s,t)}),setTimeout(()=>{R||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,T=[])},3e3)):T=[]}let x=null,Pe=null;const De=e=>e.__isTeleport;function B(e,t){e.shapeFlag&6&&e.component?(e.transition=t,B(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Ae(e,t){return c.isFunction(e)?c.extend({name:e.name},t,{setup:e}):e}c.getGlobalThis().requestIdleCallback;c.getGlobalThis().cancelIdleCallback;const $e=Symbol.for("v-ndc"),He={};process.env.NODE_ENV!=="production"&&(He.ownKeys=e=>(m("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));let Me=null;function ne(e,t,n=!1){const o=H||x;if(o||Me){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&c.isFunction(t)?t.call(o&&o.proxy):t;process.env.NODE_ENV!=="production"&&m(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&m("inject() can only be used inside setup() or functional components.")}const We={},oe=e=>Object.getPrototypeOf(e)===We,ze=Be,se=Symbol.for("v-scx"),re=()=>{{const e=ne(se);return e||process.env.NODE_ENV!=="production"&&m("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Ue(e,t){return ie(e,null,t)}function Je(e,t,n){return process.env.NODE_ENV!=="production"&&!c.isFunction(t)&&m("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),ie(e,t,n)}function ie(e,t,n=c.EMPTY_OBJ){const{immediate:o,deep:r,flush:s,once:u}=n;process.env.NODE_ENV!=="production"&&!t&&(o!==void 0&&m('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&m('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),u!==void 0&&m('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=c.extend({},n);process.env.NODE_ENV!=="production"&&(l.onWarn=m);const p=t&&o||!t&&s!=="post";let g;if(A){if(s==="sync"){const f=re();g=f.__watcherHandles||(f.__watcherHandles=[])}else if(!p){const f=()=>{};return f.stop=c.NOOP,f.resume=c.NOOP,f.pause=c.NOOP,f}}const h=H;l.call=(f,_,w)=>J(f,h,_,w);let i=!1;s==="post"?l.scheduler=f=>{ze(f,h&&h.suspense)}:s!=="sync"&&(i=!0,l.scheduler=(f,_)=>{_?f():Q(f)}),l.augmentJob=f=>{t&&(f.flags|=4),i&&(f.flags|=2,h&&(f.id=h.uid,f.i=h))};const d=a.watch(e,t,l);return A&&(g?g.push(d):p&&d()),d}const qe=e=>e.__isSuspense;function Be(e,t){t&&t.pendingBranch?c.isArray(e)?t.effects.push(...e):t.effects.push(e):q(e)}const K=Symbol.for("v-fgt"),ce=Symbol.for("v-txt"),le=Symbol.for("v-cmt");function D(e){return e?e.__v_isVNode===!0:!1}const Ke=(...e)=>fe(...e),ae=({key:e})=>e??null,F=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?c.isString(e)||a.isRef(e)||c.isFunction(e)?{i:x,r:e,k:t,f:!!n}:e:null);function ue(e,t=null,n=null,o=0,r=null,s=e===K?0:1,u=!1,l=!1){const p={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ae(t),ref:t&&F(t),scopeId:Pe,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:x};return l?(L(p,n),s&128&&e.normalize(p)):n&&(p.shapeFlag|=c.isString(n)?8:16),process.env.NODE_ENV!=="production"&&p.key!==p.key&&m("VNode created with invalid key (NaN). VNode type:",p.type),p}const C=process.env.NODE_ENV!=="production"?Ke:fe;function fe(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===$e)&&(process.env.NODE_ENV!=="production"&&!e&&m(`Invalid vnode type when creating vnode: ${e}.`),e=le),D(e)){const l=b(e,t,!0);return n&&L(l,n),l.patchFlag=-2,l}if(Ee(e)&&(e=e.__vccOpts),t){t=de(t);let{class:l,style:p}=t;l&&!c.isString(l)&&(t.class=c.normalizeClass(l)),c.isObject(p)&&(a.isProxy(p)&&!c.isArray(p)&&(p=c.extend({},p)),t.style=c.normalizeStyle(p))}const u=c.isString(e)?1:qe(e)?128:De(e)?64:c.isObject(e)?4:c.isFunction(e)?2:0;return process.env.NODE_ENV!=="production"&&u&4&&a.isProxy(e)&&(e=a.toRaw(e),m("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
9
|
-
Component that was made reactive: `,e)),ue(e,t,n,o,r,u,s,!0)}function de(e){return e?a.isProxy(e)||oe(e)?c.extend({},e):e:null}function b(e,t,n=!1,o=!1){const{props:r,ref:s,patchFlag:u,children:l,transition:p}=e,g=t?me(r||{},t):r,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&ae(g),ref:t&&t.ref?n&&s?c.isArray(s)?s.concat(F(t)):[s,F(t)]:F(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&u===-1&&c.isArray(l)?l.map(pe):l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==K?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:p,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&b(e.ssContent),ssFallback:e.ssFallback&&b(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return p&&o&&B(h,p.clone(h)),h}function pe(e){const t=b(e);return c.isArray(e.children)&&(t.children=e.children.map(pe)),t}function he(e=" ",t=0){return C(ce,null,e,t)}function L(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(c.isArray(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),L(e,r()),r._c&&(r._d=!0));return}else n=32,!t._&&!oe(t)&&(t._ctx=x);else c.isFunction(t)?(t={default:t,_ctx:x},n=32):(t=String(t),o&64?(n=16,t=[he(t)]):n=8);e.children=t,e.shapeFlag|=n}function me(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=c.normalizeClass([t.class,o.class]));else if(r==="style")t.style=c.normalizeStyle([t.style,o.style]);else if(c.isOn(r)){const s=t[r],u=o[r];u&&s!==u&&!(c.isArray(s)&&s.includes(u))&&(t[r]=s?[].concat(s,u):u)}else r!==""&&(t[r]=o[r])}return t}let H=null;const ge=()=>H||x;{const e=c.getGlobalThis(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),s=>{r.length>1?r.forEach(u=>u(s)):r[0](s)}};t("__VUE_INSTANCE_SETTERS__",n=>H=n),t("__VUE_SSR_SETTERS__",n=>A=n)}let A=!1;process.env.NODE_ENV;const Le=/(?:^|[-_])(\w)/g,je=e=>e.replace(Le,t=>t.toUpperCase()).replace(/[-_]/g,"");function _e(e,t=!0){return c.isFunction(e)?e.displayName||e.name:e.name||t&&e.__name}function ye(e,t,n=!1){let o=_e(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&e&&e.parent){const r=s=>{for(const u in s)if(s[u]===t)return u};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?je(o):n?"App":"Anonymous"}function Ee(e){return c.isFunction(e)&&"__vccOpts"in e}const Ye=(e,t)=>{const n=a.computed(e,t,A);if(process.env.NODE_ENV!=="production"){const o=ge();o&&o.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function Ge(e,t,n){const o=arguments.length;return o===2?c.isObject(t)&&!c.isArray(t)?D(t)?C(e,null,[t]):C(e,t):C(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&D(n)&&(n=[n]),C(e,t,n))}function Qe(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},o={style:"color:#eb2f96"},r={__vue_custom_formatter:!0,header(i){if(!c.isObject(i))return null;if(i.__isVue)return["div",e,"VueInstance"];if(a.isRef(i)){a.pauseTracking();const d=i.value;return a.resetTracking(),["div",{},["span",e,h(i)],"<",l(d),">"]}else{if(a.isReactive(i))return["div",{},["span",e,a.isShallow(i)?"ShallowReactive":"Reactive"],"<",l(i),`>${a.isReadonly(i)?" (readonly)":""}`];if(a.isReadonly(i))return["div",{},["span",e,a.isShallow(i)?"ShallowReadonly":"Readonly"],"<",l(i),">"]}return null},hasBody(i){return i&&i.__isVue},body(i){if(i&&i.__isVue)return["div",{},...s(i.$)]}};function s(i){const d=[];i.type.props&&i.props&&d.push(u("props",a.toRaw(i.props))),i.setupState!==c.EMPTY_OBJ&&d.push(u("setup",i.setupState)),i.data!==c.EMPTY_OBJ&&d.push(u("data",a.toRaw(i.data)));const f=p(i,"computed");f&&d.push(u("computed",f));const _=p(i,"inject");return _&&d.push(u("injected",_)),d.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:i}]]),d}function u(i,d){return d=c.extend({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},i],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(f=>["div",{},["span",o,f+": "],l(d[f],!1)])]]:["span",{}]}function l(i,d=!0){return typeof i=="number"?["span",t,i]:typeof i=="string"?["span",n,JSON.stringify(i)]:typeof i=="boolean"?["span",o,i]:c.isObject(i)?["object",{object:d?a.toRaw(i):i}]:["span",n,String(i)]}function p(i,d){const f=i.type;if(c.isFunction(f))return;const _={};for(const w in i.ctx)g(f,w,d)&&(_[w]=i.ctx[w]);return _}function g(i,d,f){const _=i[f];if(c.isArray(_)&&_.includes(d)||c.isObject(_)&&d in _||i.extends&&g(i.extends,d,f)||i.mixins&&i.mixins.some(w=>g(w,d,f)))return!0}function h(i){return a.isShallow(i)?"ShallowRef":i.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}process.env.NODE_ENV!=="production"||c.NOOP;process.env.NODE_ENV;process.env.NODE_ENV;exports.ReactiveEffect=a.ReactiveEffect;exports.isProxy=a.isProxy;exports.isReactive=a.isReactive;exports.isReadonly=a.isReadonly;exports.isRef=a.isRef;exports.isShallow=a.isShallow;exports.onWatcherCleanup=a.onWatcherCleanup;exports.reactive=a.reactive;exports.readonly=a.readonly;exports.ref=a.ref;exports.toRaw=a.toRaw;exports.toRef=a.toRef;exports.unref=a.unref;exports.capitalize=c.capitalize;exports.normalizeClass=c.normalizeClass;exports.normalizeStyle=c.normalizeStyle;exports.Comment=le;exports.Fragment=K;exports.Text=ce;exports.callWithAsyncErrorHandling=J;exports.callWithErrorHandling=k;exports.cloneVNode=b;exports.computed=Ye;exports.createElementVNode=ue;exports.createTextVNode=he;exports.createVNode=C;exports.defineComponent=Ae;exports.getCurrentInstance=ge;exports.guardReactiveProps=de;exports.h=Ge;exports.handleError=$;exports.initCustomFormatter=Qe;exports.inject=ne;exports.isVNode=D;exports.mergeProps=me;exports.queuePostFlushCb=q;exports.setTransitionHooks=B;exports.ssrContextKey=se;exports.useSSRContext=re;exports.watch=Je;exports.watchEffect=Ue;
|
|
9
|
+
Component that was made reactive: `,e)),ue(e,t,n,o,r,u,s,!0)}function de(e){return e?a.isProxy(e)||oe(e)?c.extend({},e):e:null}function b(e,t,n=!1,o=!1){const{props:r,ref:s,patchFlag:u,children:l,transition:p}=e,g=t?me(r||{},t):r,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&ae(g),ref:t&&t.ref?n&&s?c.isArray(s)?s.concat(F(t)):[s,F(t)]:F(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&u===-1&&c.isArray(l)?l.map(pe):l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==K?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:p,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&b(e.ssContent),ssFallback:e.ssFallback&&b(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return p&&o&&B(h,p.clone(h)),h}function pe(e){const t=b(e);return c.isArray(e.children)&&(t.children=e.children.map(pe)),t}function he(e=" ",t=0){return C(ce,null,e,t)}function L(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(c.isArray(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),L(e,r()),r._c&&(r._d=!0));return}else n=32,!t._&&!oe(t)&&(t._ctx=x);else c.isFunction(t)?(t={default:t,_ctx:x},n=32):(t=String(t),o&64?(n=16,t=[he(t)]):n=8);e.children=t,e.shapeFlag|=n}function me(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=c.normalizeClass([t.class,o.class]));else if(r==="style")t.style=c.normalizeStyle([t.style,o.style]);else if(c.isOn(r)){const s=t[r],u=o[r];u&&s!==u&&!(c.isArray(s)&&s.includes(u))&&(t[r]=s?[].concat(s,u):u)}else r!==""&&(t[r]=o[r])}return t}let H=null;const ge=()=>H||x;{const e=c.getGlobalThis(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),s=>{r.length>1?r.forEach(u=>u(s)):r[0](s)}};t("__VUE_INSTANCE_SETTERS__",n=>H=n),t("__VUE_SSR_SETTERS__",n=>A=n)}let A=!1;process.env.NODE_ENV;const Le=/(?:^|[-_])(\w)/g,je=e=>e.replace(Le,t=>t.toUpperCase()).replace(/[-_]/g,"");function _e(e,t=!0){return c.isFunction(e)?e.displayName||e.name:e.name||t&&e.__name}function ye(e,t,n=!1){let o=_e(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&e&&e.parent){const r=s=>{for(const u in s)if(s[u]===t)return u};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?je(o):n?"App":"Anonymous"}function Ee(e){return c.isFunction(e)&&"__vccOpts"in e}const Ye=(e,t)=>{const n=a.computed(e,t,A);if(process.env.NODE_ENV!=="production"){const o=ge();o&&o.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function Ge(e,t,n){const o=arguments.length;return o===2?c.isObject(t)&&!c.isArray(t)?D(t)?C(e,null,[t]):C(e,t):C(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&D(n)&&(n=[n]),C(e,t,n))}function Qe(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},o={style:"color:#eb2f96"},r={__vue_custom_formatter:!0,header(i){if(!c.isObject(i))return null;if(i.__isVue)return["div",e,"VueInstance"];if(a.isRef(i)){a.pauseTracking();const d=i.value;return a.resetTracking(),["div",{},["span",e,h(i)],"<",l(d),">"]}else{if(a.isReactive(i))return["div",{},["span",e,a.isShallow(i)?"ShallowReactive":"Reactive"],"<",l(i),`>${a.isReadonly(i)?" (readonly)":""}`];if(a.isReadonly(i))return["div",{},["span",e,a.isShallow(i)?"ShallowReadonly":"Readonly"],"<",l(i),">"]}return null},hasBody(i){return i&&i.__isVue},body(i){if(i&&i.__isVue)return["div",{},...s(i.$)]}};function s(i){const d=[];i.type.props&&i.props&&d.push(u("props",a.toRaw(i.props))),i.setupState!==c.EMPTY_OBJ&&d.push(u("setup",i.setupState)),i.data!==c.EMPTY_OBJ&&d.push(u("data",a.toRaw(i.data)));const f=p(i,"computed");f&&d.push(u("computed",f));const _=p(i,"inject");return _&&d.push(u("injected",_)),d.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:i}]]),d}function u(i,d){return d=c.extend({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},i],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(f=>["div",{},["span",o,f+": "],l(d[f],!1)])]]:["span",{}]}function l(i,d=!0){return typeof i=="number"?["span",t,i]:typeof i=="string"?["span",n,JSON.stringify(i)]:typeof i=="boolean"?["span",o,i]:c.isObject(i)?["object",{object:d?a.toRaw(i):i}]:["span",n,String(i)]}function p(i,d){const f=i.type;if(c.isFunction(f))return;const _={};for(const w in i.ctx)g(f,w,d)&&(_[w]=i.ctx[w]);return _}function g(i,d,f){const _=i[f];if(c.isArray(_)&&_.includes(d)||c.isObject(_)&&d in _||i.extends&&g(i.extends,d,f)||i.mixins&&i.mixins.some(w=>g(w,d,f)))return!0}function h(i){return a.isShallow(i)?"ShallowRef":i.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}process.env.NODE_ENV!=="production"||c.NOOP;process.env.NODE_ENV;process.env.NODE_ENV;exports.ReactiveEffect=a.ReactiveEffect;exports.isProxy=a.isProxy;exports.isReactive=a.isReactive;exports.isReadonly=a.isReadonly;exports.isRef=a.isRef;exports.isShallow=a.isShallow;exports.onWatcherCleanup=a.onWatcherCleanup;exports.reactive=a.reactive;exports.readonly=a.readonly;exports.ref=a.ref;exports.toRaw=a.toRaw;exports.toRef=a.toRef;exports.toValue=a.toValue;exports.unref=a.unref;exports.capitalize=c.capitalize;exports.normalizeClass=c.normalizeClass;exports.normalizeStyle=c.normalizeStyle;exports.Comment=le;exports.Fragment=K;exports.Text=ce;exports.callWithAsyncErrorHandling=J;exports.callWithErrorHandling=k;exports.cloneVNode=b;exports.computed=Ye;exports.createElementVNode=ue;exports.createTextVNode=he;exports.createVNode=C;exports.defineComponent=Ae;exports.getCurrentInstance=ge;exports.guardReactiveProps=de;exports.h=Ge;exports.handleError=$;exports.initCustomFormatter=Qe;exports.inject=ne;exports.isVNode=D;exports.mergeProps=me;exports.queuePostFlushCb=q;exports.setTransitionHooks=B;exports.ssrContextKey=se;exports.useSSRContext=re;exports.watch=Je;exports.watchEffect=Ue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../vue/dist/vue.runtime.esm-bundler.cjs");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../vue/dist/vue.runtime.esm-bundler.cjs");const p=require("../../@vue/reactivity/dist/reactivity.esm-bundler.cjs"),W=require("../../@vue/runtime-core/dist/runtime-core.esm-bundler.cjs");typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const a=()=>{};function d(r,n){function t(...e){return new Promise((i,o)=>{Promise.resolve(r(()=>n.apply(this,e),{fn:n,thisArg:this,args:e})).then(i).catch(o)})}return t}const f=r=>r();function h(r,n={}){let t,e,i=a;const o=c=>{clearTimeout(c),i(),i=a};let s;return c=>{const m=p.toValue(r),l=p.toValue(n.maxWait);return t&&o(t),m<=0||l!==void 0&&l<=0?(e&&(o(e),e=null),Promise.resolve(c())):new Promise((u,F)=>{i=n.rejectOnCancel?F:u,s=c,l&&!e&&(e=setTimeout(()=>{t&&o(t),e=null,u(s())},l)),t=setTimeout(()=>{e&&o(e),e=null,u(c())},m)})}}function b(r,n,t={}){const{eventFilter:e=f,...i}=t;return W.watch(r,d(e,n),i)}function w(r,n,t={}){const{debounce:e=0,maxWait:i=void 0,...o}=t;return b(r,n,{...o,eventFilter:h(e,{maxWait:i})})}exports.bypassFilter=f;exports.createFilterWrapper=d;exports.debounceFilter=h;exports.debouncedWatch=w;exports.noop=a;exports.watchDebounced=w;exports.watchWithFilter=b;
|
package/dist/esm/hooks/menu.js
CHANGED
package/dist/esm/hooks/tab.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { useTabStore as
|
|
1
|
+
import { useTabStore as a } from "@duxweb/dvha-core";
|
|
2
2
|
import "../node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
3
|
-
import { useRouter as
|
|
3
|
+
import { useRouter as p } from "../node_modules/vue-router/dist/vue-router.js";
|
|
4
4
|
import { computed as n } from "../node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
value:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
function l() {
|
|
6
|
+
const t = a(), o = p(), u = n(() => ({
|
|
7
|
+
value: t.current,
|
|
8
|
+
defaultValue: t.current,
|
|
9
|
+
onClose: (e) => {
|
|
10
|
+
t.delTab(e, (r) => {
|
|
11
|
+
o.push(r.path || "");
|
|
11
12
|
});
|
|
12
13
|
},
|
|
13
|
-
onUpdateValue: (
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
onUpdateValue: (e) => {
|
|
15
|
+
t.changeTab(e, (r) => {
|
|
16
|
+
o.push(r.path || "");
|
|
16
17
|
});
|
|
17
18
|
}
|
|
18
19
|
}));
|
|
19
20
|
return {
|
|
20
|
-
...
|
|
21
|
+
...t,
|
|
21
22
|
props: u
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
+
l as useNaiveTab
|
|
26
27
|
};
|
package/dist/esm/hooks/table.js
CHANGED
|
@@ -1,107 +1,130 @@
|
|
|
1
|
-
import { useList as
|
|
1
|
+
import { useList as O } from "@duxweb/dvha-core";
|
|
2
2
|
import "../node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { toRef as
|
|
6
|
-
import {
|
|
7
|
-
function q(
|
|
8
|
-
const
|
|
3
|
+
import { debouncedWatch as A } from "../node_modules/@vueuse/shared/index.js";
|
|
4
|
+
import D from "../node_modules/lodash-es/cloneDeep.js";
|
|
5
|
+
import { toRef as U, ref as s } from "../node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js";
|
|
6
|
+
import { watch as h, computed as r } from "../node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
7
|
+
function q(n) {
|
|
8
|
+
const f = U(n.filters);
|
|
9
|
+
h(() => n.filters, (e) => {
|
|
10
|
+
f.value = e;
|
|
11
|
+
}, {
|
|
12
|
+
deep: !0
|
|
13
|
+
});
|
|
14
|
+
const l = U(typeof n.pagination == "object" ? n.pagination : {
|
|
9
15
|
page: 1,
|
|
10
16
|
pageSize: 20
|
|
11
|
-
}),
|
|
12
|
-
...
|
|
17
|
+
}), c = s([]), d = s({}), i = s({}), g = s([]), u = s({
|
|
18
|
+
...f.value,
|
|
13
19
|
...i.value
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
});
|
|
21
|
+
A([f, i], ([e, t]) => {
|
|
22
|
+
Object.keys(u.value).forEach((o) => {
|
|
23
|
+
delete u.value[o];
|
|
24
|
+
}), Object.assign(u.value, e, t);
|
|
25
|
+
}, {
|
|
26
|
+
debounce: 300,
|
|
27
|
+
deep: !0
|
|
28
|
+
}), h(u, () => {
|
|
29
|
+
c.value = [];
|
|
30
|
+
});
|
|
31
|
+
const {
|
|
32
|
+
data: v,
|
|
33
|
+
isLoading: y,
|
|
34
|
+
refetch: z
|
|
35
|
+
} = O({
|
|
36
|
+
path: n.path,
|
|
37
|
+
pagination: n.pagination ? l.value : !1,
|
|
38
|
+
filters: u.value,
|
|
39
|
+
sorters: d.value
|
|
23
40
|
}), m = r(() => {
|
|
24
41
|
var e, t;
|
|
25
|
-
return Math.ceil(((t = (e =
|
|
26
|
-
}),
|
|
27
|
-
|
|
28
|
-
|
|
42
|
+
return Math.ceil(((t = (e = v.value) == null ? void 0 : e.meta) == null ? void 0 : t[n.totalField || "total"]) / l.value.pageSize) || 0;
|
|
43
|
+
}), p = s([]);
|
|
44
|
+
h(() => n.columns, (e) => {
|
|
45
|
+
p.value = e;
|
|
29
46
|
}, {
|
|
30
47
|
immediate: !0
|
|
31
48
|
});
|
|
32
|
-
const
|
|
33
|
-
var
|
|
34
|
-
const t = (
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
const t = Array.isArray(e) ? e : [e],
|
|
40
|
-
...
|
|
49
|
+
const C = r(() => p.value.filter((e) => e.show !== !1 && "key" in e).map((e) => e.key)), K = (e) => {
|
|
50
|
+
var o;
|
|
51
|
+
const t = (o = D(n.columns)) == null ? void 0 : o.map((a) => (!("key" in a) || !(a != null && a.key) || !("title" in a) || !(a != null && a.title) || e.includes(a.key) || (a.show = !1), a));
|
|
52
|
+
p.value = [...t];
|
|
53
|
+
}, b = (e) => {
|
|
54
|
+
c.value = e;
|
|
55
|
+
}, S = (e) => {
|
|
56
|
+
const t = Array.isArray(e) ? e : [e], o = {
|
|
57
|
+
...d.value
|
|
41
58
|
};
|
|
42
59
|
t == null || t.forEach((a) => {
|
|
43
|
-
a != null && a.columnKey && (a.order ?
|
|
44
|
-
}),
|
|
45
|
-
},
|
|
60
|
+
a != null && a.columnKey && (a.order ? o[a.columnKey] = a.order === "ascend" ? "asc" : "desc" : delete o[a.columnKey]);
|
|
61
|
+
}), d.value = o;
|
|
62
|
+
}, w = (e) => {
|
|
46
63
|
const t = {
|
|
47
64
|
...i.value
|
|
48
65
|
};
|
|
49
|
-
Object.entries(e).forEach(([
|
|
50
|
-
t[
|
|
66
|
+
Object.entries(e).forEach(([o, a]) => {
|
|
67
|
+
t[o] = a;
|
|
51
68
|
}), i.value = t;
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
},
|
|
69
|
+
}, k = (e) => {
|
|
70
|
+
g.value = e;
|
|
71
|
+
}, R = (e) => {
|
|
55
72
|
l.value.pageSize = e, l.value.page = 1;
|
|
56
|
-
},
|
|
73
|
+
}, E = (e) => {
|
|
57
74
|
l.value.page = e;
|
|
58
|
-
},
|
|
75
|
+
}, x = r(() => ({
|
|
59
76
|
page: l.value.page,
|
|
60
77
|
pageSize: l.value.pageSize,
|
|
61
78
|
pageCount: m.value,
|
|
62
79
|
pageSizes: [10, 20, 30, 40, 50],
|
|
63
80
|
pageSlot: 5,
|
|
64
|
-
onUpdatePage:
|
|
65
|
-
onUpdatePageSize:
|
|
81
|
+
onUpdatePage: E,
|
|
82
|
+
onUpdatePageSize: R,
|
|
66
83
|
showSizePicker: !0,
|
|
67
84
|
showQuickJumper: !0
|
|
68
85
|
})), F = r(() => {
|
|
69
86
|
var e;
|
|
70
87
|
return {
|
|
71
88
|
remote: !0,
|
|
72
|
-
checkedRowKeys:
|
|
73
|
-
expandedRowKeys:
|
|
74
|
-
onUpdateCheckedRowKeys:
|
|
75
|
-
onUpdateExpandedRowKeys:
|
|
76
|
-
onUpdateSorter:
|
|
77
|
-
onUpdateFilters:
|
|
78
|
-
loading:
|
|
79
|
-
data: ((e =
|
|
80
|
-
columns:
|
|
89
|
+
checkedRowKeys: c.value,
|
|
90
|
+
expandedRowKeys: g.value,
|
|
91
|
+
onUpdateCheckedRowKeys: b,
|
|
92
|
+
onUpdateExpandedRowKeys: k,
|
|
93
|
+
onUpdateSorter: S,
|
|
94
|
+
onUpdateFilters: w,
|
|
95
|
+
loading: y.value,
|
|
96
|
+
data: ((e = v.value) == null ? void 0 : e.data) || [],
|
|
97
|
+
columns: p.value.filter((t) => t.show !== !1)
|
|
81
98
|
};
|
|
82
99
|
}), P = r(() => {
|
|
83
100
|
var e;
|
|
84
|
-
return ((e =
|
|
85
|
-
}),
|
|
101
|
+
return ((e = v.value) == null ? void 0 : e.data) || [];
|
|
102
|
+
}), j = r(() => {
|
|
86
103
|
var e;
|
|
87
|
-
return ((e =
|
|
104
|
+
return ((e = v.value) == null ? void 0 : e.meta) || {};
|
|
88
105
|
});
|
|
89
106
|
return {
|
|
90
107
|
list: P,
|
|
91
|
-
meta:
|
|
92
|
-
tablePagination:
|
|
108
|
+
meta: j,
|
|
109
|
+
tablePagination: x,
|
|
93
110
|
tableProps: F,
|
|
94
|
-
columns:
|
|
95
|
-
isLoading:
|
|
96
|
-
columnSelected:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
111
|
+
columns: p,
|
|
112
|
+
isLoading: y,
|
|
113
|
+
columnSelected: C,
|
|
114
|
+
tableCheckeds: c,
|
|
115
|
+
tableExpanded: g,
|
|
116
|
+
tableFilters: i,
|
|
117
|
+
tableSorters: d,
|
|
118
|
+
onRefresh: () => {
|
|
119
|
+
c.value = [], z();
|
|
120
|
+
},
|
|
121
|
+
onUpdateColumnSelected: K,
|
|
122
|
+
onUpdateChecked: b,
|
|
123
|
+
onUpdateExpanded: k,
|
|
124
|
+
onUpdateSorter: S,
|
|
125
|
+
onUpdateFilter: w,
|
|
126
|
+
dataFilters: u,
|
|
127
|
+
dataSorters: d
|
|
105
128
|
};
|
|
106
129
|
}
|
|
107
130
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isFunction as
|
|
1
|
+
import { isFunction as $, isObject as P, EMPTY_OBJ as We, isArray as m, hasChanged as x, extend as ne, toRawType as Ee, isSymbol as B, hasOwn as oe, isIntegerKey as ue, isMap as j, makeMap as He, capitalize as Ce, NOOP as $e, isSet as Ye, isPlainObject as ze } from "../../shared/dist/shared.esm-bundler.js";
|
|
2
2
|
/**
|
|
3
3
|
* @vue/reactivity v3.5.14
|
|
4
4
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -115,7 +115,7 @@ function ae(e) {
|
|
|
115
115
|
return !!e._dirty;
|
|
116
116
|
}
|
|
117
117
|
function Re(e) {
|
|
118
|
-
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion ===
|
|
118
|
+
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === Y) || (e.globalVersion = Y, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !ae(e))))
|
|
119
119
|
return;
|
|
120
120
|
e.flags |= 2;
|
|
121
121
|
const t = e.dep, s = u, r = w;
|
|
@@ -123,7 +123,7 @@ function Re(e) {
|
|
|
123
123
|
try {
|
|
124
124
|
De(e);
|
|
125
125
|
const i = e.fn(e._value);
|
|
126
|
-
(t.version === 0 ||
|
|
126
|
+
(t.version === 0 || x(i, e._value)) && (e.flags |= 128, e._value = i, t.version++);
|
|
127
127
|
} catch (i) {
|
|
128
128
|
throw t.version++, i;
|
|
129
129
|
} finally {
|
|
@@ -164,7 +164,7 @@ function ge(e) {
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
let
|
|
167
|
+
let Y = 0;
|
|
168
168
|
class Ge {
|
|
169
169
|
constructor(t, s) {
|
|
170
170
|
this.sub = t, this.dep = s, this.version = s.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
@@ -194,7 +194,7 @@ class _e {
|
|
|
194
194
|
), s;
|
|
195
195
|
}
|
|
196
196
|
trigger(t) {
|
|
197
|
-
this.version++,
|
|
197
|
+
this.version++, Y++, this.notify(t);
|
|
198
198
|
}
|
|
199
199
|
notify(t) {
|
|
200
200
|
he();
|
|
@@ -232,7 +232,7 @@ const k = /* @__PURE__ */ new WeakMap(), V = Symbol(
|
|
|
232
232
|
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
233
233
|
), ce = Symbol(
|
|
234
234
|
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
235
|
-
),
|
|
235
|
+
), z = Symbol(
|
|
236
236
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
237
237
|
);
|
|
238
238
|
function g(e, t, s) {
|
|
@@ -250,7 +250,7 @@ function g(e, t, s) {
|
|
|
250
250
|
function N(e, t, s, r, i, n) {
|
|
251
251
|
const o = k.get(e);
|
|
252
252
|
if (!o) {
|
|
253
|
-
|
|
253
|
+
Y++;
|
|
254
254
|
return;
|
|
255
255
|
}
|
|
256
256
|
const a = (c) => {
|
|
@@ -266,14 +266,14 @@ function N(e, t, s, r, i, n) {
|
|
|
266
266
|
if (he(), t === "clear")
|
|
267
267
|
o.forEach(a);
|
|
268
268
|
else {
|
|
269
|
-
const c =
|
|
269
|
+
const c = m(e), p = c && ue(s);
|
|
270
270
|
if (c && s === "length") {
|
|
271
271
|
const _ = Number(r);
|
|
272
272
|
o.forEach((f, d) => {
|
|
273
|
-
(d === "length" || d ===
|
|
273
|
+
(d === "length" || d === z || !B(d) && d >= _) && a(f);
|
|
274
274
|
});
|
|
275
275
|
} else
|
|
276
|
-
switch ((s !== void 0 || o.has(void 0)) && a(o.get(s)), p && a(o.get(
|
|
276
|
+
switch ((s !== void 0 || o.has(void 0)) && a(o.get(s)), p && a(o.get(z)), t) {
|
|
277
277
|
case "add":
|
|
278
278
|
c ? p && a(o.get("length")) : (a(o.get(V)), j(e) && a(o.get(ce)));
|
|
279
279
|
break;
|
|
@@ -293,10 +293,10 @@ function Je(e, t) {
|
|
|
293
293
|
}
|
|
294
294
|
function A(e) {
|
|
295
295
|
const t = h(e);
|
|
296
|
-
return t === e ? t : (g(t, "iterate",
|
|
296
|
+
return t === e ? t : (g(t, "iterate", z), E(e) ? t : t.map(v));
|
|
297
297
|
}
|
|
298
298
|
function ve(e) {
|
|
299
|
-
return g(e = h(e), "iterate",
|
|
299
|
+
return g(e = h(e), "iterate", z), e;
|
|
300
300
|
}
|
|
301
301
|
const Qe = {
|
|
302
302
|
__proto__: null,
|
|
@@ -305,7 +305,7 @@ const Qe = {
|
|
|
305
305
|
},
|
|
306
306
|
concat(...e) {
|
|
307
307
|
return A(this).concat(
|
|
308
|
-
...e.map((t) =>
|
|
308
|
+
...e.map((t) => m(t) ? A(t) : t)
|
|
309
309
|
);
|
|
310
310
|
},
|
|
311
311
|
entries() {
|
|
@@ -421,7 +421,7 @@ function be(e, t, s, r) {
|
|
|
421
421
|
}
|
|
422
422
|
function re(e, t, s) {
|
|
423
423
|
const r = h(e);
|
|
424
|
-
g(r, "iterate",
|
|
424
|
+
g(r, "iterate", z);
|
|
425
425
|
const i = r[t](...s);
|
|
426
426
|
return (i === -1 || i === !1) && lt(s[0]) ? (s[0] = h(s[0]), r[t](...s)) : i;
|
|
427
427
|
}
|
|
@@ -431,10 +431,10 @@ function W(e, t, s = []) {
|
|
|
431
431
|
return pe(), Oe(), r;
|
|
432
432
|
}
|
|
433
433
|
const qe = /* @__PURE__ */ He("__proto__,__v_isRef,__isVue"), Ve = new Set(
|
|
434
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(
|
|
434
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(B)
|
|
435
435
|
);
|
|
436
436
|
function Xe(e) {
|
|
437
|
-
|
|
437
|
+
B(e) || (e = String(e));
|
|
438
438
|
const t = h(this);
|
|
439
439
|
return g(t, "has", e), t.hasOwnProperty(e);
|
|
440
440
|
}
|
|
@@ -455,7 +455,7 @@ class Ie {
|
|
|
455
455
|
return r === (i ? n ? at : je : n ? ot : Ae).get(t) || // receiver is not the reactive proxy, but has the same prototype
|
|
456
456
|
// this means the receiver is a user proxy of the reactive proxy
|
|
457
457
|
Object.getPrototypeOf(t) === Object.getPrototypeOf(r) ? t : void 0;
|
|
458
|
-
const o =
|
|
458
|
+
const o = m(t);
|
|
459
459
|
if (!i) {
|
|
460
460
|
let c;
|
|
461
461
|
if (o && (c = Qe[s]))
|
|
@@ -471,7 +471,7 @@ class Ie {
|
|
|
471
471
|
// its class methods
|
|
472
472
|
b(t) ? t : r
|
|
473
473
|
);
|
|
474
|
-
return (
|
|
474
|
+
return (B(s) ? Ve.has(s) : qe(s)) || (i || g(t, "get", s), n) ? a : b(a) ? o && ue(s) ? a : a.value : P(a) ? i ? Ke(a) : Pe(a) : a;
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
477
|
class Ze extends Ie {
|
|
@@ -482,16 +482,16 @@ class Ze extends Ie {
|
|
|
482
482
|
let n = t[s];
|
|
483
483
|
if (!this._isShallow) {
|
|
484
484
|
const c = I(n);
|
|
485
|
-
if (!E(r) && !I(r) && (n = h(n), r = h(r)), !
|
|
485
|
+
if (!E(r) && !I(r) && (n = h(n), r = h(r)), !m(t) && b(n) && !b(r))
|
|
486
486
|
return c ? !1 : (n.value = r, !0);
|
|
487
487
|
}
|
|
488
|
-
const o =
|
|
488
|
+
const o = m(t) && ue(s) ? Number(s) < t.length : oe(t, s), a = Reflect.set(
|
|
489
489
|
t,
|
|
490
490
|
s,
|
|
491
491
|
r,
|
|
492
492
|
b(t) ? t : i
|
|
493
493
|
);
|
|
494
|
-
return t === h(i) && (o ?
|
|
494
|
+
return t === h(i) && (o ? x(r, n) && N(t, "set", s, r, n) : N(t, "add", s, r)), a;
|
|
495
495
|
}
|
|
496
496
|
deleteProperty(t, s) {
|
|
497
497
|
const r = oe(t, s), i = t[s], n = Reflect.deleteProperty(t, s);
|
|
@@ -499,13 +499,13 @@ class Ze extends Ie {
|
|
|
499
499
|
}
|
|
500
500
|
has(t, s) {
|
|
501
501
|
const r = Reflect.has(t, s);
|
|
502
|
-
return (!
|
|
502
|
+
return (!B(s) || !Ve.has(s)) && g(t, "has", s), r;
|
|
503
503
|
}
|
|
504
504
|
ownKeys(t) {
|
|
505
505
|
return g(
|
|
506
506
|
t,
|
|
507
507
|
"iterate",
|
|
508
|
-
|
|
508
|
+
m(t) ? "length" : V
|
|
509
509
|
), Reflect.ownKeys(t);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
@@ -526,7 +526,7 @@ class ke extends Ie {
|
|
|
526
526
|
), !0;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
const et = /* @__PURE__ */ new Ze(), tt = /* @__PURE__ */ new ke(), fe = (e) => e,
|
|
529
|
+
const et = /* @__PURE__ */ new Ze(), tt = /* @__PURE__ */ new ke(), fe = (e) => e, U = (e) => Reflect.getPrototypeOf(e);
|
|
530
530
|
function st(e, t, s) {
|
|
531
531
|
return function(...r) {
|
|
532
532
|
const i = this.__v_raw, n = h(i), o = j(n), a = e === "entries" || e === Symbol.iterator && o, c = e === "keys" && o, p = i[e](...r), _ = s ? fe : t ? le : v;
|
|
@@ -550,7 +550,7 @@ function st(e, t, s) {
|
|
|
550
550
|
};
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function q(e) {
|
|
554
554
|
return function(...t) {
|
|
555
555
|
if (process.env.NODE_ENV !== "production") {
|
|
556
556
|
const s = t[0] ? `on key "${t[0]}" ` : "";
|
|
@@ -566,8 +566,8 @@ function it(e, t) {
|
|
|
566
566
|
const s = {
|
|
567
567
|
get(i) {
|
|
568
568
|
const n = this.__v_raw, o = h(n), a = h(i);
|
|
569
|
-
e || (
|
|
570
|
-
const { has: c } =
|
|
569
|
+
e || (x(i, a) && g(o, "get", i), g(o, "get", a));
|
|
570
|
+
const { has: c } = U(o), p = t ? fe : e ? le : v;
|
|
571
571
|
if (c.call(o, i))
|
|
572
572
|
return p(n.get(i));
|
|
573
573
|
if (c.call(o, a))
|
|
@@ -580,7 +580,7 @@ function it(e, t) {
|
|
|
580
580
|
},
|
|
581
581
|
has(i) {
|
|
582
582
|
const n = this.__v_raw, o = h(n), a = h(i);
|
|
583
|
-
return e || (
|
|
583
|
+
return e || (x(i, a) && g(o, "has", i), g(o, "has", a)), i === a ? n.has(i) : n.has(i) || n.has(a);
|
|
584
584
|
},
|
|
585
585
|
forEach(i, n) {
|
|
586
586
|
const o = this, a = o.__v_raw, c = h(a), p = t ? fe : e ? le : v;
|
|
@@ -590,26 +590,26 @@ function it(e, t) {
|
|
|
590
590
|
return ne(
|
|
591
591
|
s,
|
|
592
592
|
e ? {
|
|
593
|
-
add:
|
|
594
|
-
set:
|
|
595
|
-
delete:
|
|
596
|
-
clear:
|
|
593
|
+
add: q("add"),
|
|
594
|
+
set: q("set"),
|
|
595
|
+
delete: q("delete"),
|
|
596
|
+
clear: q("clear")
|
|
597
597
|
} : {
|
|
598
598
|
add(i) {
|
|
599
599
|
!t && !E(i) && !I(i) && (i = h(i));
|
|
600
600
|
const n = h(this);
|
|
601
|
-
return
|
|
601
|
+
return U(n).has.call(n, i) || (n.add(i), N(n, "add", i, i)), this;
|
|
602
602
|
},
|
|
603
603
|
set(i, n) {
|
|
604
604
|
!t && !E(n) && !I(n) && (n = h(n));
|
|
605
|
-
const o = h(this), { has: a, get: c } =
|
|
605
|
+
const o = h(this), { has: a, get: c } = U(o);
|
|
606
606
|
let p = a.call(o, i);
|
|
607
607
|
p ? process.env.NODE_ENV !== "production" && we(o, a, i) : (i = h(i), p = a.call(o, i));
|
|
608
608
|
const _ = c.call(o, i);
|
|
609
|
-
return o.set(i, n), p ?
|
|
609
|
+
return o.set(i, n), p ? x(n, _) && N(o, "set", i, n, _) : N(o, "add", i, n), this;
|
|
610
610
|
},
|
|
611
611
|
delete(i) {
|
|
612
|
-
const n = h(this), { has: o, get: a } =
|
|
612
|
+
const n = h(this), { has: o, get: a } = U(n);
|
|
613
613
|
let c = o.call(n, i);
|
|
614
614
|
c ? process.env.NODE_ENV !== "production" && we(n, o, i) : (i = h(i), c = o.call(n, i));
|
|
615
615
|
const p = a ? a.call(n, i) : void 0, _ = n.delete(i);
|
|
@@ -714,8 +714,8 @@ function Le(e, t, s, r, i) {
|
|
|
714
714
|
);
|
|
715
715
|
return i.set(e, a), a;
|
|
716
716
|
}
|
|
717
|
-
function
|
|
718
|
-
return I(e) ?
|
|
717
|
+
function Z(e) {
|
|
718
|
+
return I(e) ? Z(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
719
719
|
}
|
|
720
720
|
function I(e) {
|
|
721
721
|
return !!(e && e.__v_isReadonly);
|
|
@@ -753,7 +753,7 @@ class pt {
|
|
|
753
753
|
}
|
|
754
754
|
set value(t) {
|
|
755
755
|
const s = this._rawValue, r = this.__v_isShallow || E(t) || I(t);
|
|
756
|
-
t = r ? t : h(t),
|
|
756
|
+
t = r ? t : h(t), x(t, s) && (this._rawValue = t, this._value = r ? t : v(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
757
757
|
target: this,
|
|
758
758
|
type: "set",
|
|
759
759
|
key: "value",
|
|
@@ -762,10 +762,13 @@ class pt {
|
|
|
762
762
|
}) : this.dep.trigger());
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function dt(e) {
|
|
766
766
|
return b(e) ? e.value : e;
|
|
767
767
|
}
|
|
768
|
-
|
|
768
|
+
function St(e) {
|
|
769
|
+
return $(e) ? e() : dt(e);
|
|
770
|
+
}
|
|
771
|
+
class _t {
|
|
769
772
|
constructor(t, s, r) {
|
|
770
773
|
this._object = t, this._key = s, this._defaultValue = r, this.__v_isRef = !0, this._value = void 0;
|
|
771
774
|
}
|
|
@@ -780,7 +783,7 @@ class dt {
|
|
|
780
783
|
return Je(h(this._object), this._key);
|
|
781
784
|
}
|
|
782
785
|
}
|
|
783
|
-
class
|
|
786
|
+
class vt {
|
|
784
787
|
constructor(t) {
|
|
785
788
|
this._getter = t, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
|
|
786
789
|
}
|
|
@@ -788,16 +791,16 @@ class _t {
|
|
|
788
791
|
return this._value = this._getter();
|
|
789
792
|
}
|
|
790
793
|
}
|
|
791
|
-
function
|
|
792
|
-
return b(e) ? e :
|
|
794
|
+
function yt(e, t, s) {
|
|
795
|
+
return b(e) ? e : $(e) ? new vt(e) : P(e) && arguments.length > 1 ? gt(e, t, s) : ut(e);
|
|
793
796
|
}
|
|
794
|
-
function
|
|
797
|
+
function gt(e, t, s) {
|
|
795
798
|
const r = e[t];
|
|
796
|
-
return b(r) ? r : new
|
|
799
|
+
return b(r) ? r : new _t(e, t, s);
|
|
797
800
|
}
|
|
798
|
-
class
|
|
801
|
+
class bt {
|
|
799
802
|
constructor(t, s, r) {
|
|
800
|
-
this.fn = t, this.setter = s, this._value = void 0, this.dep = new _e(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion =
|
|
803
|
+
this.fn = t, this.setter = s, this._value = void 0, this.dep = new _e(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Y - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !s, this.isSSR = r;
|
|
801
804
|
}
|
|
802
805
|
/**
|
|
803
806
|
* @internal
|
|
@@ -820,15 +823,15 @@ class gt {
|
|
|
820
823
|
this.setter ? this.setter(t) : process.env.NODE_ENV !== "production" && D("Write operation failed: computed value is readonly");
|
|
821
824
|
}
|
|
822
825
|
}
|
|
823
|
-
function
|
|
826
|
+
function Dt(e, t, s = !1) {
|
|
824
827
|
let r, i;
|
|
825
|
-
|
|
826
|
-
const n = new
|
|
828
|
+
$(e) ? r = e : (r = e.get, i = e.set);
|
|
829
|
+
const n = new bt(r, i, s);
|
|
827
830
|
return process.env.NODE_ENV, n;
|
|
828
831
|
}
|
|
829
|
-
const
|
|
832
|
+
const X = {}, ee = /* @__PURE__ */ new WeakMap();
|
|
830
833
|
let T;
|
|
831
|
-
function
|
|
834
|
+
function wt(e, t = !1, s = T) {
|
|
832
835
|
if (s) {
|
|
833
836
|
let r = ee.get(s);
|
|
834
837
|
r || ee.set(s, r = []), r.push(e);
|
|
@@ -836,7 +839,7 @@ function bt(e, t = !1, s = T) {
|
|
|
836
839
|
"onWatcherCleanup() was called when there was no active watcher to associate with."
|
|
837
840
|
);
|
|
838
841
|
}
|
|
839
|
-
function
|
|
842
|
+
function Nt(e, t, s = We) {
|
|
840
843
|
const { immediate: r, deep: i, once: n, scheduler: o, augmentJob: a, call: c } = s, p = (l) => {
|
|
841
844
|
(s.onWarn || D)(
|
|
842
845
|
"Invalid watch source: ",
|
|
@@ -844,16 +847,16 @@ function Dt(e, t, s = We) {
|
|
|
844
847
|
"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
|
|
845
848
|
);
|
|
846
849
|
}, _ = (l) => i ? l : E(l) || i === !1 || i === 0 ? R(l, 1) : R(l);
|
|
847
|
-
let f, d, K,
|
|
848
|
-
if (b(e) ? (d = () => e.value,
|
|
850
|
+
let f, d, K, F, G = !1, J = !1;
|
|
851
|
+
if (b(e) ? (d = () => e.value, G = E(e)) : Z(e) ? (d = () => _(e), G = !0) : m(e) ? (J = !0, G = e.some((l) => Z(l) || E(l)), d = () => e.map((l) => {
|
|
849
852
|
if (b(l))
|
|
850
853
|
return l.value;
|
|
851
|
-
if (X(l))
|
|
852
|
-
return _(l);
|
|
853
854
|
if (Z(l))
|
|
855
|
+
return _(l);
|
|
856
|
+
if ($(l))
|
|
854
857
|
return c ? c(l, 2) : l();
|
|
855
858
|
process.env.NODE_ENV !== "production" && p(l);
|
|
856
|
-
})) :
|
|
859
|
+
})) : $(e) ? t ? d = c ? () => c(e, 2) : e : d = () => {
|
|
857
860
|
if (K) {
|
|
858
861
|
xe();
|
|
859
862
|
try {
|
|
@@ -865,7 +868,7 @@ function Dt(e, t, s = We) {
|
|
|
865
868
|
const l = T;
|
|
866
869
|
T = f;
|
|
867
870
|
try {
|
|
868
|
-
return c ? c(e, 3, [
|
|
871
|
+
return c ? c(e, 3, [F]) : e(F);
|
|
869
872
|
} finally {
|
|
870
873
|
T = l;
|
|
871
874
|
}
|
|
@@ -882,25 +885,25 @@ function Dt(e, t, s = We) {
|
|
|
882
885
|
l(...S), M();
|
|
883
886
|
};
|
|
884
887
|
}
|
|
885
|
-
let O =
|
|
888
|
+
let O = J ? new Array(e.length).fill(X) : X;
|
|
886
889
|
const L = (l) => {
|
|
887
890
|
if (!(!(f.flags & 1) || !f.dirty && !l))
|
|
888
891
|
if (t) {
|
|
889
892
|
const S = f.run();
|
|
890
|
-
if (i ||
|
|
893
|
+
if (i || G || (J ? S.some((te, Q) => x(te, O[Q])) : x(S, O))) {
|
|
891
894
|
K && K();
|
|
892
895
|
const te = T;
|
|
893
896
|
T = f;
|
|
894
897
|
try {
|
|
895
|
-
const
|
|
898
|
+
const Q = [
|
|
896
899
|
S,
|
|
897
900
|
// pass undefined as the old value when it's changed for the first time
|
|
898
|
-
O ===
|
|
899
|
-
|
|
901
|
+
O === X ? void 0 : J && O[0] === X ? [] : O,
|
|
902
|
+
F
|
|
900
903
|
];
|
|
901
|
-
c ? c(t, 3,
|
|
904
|
+
c ? c(t, 3, Q) : (
|
|
902
905
|
// @ts-expect-error
|
|
903
|
-
t(...
|
|
906
|
+
t(...Q)
|
|
904
907
|
), O = S;
|
|
905
908
|
} finally {
|
|
906
909
|
T = te;
|
|
@@ -909,7 +912,7 @@ function Dt(e, t, s = We) {
|
|
|
909
912
|
} else
|
|
910
913
|
f.run();
|
|
911
914
|
};
|
|
912
|
-
return a && a(L), f = new Be(d), f.scheduler = o ? () => o(L, !1) : L,
|
|
915
|
+
return a && a(L), f = new Be(d), f.scheduler = o ? () => o(L, !1) : L, F = (l) => wt(l, !1, f), K = f.onStop = () => {
|
|
913
916
|
const l = ee.get(f);
|
|
914
917
|
if (l) {
|
|
915
918
|
if (c)
|
|
@@ -925,7 +928,7 @@ function R(e, t = 1 / 0, s) {
|
|
|
925
928
|
return e;
|
|
926
929
|
if (s.add(e), t--, b(e))
|
|
927
930
|
R(e.value, t, s);
|
|
928
|
-
else if (
|
|
931
|
+
else if (m(e))
|
|
929
932
|
for (let r = 0; r < e.length; r++)
|
|
930
933
|
R(e[r], t, s);
|
|
931
934
|
else if (Ye(e) || j(e))
|
|
@@ -941,17 +944,17 @@ function R(e, t = 1 / 0, s) {
|
|
|
941
944
|
return e;
|
|
942
945
|
}
|
|
943
946
|
export {
|
|
944
|
-
|
|
947
|
+
z as ARRAY_ITERATE_KEY,
|
|
945
948
|
V as ITERATE_KEY,
|
|
946
949
|
ce as MAP_KEY_ITERATE_KEY,
|
|
947
950
|
Be as ReactiveEffect,
|
|
948
|
-
|
|
951
|
+
Dt as computed,
|
|
949
952
|
lt as isProxy,
|
|
950
|
-
|
|
953
|
+
Z as isReactive,
|
|
951
954
|
I as isReadonly,
|
|
952
955
|
b as isRef,
|
|
953
956
|
E as isShallow,
|
|
954
|
-
|
|
957
|
+
wt as onWatcherCleanup,
|
|
955
958
|
xe as pauseTracking,
|
|
956
959
|
Pe as reactive,
|
|
957
960
|
A as reactiveReadArray,
|
|
@@ -962,10 +965,11 @@ export {
|
|
|
962
965
|
h as toRaw,
|
|
963
966
|
v as toReactive,
|
|
964
967
|
le as toReadonly,
|
|
965
|
-
|
|
968
|
+
yt as toRef,
|
|
969
|
+
St as toValue,
|
|
966
970
|
g as track,
|
|
967
971
|
R as traverse,
|
|
968
972
|
N as trigger,
|
|
969
|
-
|
|
970
|
-
|
|
973
|
+
dt as unref,
|
|
974
|
+
Nt as watch
|
|
971
975
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isRef as Q, isReactive as Ce, isShallow as q, isReadonly as ne, toRaw as C, computed as ve, watch as xe, pauseTracking as X, resetTracking as Z, isProxy as Y } from "../../reactivity/dist/reactivity.esm-bundler.js";
|
|
2
|
-
import { ReactiveEffect as St, onWatcherCleanup as Ot, reactive as Vt, readonly as Ct, ref as vt, toRef as xt,
|
|
2
|
+
import { ReactiveEffect as St, onWatcherCleanup as Ot, reactive as Vt, readonly as Ct, ref as vt, toRef as xt, toValue as kt, unref as Rt } from "../../reactivity/dist/reactivity.esm-bundler.js";
|
|
3
3
|
import { isObject as v, EMPTY_OBJ as P, extend as R, isFunction as y, isArray as _, isPromise as ke, NOOP as I, isString as D, getGlobalThis as W, normalizeClass as se, normalizeStyle as re, isOn as Re } from "../../shared/dist/shared.esm-bundler.js";
|
|
4
|
-
import { capitalize as
|
|
4
|
+
import { capitalize as It } from "../../shared/dist/shared.esm-bundler.js";
|
|
5
5
|
/**
|
|
6
6
|
* @vue/runtime-core v3.5.14
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -770,7 +770,7 @@ export {
|
|
|
770
770
|
nt as Text,
|
|
771
771
|
le as callWithAsyncErrorHandling,
|
|
772
772
|
J as callWithErrorHandling,
|
|
773
|
-
|
|
773
|
+
It as capitalize,
|
|
774
774
|
M as cloneVNode,
|
|
775
775
|
_t as computed,
|
|
776
776
|
rt as createElementVNode,
|
|
@@ -801,7 +801,8 @@ export {
|
|
|
801
801
|
Xe as ssrContextKey,
|
|
802
802
|
C as toRaw,
|
|
803
803
|
xt as toRef,
|
|
804
|
-
kt as
|
|
804
|
+
kt as toValue,
|
|
805
|
+
Rt as unref,
|
|
805
806
|
Ze as useSSRContext,
|
|
806
807
|
gt as watch,
|
|
807
808
|
mt as watchEffect
|
|
@@ -1,39 +1,70 @@
|
|
|
1
1
|
import "../../vue/dist/vue.runtime.esm-bundler.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
deleteProperty(u, r) {
|
|
15
|
-
return Reflect.deleteProperty(e.value, r);
|
|
16
|
-
},
|
|
17
|
-
has(u, r) {
|
|
18
|
-
return Reflect.has(e.value, r);
|
|
19
|
-
},
|
|
20
|
-
ownKeys() {
|
|
21
|
-
return Object.keys(e.value);
|
|
22
|
-
},
|
|
23
|
-
getOwnPropertyDescriptor() {
|
|
24
|
-
return {
|
|
25
|
-
enumerable: !0,
|
|
26
|
-
configurable: !0
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
return o(l);
|
|
2
|
+
import { toValue as m } from "../../@vue/reactivity/dist/reactivity.esm-bundler.js";
|
|
3
|
+
import { watch as h } from "../../@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
4
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5
|
+
const f = () => {
|
|
6
|
+
};
|
|
7
|
+
function d(r, o) {
|
|
8
|
+
function e(...t) {
|
|
9
|
+
return new Promise((n, i) => {
|
|
10
|
+
Promise.resolve(r(() => o.apply(this, t), { fn: o, thisArg: this, args: t })).then(n).catch(i);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
return e;
|
|
31
14
|
}
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
const b = (r) => r();
|
|
16
|
+
function w(r, o = {}) {
|
|
17
|
+
let e, t, n = f;
|
|
18
|
+
const i = (c) => {
|
|
19
|
+
clearTimeout(c), n(), n = f;
|
|
20
|
+
};
|
|
21
|
+
let u;
|
|
22
|
+
return (c) => {
|
|
23
|
+
const s = m(r), l = m(o.maxWait);
|
|
24
|
+
return e && i(e), s <= 0 || l !== void 0 && l <= 0 ? (t && (i(t), t = null), Promise.resolve(c())) : new Promise((a, p) => {
|
|
25
|
+
n = o.rejectOnCancel ? p : a, u = c, l && !t && (t = setTimeout(() => {
|
|
26
|
+
e && i(e), t = null, a(u());
|
|
27
|
+
}, l)), e = setTimeout(() => {
|
|
28
|
+
t && i(t), t = null, a(c());
|
|
29
|
+
}, s);
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function W(r, o, e = {}) {
|
|
34
|
+
const {
|
|
35
|
+
eventFilter: t = b,
|
|
36
|
+
...n
|
|
37
|
+
} = e;
|
|
38
|
+
return h(
|
|
39
|
+
r,
|
|
40
|
+
d(
|
|
41
|
+
t,
|
|
42
|
+
o
|
|
43
|
+
),
|
|
44
|
+
n
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
function v(r, o, e = {}) {
|
|
48
|
+
const {
|
|
49
|
+
debounce: t = 0,
|
|
50
|
+
maxWait: n = void 0,
|
|
51
|
+
...i
|
|
52
|
+
} = e;
|
|
53
|
+
return W(
|
|
54
|
+
r,
|
|
55
|
+
o,
|
|
56
|
+
{
|
|
57
|
+
...i,
|
|
58
|
+
eventFilter: w(t, { maxWait: n })
|
|
59
|
+
}
|
|
60
|
+
);
|
|
34
61
|
}
|
|
35
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
36
62
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
63
|
+
b as bypassFilter,
|
|
64
|
+
d as createFilterWrapper,
|
|
65
|
+
w as debounceFilter,
|
|
66
|
+
v as debouncedWatch,
|
|
67
|
+
f as noop,
|
|
68
|
+
v as watchDebounced,
|
|
69
|
+
W as watchWithFilter
|
|
39
70
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DataTableBaseColumn, DataTableExpandColumn, DataTableFilterState, DataTableProps, DataTableRowKey, DataTableSortState, PaginationProps } from 'naive-ui';
|
|
1
|
+
import type { DataTableBaseColumn, DataTableExpandColumn, DataTableFilterState, DataTableProps, DataTableRowKey, DataTableSelectionColumn, DataTableSortState, PaginationProps } from 'naive-ui';
|
|
2
2
|
import type { ComputedRef, Ref } from 'vue';
|
|
3
3
|
export interface TableColumnExtend {
|
|
4
4
|
show?: boolean;
|
|
@@ -9,7 +9,8 @@ export interface TablePagination {
|
|
|
9
9
|
pageSize: number;
|
|
10
10
|
}
|
|
11
11
|
export type TableColumnKey = string | number;
|
|
12
|
-
|
|
12
|
+
type DataTableColumn = DataTableBaseColumn | DataTableExpandColumn | DataTableSelectionColumn;
|
|
13
|
+
export type TableColumn = DataTableColumn & TableColumnExtend;
|
|
13
14
|
export interface UseTableProps {
|
|
14
15
|
path: string;
|
|
15
16
|
key?: TableColumnKey;
|
|
@@ -27,13 +28,18 @@ export interface UseNaiveTableReturn {
|
|
|
27
28
|
columns: Ref<TableColumn[]>;
|
|
28
29
|
isLoading: ComputedRef<boolean>;
|
|
29
30
|
columnSelected: ComputedRef<string[]>;
|
|
31
|
+
tableCheckeds: Ref<DataTableRowKey[]>;
|
|
32
|
+
tableSorters: Ref<Record<string, 'asc' | 'desc'>>;
|
|
33
|
+
tableFilters: Ref<Record<string, any>>;
|
|
34
|
+
tableExpanded: Ref<DataTableRowKey[]>;
|
|
30
35
|
onUpdateColumnSelected: (v: string[]) => void;
|
|
31
36
|
onUpdateChecked: (v: DataTableRowKey[]) => void;
|
|
32
37
|
onUpdateExpanded: (v: DataTableRowKey[]) => void;
|
|
33
38
|
onUpdateSorter: (v: DataTableSortState | DataTableSortState[] | null) => void;
|
|
34
39
|
onUpdateFilter: (v: DataTableFilterState) => void;
|
|
35
|
-
|
|
40
|
+
onRefresh: () => void;
|
|
36
41
|
dataFilters: Record<string, any>;
|
|
37
42
|
dataSorters: Ref<Record<string, 'asc' | 'desc'>>;
|
|
38
43
|
}
|
|
39
44
|
export declare function useNaiveTable(props: UseTableProps): UseNaiveTableReturn;
|
|
45
|
+
export {};
|