Infinite Image Browsing
-
-
+
+
diff --git a/vue/dist/assets/Checkbox-63e244a0.js b/vue/dist/assets/Checkbox-20185ccb.js
similarity index 97%
rename from vue/dist/assets/Checkbox-63e244a0.js
rename to vue/dist/assets/Checkbox-20185ccb.js
index 912fa96..433be3d 100644
--- a/vue/dist/assets/Checkbox-63e244a0.js
+++ b/vue/dist/assets/Checkbox-20185ccb.js
@@ -1 +1 @@
-import{d as E,bC as $,r as f,m as M,_ as T,a as c,an as W,h as m,c as v,P as z}from"./index-e20a7c5d.js";var G=["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"],H={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:z.any,required:Boolean};const L=E({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:$(H,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup:function(a,d){var t=d.attrs,h=d.emit,g=d.expose,o=f(a.checked===void 0?a.defaultChecked:a.checked),i=f();M(function(){return a.checked},function(){o.value=a.checked}),g({focus:function(){var e;(e=i.value)===null||e===void 0||e.focus()},blur:function(){var e;(e=i.value)===null||e===void 0||e.blur()}});var l=f(),x=function(e){if(!a.disabled){a.checked===void 0&&(o.value=e.target.checked),e.shiftKey=l.value;var r={target:c(c({},a),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e};a.checked!==void 0&&(i.value.checked=!!a.checked),h("change",r),l.value=!1}},C=function(e){h("click",e),l.value=e.shiftKey};return function(){var n,e=a.prefixCls,r=a.name,s=a.id,p=a.type,b=a.disabled,K=a.readonly,P=a.tabindex,B=a.autofocus,S=a.value,N=a.required,_=T(a,G),q=t.class,D=t.onFocus,j=t.onBlur,w=t.onKeydown,A=t.onKeypress,F=t.onKeyup,y=c(c({},_),t),O=Object.keys(y).reduce(function(k,u){return(u.substr(0,5)==="aria-"||u.substr(0,5)==="data-"||u==="role")&&(k[u]=y[u]),k},{}),R=W(e,q,(n={},m(n,"".concat(e,"-checked"),o.value),m(n,"".concat(e,"-disabled"),b),n)),V=c(c({name:r,id:s,type:p,readonly:K,disabled:b,tabindex:P,class:"".concat(e,"-input"),checked:!!o.value,autofocus:B,value:S},O),{},{onChange:x,onClick:C,onFocus:D,onBlur:j,onKeydown:w,onKeypress:A,onKeyup:F,required:N});return v("span",{class:R},[v("input",c({ref:i},V),null),v("span",{class:"".concat(e,"-inner")},null)])}}});export{L as V};
+import{d as E,bC as $,r as f,m as M,_ as T,a as c,an as W,h as m,c as v,P as z}from"./index-3d3aa3ce.js";var G=["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"],H={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:z.any,required:Boolean};const L=E({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:$(H,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup:function(a,d){var t=d.attrs,h=d.emit,g=d.expose,o=f(a.checked===void 0?a.defaultChecked:a.checked),i=f();M(function(){return a.checked},function(){o.value=a.checked}),g({focus:function(){var e;(e=i.value)===null||e===void 0||e.focus()},blur:function(){var e;(e=i.value)===null||e===void 0||e.blur()}});var l=f(),x=function(e){if(!a.disabled){a.checked===void 0&&(o.value=e.target.checked),e.shiftKey=l.value;var r={target:c(c({},a),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e};a.checked!==void 0&&(i.value.checked=!!a.checked),h("change",r),l.value=!1}},C=function(e){h("click",e),l.value=e.shiftKey};return function(){var n,e=a.prefixCls,r=a.name,s=a.id,p=a.type,b=a.disabled,K=a.readonly,P=a.tabindex,B=a.autofocus,S=a.value,N=a.required,_=T(a,G),q=t.class,D=t.onFocus,j=t.onBlur,w=t.onKeydown,A=t.onKeypress,F=t.onKeyup,y=c(c({},_),t),O=Object.keys(y).reduce(function(k,u){return(u.substr(0,5)==="aria-"||u.substr(0,5)==="data-"||u==="role")&&(k[u]=y[u]),k},{}),R=W(e,q,(n={},m(n,"".concat(e,"-checked"),o.value),m(n,"".concat(e,"-disabled"),b),n)),V=c(c({name:r,id:s,type:p,readonly:K,disabled:b,tabindex:P,class:"".concat(e,"-input"),checked:!!o.value,autofocus:B,value:S},O),{},{onChange:x,onClick:C,onFocus:D,onBlur:j,onKeydown:w,onKeypress:A,onKeyup:F,required:N});return v("span",{class:R},[v("input",c({ref:i},V),null),v("span",{class:"".concat(e,"-inner")},null)])}}});export{L as V};
diff --git a/vue/dist/assets/FileItem-034eec0b.js b/vue/dist/assets/FileItem-19dda24f.js
similarity index 99%
rename from vue/dist/assets/FileItem-034eec0b.js
rename to vue/dist/assets/FileItem-19dda24f.js
index 9c114c4..5e3c380 100644
--- a/vue/dist/assets/FileItem-034eec0b.js
+++ b/vue/dist/assets/FileItem-19dda24f.js
@@ -1,3 +1,3 @@
-var pt=Object.defineProperty;var vt=(i,n,e)=>n in i?pt(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e;var ee=(i,n,e)=>(vt(i,typeof n!="symbol"?n+"":n,e),e);import{d as Z,u as Ke,G as x,an as Ge,h as K,c as k,aq as mt,dl as yt,r as V,bh as bt,Z as j,dj as At,P as $e,ca as kt,A as X,dm as de,O as he,am as Se,bk as St,d7 as _t,b$ as It,dn as Ct,cH as wt,dp as Me,dq as Tt,p as Et,dr as Ye,bB as Pt,ds as _e,dt as Ot,aH as Dt,du as Nt,C as zt,dv as $t,n as ge,m as oe,aU as Mt,t as qe,a1 as Ie,c8 as Ze,aJ as Qt,dw as Xe,dx as Bt,Q as Ft,x as Rt,cs as pe,cS as et,cT as tt,aP as Ce,aQ as we,az as nt,U as l,a2 as R,dy as Lt,dz as Vt,dA as jt,c4 as xt,dB as Ht,at as Ut,V as f,aG as te,$ as A,a3 as _,a8 as H,c5 as Qe,c6 as Jt,dC as Wt,a7 as it,ag as W,X as I,Y as g,a4 as F,al as st,de as Kt,dd as Gt,M as rt,W as u,a0 as ot,d8 as Yt,dD as Be,af as qt,dE as Zt,db as Xt,dF as en,dG as tn,dH as ce,cM as nn,dI as sn,dJ as rn,dK as on}from"./index-e20a7c5d.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-6616bb47.js";import{i as ln}from"./_isIterateeCall-038c812a.js";import{D as Y,a as ve}from"./index-ac822435.js";/* empty css */var an=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}},un=Z({compatConfig:{MODE:3},name:"ACheckableTag",props:an(),setup:function(n,e){var t=e.slots,s=e.emit,o=Ke("tag",n),p=o.prefixCls,c=function(O){var w=n.checked;s("update:checked",!w),s("change",!w),s("click",O)},h=x(function(){var y;return Ge(p.value,(y={},K(y,"".concat(p.value,"-checkable"),!0),K(y,"".concat(p.value,"-checkable-checked"),n.checked),y))});return function(){var y;return k("span",{class:h.value,onClick:c},[(y=t.default)===null||y===void 0?void 0:y.call(t)])}}});const me=un;var dn=new RegExp("^(".concat(mt.join("|"),")(-inverse)?$")),cn=new RegExp("^(".concat(yt.join("|"),")$")),fn=function(){return{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:$e.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},"onUpdate:visible":Function,icon:$e.any}},q=Z({compatConfig:{MODE:3},name:"ATag",props:fn(),slots:["closeIcon","icon"],setup:function(n,e){var t=e.slots,s=e.emit,o=e.attrs,p=Ke("tag",n),c=p.prefixCls,h=p.direction,y=V(!0);bt(function(){n.visible!==void 0&&(y.value=n.visible)});var O=function(a){a.stopPropagation(),s("update:visible",!1),s("close",a),!a.defaultPrevented&&n.visible===void 0&&(y.value=!1)},w=x(function(){var Q=n.color;return Q?dn.test(Q)||cn.test(Q):!1}),D=x(function(){var Q;return Ge(c.value,(Q={},K(Q,"".concat(c.value,"-").concat(n.color),w.value),K(Q,"".concat(c.value,"-has-color"),n.color&&!w.value),K(Q,"".concat(c.value,"-hidden"),!y.value),K(Q,"".concat(c.value,"-rtl"),h.value==="rtl"),Q))});return function(){var Q,a,d,r=n.icon,b=r===void 0?(Q=t.icon)===null||Q===void 0?void 0:Q.call(t):r,C=n.color,M=n.closeIcon,v=M===void 0?(a=t.closeIcon)===null||a===void 0?void 0:a.call(t):M,T=n.closable,E=T===void 0?!1:T,$=function(){return E?v?k("span",{class:"".concat(c.value,"-close-icon"),onClick:O},[v]):k(kt,{class:"".concat(c.value,"-close-icon"),onClick:O},null):null},m={backgroundColor:C&&!w.value?C:void 0},P=b||null,S=(d=t.default)===null||d===void 0?void 0:d.call(t),L=P?k(j,null,[P,k("span",null,[S])]):S,N="onClick"in o,B=k("span",{class:D.value,style:m},[L,$()]);return N?k(At,null,{default:function(){return[B]}}):B}}});q.CheckableTag=me;q.install=function(i){return i.component(q.name,q),i.component(me.name,me),i};const hn=q;Y.Button=ve;Y.install=function(i){return i.component(Y.name,Y),i.component(ve.name,ve),i};var gn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const pn=gn;function Fe(i){for(var n=1;n{const s=It();he(s),ne.has(s)||(ne.set(s,Se(i(s,t??(n==null?void 0:n())))),St(()=>{ne.delete(s)}));const o=ne.get(s);return he(o),{state:o,toRefs(){return _t(o)}}}}}var $n={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const Mn=$n;function Ve(i){for(var n=1;n{const i=V([]);return{selectdFiles:i,addFiles:e=>{i.value=wt([...i.value,...e])}}});class le{constructor(n,e=Tt.CREATED_TIME_DESC){ee(this,"root");ee(this,"execQueue",[]);ee(this,"walkerInitPromsie");this.entryPath=n,this.sortMethod=e,this.root={children:[],info:{name:this.entryPath,size:"-",bytes:0,created_time:"",is_under_scanned_path:!0,date:"",type:"dir",fullpath:this.entryPath}},this.walkerInitPromsie=new Promise(t=>{Me([this.entryPath]).then(async s=>{this.root.info=s[this.entryPath],await this.fetchChildren(this.root),t()})})}reset(){return this.root.children=[],this.fetchChildren(this.root)}get images(){const n=e=>e.children.map(t=>{if(t.info.type==="dir")return n(t);if(_e(t.info.name))return t.info}).filter(t=>t).flat(1);return n(this.root)}get isCompleted(){return this.execQueue.length===0}async fetchChildren(n){const{files:e}=await Et(n.info.fullpath);return n.children=Ye(e,this.sortMethod).map(t=>({info:t,children:[]})),this.execQueue.shift(),this.execQueue.unshift(...n.children.filter(t=>t.info.type==="dir").map(t=>({fn:()=>this.fetchChildren(t),...t}))),n}async next(){await this.walkerInitPromsie;const n=Cn(this.execQueue);if(!n)return null;const e=await n.fn();return this.execQueue=this.execQueue.slice(),this.root={...this.root},e}async isExpired(){const n=[this.root.info],e=s=>{for(const o of s.children)o.info.type==="dir"&&(n.push(o.info),e(o))};e(this.root);const t=await Me(n.map(s=>s.fullpath));for(const s of n)if(!Pt(s,t[s.fullpath]))return!0;return!1}async seamlessRefresh(n,e=V(!1)){const t=performance.now(),s=new le(this.entryPath,this.sortMethod);for(await s.walkerInitPromsie;!s.isCompleted&&s.images.lengthn in i?pt(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e;var ee=(i,n,e)=>(vt(i,typeof n!="symbol"?n+"":n,e),e);import{d as Z,u as Ke,G as x,an as Ge,h as K,c as k,aq as mt,dl as yt,r as V,bh as bt,Z as j,dj as At,P as $e,ca as kt,A as X,dm as de,O as he,am as Se,bk as St,d7 as _t,b$ as It,dn as Ct,cH as wt,dp as Me,dq as Tt,p as Et,dr as Ye,bB as Pt,ds as _e,dt as Ot,aH as Dt,du as Nt,C as zt,dv as $t,n as ge,m as oe,aU as Mt,t as qe,a1 as Ie,c8 as Ze,aJ as Qt,dw as Xe,dx as Bt,Q as Ft,x as Rt,cs as pe,cS as et,cT as tt,aP as Ce,aQ as we,az as nt,U as l,a2 as R,dy as Lt,dz as Vt,dA as jt,c4 as xt,dB as Ht,at as Ut,V as f,aG as te,$ as A,a3 as _,a8 as H,c5 as Qe,c6 as Jt,dC as Wt,a7 as it,ag as W,X as I,Y as g,a4 as F,al as st,de as Kt,dd as Gt,M as rt,W as u,a0 as ot,d8 as Yt,dD as Be,af as qt,dE as Zt,db as Xt,dF as en,dG as tn,dH as ce,cM as nn,dI as sn,dJ as rn,dK as on}from"./index-3d3aa3ce.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-6330384b.js";import{i as ln}from"./_isIterateeCall-295c4a47.js";import{D as Y,a as ve}from"./index-f644ead6.js";/* empty css */var an=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}},un=Z({compatConfig:{MODE:3},name:"ACheckableTag",props:an(),setup:function(n,e){var t=e.slots,s=e.emit,o=Ke("tag",n),p=o.prefixCls,c=function(O){var w=n.checked;s("update:checked",!w),s("change",!w),s("click",O)},h=x(function(){var y;return Ge(p.value,(y={},K(y,"".concat(p.value,"-checkable"),!0),K(y,"".concat(p.value,"-checkable-checked"),n.checked),y))});return function(){var y;return k("span",{class:h.value,onClick:c},[(y=t.default)===null||y===void 0?void 0:y.call(t)])}}});const me=un;var dn=new RegExp("^(".concat(mt.join("|"),")(-inverse)?$")),cn=new RegExp("^(".concat(yt.join("|"),")$")),fn=function(){return{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:$e.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},"onUpdate:visible":Function,icon:$e.any}},q=Z({compatConfig:{MODE:3},name:"ATag",props:fn(),slots:["closeIcon","icon"],setup:function(n,e){var t=e.slots,s=e.emit,o=e.attrs,p=Ke("tag",n),c=p.prefixCls,h=p.direction,y=V(!0);bt(function(){n.visible!==void 0&&(y.value=n.visible)});var O=function(a){a.stopPropagation(),s("update:visible",!1),s("close",a),!a.defaultPrevented&&n.visible===void 0&&(y.value=!1)},w=x(function(){var Q=n.color;return Q?dn.test(Q)||cn.test(Q):!1}),D=x(function(){var Q;return Ge(c.value,(Q={},K(Q,"".concat(c.value,"-").concat(n.color),w.value),K(Q,"".concat(c.value,"-has-color"),n.color&&!w.value),K(Q,"".concat(c.value,"-hidden"),!y.value),K(Q,"".concat(c.value,"-rtl"),h.value==="rtl"),Q))});return function(){var Q,a,d,r=n.icon,b=r===void 0?(Q=t.icon)===null||Q===void 0?void 0:Q.call(t):r,C=n.color,M=n.closeIcon,v=M===void 0?(a=t.closeIcon)===null||a===void 0?void 0:a.call(t):M,T=n.closable,E=T===void 0?!1:T,$=function(){return E?v?k("span",{class:"".concat(c.value,"-close-icon"),onClick:O},[v]):k(kt,{class:"".concat(c.value,"-close-icon"),onClick:O},null):null},m={backgroundColor:C&&!w.value?C:void 0},P=b||null,S=(d=t.default)===null||d===void 0?void 0:d.call(t),L=P?k(j,null,[P,k("span",null,[S])]):S,N="onClick"in o,B=k("span",{class:D.value,style:m},[L,$()]);return N?k(At,null,{default:function(){return[B]}}):B}}});q.CheckableTag=me;q.install=function(i){return i.component(q.name,q),i.component(me.name,me),i};const hn=q;Y.Button=ve;Y.install=function(i){return i.component(Y.name,Y),i.component(ve.name,ve),i};var gn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const pn=gn;function Fe(i){for(var n=1;n{const s=It();he(s),ne.has(s)||(ne.set(s,Se(i(s,t??(n==null?void 0:n())))),St(()=>{ne.delete(s)}));const o=ne.get(s);return he(o),{state:o,toRefs(){return _t(o)}}}}}var $n={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const Mn=$n;function Ve(i){for(var n=1;n{const i=V([]);return{selectdFiles:i,addFiles:e=>{i.value=wt([...i.value,...e])}}});class le{constructor(n,e=Tt.CREATED_TIME_DESC){ee(this,"root");ee(this,"execQueue",[]);ee(this,"walkerInitPromsie");this.entryPath=n,this.sortMethod=e,this.root={children:[],info:{name:this.entryPath,size:"-",bytes:0,created_time:"",is_under_scanned_path:!0,date:"",type:"dir",fullpath:this.entryPath}},this.walkerInitPromsie=new Promise(t=>{Me([this.entryPath]).then(async s=>{this.root.info=s[this.entryPath],await this.fetchChildren(this.root),t()})})}reset(){return this.root.children=[],this.fetchChildren(this.root)}get images(){const n=e=>e.children.map(t=>{if(t.info.type==="dir")return n(t);if(_e(t.info.name))return t.info}).filter(t=>t).flat(1);return n(this.root)}get isCompleted(){return this.execQueue.length===0}async fetchChildren(n){const{files:e}=await Et(n.info.fullpath);return n.children=Ye(e,this.sortMethod).map(t=>({info:t,children:[]})),this.execQueue.shift(),this.execQueue.unshift(...n.children.filter(t=>t.info.type==="dir").map(t=>({fn:()=>this.fetchChildren(t),...t}))),n}async next(){await this.walkerInitPromsie;const n=Cn(this.execQueue);if(!n)return null;const e=await n.fn();return this.execQueue=this.execQueue.slice(),this.root={...this.root},e}async isExpired(){const n=[this.root.info],e=s=>{for(const o of s.children)o.info.type==="dir"&&(n.push(o.info),e(o))};e(this.root);const t=await Me(n.map(s=>s.fullpath));for(const s of n)if(!Pt(s,t[s.fullpath]))return!0;return!1}async seamlessRefresh(n,e=V(!1)){const t=performance.now(),s=new le(this.entryPath,this.sortMethod);for(await s.walkerInitPromsie;!s.isCompleted&&s.images.length