Infinite Image Browsing
-
+
diff --git a/vue/dist/assets/Checkbox-d74eca7d.js b/vue/dist/assets/Checkbox-2af1c4fc.js
similarity index 97%
rename from vue/dist/assets/Checkbox-d74eca7d.js
rename to vue/dist/assets/Checkbox-2af1c4fc.js
index 3e01e56..81114b3 100644
--- a/vue/dist/assets/Checkbox-d74eca7d.js
+++ b/vue/dist/assets/Checkbox-2af1c4fc.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-b3c7c5d6.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-632e7cf6.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-8294157e.js b/vue/dist/assets/FileItem-70868dea.js
similarity index 99%
rename from vue/dist/assets/FileItem-8294157e.js
rename to vue/dist/assets/FileItem-70868dea.js
index 05a6a3b..0b5a992 100644
--- a/vue/dist/assets/FileItem-8294157e.js
+++ b/vue/dist/assets/FileItem-70868dea.js
@@ -1,3 +1,3 @@
-var ut=Object.defineProperty;var dt=(i,n,e)=>n in i?ut(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e;var q=(i,n,e)=>(dt(i,typeof n!="symbol"?n+"":n,e),e);import{c as I,A as Y,dx as le,O as de,am as ye,bk as ct,dh as ft,c0 as ht,dy as gt,r as L,cR as pt,bF as De,dz as mt,p as vt,dA as xe,bB as yt,dB as be,dC as bt,aH as At,G as H,dD as St,C as kt,dE as _t,n as ce,m as ne,aU as It,t as Ue,a1 as Ae,c9 as Je,aJ as wt,dF as We,dG as Ct,Q as Et,x as Tt,ct as fe,d0 as Ke,d1 as Ge,aP as Se,aQ as ke,az as Ye,U as l,a2 as F,dH as Pt,dI as Ot,dJ as Dt,c5 as zt,dK as Nt,at as Qt,V as c,aG as Z,$ as y,a3 as A,Z as V,a8 as x,c6 as ze,c7 as Mt,dL as $t,a7 as qe,ag as W,d as _e,X as S,Y as h,a4 as $,al as Ze,dq as Bt,dp as Ft,M as Xe,W as a,a0 as et,di as Rt,dM as Ne,af as Lt,dN as Vt,dl as jt,dO as Ht,dP as xt,dQ as ae,cW as Ut,dR as Jt,dS as Wt,dT as Kt}from"./index-b3c7c5d6.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-f5b35687.js";import{i as Gt}from"./_isIterateeCall-71e640b8.js";import{_ as Yt}from"./index-d8c2af9d.js";import{D as G,a as he}from"./index-597c4dca.js";/* empty css */G.Button=he;G.install=function(i){return i.component(G.name,G),i.component(he.name,he),i};var qt={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 Zt=qt;function Qe(i){for(var n=1;n{const r=ht();de(r),X.has(r)||(X.set(r,ye(i(r,t??(n==null?void 0:n())))),ct(()=>{X.delete(r)}));const o=X.get(r);return de(o),{state:o,toRefs(){return ft(o)}}}}}var vi={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 yi=vi;function Be(i){for(var n=1;n{const i=L([]);return{selectdFiles:i,addFiles:e=>{i.value=pt([...i.value,...e])}}});class se{constructor(n,e=mt.CREATED_TIME_DESC){q(this,"root");q(this,"execQueue",[]);q(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=>{De([this.entryPath]).then(async r=>{this.root.info=r[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(be(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 vt(n.info.fullpath);return n.children=xe(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=ai(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=r=>{for(const o of r.children)o.info.type==="dir"&&(n.push(o.info),e(o))};e(this.root);const t=await De(n.map(r=>r.fullpath));for(const r of n)if(!yt(r,t[r.fullpath]))return!0;return!1}async seamlessRefresh(n,e=L(!1)){const t=performance.now(),r=new se(this.entryPath,this.sortMethod);for(await r.walkerInitPromsie;!r.isCompleted&&r.images.lengthn in i?ut(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e;var q=(i,n,e)=>(dt(i,typeof n!="symbol"?n+"":n,e),e);import{c as I,A as Y,dx as le,O as de,am as ye,bk as ct,dh as ft,c0 as ht,dy as gt,r as L,cR as pt,bF as De,dz as mt,p as vt,dA as xe,bB as yt,dB as be,dC as bt,aH as At,G as H,dD as St,C as kt,dE as _t,n as ce,m as ne,aU as It,t as Ue,a1 as Ae,c9 as Je,aJ as wt,dF as We,dG as Ct,Q as Et,x as Tt,ct as fe,d0 as Ke,d1 as Ge,aP as Se,aQ as ke,az as Ye,U as l,a2 as F,dH as Pt,dI as Ot,dJ as Dt,c5 as zt,dK as Nt,at as Qt,V as c,aG as Z,$ as y,a3 as A,Z as V,a8 as x,c6 as ze,c7 as Mt,dL as $t,a7 as qe,ag as W,d as _e,X as S,Y as h,a4 as $,al as Ze,dq as Bt,dp as Ft,M as Xe,W as a,a0 as et,di as Rt,dM as Ne,af as Lt,dN as Vt,dl as jt,dO as Ht,dP as xt,dQ as ae,cW as Ut,dR as Jt,dS as Wt,dT as Kt}from"./index-632e7cf6.js";import"./numInput.vue_vue_type_style_index_0_scoped_55978858_lang-221425da.js";import{i as Gt}from"./_isIterateeCall-582f579a.js";import{_ as Yt}from"./index-9d95a206.js";import{D as G,a as he}from"./index-a44b2ffa.js";/* empty css */G.Button=he;G.install=function(i){return i.component(G.name,G),i.component(he.name,he),i};var qt={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 Zt=qt;function Qe(i){for(var n=1;n{const r=ht();de(r),X.has(r)||(X.set(r,ye(i(r,t??(n==null?void 0:n())))),ct(()=>{X.delete(r)}));const o=X.get(r);return de(o),{state:o,toRefs(){return ft(o)}}}}}var vi={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 yi=vi;function Be(i){for(var n=1;n{const i=L([]);return{selectdFiles:i,addFiles:e=>{i.value=pt([...i.value,...e])}}});class se{constructor(n,e=mt.CREATED_TIME_DESC){q(this,"root");q(this,"execQueue",[]);q(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=>{De([this.entryPath]).then(async r=>{this.root.info=r[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(be(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 vt(n.info.fullpath);return n.children=xe(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=ai(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=r=>{for(const o of r.children)o.info.type==="dir"&&(n.push(o.info),e(o))};e(this.root);const t=await De(n.map(r=>r.fullpath));for(const r of n)if(!yt(r,t[r.fullpath]))return!0;return!1}async seamlessRefresh(n,e=L(!1)){const t=performance.now(),r=new se(this.entryPath,this.sortMethod);for(await r.walkerInitPromsie;!r.isCompleted&&r.images.length