lu-lowcode-package-form 0.9.5 → 0.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js
CHANGED
|
@@ -382,4 +382,4 @@ __p += '`),an&&(Ge+=`' +
|
|
|
382
382
|
function print() { __p += __j.call(arguments, '') }
|
|
383
383
|
`:`;
|
|
384
384
|
`)+Ge+`return __p
|
|
385
|
-
}`;var Xt=yh(function(){return dn(G,$t+"return "+Ge).apply(n,ae)});if(Xt.source=Ge,kd(Xt))throw Xt;return Xt}function rN(i){return pn(i).toLowerCase()}function oN(i){return pn(i).toUpperCase()}function aN(i,c,m){if(i=pn(i),i&&(m||c===n))return Rm(i);if(!i||!(c=Fr(c)))return i;var I=lo(i),V=lo(c),G=Nm(I,V),ae=_m(I,V)+1;return ca(I,G,ae).join("")}function iN(i,c,m){if(i=pn(i),i&&(m||c===n))return i.slice(0,Mm(i)+1);if(!i||!(c=Fr(c)))return i;var I=lo(i),V=_m(I,lo(c))+1;return ca(I,0,V).join("")}function lN(i,c,m){if(i=pn(i),i&&(m||c===n))return i.replace(ot,"");if(!i||!(c=Fr(c)))return i;var I=lo(i),V=Nm(I,lo(c));return ca(I,V).join("")}function sN(i,c){var m=P,I=A;if(kn(c)){var V="separator"in c?c.separator:V;m="length"in c?Gt(c.length):m,I="omission"in c?Fr(c.omission):I}i=pn(i);var G=i.length;if(di(i)){var ae=lo(i);G=ae.length}if(m>=G)return i;var ue=m-fi(I);if(ue<1)return I;var pe=ae?ca(ae,0,ue).join(""):i.slice(0,ue);if(V===n)return pe+I;if(ae&&(ue+=pe.length-ue),Vd(V)){if(i.slice(ue).search(V)){var Ve,je=pe;for(V.global||(V=td(V.source,pn(Ct.exec(V))+"g")),V.lastIndex=0;Ve=V.exec(je);)var Ge=Ve.index;pe=pe.slice(0,Ge===n?ue:Ge)}}else if(i.indexOf(Fr(V),ue)!=ue){var ut=pe.lastIndexOf(V);ut>-1&&(pe=pe.slice(0,ut))}return pe+I}function cN(i){return i=pn(i),i&&Tt.test(i)?i.replace(et,kE):i}var uN=yi(function(i,c,m){return i+(m?" ":"")+c.toUpperCase()}),Hd=Cp("toUpperCase");function bh(i,c,m){return i=pn(i),c=m?n:c,c===n?DE(i)?zE(i):EE(i):i.match(c)||[]}var yh=Zt(function(i,c){try{return Tr(i,n,c)}catch(m){return kd(m)?m:new Wt(m)}}),dN=Vo(function(i,c){return qr(c,function(m){m=Io(m),Lo(i,m,Fd(i[m],i))}),i});function fN(i){var c=i==null?0:i.length,m=Dt();return i=c?Fn(i,function(I){if(typeof I[1]!="function")throw new Yr(s);return[m(I[0]),I[1]]}):[],Zt(function(I){for(var V=-1;++V<c;){var G=i[V];if(Tr(G[0],this,I))return Tr(G[1],this,I)}})}function vN(i){return k$(Xr(i,g))}function Bd(i){return function(){return i}}function gN(i,c){return i==null||i!==i?c:i}var mN=wp(),pN=wp(!0);function _r(i){return i}function Wd(i){return Qm(typeof i=="function"?i:Xr(i,g))}function hN(i){return ep(Xr(i,g))}function bN(i,c){return tp(i,Xr(c,g))}var yN=Zt(function(i,c){return function(m){return gl(m,i,c)}}),CN=Zt(function(i,c){return function(m){return gl(i,m,c)}});function Kd(i,c,m){var I=ar(c),V=js(c,I);m==null&&!(kn(c)&&(V.length||!I.length))&&(m=c,c=i,i=this,V=js(c,ar(c)));var G=!(kn(m)&&"chain"in m)||!!m.chain,ae=zo(i);return qr(V,function(ue){var pe=c[ue];i[ue]=pe,ae&&(i.prototype[ue]=function(){var Ve=this.__chain__;if(G||Ve){var je=i(this.__wrapped__),Ge=je.__actions__=Ir(this.__actions__);return Ge.push({func:pe,args:arguments,thisArg:i}),je.__chain__=Ve,je}return pe.apply(i,ra([this.value()],arguments))})}),i}function SN(){return sr._===this&&(sr._=qE),this}function Ud(){}function wN(i){return i=Gt(i),Zt(function(c){return np(c,i)})}var xN=xd(Fn),EN=xd(xm),$N=xd(Yu);function Ch(i){return _d(i)?Gu(Io(i)):tO(i)}function ON(i){return function(c){return i==null?n:Da(i,c)}}var IN=Ep(),RN=Ep(!0);function qd(){return[]}function Yd(){return!1}function NN(){return{}}function _N(){return""}function PN(){return!0}function MN(i,c){if(i=Gt(i),i<1||i>F)return[];var m=k,I=mr(i,k);c=Dt(c),i-=k;for(var V=Qu(I,c);++m<i;)c(m);return V}function DN(i){return Yt(i)?Fn(i,Io):Lr(i)?[i]:Ir(jp(pn(i)))}function TN(i){var c=++KE;return pn(i)+c}var AN=Us(function(i,c){return i+c},0),FN=Ed("ceil"),LN=Us(function(i,c){return i/c},1),kN=Ed("floor");function VN(i){return i&&i.length?Vs(i,_r,cd):n}function jN(i,c){return i&&i.length?Vs(i,Dt(c,2),cd):n}function zN(i){return Om(i,_r)}function HN(i,c){return Om(i,Dt(c,2))}function BN(i){return i&&i.length?Vs(i,_r,vd):n}function WN(i,c){return i&&i.length?Vs(i,Dt(c,2),vd):n}var KN=Us(function(i,c){return i*c},1),UN=Ed("round"),qN=Us(function(i,c){return i-c},0);function YN(i){return i&&i.length?Zu(i,_r):0}function GN(i,c){return i&&i.length?Zu(i,Dt(c,2)):0}return q.after=h2,q.ary=Zp,q.assign=oR,q.assignIn=dh,q.assignInWith=ac,q.assignWith=aR,q.at=iR,q.before=Qp,q.bind=Fd,q.bindAll=dN,q.bindKey=Jp,q.castArray=N2,q.chain=Yp,q.chunk=kO,q.compact=VO,q.concat=jO,q.cond=fN,q.conforms=vN,q.constant=Bd,q.countBy=YI,q.create=lR,q.curry=eh,q.curryRight=th,q.debounce=nh,q.defaults=sR,q.defaultsDeep=cR,q.defer=b2,q.delay=y2,q.difference=zO,q.differenceBy=HO,q.differenceWith=BO,q.drop=WO,q.dropRight=KO,q.dropRightWhile=UO,q.dropWhile=qO,q.fill=YO,q.filter=XI,q.flatMap=JI,q.flatMapDeep=e2,q.flatMapDepth=t2,q.flatten=Wp,q.flattenDeep=GO,q.flattenDepth=XO,q.flip=C2,q.flow=mN,q.flowRight=pN,q.fromPairs=ZO,q.functions=pR,q.functionsIn=hR,q.groupBy=n2,q.initial=JO,q.intersection=eI,q.intersectionBy=tI,q.intersectionWith=nI,q.invert=yR,q.invertBy=CR,q.invokeMap=o2,q.iteratee=Wd,q.keyBy=a2,q.keys=ar,q.keysIn=Nr,q.map=Js,q.mapKeys=wR,q.mapValues=xR,q.matches=hN,q.matchesProperty=bN,q.memoize=tc,q.merge=ER,q.mergeWith=fh,q.method=yN,q.methodOf=CN,q.mixin=Kd,q.negate=nc,q.nthArg=wN,q.omit=$R,q.omitBy=OR,q.once=S2,q.orderBy=i2,q.over=xN,q.overArgs=w2,q.overEvery=EN,q.overSome=$N,q.partial=Ld,q.partialRight=rh,q.partition=l2,q.pick=IR,q.pickBy=vh,q.property=Ch,q.propertyOf=ON,q.pull=iI,q.pullAll=Up,q.pullAllBy=lI,q.pullAllWith=sI,q.pullAt=cI,q.range=IN,q.rangeRight=RN,q.rearg=x2,q.reject=u2,q.remove=uI,q.rest=E2,q.reverse=Td,q.sampleSize=f2,q.set=NR,q.setWith=_R,q.shuffle=v2,q.slice=dI,q.sortBy=p2,q.sortedUniq=bI,q.sortedUniqBy=yI,q.split=JR,q.spread=$2,q.tail=CI,q.take=SI,q.takeRight=wI,q.takeRightWhile=xI,q.takeWhile=EI,q.tap=VI,q.throttle=O2,q.thru=Qs,q.toArray=sh,q.toPairs=gh,q.toPairsIn=mh,q.toPath=DN,q.toPlainObject=uh,q.transform=PR,q.unary=I2,q.union=$I,q.unionBy=OI,q.unionWith=II,q.uniq=RI,q.uniqBy=NI,q.uniqWith=_I,q.unset=MR,q.unzip=Ad,q.unzipWith=qp,q.update=DR,q.updateWith=TR,q.values=wi,q.valuesIn=AR,q.without=PI,q.words=bh,q.wrap=R2,q.xor=MI,q.xorBy=DI,q.xorWith=TI,q.zip=AI,q.zipObject=FI,q.zipObjectDeep=LI,q.zipWith=kI,q.entries=gh,q.entriesIn=mh,q.extend=dh,q.extendWith=ac,Kd(q,q),q.add=AN,q.attempt=yh,q.camelCase=VR,q.capitalize=ph,q.ceil=FN,q.clamp=FR,q.clone=_2,q.cloneDeep=M2,q.cloneDeepWith=D2,q.cloneWith=P2,q.conformsTo=T2,q.deburr=hh,q.defaultTo=gN,q.divide=LN,q.endsWith=jR,q.eq=co,q.escape=zR,q.escapeRegExp=HR,q.every=GI,q.find=ZI,q.findIndex=Hp,q.findKey=uR,q.findLast=QI,q.findLastIndex=Bp,q.findLastKey=dR,q.floor=kN,q.forEach=Gp,q.forEachRight=Xp,q.forIn=fR,q.forInRight=vR,q.forOwn=gR,q.forOwnRight=mR,q.get=jd,q.gt=A2,q.gte=F2,q.has=bR,q.hasIn=zd,q.head=Kp,q.identity=_r,q.includes=r2,q.indexOf=QO,q.inRange=LR,q.invoke=SR,q.isArguments=Fa,q.isArray=Yt,q.isArrayBuffer=L2,q.isArrayLike=Rr,q.isArrayLikeObject=Kn,q.isBoolean=k2,q.isBuffer=ua,q.isDate=V2,q.isElement=j2,q.isEmpty=z2,q.isEqual=H2,q.isEqualWith=B2,q.isError=kd,q.isFinite=W2,q.isFunction=zo,q.isInteger=oh,q.isLength=rc,q.isMap=ah,q.isMatch=K2,q.isMatchWith=U2,q.isNaN=q2,q.isNative=Y2,q.isNil=X2,q.isNull=G2,q.isNumber=ih,q.isObject=kn,q.isObjectLike=jn,q.isPlainObject=Cl,q.isRegExp=Vd,q.isSafeInteger=Z2,q.isSet=lh,q.isString=oc,q.isSymbol=Lr,q.isTypedArray=Si,q.isUndefined=Q2,q.isWeakMap=J2,q.isWeakSet=eR,q.join=rI,q.kebabCase=BR,q.last=Qr,q.lastIndexOf=oI,q.lowerCase=WR,q.lowerFirst=KR,q.lt=tR,q.lte=nR,q.max=VN,q.maxBy=jN,q.mean=zN,q.meanBy=HN,q.min=BN,q.minBy=WN,q.stubArray=qd,q.stubFalse=Yd,q.stubObject=NN,q.stubString=_N,q.stubTrue=PN,q.multiply=KN,q.nth=aI,q.noConflict=SN,q.noop=Ud,q.now=ec,q.pad=UR,q.padEnd=qR,q.padStart=YR,q.parseInt=GR,q.random=kR,q.reduce=s2,q.reduceRight=c2,q.repeat=XR,q.replace=ZR,q.result=RR,q.round=UN,q.runInContext=ve,q.sample=d2,q.size=g2,q.snakeCase=QR,q.some=m2,q.sortedIndex=fI,q.sortedIndexBy=vI,q.sortedIndexOf=gI,q.sortedLastIndex=mI,q.sortedLastIndexBy=pI,q.sortedLastIndexOf=hI,q.startCase=eN,q.startsWith=tN,q.subtract=qN,q.sum=YN,q.sumBy=GN,q.template=nN,q.times=MN,q.toFinite=Ho,q.toInteger=Gt,q.toLength=ch,q.toLower=rN,q.toNumber=Jr,q.toSafeInteger=rR,q.toString=pn,q.toUpper=oN,q.trim=aN,q.trimEnd=iN,q.trimStart=lN,q.truncate=sN,q.unescape=cN,q.uniqueId=TN,q.upperCase=uN,q.upperFirst=Hd,q.each=Gp,q.eachRight=Xp,q.first=Kp,Kd(q,function(){var i={};return $o(q,function(c,m){Sn.call(q.prototype,m)||(i[m]=c)}),i}(),{chain:!1}),q.VERSION=r,qr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){q[i].placeholder=q}),qr(["drop","take"],function(i,c){en.prototype[i]=function(m){m=m===n?1:er(Gt(m),0);var I=this.__filtered__&&!c?new en(this):this.clone();return I.__filtered__?I.__takeCount__=mr(m,I.__takeCount__):I.__views__.push({size:mr(m,k),type:i+(I.__dir__<0?"Right":"")}),I},en.prototype[i+"Right"]=function(m){return this.reverse()[i](m).reverse()}}),qr(["filter","map","takeWhile"],function(i,c){var m=c+1,I=m==M||m==T;en.prototype[i]=function(V){var G=this.clone();return G.__iteratees__.push({iteratee:Dt(V,3),type:m}),G.__filtered__=G.__filtered__||I,G}}),qr(["head","last"],function(i,c){var m="take"+(c?"Right":"");en.prototype[i]=function(){return this[m](1).value()[0]}}),qr(["initial","tail"],function(i,c){var m="drop"+(c?"":"Right");en.prototype[i]=function(){return this.__filtered__?new en(this):this[m](1)}}),en.prototype.compact=function(){return this.filter(_r)},en.prototype.find=function(i){return this.filter(i).head()},en.prototype.findLast=function(i){return this.reverse().find(i)},en.prototype.invokeMap=Zt(function(i,c){return typeof i=="function"?new en(this):this.map(function(m){return gl(m,i,c)})}),en.prototype.reject=function(i){return this.filter(nc(Dt(i)))},en.prototype.slice=function(i,c){i=Gt(i);var m=this;return m.__filtered__&&(i>0||c<0)?new en(m):(i<0?m=m.takeRight(-i):i&&(m=m.drop(i)),c!==n&&(c=Gt(c),m=c<0?m.dropRight(-c):m.take(c-i)),m)},en.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},en.prototype.toArray=function(){return this.take(k)},$o(en.prototype,function(i,c){var m=/^(?:filter|find|map|reject)|While$/.test(c),I=/^(?:head|last)$/.test(c),V=q[I?"take"+(c=="last"?"Right":""):c],G=I||/^find/.test(c);V&&(q.prototype[c]=function(){var ae=this.__wrapped__,ue=I?[1]:arguments,pe=ae instanceof en,Ve=ue[0],je=pe||Yt(ae),Ge=function(Jt){var an=V.apply(q,ra([Jt],ue));return I&&ut?an[0]:an};je&&m&&typeof Ve=="function"&&Ve.length!=1&&(pe=je=!1);var ut=this.__chain__,$t=!!this.__actions__.length,At=G&&!ut,Xt=pe&&!$t;if(!G&&je){ae=Xt?ae:new en(this);var Ft=i.apply(ae,ue);return Ft.__actions__.push({func:Qs,args:[Ge],thisArg:n}),new Gr(Ft,ut)}return At&&Xt?i.apply(this,ue):(Ft=this.thru(Ge),At?I?Ft.value()[0]:Ft.value():Ft)})}),qr(["pop","push","shift","sort","splice","unshift"],function(i){var c=Es[i],m=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",I=/^(?:pop|shift)$/.test(i);q.prototype[i]=function(){var V=arguments;if(I&&!this.__chain__){var G=this.value();return c.apply(Yt(G)?G:[],V)}return this[m](function(ae){return c.apply(Yt(ae)?ae:[],V)})}}),$o(en.prototype,function(i,c){var m=q[c];if(m){var I=m.name+"";Sn.call(pi,I)||(pi[I]=[]),pi[I].push({name:c,func:m})}}),pi[Ks(n,S).name]=[{name:"wrapper",func:n}],en.prototype.clone=c$,en.prototype.reverse=u$,en.prototype.value=d$,q.prototype.at=jI,q.prototype.chain=zI,q.prototype.commit=HI,q.prototype.next=BI,q.prototype.plant=KI,q.prototype.reverse=UI,q.prototype.toJSON=q.prototype.valueOf=q.prototype.value=qI,q.prototype.first=q.prototype.head,ll&&(q.prototype[ll]=WI),q},vi=HE();Ra?((Ra.exports=vi)._=vi,Wu._=vi):sr._=vi}).call(ur)})(vu,vu.exports);var RW=vu.exports;const NW=e=>{let{request:t,title:n,disabledValue:r,callError:o,...a}=e;const[s,l]=W.useState(!1),[u,f]=W.useState([]);W.useEffect(()=>{v()},[]);const v=async()=>{if(t&&typeof t=="function"){var g;const p=await t();if(p.code>0){o&&typeof o=="function"&&o(p.message);return}let b=dE(((g=p.data)===null||g===void 0?void 0:g.list)||p.data||[],"id",n||"title",a.parentId||"parentId","children",0,r);b=[{value:0,title:"根节点",children:b}],a.treeData=b,f(b)}a.treeData&&f(a.treeData),l(!0)};return ct.jsx(Cr,{...a,children:s&&ct.jsx(Oa,{...a,treeData:u,treeDefaultExpandAll:!0,style:{width:"100%"}})})},ys=e=>{let{request:t,option_label:n="label",option_value:r="id",disabledValue:o,callError:a,options:s,...l}=e;const[u,f]=W.useState([]);W.useEffect(()=>{v()},[]);const v=async()=>{if(t&&typeof t=="function"){var g;const p=await t();if(p.code>0){a&&typeof a=="function"&&a(p.message);return}let b=((g=p.data)===null||g===void 0?void 0:g.list)||p.data;Array.isArray(b)&&b.length>0&&f(b.map(C=>({label:C[n],value:C[r]})))}s&&s.length>0&&f(s)};return ct.jsx(Cr,{...l,children:ct.jsx(ri,{...l,options:u,style:{width:"100%"}})})},_W=e=>{let{...t}=e;return ct.jsx(ys,{...t,mode:"single"})},PW=e=>{let{onChange:t,value:n,...r}=e;const[o,a]=W.useState([]);return W.useEffect(()=>{if(typeof n=="string")try{n=JSON.parse(n),t(n)}catch{}a(n)},[n]),ct.jsx(ys,{...r,onChange:t,mode:"multiple",value:o})},MW=e=>{let{onChange:t,value:n,...r}=e;const[o,a]=W.useState("");W.useEffect(()=>{if(n&&typeof n=="string")try{n=JSON.parse(n),t(n)}catch{}n&&a(n)},[n]);const s=(l,u)=>{t&&typeof t=="function"&&t(u),a(u.label)};return ct.jsx(ys,{...r,onChange:s,value:o,mode:"single"})},DW=e=>{let{onChange:t,value:n,...r}=e;const[o,a]=W.useState([]);W.useEffect(()=>{if(n&&typeof n=="string")try{n=JSON.parse(n),t(n)}catch{}Array.isArray(n)&&a(n)},[n]);const s=(l,u)=>{t&&typeof t=="function"&&t(u),u.map(f=>f.label),a(u)};return ct.jsx(ys,{...r,onChange:s,value:o,mode:"multiple"})},TW=W.forwardRef((e,t)=>{let{value:n,onChange:r,...o}=e;const a=W.useRef(0),s=()=>{a.current++,r(a.current)};return ct.jsxs(Cr,{...o,children:[ct.jsxs("div",{ref:t,children:["form-set-value:",n]}),ct.jsx(wa,{onClick:s,children:"test"})]})}),AW=e=>{let{children:t,layout:n}=e;n=n||"1";const r=s=>{const l=s.split(",").map(Number),u=24;return l.map(f=>f/l.reduce((v,g)=>v+g)*u)},o=W.useMemo(()=>r(n),[n]);console.log("colSpans",o);const a=W.useMemo(()=>W.Children.toArray(t).map((s,l)=>{const u=s.props,f=(u==null?void 0:u.componentId)||(u==null?void 0:u.__id);return f?(o==null?void 0:o[l])&&ct.jsx(Wi,{span:o[l],children:ct.jsx(ro.Item,{style:{marginBottom:0},label:"",name:f,rules:[{required:u.isRequired,message:"".concat(u.title,"不能为空!")}],children:s},"".concat(f,"-form-item"))},l):(o==null?void 0:o[l])&&ct.jsx(Wi,{span:o[l],children:s},l)}),[t,o]);return ct.jsx(Fu,{gutter:24,children:a})},FW=e=>{let{title:t}=e;return t?ct.jsx("div",{className:"fh-11 fflex fitems-center ftext-lg ffont-medium fmb-5 ",children:ct.jsx("span",{className:"fborder-l-4 fborder-slate-300 fpl-2 ",children:t})}):null};function LW(e,t){const n=[];let r=[];const o=(a,s)=>{const l=a-s.length;s.push(...new Array(l).fill(W.createElement("div")))};for(const a of e){const{_componentName:s}=(a==null?void 0:a.props)||{};s&&s.startsWith("Layout")?(r.length>0&&(o(t,r),n.push(r),r=[]),n.push([a])):(r.push(a),r.length===t&&(n.push(r),r=[]))}return r.length>0&&(o(t,r),n.push(r)),n}const gm=W.forwardRef((e,t)=>{let{cols:n=1,children:r}=e;const[o]=ro.useForm(),[a,s]=W.useState(null),l=W.useRef(null);W.useImperativeHandle(t,()=>({formRef:o,initializeFieldVisibility:f}),[]),W.useEffect(()=>{u(),s(p())},[r,n]);const u=()=>{l.current=new Map;const b=W.Children.toArray(r);b.forEach(C=>{const{componentId:y,__id:h,...S}=C.props,x=y||h;l.current.set(x,{children:b.filter(w=>{var E;return w.props.__withId===x||((E=w.props.__withIds)===null||E===void 0?void 0:E.includes(x))}),show:!0})}),f()},f=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const C=o.getFieldsValue();for(let y of l.current.keys())v(y,C);b&&s(p())},v=(b,C)=>{let y=!1;return l.current.has(b)&&l.current.get(b).children.forEach(S=>{if(S.props.__withFunc&&typeof S.props.__withFunc=="function"){const x=S.props.__withFunc(C),w=S.props.componentId||S.props.__id;if(l.current.has(w)){const E=l.current.get(w);E.show!==x&&(E.show=x,l.current.set(w,E),y=!0)}}}),y},g=RW.debounce((b,C)=>{const y=o.getFieldsValue();let h=!1;b.forEach(S=>{S.name&&S.name.length>0&&(h=v(S.name[0],y))}),h&&s(p())},100),p=()=>{const b=W.Children.toArray(r);return LW(b.filter(y=>{const h=y.props.componentId||y.props.__id;return l.current.has(h)&&l.current.get(h).show}),n).map((y,h)=>ct.jsx(Fu,{gutter:[24,24],children:y.map((S,x)=>{const{componentId:w,__id:E,_componentName:$,...O}=S.props,R=w||E,N=$&&$.startsWith("Layout");return ct.jsx(Wi,{span:N?24:24/y.length,style:{marginBottom:0},children:N?S:ct.jsx(ro.Item,{style:{marginBottom:0},label:"",name:R,rules:[{required:O.isRequired,message:"".concat(O.title,"不能为空!")}],children:S})},R||"col-".concat(x))})},"row-".concat(h)))};return ct.jsx(ro,{form:o,className:"form-container fp-6 fw-full fh-full box-border overflow-auto",onFieldsChange:g,children:a})});function kW(e){return W.forwardRef((t,n)=>ct.jsx(e,{...t,ref:n,forwardedRef:n}))}class JW extends W.PureComponent{render(){const{forwardedRef:t,...n}=this.props;return ct.jsx(gm,{...n,ref:t})}}const VW=kW(e=>{let{forwardedRef:t,...n}=e;return ct.jsx(gm,{...n,ref:t})}),jW=e=>{let{request:t,value:n,onChange:r,callError:o,disabledValue:a,addRoot:s=!0,title:l,...u}=e;const[f,v]=W.useState(!1),[g,p]=W.useState([]);W.useEffect(()=>{b()},[]),W.useEffect(()=>{if(console.log("CheckboxTree value ",n),typeof n=="string")try{n=JSON.parse(n),r(n)}catch{}Array.isArray(n)&&S(n)},[n]);const b=async()=>{if(t&&typeof t=="function"){var _;const P=await t();if(P.code>0){o&&typeof o=="function"&&o(P.message);return}let A=dE(((_=P.data)===null||_===void 0?void 0:_.list)||P.data||[],"id",l||"title",(u==null?void 0:u.parentId)||"parentId","children",0,a);s&&(A=[{value:0,title:"根节点",children:A}]),u.treeData=A,console.log("treeData",A),p(A)}u.treeData&&p(u.treeData),v(!0)},[C,y]=W.useState([]),[h,S]=W.useState([]),[x,w]=W.useState([]),[E,$]=W.useState(!0),O=_=>{console.log("onExpand",_),y(_),$(!1)},R=_=>{console.log("onCheck",_),S(_),r(_)},N=(_,P)=>{console.log("onSelect",P),w(_)};return ct.jsx(Cr,{...u,children:ct.jsx(sm,{checkable:!0,onExpand:O,onCheck:R,onSelect:N,expandedKeys:C,autoExpandParent:E,checkedKeys:h,selectedKeys:x,treeData:g})})},zW=e=>ct.jsx(Cr,{...e,children:ct.jsx(ms,{...e})}),HW=e=>{let{value:t,onChange:n,...r}=e;const[o,a]=W.useState([]);return W.useEffect(()=>{if(typeof t=="string")try{t=JSON.parse(t),n(t)}catch{}a(t)},[t]),ct.jsx(Cr,{...r,children:ct.jsx(ms.Group,{...r,value:o})})},BW=e=>ct.jsx(Cr,{...e,children:ct.jsx(Au.Group,{...e})}),WW=e=>{let{value:t,maxCount:n,onChange:r,...o}=e;W.useEffect(()=>{if(t){if(typeof t=="string")try{t=JSON.parse(t),r(t)}catch{}console.log("value",t),Array.isArray(t)&&s(t)}},[t]),n=n||9;const[a,s]=W.useState([]),l=u=>{let{fileList:f}=u;console.log("newFileList",f),f=f.map(v=>(v.status=="done"&&v.response&&(v.url=v.response),v)),r(f.map(v=>({uid:v.uid,name:v.name,status:v.status,url:v.url||v.response||"",error:v.error}))),s(f)};return ct.jsx(Cr,{...o,children:ct.jsx(Hu,{...o,listType:"text",maxCount:n,onChange:l,fileList:a,children:ct.jsxs("div",{className:" fmin-w-36 fgap-1 frounded fborder-gray-300 fborder hover:fborder-[#3e92f8] hover:ftext-[#3e92f8] fcursor-pointer fh-8 fflex fitems-center fbg-white fjustify-center ",children:[ct.jsx(uE,{}),"点击上传文件"]})})})},KW=e=>{let{maxCount:t,value:n,onChange:r,...o}=e;W.useEffect(()=>{if(n){if(console.log("value",n),typeof n=="string")try{n=JSON.parse(n),r(n)}catch{}let E=[];if(Array.isArray(n))for(let $=0;$<n.length;$++){let O=n[$];var w=b.current.find(R=>R.uid===O.uid);console.log("set file",O),console.log("set oldfile",w),!w||(w.version||0)<(O.version||0)?E.push(O):E.push(w)}s(E)}},[n]),t=t||9;const[a,s]=W.useState([]),[l,u]=W.useState(""),[f,v]=W.useState(0),[g,p]=W.useState(!1),b=W.useRef([]),C=w=>new Promise((E,$)=>{const O=new FileReader;O.readAsDataURL(w),O.onload=()=>E(O.result),O.onerror=R=>$(R)}),y=async(w,E)=>{!w.url&&!w.preview&&(w.preview=await C(w.originFileObj)),u(w.url||w.preview),v(E),p(!0)},h=async(w,E)=>{s(a.filter(($,O)=>O!==E))},S=ct.jsx(ct.Fragment,{children:ct.jsxs("div",{className:"fw-full fh-full fflex fflex-col fitems-center fjustify-center fborder fborder-dashed fcursor-pointer frounded",children:[ct.jsx(cE,{}),ct.jsx("div",{className:"fmt-2",children:"点击上传"})]})}),x=w=>{let{fileList:E}=w,$=[];console.log("fileMap.current",JSON.parse(JSON.stringify(b.current)));for(let N=0;N<E.length;N++){var O=E[N];O.version=new Date().getTime();var R=b.current.find(_=>_.uid===O.uid);console.log("oldfile",JSON.parse(JSON.stringify(R))),R&&R.status!="uploading"?$.push(R):(O.status=="done"&&O.response&&(O.url=O.response),$.push(O))}console.log("newFileList",JSON.parse(JSON.stringify(E))),console.log("handleFileList",JSON.parse(JSON.stringify($))),b.current=$,s($),r($.map(N=>({uid:N.uid,name:N.name,status:N.status,url:N.url||N.response||"",error:N.error,version:N.version||0})))};return ct.jsxs(Cr,{...o,children:[ct.jsx("div",{className:"fflex fgap-3 fflex-wrap",children:ct.jsx(Hu,{...o,itemRender:(w,E,$)=>{console.log("file",E);let O=$.findIndex(R=>R.uid===E.uid);return ct.jsx(ct.Fragment,{children:ct.jsxs("div",{className:"fgroup fw-full fh-full fbg-transparent fborder frounded fflex fitems-center fjustify-center foverflow-hidden fcursor-pointer frelative"+(E.status=="error"?" fborder-red-500":""),children:[ct.jsxs("div",{className:" fhidden fabsolute fw-full fh-full fbg-gray-900 fbg-opacity-50 fitems-center fjustify-center fz-10 group-hover:fflex ftext-white ftext-lg fgap-2",children:[E.status=="done"&&ct.jsx(sE,{onClick:()=>{y(E,O)},className:"hover:ftext-gray-200"}),ct.jsx(lE,{onClick:()=>{h(E,O)},className:"hover:ftext-gray-200"})]}),E.status=="uploading"&&ct.jsx("div",{className:" fw-full fh-full fflex fitems-center fjustify-center fabsolute ftop-0 fleft-0 ",children:ct.jsx(tm,{})}),ct.jsx("img",{src:E.url||E.thumbUrl,alt:"Example Image",class:"fmax-w-full fmax-h-full fobject-contain "})]},"file-".concat(E.uid))})},listType:"picture-card",fileList:a,maxCount:t,onPreview:y,onChange:x,children:a.length>=t?null:S})}),l&&ct.jsx(uu.PreviewGroup,{preview:{visible:g,current:f,onVisibleChange:w=>p(w),onChange:w=>{v(w)}},children:a.map((w,E)=>ct.jsx(ct.Fragment,{children:ct.jsx(uu,{wrapperStyle:{display:"none"},src:w.url})}))})]})},UW=e=>{let{value:t,...n}=e;const[r,o]=W.useState(!1);return W.useEffect(()=>{let a=!1;typeof t=="boolean"?a=t:typeof t=="string"?a=t=="1"||t=="true":typeof t=="number"&&(a=t==1),o(a),n==null||n.onChange(a)},[t]),ct.jsx(Cr,{...n,children:ct.jsx(nm,{...n,value:r})})};var qW={exports:{}};(function(e,t){(function(n,r){e.exports=r(d1)})(ur,function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=r(n),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(s,l){return l==="W"?s+"周":s+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(s,l){var u=100*s+l;return u<600?"凌晨":u<900?"早上":u<1100?"上午":u<1300?"中午":u<1800?"下午":"晚上"}};return o.default.locale(a,null,!0),a})})(qW);hr.locale("zh-cn");const YW=e=>{let{datetype:t,value:n,onChange:r,...o}=e;t=t||"date";const[a,s]=W.useState(o==null?void 0:o.picker),[l,u]=W.useState(o==null?void 0:o.format),[f,v]=W.useState(null),[g,p]=W.useState(!1),[b,C]=W.useState(!1);W.useEffect(()=>{if(n){const h=hr(n);v(h)}},[n,l,a]);const y=(h,S)=>{r(S)};return W.useEffect(()=>{switch(s("date"),p(!1),t){case"date":s("date"),u("YYYY-MM-DD"),C(!1);break;case"datetime":p(!0),s("datetime"),u("YYYY-MM-DD HH:mm:ss"),C(!0);break;case"month":s("month"),C(!1);break;case"year":s("year"),C(!1);break}},[t]),ct.jsx(Cr,{...o,children:ct.jsx(el,{...o,picker:a,format:l,style:{width:"100%"},onChange:y,value:f,showTime:g,needConfirm:b})})},GW=e=>ct.jsx("div",{children:"sdfsdfsdf"}),XW={Input:dz,TextArea:vz,Password:gz,Search:mz,TreeSelect:NW,Select:ys,WithSingleSelect:MW,WithMultipleSelect:DW,SingleSelect:_W,MultipleSelect:PW,CodeMachine:fz,Checkbox:zW,CheckboxTree:jW,CheckboxGroup:HW,RadioGroup:BW,UploadFile:WW,UploadImage:KW,Switch:UW,DatePicker:YW,Custom:TW},ZW={FormRow:AW,FormGroupTitle:FW},QW={OptionSetter:GW};exports.Field=XW;exports.FormContainer=gm;exports.FormContainerWrapper=VW;exports.Layout=ZW;exports.Setter=QW;
|
|
385
|
+
}`;var Xt=yh(function(){return dn(G,$t+"return "+Ge).apply(n,ae)});if(Xt.source=Ge,kd(Xt))throw Xt;return Xt}function rN(i){return pn(i).toLowerCase()}function oN(i){return pn(i).toUpperCase()}function aN(i,c,m){if(i=pn(i),i&&(m||c===n))return Rm(i);if(!i||!(c=Fr(c)))return i;var I=lo(i),V=lo(c),G=Nm(I,V),ae=_m(I,V)+1;return ca(I,G,ae).join("")}function iN(i,c,m){if(i=pn(i),i&&(m||c===n))return i.slice(0,Mm(i)+1);if(!i||!(c=Fr(c)))return i;var I=lo(i),V=_m(I,lo(c))+1;return ca(I,0,V).join("")}function lN(i,c,m){if(i=pn(i),i&&(m||c===n))return i.replace(ot,"");if(!i||!(c=Fr(c)))return i;var I=lo(i),V=Nm(I,lo(c));return ca(I,V).join("")}function sN(i,c){var m=P,I=A;if(kn(c)){var V="separator"in c?c.separator:V;m="length"in c?Gt(c.length):m,I="omission"in c?Fr(c.omission):I}i=pn(i);var G=i.length;if(di(i)){var ae=lo(i);G=ae.length}if(m>=G)return i;var ue=m-fi(I);if(ue<1)return I;var pe=ae?ca(ae,0,ue).join(""):i.slice(0,ue);if(V===n)return pe+I;if(ae&&(ue+=pe.length-ue),Vd(V)){if(i.slice(ue).search(V)){var Ve,je=pe;for(V.global||(V=td(V.source,pn(Ct.exec(V))+"g")),V.lastIndex=0;Ve=V.exec(je);)var Ge=Ve.index;pe=pe.slice(0,Ge===n?ue:Ge)}}else if(i.indexOf(Fr(V),ue)!=ue){var ut=pe.lastIndexOf(V);ut>-1&&(pe=pe.slice(0,ut))}return pe+I}function cN(i){return i=pn(i),i&&Tt.test(i)?i.replace(et,kE):i}var uN=yi(function(i,c,m){return i+(m?" ":"")+c.toUpperCase()}),Hd=Cp("toUpperCase");function bh(i,c,m){return i=pn(i),c=m?n:c,c===n?DE(i)?zE(i):EE(i):i.match(c)||[]}var yh=Zt(function(i,c){try{return Tr(i,n,c)}catch(m){return kd(m)?m:new Wt(m)}}),dN=Vo(function(i,c){return qr(c,function(m){m=Io(m),Lo(i,m,Fd(i[m],i))}),i});function fN(i){var c=i==null?0:i.length,m=Dt();return i=c?Fn(i,function(I){if(typeof I[1]!="function")throw new Yr(s);return[m(I[0]),I[1]]}):[],Zt(function(I){for(var V=-1;++V<c;){var G=i[V];if(Tr(G[0],this,I))return Tr(G[1],this,I)}})}function vN(i){return k$(Xr(i,g))}function Bd(i){return function(){return i}}function gN(i,c){return i==null||i!==i?c:i}var mN=wp(),pN=wp(!0);function _r(i){return i}function Wd(i){return Qm(typeof i=="function"?i:Xr(i,g))}function hN(i){return ep(Xr(i,g))}function bN(i,c){return tp(i,Xr(c,g))}var yN=Zt(function(i,c){return function(m){return gl(m,i,c)}}),CN=Zt(function(i,c){return function(m){return gl(i,m,c)}});function Kd(i,c,m){var I=ar(c),V=js(c,I);m==null&&!(kn(c)&&(V.length||!I.length))&&(m=c,c=i,i=this,V=js(c,ar(c)));var G=!(kn(m)&&"chain"in m)||!!m.chain,ae=zo(i);return qr(V,function(ue){var pe=c[ue];i[ue]=pe,ae&&(i.prototype[ue]=function(){var Ve=this.__chain__;if(G||Ve){var je=i(this.__wrapped__),Ge=je.__actions__=Ir(this.__actions__);return Ge.push({func:pe,args:arguments,thisArg:i}),je.__chain__=Ve,je}return pe.apply(i,ra([this.value()],arguments))})}),i}function SN(){return sr._===this&&(sr._=qE),this}function Ud(){}function wN(i){return i=Gt(i),Zt(function(c){return np(c,i)})}var xN=xd(Fn),EN=xd(xm),$N=xd(Yu);function Ch(i){return _d(i)?Gu(Io(i)):tO(i)}function ON(i){return function(c){return i==null?n:Da(i,c)}}var IN=Ep(),RN=Ep(!0);function qd(){return[]}function Yd(){return!1}function NN(){return{}}function _N(){return""}function PN(){return!0}function MN(i,c){if(i=Gt(i),i<1||i>F)return[];var m=k,I=mr(i,k);c=Dt(c),i-=k;for(var V=Qu(I,c);++m<i;)c(m);return V}function DN(i){return Yt(i)?Fn(i,Io):Lr(i)?[i]:Ir(jp(pn(i)))}function TN(i){var c=++KE;return pn(i)+c}var AN=Us(function(i,c){return i+c},0),FN=Ed("ceil"),LN=Us(function(i,c){return i/c},1),kN=Ed("floor");function VN(i){return i&&i.length?Vs(i,_r,cd):n}function jN(i,c){return i&&i.length?Vs(i,Dt(c,2),cd):n}function zN(i){return Om(i,_r)}function HN(i,c){return Om(i,Dt(c,2))}function BN(i){return i&&i.length?Vs(i,_r,vd):n}function WN(i,c){return i&&i.length?Vs(i,Dt(c,2),vd):n}var KN=Us(function(i,c){return i*c},1),UN=Ed("round"),qN=Us(function(i,c){return i-c},0);function YN(i){return i&&i.length?Zu(i,_r):0}function GN(i,c){return i&&i.length?Zu(i,Dt(c,2)):0}return q.after=h2,q.ary=Zp,q.assign=oR,q.assignIn=dh,q.assignInWith=ac,q.assignWith=aR,q.at=iR,q.before=Qp,q.bind=Fd,q.bindAll=dN,q.bindKey=Jp,q.castArray=N2,q.chain=Yp,q.chunk=kO,q.compact=VO,q.concat=jO,q.cond=fN,q.conforms=vN,q.constant=Bd,q.countBy=YI,q.create=lR,q.curry=eh,q.curryRight=th,q.debounce=nh,q.defaults=sR,q.defaultsDeep=cR,q.defer=b2,q.delay=y2,q.difference=zO,q.differenceBy=HO,q.differenceWith=BO,q.drop=WO,q.dropRight=KO,q.dropRightWhile=UO,q.dropWhile=qO,q.fill=YO,q.filter=XI,q.flatMap=JI,q.flatMapDeep=e2,q.flatMapDepth=t2,q.flatten=Wp,q.flattenDeep=GO,q.flattenDepth=XO,q.flip=C2,q.flow=mN,q.flowRight=pN,q.fromPairs=ZO,q.functions=pR,q.functionsIn=hR,q.groupBy=n2,q.initial=JO,q.intersection=eI,q.intersectionBy=tI,q.intersectionWith=nI,q.invert=yR,q.invertBy=CR,q.invokeMap=o2,q.iteratee=Wd,q.keyBy=a2,q.keys=ar,q.keysIn=Nr,q.map=Js,q.mapKeys=wR,q.mapValues=xR,q.matches=hN,q.matchesProperty=bN,q.memoize=tc,q.merge=ER,q.mergeWith=fh,q.method=yN,q.methodOf=CN,q.mixin=Kd,q.negate=nc,q.nthArg=wN,q.omit=$R,q.omitBy=OR,q.once=S2,q.orderBy=i2,q.over=xN,q.overArgs=w2,q.overEvery=EN,q.overSome=$N,q.partial=Ld,q.partialRight=rh,q.partition=l2,q.pick=IR,q.pickBy=vh,q.property=Ch,q.propertyOf=ON,q.pull=iI,q.pullAll=Up,q.pullAllBy=lI,q.pullAllWith=sI,q.pullAt=cI,q.range=IN,q.rangeRight=RN,q.rearg=x2,q.reject=u2,q.remove=uI,q.rest=E2,q.reverse=Td,q.sampleSize=f2,q.set=NR,q.setWith=_R,q.shuffle=v2,q.slice=dI,q.sortBy=p2,q.sortedUniq=bI,q.sortedUniqBy=yI,q.split=JR,q.spread=$2,q.tail=CI,q.take=SI,q.takeRight=wI,q.takeRightWhile=xI,q.takeWhile=EI,q.tap=VI,q.throttle=O2,q.thru=Qs,q.toArray=sh,q.toPairs=gh,q.toPairsIn=mh,q.toPath=DN,q.toPlainObject=uh,q.transform=PR,q.unary=I2,q.union=$I,q.unionBy=OI,q.unionWith=II,q.uniq=RI,q.uniqBy=NI,q.uniqWith=_I,q.unset=MR,q.unzip=Ad,q.unzipWith=qp,q.update=DR,q.updateWith=TR,q.values=wi,q.valuesIn=AR,q.without=PI,q.words=bh,q.wrap=R2,q.xor=MI,q.xorBy=DI,q.xorWith=TI,q.zip=AI,q.zipObject=FI,q.zipObjectDeep=LI,q.zipWith=kI,q.entries=gh,q.entriesIn=mh,q.extend=dh,q.extendWith=ac,Kd(q,q),q.add=AN,q.attempt=yh,q.camelCase=VR,q.capitalize=ph,q.ceil=FN,q.clamp=FR,q.clone=_2,q.cloneDeep=M2,q.cloneDeepWith=D2,q.cloneWith=P2,q.conformsTo=T2,q.deburr=hh,q.defaultTo=gN,q.divide=LN,q.endsWith=jR,q.eq=co,q.escape=zR,q.escapeRegExp=HR,q.every=GI,q.find=ZI,q.findIndex=Hp,q.findKey=uR,q.findLast=QI,q.findLastIndex=Bp,q.findLastKey=dR,q.floor=kN,q.forEach=Gp,q.forEachRight=Xp,q.forIn=fR,q.forInRight=vR,q.forOwn=gR,q.forOwnRight=mR,q.get=jd,q.gt=A2,q.gte=F2,q.has=bR,q.hasIn=zd,q.head=Kp,q.identity=_r,q.includes=r2,q.indexOf=QO,q.inRange=LR,q.invoke=SR,q.isArguments=Fa,q.isArray=Yt,q.isArrayBuffer=L2,q.isArrayLike=Rr,q.isArrayLikeObject=Kn,q.isBoolean=k2,q.isBuffer=ua,q.isDate=V2,q.isElement=j2,q.isEmpty=z2,q.isEqual=H2,q.isEqualWith=B2,q.isError=kd,q.isFinite=W2,q.isFunction=zo,q.isInteger=oh,q.isLength=rc,q.isMap=ah,q.isMatch=K2,q.isMatchWith=U2,q.isNaN=q2,q.isNative=Y2,q.isNil=X2,q.isNull=G2,q.isNumber=ih,q.isObject=kn,q.isObjectLike=jn,q.isPlainObject=Cl,q.isRegExp=Vd,q.isSafeInteger=Z2,q.isSet=lh,q.isString=oc,q.isSymbol=Lr,q.isTypedArray=Si,q.isUndefined=Q2,q.isWeakMap=J2,q.isWeakSet=eR,q.join=rI,q.kebabCase=BR,q.last=Qr,q.lastIndexOf=oI,q.lowerCase=WR,q.lowerFirst=KR,q.lt=tR,q.lte=nR,q.max=VN,q.maxBy=jN,q.mean=zN,q.meanBy=HN,q.min=BN,q.minBy=WN,q.stubArray=qd,q.stubFalse=Yd,q.stubObject=NN,q.stubString=_N,q.stubTrue=PN,q.multiply=KN,q.nth=aI,q.noConflict=SN,q.noop=Ud,q.now=ec,q.pad=UR,q.padEnd=qR,q.padStart=YR,q.parseInt=GR,q.random=kR,q.reduce=s2,q.reduceRight=c2,q.repeat=XR,q.replace=ZR,q.result=RR,q.round=UN,q.runInContext=ve,q.sample=d2,q.size=g2,q.snakeCase=QR,q.some=m2,q.sortedIndex=fI,q.sortedIndexBy=vI,q.sortedIndexOf=gI,q.sortedLastIndex=mI,q.sortedLastIndexBy=pI,q.sortedLastIndexOf=hI,q.startCase=eN,q.startsWith=tN,q.subtract=qN,q.sum=YN,q.sumBy=GN,q.template=nN,q.times=MN,q.toFinite=Ho,q.toInteger=Gt,q.toLength=ch,q.toLower=rN,q.toNumber=Jr,q.toSafeInteger=rR,q.toString=pn,q.toUpper=oN,q.trim=aN,q.trimEnd=iN,q.trimStart=lN,q.truncate=sN,q.unescape=cN,q.uniqueId=TN,q.upperCase=uN,q.upperFirst=Hd,q.each=Gp,q.eachRight=Xp,q.first=Kp,Kd(q,function(){var i={};return $o(q,function(c,m){Sn.call(q.prototype,m)||(i[m]=c)}),i}(),{chain:!1}),q.VERSION=r,qr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){q[i].placeholder=q}),qr(["drop","take"],function(i,c){en.prototype[i]=function(m){m=m===n?1:er(Gt(m),0);var I=this.__filtered__&&!c?new en(this):this.clone();return I.__filtered__?I.__takeCount__=mr(m,I.__takeCount__):I.__views__.push({size:mr(m,k),type:i+(I.__dir__<0?"Right":"")}),I},en.prototype[i+"Right"]=function(m){return this.reverse()[i](m).reverse()}}),qr(["filter","map","takeWhile"],function(i,c){var m=c+1,I=m==M||m==T;en.prototype[i]=function(V){var G=this.clone();return G.__iteratees__.push({iteratee:Dt(V,3),type:m}),G.__filtered__=G.__filtered__||I,G}}),qr(["head","last"],function(i,c){var m="take"+(c?"Right":"");en.prototype[i]=function(){return this[m](1).value()[0]}}),qr(["initial","tail"],function(i,c){var m="drop"+(c?"":"Right");en.prototype[i]=function(){return this.__filtered__?new en(this):this[m](1)}}),en.prototype.compact=function(){return this.filter(_r)},en.prototype.find=function(i){return this.filter(i).head()},en.prototype.findLast=function(i){return this.reverse().find(i)},en.prototype.invokeMap=Zt(function(i,c){return typeof i=="function"?new en(this):this.map(function(m){return gl(m,i,c)})}),en.prototype.reject=function(i){return this.filter(nc(Dt(i)))},en.prototype.slice=function(i,c){i=Gt(i);var m=this;return m.__filtered__&&(i>0||c<0)?new en(m):(i<0?m=m.takeRight(-i):i&&(m=m.drop(i)),c!==n&&(c=Gt(c),m=c<0?m.dropRight(-c):m.take(c-i)),m)},en.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},en.prototype.toArray=function(){return this.take(k)},$o(en.prototype,function(i,c){var m=/^(?:filter|find|map|reject)|While$/.test(c),I=/^(?:head|last)$/.test(c),V=q[I?"take"+(c=="last"?"Right":""):c],G=I||/^find/.test(c);V&&(q.prototype[c]=function(){var ae=this.__wrapped__,ue=I?[1]:arguments,pe=ae instanceof en,Ve=ue[0],je=pe||Yt(ae),Ge=function(Jt){var an=V.apply(q,ra([Jt],ue));return I&&ut?an[0]:an};je&&m&&typeof Ve=="function"&&Ve.length!=1&&(pe=je=!1);var ut=this.__chain__,$t=!!this.__actions__.length,At=G&&!ut,Xt=pe&&!$t;if(!G&&je){ae=Xt?ae:new en(this);var Ft=i.apply(ae,ue);return Ft.__actions__.push({func:Qs,args:[Ge],thisArg:n}),new Gr(Ft,ut)}return At&&Xt?i.apply(this,ue):(Ft=this.thru(Ge),At?I?Ft.value()[0]:Ft.value():Ft)})}),qr(["pop","push","shift","sort","splice","unshift"],function(i){var c=Es[i],m=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",I=/^(?:pop|shift)$/.test(i);q.prototype[i]=function(){var V=arguments;if(I&&!this.__chain__){var G=this.value();return c.apply(Yt(G)?G:[],V)}return this[m](function(ae){return c.apply(Yt(ae)?ae:[],V)})}}),$o(en.prototype,function(i,c){var m=q[c];if(m){var I=m.name+"";Sn.call(pi,I)||(pi[I]=[]),pi[I].push({name:c,func:m})}}),pi[Ks(n,S).name]=[{name:"wrapper",func:n}],en.prototype.clone=c$,en.prototype.reverse=u$,en.prototype.value=d$,q.prototype.at=jI,q.prototype.chain=zI,q.prototype.commit=HI,q.prototype.next=BI,q.prototype.plant=KI,q.prototype.reverse=UI,q.prototype.toJSON=q.prototype.valueOf=q.prototype.value=qI,q.prototype.first=q.prototype.head,ll&&(q.prototype[ll]=WI),q},vi=HE();Ra?((Ra.exports=vi)._=vi,Wu._=vi):sr._=vi}).call(ur)})(vu,vu.exports);var RW=vu.exports;const NW=e=>{let{request:t,title:n,disabledValue:r,callError:o,...a}=e;const[s,l]=W.useState(!1),[u,f]=W.useState([]);W.useEffect(()=>{v()},[]);const v=async()=>{if(t&&typeof t=="function"){var g;const p=await t();if(p.code>0){o&&typeof o=="function"&&o(p.message);return}let b=dE(((g=p.data)===null||g===void 0?void 0:g.list)||p.data||[],"id",n||"title",a.parentId||"parentId","children",0,r);b=[{value:0,title:"根节点",children:b}],a.treeData=b,f(b)}a.treeData&&f(a.treeData),l(!0)};return ct.jsx(Cr,{...a,children:s&&ct.jsx(Oa,{...a,treeData:u,treeDefaultExpandAll:!0,style:{width:"100%"}})})},ys=e=>{let{request:t,option_label:n="label",option_value:r="id",disabledValue:o,callError:a,options:s,...l}=e;const[u,f]=W.useState([]);W.useEffect(()=>{v()},[]);const v=async()=>{if(t&&typeof t=="function"){var g;const p=await t();if(p.code>0){a&&typeof a=="function"&&a(p.message);return}let b=((g=p.data)===null||g===void 0?void 0:g.list)||p.data;Array.isArray(b)&&b.length>0&&f(b.map(C=>({label:C[n],value:C[r]})))}s&&s.length>0&&f(s)};return ct.jsx(Cr,{...l,children:ct.jsx(ri,{...l,options:u,style:{width:"100%"}})})},_W=e=>{let{...t}=e;return ct.jsx(ys,{...t,mode:"single"})},PW=e=>{let{onChange:t,value:n,...r}=e;const[o,a]=W.useState([]);return W.useEffect(()=>{if(typeof n=="string")try{n=JSON.parse(n),t(n)}catch{}a(n)},[n]),ct.jsx(ys,{...r,onChange:t,mode:"multiple",value:o})},MW=e=>{let{onChange:t,value:n,...r}=e;const[o,a]=W.useState("");W.useEffect(()=>{if(n&&typeof n=="string")try{n=JSON.parse(n),t(n)}catch{}n&&a(n)},[n]);const s=(l,u)=>{t&&typeof t=="function"&&t(u),a(u.label)};return ct.jsx(ys,{...r,onChange:s,value:o,mode:"single"})},DW=e=>{let{onChange:t,value:n,...r}=e;const[o,a]=W.useState([]);W.useEffect(()=>{if(n&&typeof n=="string")try{n=JSON.parse(n),t(n)}catch{}Array.isArray(n)&&a(n)},[n]);const s=(l,u)=>{t&&typeof t=="function"&&t(u),u.map(f=>f.label),a(u)};return ct.jsx(ys,{...r,onChange:s,value:o,mode:"multiple"})},TW=W.forwardRef((e,t)=>{let{value:n,onChange:r,...o}=e;const a=W.useRef(0),s=()=>{a.current++,r(a.current)};return ct.jsxs(Cr,{...o,children:[ct.jsxs("div",{ref:t,children:["form-set-value:",n]}),ct.jsx(wa,{onClick:s,children:"test"})]})}),AW=e=>{let{children:t,layout:n}=e;n=n||"1";const r=s=>{const l=s.split(",").map(Number),u=24;return l.map(f=>f/l.reduce((v,g)=>v+g)*u)},o=W.useMemo(()=>r(n),[n]);console.log("colSpans",o);const a=W.useMemo(()=>W.Children.toArray(t).map((s,l)=>{const u=s.props,f=(u==null?void 0:u.componentId)||(u==null?void 0:u.__id);return f?(o==null?void 0:o[l])&&ct.jsx(Wi,{span:o[l],children:ct.jsx(ro.Item,{style:{marginBottom:0},label:"",name:f,rules:[{required:u.isRequired,message:"".concat(u.title,"不能为空!")}],children:s},"".concat(f,"-form-item"))},l):(o==null?void 0:o[l])&&ct.jsx(Wi,{span:o[l],children:s},l)}),[t,o]);return ct.jsx(Fu,{gutter:24,children:a})},FW=e=>{let{title:t}=e;return t?ct.jsx("div",{className:"fh-11 fflex fitems-center ftext-lg ffont-medium fmb-5 ",children:ct.jsx("span",{className:"fborder-l-4 fborder-slate-300 fpl-2 ",children:t})}):null};function LW(e,t){const n=[];let r=[];const o=(a,s)=>{const l=a-s.length;s.push(...new Array(l).fill(W.createElement("div")))};for(const a of e){const{_componentName:s}=(a==null?void 0:a.props)||{};s&&s.startsWith("Layout")?(r.length>0&&(o(t,r),n.push(r),r=[]),n.push([a])):(r.push(a),r.length===t&&(n.push(r),r=[]))}return r.length>0&&(o(t,r),n.push(r)),n}const gm=W.forwardRef((e,t)=>{let{cols:n=1,children:r}=e;const[o]=ro.useForm(),[a,s]=W.useState(null),l=W.useRef(null);W.useImperativeHandle(t,()=>({formRef:o,initializeFieldVisibility:f}),[]),W.useEffect(()=>{u(),s(p())},[r,n]);const u=()=>{l.current=new Map;const b=W.Children.toArray(r);b.forEach(C=>{const{componentId:y,__id:h,...S}=C.props,x=y||h;l.current.set(x,{children:b.filter(w=>{var E;return w.props.__withId===x||((E=w.props.__withIds)===null||E===void 0?void 0:E.includes(x))}),show:!0})}),f()},f=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const C=o.getFieldsValue();for(let y of l.current.keys())v(y,C);b&&s(p())},v=(b,C)=>{let y=!1;return l.current.has(b)&&l.current.get(b).children.forEach(S=>{if(S.props.__withFunc&&typeof S.props.__withFunc=="function"){const x=S.props.__withFunc(C),w=S.props.componentId||S.props.__id;if(l.current.has(w)){const E=l.current.get(w);E.show!==x&&(E.show=x,l.current.set(w,E),y=!0)}}}),y},g=RW.debounce((b,C)=>{const y=o.getFieldsValue();let h=!1;b.forEach(S=>{S.name&&S.name.length>0&&(h=v(S.name[0],y))}),h&&s(p())},100),p=()=>{const b=W.Children.toArray(r);return LW(b.filter(y=>{const h=y.props.componentId||y.props.__id;return l.current.has(h)&&l.current.get(h).show}),n).map((y,h)=>ct.jsx(Fu,{gutter:[24,24],children:y.map((S,x)=>{const{componentId:w,__id:E,_componentName:$,...O}=S.props,R=w||E,N=$&&$.startsWith("Layout");return ct.jsx(Wi,{span:N?24:24/y.length,style:{marginBottom:0},children:N?S:ct.jsx(ro.Item,{style:{marginBottom:0},label:"",name:R,rules:[{required:O.isRequired,message:"".concat(O.title,"不能为空!")}],children:S})},R||"col-".concat(x))})},"row-".concat(h)))};return ct.jsx(ro,{form:o,className:"form-container fp-6 fw-full fh-full box-border overflow-auto",onFieldsChange:g,children:a})});function kW(e){return W.forwardRef((t,n)=>ct.jsx(e,{...t,ref:n,forwardedRef:n}))}class JW extends W.PureComponent{render(){const{forwardedRef:t,...n}=this.props;return ct.jsx(gm,{...n,ref:t})}}const VW=kW(e=>{let{forwardedRef:t,...n}=e;return ct.jsx(gm,{...n,ref:t})}),jW=e=>{let{request:t,value:n,onChange:r,callError:o,disabledValue:a,addRoot:s=!0,title:l,...u}=e;const[f,v]=W.useState(!1),[g,p]=W.useState([]);W.useEffect(()=>{b()},[]),W.useEffect(()=>{if(console.log("CheckboxTree value ",n),typeof n=="string")try{n=JSON.parse(n),r(n)}catch{}Array.isArray(n)&&S(n)},[n]);const b=async()=>{if(t&&typeof t=="function"){var _;const P=await t();if(P.code>0){o&&typeof o=="function"&&o(P.message);return}let A=dE(((_=P.data)===null||_===void 0?void 0:_.list)||P.data||[],"id",l||"title",(u==null?void 0:u.parentId)||"parentId","children",0,a);s&&(A=[{value:0,title:"根节点",children:A}]),u.treeData=A,console.log("treeData",A),p(A)}u.treeData&&p(u.treeData),v(!0)},[C,y]=W.useState([]),[h,S]=W.useState([]),[x,w]=W.useState([]),[E,$]=W.useState(!0),O=_=>{console.log("onExpand",_),y(_),$(!1)},R=_=>{console.log("onCheck",_),S(_),r(_)},N=(_,P)=>{console.log("onSelect",P),w(_)};return ct.jsx(Cr,{...u,children:ct.jsx(sm,{checkable:!0,onExpand:O,onCheck:R,onSelect:N,expandedKeys:C,autoExpandParent:E,checkedKeys:h,selectedKeys:x,treeData:g})})},zW=e=>ct.jsx(Cr,{...e,children:ct.jsx(ms,{...e})}),HW=e=>{let{value:t,onChange:n,...r}=e;const[o,a]=W.useState([]);return W.useEffect(()=>{if(typeof t=="string")try{t=JSON.parse(t),n(t)}catch{}a(t)},[t]),ct.jsx(Cr,{...r,children:ct.jsx(ms.Group,{...r,value:o})})},BW=e=>ct.jsx(Cr,{...e,children:ct.jsx(Au.Group,{...e})}),WW=e=>{let{value:t,maxCount:n,onChange:r,...o}=e;W.useEffect(()=>{if(t){if(typeof t=="string")try{t=JSON.parse(t),r(t)}catch{}console.log("value",t),Array.isArray(t)&&s(t)}},[t]),n=n||9;const[a,s]=W.useState([]),l=u=>{let{fileList:f}=u;console.log("newFileList",f),f=f.map(v=>(v.status=="done"&&v.response&&(v.url=v.response),v)),r(f.map(v=>({uid:v.uid,name:v.name,status:v.status,url:v.url||v.response||"",error:v.error}))),s(f)};return ct.jsx(Cr,{...o,children:ct.jsx(Hu,{...o,listType:"text",maxCount:n,onChange:l,fileList:a,children:ct.jsxs("div",{className:" fmin-w-36 fgap-1 frounded fborder-gray-300 fborder hover:fborder-[#3e92f8] hover:ftext-[#3e92f8] fcursor-pointer fh-8 fflex fitems-center fbg-white fjustify-center ",children:[ct.jsx(uE,{}),"点击上传文件"]})})})},KW=e=>{let{maxCount:t,value:n,onChange:r,...o}=e;W.useEffect(()=>{if(n){if(console.log("value",n),typeof n=="string")try{n=JSON.parse(n),r(n)}catch{}let E=[];if(Array.isArray(n))for(let $=0;$<n.length;$++){let O=n[$];var w=b.current.find(R=>R.uid===O.uid);console.log("set file",O),console.log("set oldfile",w),!w||(w.version||0)<(O.version||0)?E.push(O):E.push(w)}s(E)}},[n]),t=t||9;const[a,s]=W.useState([]),[l,u]=W.useState(""),[f,v]=W.useState(0),[g,p]=W.useState(!1),b=W.useRef([]),C=w=>new Promise((E,$)=>{const O=new FileReader;O.readAsDataURL(w),O.onload=()=>E(O.result),O.onerror=R=>$(R)}),y=async(w,E)=>{!w.url&&!w.preview&&(w.preview=await C(w.originFileObj)),u(w.url||w.preview),v(E),p(!0)},h=async(w,E)=>{s(a.filter(($,O)=>O!==E))},S=ct.jsx(ct.Fragment,{children:ct.jsxs("div",{className:"fw-full fh-full fflex fflex-col fitems-center fjustify-center fborder fborder-dashed fcursor-pointer frounded",children:[ct.jsx(cE,{}),ct.jsx("div",{className:"fmt-2",children:"点击上传"})]})}),x=w=>{let{fileList:E}=w,$=[];console.log("fileMap.current",JSON.parse(JSON.stringify(b.current)));for(let N=0;N<E.length;N++){var O=E[N];O.version=new Date().getTime();var R=b.current.find(_=>_.uid===O.uid);console.log("oldfile",JSON.parse(JSON.stringify(R||{}))),R&&R.status!="uploading"?$.push(R):(O.status=="done"&&O.response&&(O.url=O.response),$.push(O))}console.log("newFileList",JSON.parse(JSON.stringify(E))),console.log("handleFileList",JSON.parse(JSON.stringify($))),b.current=$,s($),r($.map(N=>({uid:N.uid,name:N.name,status:N.status,url:N.url||N.response||"",error:N.error,version:N.version||0})))};return ct.jsxs(Cr,{...o,children:[ct.jsx("div",{className:"fflex fgap-3 fflex-wrap",children:ct.jsx(Hu,{...o,itemRender:(w,E,$)=>{console.log("file",E);let O=$.findIndex(R=>R.uid===E.uid);return ct.jsx(ct.Fragment,{children:ct.jsxs("div",{className:"fgroup fw-full fh-full fbg-transparent fborder frounded fflex fitems-center fjustify-center foverflow-hidden fcursor-pointer frelative"+(E.status=="error"?" fborder-red-500":""),children:[ct.jsxs("div",{className:" fhidden fabsolute fw-full fh-full fbg-gray-900 fbg-opacity-50 fitems-center fjustify-center fz-10 group-hover:fflex ftext-white ftext-lg fgap-2",children:[E.status=="done"&&ct.jsx(sE,{onClick:()=>{y(E,O)},className:"hover:ftext-gray-200"}),ct.jsx(lE,{onClick:()=>{h(E,O)},className:"hover:ftext-gray-200"})]}),E.status=="uploading"&&ct.jsx("div",{className:" fw-full fh-full fflex fitems-center fjustify-center fabsolute ftop-0 fleft-0 ",children:ct.jsx(tm,{})}),ct.jsx("img",{src:E.url||E.thumbUrl,alt:"Example Image",class:"fmax-w-full fmax-h-full fobject-contain "})]},"file-".concat(E.uid))})},listType:"picture-card",fileList:a,maxCount:t,onPreview:y,onChange:x,children:a.length>=t?null:S})}),l&&ct.jsx(uu.PreviewGroup,{preview:{visible:g,current:f,onVisibleChange:w=>p(w),onChange:w=>{v(w)}},children:a.map((w,E)=>ct.jsx(ct.Fragment,{children:ct.jsx(uu,{wrapperStyle:{display:"none"},src:w.url})}))})]})},UW=e=>{let{value:t,...n}=e;const[r,o]=W.useState(!1);return W.useEffect(()=>{let a=!1;typeof t=="boolean"?a=t:typeof t=="string"?a=t=="1"||t=="true":typeof t=="number"&&(a=t==1),o(a),n==null||n.onChange(a)},[t]),ct.jsx(Cr,{...n,children:ct.jsx(nm,{...n,value:r})})};var qW={exports:{}};(function(e,t){(function(n,r){e.exports=r(d1)})(ur,function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=r(n),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(s,l){return l==="W"?s+"周":s+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(s,l){var u=100*s+l;return u<600?"凌晨":u<900?"早上":u<1100?"上午":u<1300?"中午":u<1800?"下午":"晚上"}};return o.default.locale(a,null,!0),a})})(qW);hr.locale("zh-cn");const YW=e=>{let{datetype:t,value:n,onChange:r,...o}=e;t=t||"date";const[a,s]=W.useState(o==null?void 0:o.picker),[l,u]=W.useState(o==null?void 0:o.format),[f,v]=W.useState(null),[g,p]=W.useState(!1),[b,C]=W.useState(!1);W.useEffect(()=>{if(n){const h=hr(n);v(h)}},[n,l,a]);const y=(h,S)=>{r(S)};return W.useEffect(()=>{switch(s("date"),p(!1),t){case"date":s("date"),u("YYYY-MM-DD"),C(!1);break;case"datetime":p(!0),s("datetime"),u("YYYY-MM-DD HH:mm:ss"),C(!0);break;case"month":s("month"),C(!1);break;case"year":s("year"),C(!1);break}},[t]),ct.jsx(Cr,{...o,children:ct.jsx(el,{...o,picker:a,format:l,style:{width:"100%"},onChange:y,value:f,showTime:g,needConfirm:b})})},GW=e=>ct.jsx("div",{children:"sdfsdfsdf"}),XW={Input:dz,TextArea:vz,Password:gz,Search:mz,TreeSelect:NW,Select:ys,WithSingleSelect:MW,WithMultipleSelect:DW,SingleSelect:_W,MultipleSelect:PW,CodeMachine:fz,Checkbox:zW,CheckboxTree:jW,CheckboxGroup:HW,RadioGroup:BW,UploadFile:WW,UploadImage:KW,Switch:UW,DatePicker:YW,Custom:TW},ZW={FormRow:AW,FormGroupTitle:FW},QW={OptionSetter:GW};exports.Field=XW;exports.FormContainer=gm;exports.FormContainerWrapper=VW;exports.Layout=ZW;exports.Setter=QW;
|
package/dist/index.es.js
CHANGED
|
@@ -38286,7 +38286,7 @@ const p7 = n7((e) => {
|
|
|
38286
38286
|
var O = E[_];
|
|
38287
38287
|
O.version = (/* @__PURE__ */ new Date()).getTime();
|
|
38288
38288
|
var N = b.current.find((R) => R.uid === O.uid);
|
|
38289
|
-
console.log("oldfile", JSON.parse(JSON.stringify(N))), N && N.status != "uploading" ? $.push(N) : (O.status == "done" && O.response && (O.url = O.response), $.push(O));
|
|
38289
|
+
console.log("oldfile", JSON.parse(JSON.stringify(N || {}))), N && N.status != "uploading" ? $.push(N) : (O.status == "done" && O.response && (O.url = O.response), $.push(O));
|
|
38290
38290
|
}
|
|
38291
38291
|
console.log("newFileList", JSON.parse(JSON.stringify(E))), console.log("handleFileList", JSON.parse(JSON.stringify($))), b.current = $, s($), r($.map((_) => ({
|
|
38292
38292
|
uid: _.uid,
|
package/package.json
CHANGED
|
@@ -70,7 +70,7 @@ const UploadImage = ({ maxCount, value, onChange, ...props }) => {
|
|
|
70
70
|
</>
|
|
71
71
|
|
|
72
72
|
);
|
|
73
|
-
const handleChange =
|
|
73
|
+
const handleChange = ({ fileList: newFileList }) => {
|
|
74
74
|
|
|
75
75
|
let handleFileList = []
|
|
76
76
|
|
|
@@ -79,7 +79,7 @@ const UploadImage = ({ maxCount, value, onChange, ...props }) => {
|
|
|
79
79
|
var file = newFileList[i];
|
|
80
80
|
file.version = new Date().getTime()
|
|
81
81
|
var oldfile = fileMap.current.find((item) => item.uid === file.uid)
|
|
82
|
-
console.log("oldfile", JSON.parse(JSON.stringify(oldfile)))
|
|
82
|
+
console.log("oldfile", JSON.parse(JSON.stringify(oldfile||{})))
|
|
83
83
|
if (oldfile && oldfile.status != "uploading") {
|
|
84
84
|
handleFileList.push(oldfile)
|
|
85
85
|
}
|