lu-lowcode-package-form 0.7.3 → 0.7.4

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
@@ -282,4 +282,4 @@ __p += '`),Ut&&(_e+=`' +
282
282
  function print() { __p += __j.call(arguments, '') }
283
283
  `:`;
284
284
  `)+_e+`return __p
285
- }`;var Lt=rh(function(){return Yt(D,lt+"return "+_e).apply(n,G)});if(Lt.source=_e,cu(Lt))throw Lt;return Lt}function uO(i){return Jt(i).toLowerCase()}function dO(i){return Jt(i).toUpperCase()}function fO(i,a,d){if(i=Jt(i),i&&(d||a===n))return fv(i);if(!i||!(a=yr(a)))return i;var y=Kr(i),$=Kr(a),D=vv(y,$),G=gv(y,$)+1;return Go(y,D,G).join("")}function vO(i,a,d){if(i=Jt(i),i&&(d||a===n))return i.slice(0,pv(i)+1);if(!i||!(a=yr(a)))return i;var y=Kr(i),$=gv(y,Kr(a))+1;return Go(y,0,$).join("")}function gO(i,a,d){if(i=Jt(i),i&&(d||a===n))return i.replace(Xe,"");if(!i||!(a=yr(a)))return i;var y=Kr(i),$=vv(y,Kr(a));return Go(y,$).join("")}function hO(i,a){var d=F,y=z;if(Sn(a)){var $="separator"in a?a.separator:$;d="length"in a?Dt(a.length):d,y="omission"in a?yr(a.omission):y}i=Jt(i);var D=i.length;if(Bi(i)){var G=Kr(i);D=G.length}if(d>=D)return i;var Y=d-Hi(y);if(Y<1)return y;var te=G?Go(G,0,Y).join(""):i.slice(0,Y);if($===n)return te+y;if(G&&(Y+=te.length-Y),uu($)){if(i.slice(Y).search($)){var Se,Ce=te;for($.global||($=$c($.source,Jt(ht.exec($))+"g")),$.lastIndex=0;Se=$.exec(Ce);)var _e=Se.index;te=te.slice(0,_e===n?Y:_e)}}else if(i.indexOf(yr($),Y)!=Y){var Ye=te.lastIndexOf($);Ye>-1&&(te=te.slice(0,Ye))}return te+y}function pO(i){return i=Jt(i),i&&jt.test(i)?i.replace(St,KS):i}var mO=Xi(function(i,a,d){return i+(d?" ":"")+a.toUpperCase()}),vu=og("toUpperCase");function nh(i,a,d){return i=Jt(i),a=d?n:a,a===n?zS(i)?qS(i):PS(i):i.match(a)||[]}var rh=Vt(function(i,a){try{return mr(i,n,a)}catch(d){return cu(d)?d:new Nt(d)}}),bO=Co(function(i,a){return Pr(a,function(d){d=co(d),yo(i,d,lu(i[d],i))}),i});function yO(i){var a=i==null?0:i.length,d=gt();return i=a?pn(i,function(y){if(typeof y[1]!="function")throw new Tr(s);return[d(y[0]),y[1]]}):[],Vt(function(y){for(var $=-1;++$<a;){var D=i[$];if(mr(D[0],this,y))return mr(D[1],this,y)}})}function SO(i){return KC(Dr(i,h))}function gu(i){return function(){return i}}function CO(i,a){return i==null||i!==i?a:i}var wO=ag(),xO=ag(!0);function vr(i){return i}function hu(i){return Fv(typeof i=="function"?i:Dr(i,h))}function EO(i){return Vv(Dr(i,h))}function OO(i,a){return jv(i,Dr(a,h))}var $O=Vt(function(i,a){return function(d){return Ma(d,i,a)}}),_O=Vt(function(i,a){return function(d){return Ma(i,d,a)}});function pu(i,a,d){var y=jn(a),$=Xl(a,y);d==null&&!(Sn(a)&&($.length||!y.length))&&(d=a,a=i,i=this,$=Xl(a,jn(a)));var D=!(Sn(d)&&"chain"in d)||!!d.chain,G=xo(i);return Pr($,function(Y){var te=a[Y];i[Y]=te,G&&(i.prototype[Y]=function(){var Se=this.__chain__;if(D||Se){var Ce=i(this.__wrapped__),_e=Ce.__actions__=ur(this.__actions__);return _e.push({func:te,args:arguments,thisArg:i}),Ce.__chain__=Se,Ce}return te.apply(i,Bo([this.value()],arguments))})}),i}function RO(){return kn._===this&&(kn._=eC),this}function mu(){}function IO(i){return i=Dt(i),Vt(function(a){return zv(a,i)})}var NO=qc(pn),PO=qc(lv),TO=qc(yc);function oh(i){return tu(i)?Sc(co(i)):s1(i)}function MO(i){return function(a){return i==null?n:fi(i,a)}}var DO=sg(),AO=sg(!0);function bu(){return[]}function yu(){return!1}function FO(){return{}}function LO(){return""}function VO(){return!0}function jO(i,a){if(i=Dt(i),i<1||i>L)return[];var d=k,y=Xn(i,k);a=gt(a),i-=k;for(var $=xc(y,a);++d<i;)a(d);return $}function zO(i){return Pt(i)?pn(i,co):Sr(i)?[i]:ur(Eg(Jt(i)))}function BO(i){var a=++QS;return Jt(i)+a}var HO=ts(function(i,a){return i+a},0),kO=Xc("ceil"),WO=ts(function(i,a){return i/a},1),KO=Xc("floor");function UO(i){return i&&i.length?ql(i,vr,Dc):n}function GO(i,a){return i&&i.length?ql(i,gt(a,2),Dc):n}function qO(i){return uv(i,vr)}function XO(i,a){return uv(i,gt(a,2))}function YO(i){return i&&i.length?ql(i,vr,Vc):n}function ZO(i,a){return i&&i.length?ql(i,gt(a,2),Vc):n}var QO=ts(function(i,a){return i*a},1),JO=Xc("round"),e$=ts(function(i,a){return i-a},0);function t$(i){return i&&i.length?wc(i,vr):0}function n$(i,a){return i&&i.length?wc(i,gt(a,2)):0}return T.after=Ex,T.ary=Ag,T.assign=dE,T.assignIn=Xg,T.assignInWith=gs,T.assignWith=fE,T.at=vE,T.before=Fg,T.bind=lu,T.bindAll=bO,T.bindKey=Lg,T.castArray=Fx,T.chain=Tg,T.chunk=K1,T.compact=U1,T.concat=G1,T.cond=yO,T.conforms=SO,T.constant=gu,T.countBy=tx,T.create=gE,T.curry=Vg,T.curryRight=jg,T.debounce=zg,T.defaults=hE,T.defaultsDeep=pE,T.defer=Ox,T.delay=$x,T.difference=q1,T.differenceBy=X1,T.differenceWith=Y1,T.drop=Z1,T.dropRight=Q1,T.dropRightWhile=J1,T.dropWhile=ew,T.fill=tw,T.filter=rx,T.flatMap=ax,T.flatMapDeep=lx,T.flatMapDepth=sx,T.flatten=Rg,T.flattenDeep=nw,T.flattenDepth=rw,T.flip=_x,T.flow=wO,T.flowRight=xO,T.fromPairs=ow,T.functions=xE,T.functionsIn=EE,T.groupBy=cx,T.initial=aw,T.intersection=lw,T.intersectionBy=sw,T.intersectionWith=cw,T.invert=$E,T.invertBy=_E,T.invokeMap=dx,T.iteratee=hu,T.keyBy=fx,T.keys=jn,T.keysIn=fr,T.map=ss,T.mapKeys=IE,T.mapValues=NE,T.matches=EO,T.matchesProperty=OO,T.memoize=us,T.merge=PE,T.mergeWith=Yg,T.method=$O,T.methodOf=_O,T.mixin=pu,T.negate=ds,T.nthArg=IO,T.omit=TE,T.omitBy=ME,T.once=Rx,T.orderBy=vx,T.over=NO,T.overArgs=Ix,T.overEvery=PO,T.overSome=TO,T.partial=su,T.partialRight=Bg,T.partition=gx,T.pick=DE,T.pickBy=Zg,T.property=oh,T.propertyOf=MO,T.pull=vw,T.pullAll=Ng,T.pullAllBy=gw,T.pullAllWith=hw,T.pullAt=pw,T.range=DO,T.rangeRight=AO,T.rearg=Nx,T.reject=mx,T.remove=mw,T.rest=Px,T.reverse=iu,T.sampleSize=yx,T.set=FE,T.setWith=LE,T.shuffle=Sx,T.slice=bw,T.sortBy=xx,T.sortedUniq=Ow,T.sortedUniqBy=$w,T.split=aO,T.spread=Tx,T.tail=_w,T.take=Rw,T.takeRight=Iw,T.takeRightWhile=Nw,T.takeWhile=Pw,T.tap=Uw,T.throttle=Mx,T.thru=ls,T.toArray=Ug,T.toPairs=Qg,T.toPairsIn=Jg,T.toPath=zO,T.toPlainObject=qg,T.transform=VE,T.unary=Dx,T.union=Tw,T.unionBy=Mw,T.unionWith=Dw,T.uniq=Aw,T.uniqBy=Fw,T.uniqWith=Lw,T.unset=jE,T.unzip=au,T.unzipWith=Pg,T.update=zE,T.updateWith=BE,T.values=Qi,T.valuesIn=HE,T.without=Vw,T.words=nh,T.wrap=Ax,T.xor=jw,T.xorBy=zw,T.xorWith=Bw,T.zip=Hw,T.zipObject=kw,T.zipObjectDeep=Ww,T.zipWith=Kw,T.entries=Qg,T.entriesIn=Jg,T.extend=Xg,T.extendWith=gs,pu(T,T),T.add=HO,T.attempt=rh,T.camelCase=UE,T.capitalize=eh,T.ceil=kO,T.clamp=kE,T.clone=Lx,T.cloneDeep=jx,T.cloneDeepWith=zx,T.cloneWith=Vx,T.conformsTo=Bx,T.deburr=th,T.defaultTo=CO,T.divide=WO,T.endsWith=GE,T.eq=Gr,T.escape=qE,T.escapeRegExp=XE,T.every=nx,T.find=ox,T.findIndex=$g,T.findKey=mE,T.findLast=ix,T.findLastIndex=_g,T.findLastKey=bE,T.floor=KO,T.forEach=Mg,T.forEachRight=Dg,T.forIn=yE,T.forInRight=SE,T.forOwn=CE,T.forOwnRight=wE,T.get=du,T.gt=Hx,T.gte=kx,T.has=OE,T.hasIn=fu,T.head=Ig,T.identity=vr,T.includes=ux,T.indexOf=iw,T.inRange=WE,T.invoke=RE,T.isArguments=hi,T.isArray=Pt,T.isArrayBuffer=Wx,T.isArrayLike=dr,T.isArrayLikeObject=$n,T.isBoolean=Kx,T.isBuffer=qo,T.isDate=Ux,T.isElement=Gx,T.isEmpty=qx,T.isEqual=Xx,T.isEqualWith=Yx,T.isError=cu,T.isFinite=Zx,T.isFunction=xo,T.isInteger=Hg,T.isLength=fs,T.isMap=kg,T.isMatch=Qx,T.isMatchWith=Jx,T.isNaN=eE,T.isNative=tE,T.isNil=rE,T.isNull=nE,T.isNumber=Wg,T.isObject=Sn,T.isObjectLike=wn,T.isPlainObject=ja,T.isRegExp=uu,T.isSafeInteger=oE,T.isSet=Kg,T.isString=vs,T.isSymbol=Sr,T.isTypedArray=Zi,T.isUndefined=iE,T.isWeakMap=aE,T.isWeakSet=lE,T.join=uw,T.kebabCase=YE,T.last=Fr,T.lastIndexOf=dw,T.lowerCase=ZE,T.lowerFirst=QE,T.lt=sE,T.lte=cE,T.max=UO,T.maxBy=GO,T.mean=qO,T.meanBy=XO,T.min=YO,T.minBy=ZO,T.stubArray=bu,T.stubFalse=yu,T.stubObject=FO,T.stubString=LO,T.stubTrue=VO,T.multiply=QO,T.nth=fw,T.noConflict=RO,T.noop=mu,T.now=cs,T.pad=JE,T.padEnd=eO,T.padStart=tO,T.parseInt=nO,T.random=KE,T.reduce=hx,T.reduceRight=px,T.repeat=rO,T.replace=oO,T.result=AE,T.round=JO,T.runInContext=Q,T.sample=bx,T.size=Cx,T.snakeCase=iO,T.some=wx,T.sortedIndex=yw,T.sortedIndexBy=Sw,T.sortedIndexOf=Cw,T.sortedLastIndex=ww,T.sortedLastIndexBy=xw,T.sortedLastIndexOf=Ew,T.startCase=lO,T.startsWith=sO,T.subtract=e$,T.sum=t$,T.sumBy=n$,T.template=cO,T.times=jO,T.toFinite=Eo,T.toInteger=Dt,T.toLength=Gg,T.toLower=uO,T.toNumber=Lr,T.toSafeInteger=uE,T.toString=Jt,T.toUpper=dO,T.trim=fO,T.trimEnd=vO,T.trimStart=gO,T.truncate=hO,T.unescape=pO,T.uniqueId=BO,T.upperCase=mO,T.upperFirst=vu,T.each=Mg,T.eachRight=Dg,T.first=Ig,pu(T,function(){var i={};return lo(T,function(a,d){nn.call(T.prototype,d)||(i[d]=a)}),i}(),{chain:!1}),T.VERSION=r,Pr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){T[i].placeholder=T}),Pr(["drop","take"],function(i,a){Bt.prototype[i]=function(d){d=d===n?1:An(Dt(d),0);var y=this.__filtered__&&!a?new Bt(this):this.clone();return y.__filtered__?y.__takeCount__=Xn(d,y.__takeCount__):y.__views__.push({size:Xn(d,k),type:i+(y.__dir__<0?"Right":"")}),y},Bt.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),Pr(["filter","map","takeWhile"],function(i,a){var d=a+1,y=d==A||d==j;Bt.prototype[i]=function($){var D=this.clone();return D.__iteratees__.push({iteratee:gt($,3),type:d}),D.__filtered__=D.__filtered__||y,D}}),Pr(["head","last"],function(i,a){var d="take"+(a?"Right":"");Bt.prototype[i]=function(){return this[d](1).value()[0]}}),Pr(["initial","tail"],function(i,a){var d="drop"+(a?"":"Right");Bt.prototype[i]=function(){return this.__filtered__?new Bt(this):this[d](1)}}),Bt.prototype.compact=function(){return this.filter(vr)},Bt.prototype.find=function(i){return this.filter(i).head()},Bt.prototype.findLast=function(i){return this.reverse().find(i)},Bt.prototype.invokeMap=Vt(function(i,a){return typeof i=="function"?new Bt(this):this.map(function(d){return Ma(d,i,a)})}),Bt.prototype.reject=function(i){return this.filter(ds(gt(i)))},Bt.prototype.slice=function(i,a){i=Dt(i);var d=this;return d.__filtered__&&(i>0||a<0)?new Bt(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),a!==n&&(a=Dt(a),d=a<0?d.dropRight(-a):d.take(a-i)),d)},Bt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Bt.prototype.toArray=function(){return this.take(k)},lo(Bt.prototype,function(i,a){var d=/^(?:filter|find|map|reject)|While$/.test(a),y=/^(?:head|last)$/.test(a),$=T[y?"take"+(a=="last"?"Right":""):a],D=y||/^find/.test(a);$&&(T.prototype[a]=function(){var G=this.__wrapped__,Y=y?[1]:arguments,te=G instanceof Bt,Se=Y[0],Ce=te||Pt(G),_e=function(zt){var Ut=$.apply(T,Bo([zt],Y));return y&&Ye?Ut[0]:Ut};Ce&&d&&typeof Se=="function"&&Se.length!=1&&(te=Ce=!1);var Ye=this.__chain__,lt=!!this.__actions__.length,mt=D&&!Ye,Lt=te&&!lt;if(!D&&Ce){G=Lt?G:new Bt(this);var bt=i.apply(G,Y);return bt.__actions__.push({func:ls,args:[_e],thisArg:n}),new Mr(bt,Ye)}return mt&&Lt?i.apply(this,Y):(bt=this.thru(_e),mt?y?bt.value()[0]:bt.value():bt)})}),Pr(["pop","push","shift","sort","splice","unshift"],function(i){var a=Ml[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",y=/^(?:pop|shift)$/.test(i);T.prototype[i]=function(){var $=arguments;if(y&&!this.__chain__){var D=this.value();return a.apply(Pt(D)?D:[],$)}return this[d](function(G){return a.apply(Pt(G)?G:[],$)})}}),lo(Bt.prototype,function(i,a){var d=T[a];if(d){var y=d.name+"";nn.call(Ui,y)||(Ui[y]=[]),Ui[y].push({name:a,func:d})}}),Ui[es(n,w).name]=[{name:"wrapper",func:n}],Bt.prototype.clone=pC,Bt.prototype.reverse=mC,Bt.prototype.value=bC,T.prototype.at=Gw,T.prototype.chain=qw,T.prototype.commit=Xw,T.prototype.next=Yw,T.prototype.plant=Qw,T.prototype.reverse=Jw,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=ex,T.prototype.first=T.prototype.head,$a&&(T.prototype[$a]=Zw),T},ki=XS();li?((li.exports=ki)._=ki,hc._=ki):kn._=ki}).call(za)})(Ys,Ys.exports);Ys.exports;const PL=e=>{let{request:t,title:n,disabledValue:r,callError:o,...l}=e;const[s,c]=B.useState(!1),[u,f]=B.useState([]);B.useEffect(()=>{g()},[]);const g=async()=>{if(t&&typeof t=="function"){var h;const m=await t();if(m.code>0){o&&typeof o=="function"&&o(m.message);return}let b=mS(((h=m.data)===null||h===void 0?void 0:h.list)||m.data||[],"id",n||"title",l.parentId||"parentId","children",0,r);b=[{value:0,title:"根节点",children:b}],l.treeData=b,f(b)}l.treeData&&f(l.treeData),c(!0)};return Gt.jsx(oo,{...l,children:s&&Gt.jsx(oi,{...l,treeData:u,treeDefaultExpandAll:!0})})},TL=e=>{let{request:t,option_label:n="label",option_value:r="id",disabledValue:o,callError:l,options:s,...c}=e;const[u,f]=B.useState([]);B.useEffect(()=>{g()},[]);const g=async()=>{if(t&&typeof t=="function"){var h;const m=await t();if(m.code>0){l&&typeof l=="function"&&l(m.message);return}let b=((h=m.data)===null||h===void 0?void 0:h.list)||m.data;Array.isArray(b)&&b.length>0&&f(b.map(S=>({label:S[n],value:S[r]})))}s&&s.length>0&&f(s)};return Gt.jsx(oo,{...c,children:Gt.jsx(Fi,{...c,options:u})})},ML=B.forwardRef((e,t)=>{let{value:n,onChange:r,...o}=e;const l=B.useRef(0),s=()=>{l.current++,r(l.current)};return Gt.jsxs(oo,{...o,children:[Gt.jsxs("div",{ref:t,children:["form-set-value:",n]}),Gt.jsx(Cl,{onClick:s,children:"test"})]})});function DL(e,t){let n;return function(){for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];clearTimeout(n),n=setTimeout(()=>e.apply(this,o),t)}}function AL(e,t){console.log("groupArray array",e.length);const n=[];let r=[];const o=(l,s)=>{const c=l-s.length;s.push(...new Array(c).fill(B.createElement("div")))};for(const l of e)l!=null&&l.props,r.push(l),r.length===t?(n.push(r),r=[]):r.length>t&&(o(t,r),n.push(r),r=[l]);return r.length>0&&(o(t,r),n.push(r)),n}const bS=B.forwardRef((e,t)=>{let{cols:n,children:r}=e;n=n||1;const[o]=to.useForm(),[l,s]=B.useState(null),c=B.useRef(null);B.useImperativeHandle(t,()=>({formRef:o,initFieldsShow:f}),[]),B.useEffect(()=>{},[o]),B.useEffect(()=>{u(),s(m())},[]);const u=()=>{c.current=new Map;let b=B.Children.toArray(r);for(let S=0;S<b.length;S++){const{componentId:C,__id:p,_componentName:w,...E}=b[S].props,x=C||p;c.current.set(x,{children:b.filter(O=>{var R;return O.props.__withId==x||((R=O.props.__withIds)===null||R===void 0?void 0:R.includes(x))}),show:!0})}f()},f=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const S=o.getFieldsValue();c.current.keys().forEach(function(C){g(C,S)}),b&&s(m())},g=(b,S)=>{let C=!1;return c.current.has(b)&&c.current.get(b).children.forEach(w=>{if(w.props.__withFunc&&typeof w.props.__withFunc=="function"){let E=w.props.__withFunc(S);const x=w.props.componentId||w.props.__id;if(c.current.has(x)){let O=c.current.get(x);O.show!=E&&(O.show=E,c.current.set(x,O),C=!0)}}}),C},h=DL((b,S)=>{const C=o.getFieldsValue();let p=!1;for(let w=0;w<b.length;w++){const E=b[w];E.name&&E.name.length>0&&(p=g(E.name[0],C))}p&&s(m())},100),m=()=>{let b=B.Children.toArray(r);const S=AL(b.filter(p=>{const w=p.props.componentId||p.props.__id;return c.current.has(w)&&c.current.get(w).show}),n);console.log("newArray",S);const C=S.map(p=>{var w;return Gt.jsx(Hf,{gutter:[24,24],children:p.map(E=>{const{componentId:x,__id:O,_componentName:R,onChange:_,...I}=E.props,N=x||O,P=R;return["FieldLayout","FieldSubTable"].includes(P)?Gt.jsx(hl,{span:24,style:{marginBottom:0},children:E},N):Gt.jsx(hl,{span:24/p.length,children:N&&Gt.jsx(to.Item,{style:{marginBottom:0},label:"",name:N,rules:[{required:I.isRequired,message:"".concat(I.title,"不能为空!")}],children:E})},N)})},p==null||(w=p[0])===null||w===void 0?void 0:w.key)});return console.log("result",S),C};return Gt.jsx(to,{form:o,className:"form-container p-6 w-full h-full box-border overflow-auto",onFieldsChange:h,children:l})});function FL(e){return B.forwardRef((t,n)=>Gt.jsx(e,{...t,ref:n,forwardedRef:n}))}const LL=e=>{const{forwardedRef:t,...n}=e;return Gt.jsx(bS,{...n,ref:t})},VL=FL(LL),jL=e=>{let{request:t,value:n,onChange:r,callError:o,disabledValue:l,addRoot:s=!0,title:c,...u}=e;const[f,g]=B.useState(!1),[h,m]=B.useState([]);B.useEffect(()=>{b()},[]),B.useEffect(()=>{console.log("CheckboxTree value ",n),typeof n=="string"&&(n=JSON.parse(n)),Array.isArray(n)&&w(n)},[n]);const b=async()=>{if(t&&typeof t=="function"){var P;const F=await t();if(F.code>0){o&&typeof o=="function"&&o(F.message);return}let z=mS(((P=F.data)===null||P===void 0?void 0:P.list)||F.data||[],"id",c||"title",(u==null?void 0:u.parentId)||"parentId","children",0,l);s&&(z=[{value:0,title:"根节点",children:z}]),u.treeData=z,console.log("treeData",z),m(z)}u.treeData&&m(u.treeData),g(!0)},[S,C]=B.useState([]),[p,w]=B.useState([]),[E,x]=B.useState([]),[O,R]=B.useState(!0),_=P=>{console.log("onExpand",P),C(P),R(!1)},I=P=>{console.log("onCheck",P),w(P),r(P)},N=(P,F)=>{console.log("onSelect",F),x(P)};return Gt.jsx(oo,{...u,children:Gt.jsx(Xf,{checkable:!0,onExpand:_,onCheck:I,onSelect:N,expandedKeys:S,autoExpandParent:O,checkedKeys:p,selectedKeys:E,treeData:h})})},zL=e=>Gt.jsx(oo,{...e,children:Gt.jsx(fc,{...e})}),BL=e=>Gt.jsx(oo,{...e,children:Gt.jsx(dc.Group,{...e})}),HL={Input:OL,TextArea:_L,Password:RL,Search:IL,TreeSelect:PL,Select:TL,CodeMachine:$L,Checkbox:zL,CheckboxTree:jL,RadioGrop:BL,Custom:ML};exports.Field=HL;exports.FormContainer=bS;exports.FormContainerWrapper=VL;
285
+ }`;var Lt=rh(function(){return Yt(D,lt+"return "+_e).apply(n,G)});if(Lt.source=_e,cu(Lt))throw Lt;return Lt}function uO(i){return Jt(i).toLowerCase()}function dO(i){return Jt(i).toUpperCase()}function fO(i,a,d){if(i=Jt(i),i&&(d||a===n))return fv(i);if(!i||!(a=yr(a)))return i;var y=Kr(i),$=Kr(a),D=vv(y,$),G=gv(y,$)+1;return Go(y,D,G).join("")}function vO(i,a,d){if(i=Jt(i),i&&(d||a===n))return i.slice(0,pv(i)+1);if(!i||!(a=yr(a)))return i;var y=Kr(i),$=gv(y,Kr(a))+1;return Go(y,0,$).join("")}function gO(i,a,d){if(i=Jt(i),i&&(d||a===n))return i.replace(Xe,"");if(!i||!(a=yr(a)))return i;var y=Kr(i),$=vv(y,Kr(a));return Go(y,$).join("")}function hO(i,a){var d=F,y=z;if(Sn(a)){var $="separator"in a?a.separator:$;d="length"in a?Dt(a.length):d,y="omission"in a?yr(a.omission):y}i=Jt(i);var D=i.length;if(Bi(i)){var G=Kr(i);D=G.length}if(d>=D)return i;var Y=d-Hi(y);if(Y<1)return y;var te=G?Go(G,0,Y).join(""):i.slice(0,Y);if($===n)return te+y;if(G&&(Y+=te.length-Y),uu($)){if(i.slice(Y).search($)){var Se,Ce=te;for($.global||($=$c($.source,Jt(ht.exec($))+"g")),$.lastIndex=0;Se=$.exec(Ce);)var _e=Se.index;te=te.slice(0,_e===n?Y:_e)}}else if(i.indexOf(yr($),Y)!=Y){var Ye=te.lastIndexOf($);Ye>-1&&(te=te.slice(0,Ye))}return te+y}function pO(i){return i=Jt(i),i&&jt.test(i)?i.replace(St,KS):i}var mO=Xi(function(i,a,d){return i+(d?" ":"")+a.toUpperCase()}),vu=og("toUpperCase");function nh(i,a,d){return i=Jt(i),a=d?n:a,a===n?zS(i)?qS(i):PS(i):i.match(a)||[]}var rh=Vt(function(i,a){try{return mr(i,n,a)}catch(d){return cu(d)?d:new Nt(d)}}),bO=Co(function(i,a){return Pr(a,function(d){d=co(d),yo(i,d,lu(i[d],i))}),i});function yO(i){var a=i==null?0:i.length,d=gt();return i=a?pn(i,function(y){if(typeof y[1]!="function")throw new Tr(s);return[d(y[0]),y[1]]}):[],Vt(function(y){for(var $=-1;++$<a;){var D=i[$];if(mr(D[0],this,y))return mr(D[1],this,y)}})}function SO(i){return KC(Dr(i,h))}function gu(i){return function(){return i}}function CO(i,a){return i==null||i!==i?a:i}var wO=ag(),xO=ag(!0);function vr(i){return i}function hu(i){return Fv(typeof i=="function"?i:Dr(i,h))}function EO(i){return Vv(Dr(i,h))}function OO(i,a){return jv(i,Dr(a,h))}var $O=Vt(function(i,a){return function(d){return Ma(d,i,a)}}),_O=Vt(function(i,a){return function(d){return Ma(i,d,a)}});function pu(i,a,d){var y=jn(a),$=Xl(a,y);d==null&&!(Sn(a)&&($.length||!y.length))&&(d=a,a=i,i=this,$=Xl(a,jn(a)));var D=!(Sn(d)&&"chain"in d)||!!d.chain,G=xo(i);return Pr($,function(Y){var te=a[Y];i[Y]=te,G&&(i.prototype[Y]=function(){var Se=this.__chain__;if(D||Se){var Ce=i(this.__wrapped__),_e=Ce.__actions__=ur(this.__actions__);return _e.push({func:te,args:arguments,thisArg:i}),Ce.__chain__=Se,Ce}return te.apply(i,Bo([this.value()],arguments))})}),i}function RO(){return kn._===this&&(kn._=eC),this}function mu(){}function IO(i){return i=Dt(i),Vt(function(a){return zv(a,i)})}var NO=qc(pn),PO=qc(lv),TO=qc(yc);function oh(i){return tu(i)?Sc(co(i)):s1(i)}function MO(i){return function(a){return i==null?n:fi(i,a)}}var DO=sg(),AO=sg(!0);function bu(){return[]}function yu(){return!1}function FO(){return{}}function LO(){return""}function VO(){return!0}function jO(i,a){if(i=Dt(i),i<1||i>L)return[];var d=k,y=Xn(i,k);a=gt(a),i-=k;for(var $=xc(y,a);++d<i;)a(d);return $}function zO(i){return Pt(i)?pn(i,co):Sr(i)?[i]:ur(Eg(Jt(i)))}function BO(i){var a=++QS;return Jt(i)+a}var HO=ts(function(i,a){return i+a},0),kO=Xc("ceil"),WO=ts(function(i,a){return i/a},1),KO=Xc("floor");function UO(i){return i&&i.length?ql(i,vr,Dc):n}function GO(i,a){return i&&i.length?ql(i,gt(a,2),Dc):n}function qO(i){return uv(i,vr)}function XO(i,a){return uv(i,gt(a,2))}function YO(i){return i&&i.length?ql(i,vr,Vc):n}function ZO(i,a){return i&&i.length?ql(i,gt(a,2),Vc):n}var QO=ts(function(i,a){return i*a},1),JO=Xc("round"),e$=ts(function(i,a){return i-a},0);function t$(i){return i&&i.length?wc(i,vr):0}function n$(i,a){return i&&i.length?wc(i,gt(a,2)):0}return T.after=Ex,T.ary=Ag,T.assign=dE,T.assignIn=Xg,T.assignInWith=gs,T.assignWith=fE,T.at=vE,T.before=Fg,T.bind=lu,T.bindAll=bO,T.bindKey=Lg,T.castArray=Fx,T.chain=Tg,T.chunk=K1,T.compact=U1,T.concat=G1,T.cond=yO,T.conforms=SO,T.constant=gu,T.countBy=tx,T.create=gE,T.curry=Vg,T.curryRight=jg,T.debounce=zg,T.defaults=hE,T.defaultsDeep=pE,T.defer=Ox,T.delay=$x,T.difference=q1,T.differenceBy=X1,T.differenceWith=Y1,T.drop=Z1,T.dropRight=Q1,T.dropRightWhile=J1,T.dropWhile=ew,T.fill=tw,T.filter=rx,T.flatMap=ax,T.flatMapDeep=lx,T.flatMapDepth=sx,T.flatten=Rg,T.flattenDeep=nw,T.flattenDepth=rw,T.flip=_x,T.flow=wO,T.flowRight=xO,T.fromPairs=ow,T.functions=xE,T.functionsIn=EE,T.groupBy=cx,T.initial=aw,T.intersection=lw,T.intersectionBy=sw,T.intersectionWith=cw,T.invert=$E,T.invertBy=_E,T.invokeMap=dx,T.iteratee=hu,T.keyBy=fx,T.keys=jn,T.keysIn=fr,T.map=ss,T.mapKeys=IE,T.mapValues=NE,T.matches=EO,T.matchesProperty=OO,T.memoize=us,T.merge=PE,T.mergeWith=Yg,T.method=$O,T.methodOf=_O,T.mixin=pu,T.negate=ds,T.nthArg=IO,T.omit=TE,T.omitBy=ME,T.once=Rx,T.orderBy=vx,T.over=NO,T.overArgs=Ix,T.overEvery=PO,T.overSome=TO,T.partial=su,T.partialRight=Bg,T.partition=gx,T.pick=DE,T.pickBy=Zg,T.property=oh,T.propertyOf=MO,T.pull=vw,T.pullAll=Ng,T.pullAllBy=gw,T.pullAllWith=hw,T.pullAt=pw,T.range=DO,T.rangeRight=AO,T.rearg=Nx,T.reject=mx,T.remove=mw,T.rest=Px,T.reverse=iu,T.sampleSize=yx,T.set=FE,T.setWith=LE,T.shuffle=Sx,T.slice=bw,T.sortBy=xx,T.sortedUniq=Ow,T.sortedUniqBy=$w,T.split=aO,T.spread=Tx,T.tail=_w,T.take=Rw,T.takeRight=Iw,T.takeRightWhile=Nw,T.takeWhile=Pw,T.tap=Uw,T.throttle=Mx,T.thru=ls,T.toArray=Ug,T.toPairs=Qg,T.toPairsIn=Jg,T.toPath=zO,T.toPlainObject=qg,T.transform=VE,T.unary=Dx,T.union=Tw,T.unionBy=Mw,T.unionWith=Dw,T.uniq=Aw,T.uniqBy=Fw,T.uniqWith=Lw,T.unset=jE,T.unzip=au,T.unzipWith=Pg,T.update=zE,T.updateWith=BE,T.values=Qi,T.valuesIn=HE,T.without=Vw,T.words=nh,T.wrap=Ax,T.xor=jw,T.xorBy=zw,T.xorWith=Bw,T.zip=Hw,T.zipObject=kw,T.zipObjectDeep=Ww,T.zipWith=Kw,T.entries=Qg,T.entriesIn=Jg,T.extend=Xg,T.extendWith=gs,pu(T,T),T.add=HO,T.attempt=rh,T.camelCase=UE,T.capitalize=eh,T.ceil=kO,T.clamp=kE,T.clone=Lx,T.cloneDeep=jx,T.cloneDeepWith=zx,T.cloneWith=Vx,T.conformsTo=Bx,T.deburr=th,T.defaultTo=CO,T.divide=WO,T.endsWith=GE,T.eq=Gr,T.escape=qE,T.escapeRegExp=XE,T.every=nx,T.find=ox,T.findIndex=$g,T.findKey=mE,T.findLast=ix,T.findLastIndex=_g,T.findLastKey=bE,T.floor=KO,T.forEach=Mg,T.forEachRight=Dg,T.forIn=yE,T.forInRight=SE,T.forOwn=CE,T.forOwnRight=wE,T.get=du,T.gt=Hx,T.gte=kx,T.has=OE,T.hasIn=fu,T.head=Ig,T.identity=vr,T.includes=ux,T.indexOf=iw,T.inRange=WE,T.invoke=RE,T.isArguments=hi,T.isArray=Pt,T.isArrayBuffer=Wx,T.isArrayLike=dr,T.isArrayLikeObject=$n,T.isBoolean=Kx,T.isBuffer=qo,T.isDate=Ux,T.isElement=Gx,T.isEmpty=qx,T.isEqual=Xx,T.isEqualWith=Yx,T.isError=cu,T.isFinite=Zx,T.isFunction=xo,T.isInteger=Hg,T.isLength=fs,T.isMap=kg,T.isMatch=Qx,T.isMatchWith=Jx,T.isNaN=eE,T.isNative=tE,T.isNil=rE,T.isNull=nE,T.isNumber=Wg,T.isObject=Sn,T.isObjectLike=wn,T.isPlainObject=ja,T.isRegExp=uu,T.isSafeInteger=oE,T.isSet=Kg,T.isString=vs,T.isSymbol=Sr,T.isTypedArray=Zi,T.isUndefined=iE,T.isWeakMap=aE,T.isWeakSet=lE,T.join=uw,T.kebabCase=YE,T.last=Fr,T.lastIndexOf=dw,T.lowerCase=ZE,T.lowerFirst=QE,T.lt=sE,T.lte=cE,T.max=UO,T.maxBy=GO,T.mean=qO,T.meanBy=XO,T.min=YO,T.minBy=ZO,T.stubArray=bu,T.stubFalse=yu,T.stubObject=FO,T.stubString=LO,T.stubTrue=VO,T.multiply=QO,T.nth=fw,T.noConflict=RO,T.noop=mu,T.now=cs,T.pad=JE,T.padEnd=eO,T.padStart=tO,T.parseInt=nO,T.random=KE,T.reduce=hx,T.reduceRight=px,T.repeat=rO,T.replace=oO,T.result=AE,T.round=JO,T.runInContext=Q,T.sample=bx,T.size=Cx,T.snakeCase=iO,T.some=wx,T.sortedIndex=yw,T.sortedIndexBy=Sw,T.sortedIndexOf=Cw,T.sortedLastIndex=ww,T.sortedLastIndexBy=xw,T.sortedLastIndexOf=Ew,T.startCase=lO,T.startsWith=sO,T.subtract=e$,T.sum=t$,T.sumBy=n$,T.template=cO,T.times=jO,T.toFinite=Eo,T.toInteger=Dt,T.toLength=Gg,T.toLower=uO,T.toNumber=Lr,T.toSafeInteger=uE,T.toString=Jt,T.toUpper=dO,T.trim=fO,T.trimEnd=vO,T.trimStart=gO,T.truncate=hO,T.unescape=pO,T.uniqueId=BO,T.upperCase=mO,T.upperFirst=vu,T.each=Mg,T.eachRight=Dg,T.first=Ig,pu(T,function(){var i={};return lo(T,function(a,d){nn.call(T.prototype,d)||(i[d]=a)}),i}(),{chain:!1}),T.VERSION=r,Pr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){T[i].placeholder=T}),Pr(["drop","take"],function(i,a){Bt.prototype[i]=function(d){d=d===n?1:An(Dt(d),0);var y=this.__filtered__&&!a?new Bt(this):this.clone();return y.__filtered__?y.__takeCount__=Xn(d,y.__takeCount__):y.__views__.push({size:Xn(d,k),type:i+(y.__dir__<0?"Right":"")}),y},Bt.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),Pr(["filter","map","takeWhile"],function(i,a){var d=a+1,y=d==A||d==j;Bt.prototype[i]=function($){var D=this.clone();return D.__iteratees__.push({iteratee:gt($,3),type:d}),D.__filtered__=D.__filtered__||y,D}}),Pr(["head","last"],function(i,a){var d="take"+(a?"Right":"");Bt.prototype[i]=function(){return this[d](1).value()[0]}}),Pr(["initial","tail"],function(i,a){var d="drop"+(a?"":"Right");Bt.prototype[i]=function(){return this.__filtered__?new Bt(this):this[d](1)}}),Bt.prototype.compact=function(){return this.filter(vr)},Bt.prototype.find=function(i){return this.filter(i).head()},Bt.prototype.findLast=function(i){return this.reverse().find(i)},Bt.prototype.invokeMap=Vt(function(i,a){return typeof i=="function"?new Bt(this):this.map(function(d){return Ma(d,i,a)})}),Bt.prototype.reject=function(i){return this.filter(ds(gt(i)))},Bt.prototype.slice=function(i,a){i=Dt(i);var d=this;return d.__filtered__&&(i>0||a<0)?new Bt(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),a!==n&&(a=Dt(a),d=a<0?d.dropRight(-a):d.take(a-i)),d)},Bt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Bt.prototype.toArray=function(){return this.take(k)},lo(Bt.prototype,function(i,a){var d=/^(?:filter|find|map|reject)|While$/.test(a),y=/^(?:head|last)$/.test(a),$=T[y?"take"+(a=="last"?"Right":""):a],D=y||/^find/.test(a);$&&(T.prototype[a]=function(){var G=this.__wrapped__,Y=y?[1]:arguments,te=G instanceof Bt,Se=Y[0],Ce=te||Pt(G),_e=function(zt){var Ut=$.apply(T,Bo([zt],Y));return y&&Ye?Ut[0]:Ut};Ce&&d&&typeof Se=="function"&&Se.length!=1&&(te=Ce=!1);var Ye=this.__chain__,lt=!!this.__actions__.length,mt=D&&!Ye,Lt=te&&!lt;if(!D&&Ce){G=Lt?G:new Bt(this);var bt=i.apply(G,Y);return bt.__actions__.push({func:ls,args:[_e],thisArg:n}),new Mr(bt,Ye)}return mt&&Lt?i.apply(this,Y):(bt=this.thru(_e),mt?y?bt.value()[0]:bt.value():bt)})}),Pr(["pop","push","shift","sort","splice","unshift"],function(i){var a=Ml[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",y=/^(?:pop|shift)$/.test(i);T.prototype[i]=function(){var $=arguments;if(y&&!this.__chain__){var D=this.value();return a.apply(Pt(D)?D:[],$)}return this[d](function(G){return a.apply(Pt(G)?G:[],$)})}}),lo(Bt.prototype,function(i,a){var d=T[a];if(d){var y=d.name+"";nn.call(Ui,y)||(Ui[y]=[]),Ui[y].push({name:a,func:d})}}),Ui[es(n,w).name]=[{name:"wrapper",func:n}],Bt.prototype.clone=pC,Bt.prototype.reverse=mC,Bt.prototype.value=bC,T.prototype.at=Gw,T.prototype.chain=qw,T.prototype.commit=Xw,T.prototype.next=Yw,T.prototype.plant=Qw,T.prototype.reverse=Jw,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=ex,T.prototype.first=T.prototype.head,$a&&(T.prototype[$a]=Zw),T},ki=XS();li?((li.exports=ki)._=ki,hc._=ki):kn._=ki}).call(za)})(Ys,Ys.exports);Ys.exports;const PL=e=>{let{request:t,title:n,disabledValue:r,callError:o,...l}=e;const[s,c]=B.useState(!1),[u,f]=B.useState([]);B.useEffect(()=>{g()},[]);const g=async()=>{if(t&&typeof t=="function"){var h;const m=await t();if(m.code>0){o&&typeof o=="function"&&o(m.message);return}let b=mS(((h=m.data)===null||h===void 0?void 0:h.list)||m.data||[],"id",n||"title",l.parentId||"parentId","children",0,r);b=[{value:0,title:"根节点",children:b}],l.treeData=b,f(b)}l.treeData&&f(l.treeData),c(!0)};return Gt.jsx(oo,{...l,children:s&&Gt.jsx(oi,{...l,treeData:u,treeDefaultExpandAll:!0,style:{width:"100%"}})})},TL=e=>{let{request:t,option_label:n="label",option_value:r="id",disabledValue:o,callError:l,options:s,...c}=e;const[u,f]=B.useState([]);B.useEffect(()=>{g()},[]);const g=async()=>{if(t&&typeof t=="function"){var h;const m=await t();if(m.code>0){l&&typeof l=="function"&&l(m.message);return}let b=((h=m.data)===null||h===void 0?void 0:h.list)||m.data;Array.isArray(b)&&b.length>0&&f(b.map(S=>({label:S[n],value:S[r]})))}s&&s.length>0&&f(s)};return Gt.jsx(oo,{...c,children:Gt.jsx(Fi,{...c,options:u})})},ML=B.forwardRef((e,t)=>{let{value:n,onChange:r,...o}=e;const l=B.useRef(0),s=()=>{l.current++,r(l.current)};return Gt.jsxs(oo,{...o,children:[Gt.jsxs("div",{ref:t,children:["form-set-value:",n]}),Gt.jsx(Cl,{onClick:s,children:"test"})]})});function DL(e,t){let n;return function(){for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];clearTimeout(n),n=setTimeout(()=>e.apply(this,o),t)}}function AL(e,t){console.log("groupArray array",e.length);const n=[];let r=[];const o=(l,s)=>{const c=l-s.length;s.push(...new Array(c).fill(B.createElement("div")))};for(const l of e)l!=null&&l.props,r.push(l),r.length===t?(n.push(r),r=[]):r.length>t&&(o(t,r),n.push(r),r=[l]);return r.length>0&&(o(t,r),n.push(r)),n}const bS=B.forwardRef((e,t)=>{let{cols:n,children:r}=e;n=n||1;const[o]=to.useForm(),[l,s]=B.useState(null),c=B.useRef(null);B.useImperativeHandle(t,()=>({formRef:o,initFieldsShow:f}),[]),B.useEffect(()=>{},[o]),B.useEffect(()=>{u(),s(m())},[]);const u=()=>{c.current=new Map;let b=B.Children.toArray(r);for(let S=0;S<b.length;S++){const{componentId:C,__id:p,_componentName:w,...E}=b[S].props,x=C||p;c.current.set(x,{children:b.filter(O=>{var R;return O.props.__withId==x||((R=O.props.__withIds)===null||R===void 0?void 0:R.includes(x))}),show:!0})}f()},f=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const S=o.getFieldsValue();c.current.keys().forEach(function(C){g(C,S)}),b&&s(m())},g=(b,S)=>{let C=!1;return c.current.has(b)&&c.current.get(b).children.forEach(w=>{if(w.props.__withFunc&&typeof w.props.__withFunc=="function"){let E=w.props.__withFunc(S);const x=w.props.componentId||w.props.__id;if(c.current.has(x)){let O=c.current.get(x);O.show!=E&&(O.show=E,c.current.set(x,O),C=!0)}}}),C},h=DL((b,S)=>{const C=o.getFieldsValue();let p=!1;for(let w=0;w<b.length;w++){const E=b[w];E.name&&E.name.length>0&&(p=g(E.name[0],C))}p&&s(m())},100),m=()=>{let b=B.Children.toArray(r);const S=AL(b.filter(p=>{const w=p.props.componentId||p.props.__id;return c.current.has(w)&&c.current.get(w).show}),n);console.log("newArray",S);const C=S.map(p=>{var w;return Gt.jsx(Hf,{gutter:[24,24],children:p.map(E=>{const{componentId:x,__id:O,_componentName:R,onChange:_,...I}=E.props,N=x||O,P=R;return["FieldLayout","FieldSubTable"].includes(P)?Gt.jsx(hl,{span:24,style:{marginBottom:0},children:E},N):Gt.jsx(hl,{span:24/p.length,children:N&&Gt.jsx(to.Item,{style:{marginBottom:0},label:"",name:N,rules:[{required:I.isRequired,message:"".concat(I.title,"不能为空!")}],children:E})},N)})},p==null||(w=p[0])===null||w===void 0?void 0:w.key)});return console.log("result",S),C};return Gt.jsx(to,{form:o,className:"form-container p-6 w-full h-full box-border overflow-auto",onFieldsChange:h,children:l})});function FL(e){return B.forwardRef((t,n)=>Gt.jsx(e,{...t,ref:n,forwardedRef:n}))}const LL=e=>{const{forwardedRef:t,...n}=e;return Gt.jsx(bS,{...n,ref:t})},VL=FL(LL),jL=e=>{let{request:t,value:n,onChange:r,callError:o,disabledValue:l,addRoot:s=!0,title:c,...u}=e;const[f,g]=B.useState(!1),[h,m]=B.useState([]);B.useEffect(()=>{b()},[]),B.useEffect(()=>{console.log("CheckboxTree value ",n),typeof n=="string"&&(n=JSON.parse(n)),Array.isArray(n)&&w(n)},[n]);const b=async()=>{if(t&&typeof t=="function"){var P;const F=await t();if(F.code>0){o&&typeof o=="function"&&o(F.message);return}let z=mS(((P=F.data)===null||P===void 0?void 0:P.list)||F.data||[],"id",c||"title",(u==null?void 0:u.parentId)||"parentId","children",0,l);s&&(z=[{value:0,title:"根节点",children:z}]),u.treeData=z,console.log("treeData",z),m(z)}u.treeData&&m(u.treeData),g(!0)},[S,C]=B.useState([]),[p,w]=B.useState([]),[E,x]=B.useState([]),[O,R]=B.useState(!0),_=P=>{console.log("onExpand",P),C(P),R(!1)},I=P=>{console.log("onCheck",P),w(P),r(P)},N=(P,F)=>{console.log("onSelect",F),x(P)};return Gt.jsx(oo,{...u,children:Gt.jsx(Xf,{checkable:!0,onExpand:_,onCheck:I,onSelect:N,expandedKeys:S,autoExpandParent:O,checkedKeys:p,selectedKeys:E,treeData:h})})},zL=e=>Gt.jsx(oo,{...e,children:Gt.jsx(fc,{...e})}),BL=e=>Gt.jsx(oo,{...e,children:Gt.jsx(dc.Group,{...e})}),HL={Input:OL,TextArea:_L,Password:RL,Search:IL,TreeSelect:PL,Select:TL,CodeMachine:$L,Checkbox:zL,CheckboxTree:jL,RadioGrop:BL,Custom:ML};exports.Field=HL;exports.FormContainer=bS;exports.FormContainerWrapper=VL;
package/dist/index.es.js CHANGED
@@ -27230,7 +27230,10 @@ const GL = (e) => {
27230
27230
  children: s && /* @__PURE__ */ qt.jsx(ui, {
27231
27231
  ...l,
27232
27232
  treeData: u,
27233
- treeDefaultExpandAll: !0
27233
+ treeDefaultExpandAll: !0,
27234
+ style: {
27235
+ width: "100%"
27236
+ }
27234
27237
  })
27235
27238
  });
27236
27239
  }, qL = (e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lu-lowcode-package-form",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.3.7",
6
6
  "@testing-library/jest-dom": "^5.17.0",
package/src/App.jsx CHANGED
@@ -25,7 +25,7 @@ function App() {
25
25
  <div className='w-[960px] rounded bg-slate-100 flex flex-col items-center pb-10'>
26
26
  <FormContainerWrapper cols={1} className="" >
27
27
  <Field.Input label="分组名" __id="title" />
28
-
28
+ <Field.TreeSelect label="分组名" __id="title11"></Field.TreeSelect>
29
29
  <Field.CodeMachine label="角色编号" prompt="" __id="code" />
30
30
  <Field.Input label="角色名称" __id="name" />
31
31
  <Field.CheckboxTree label="角色权限" __id="permissions" addRoot={false} treeData={treeData} />
@@ -34,7 +34,7 @@ const TreeSelect = ({ request, title, disabledValue, callError, ...props }) => {
34
34
  }
35
35
  return (
36
36
  <BaseWrapper {...props}>
37
- {firstLoad && <OriginalTreeSelect {...props} treeData={treeData} treeDefaultExpandAll />}
37
+ {firstLoad && <OriginalTreeSelect {...props} treeData={treeData} treeDefaultExpandAll style={{ width: '100%' }} />}
38
38
  </BaseWrapper>
39
39
  )
40
40
  }
@@ -2,7 +2,7 @@ import { Input, TextArea, Password, Search ,CodeMachine} from './field/input/ind
2
2
  import '../App.css';
3
3
  import { TreeSelect, Select } from './field/select/index.jsx'
4
4
  import Custom from './field/custom/index.jsx'
5
- import {FormContainer, FormContainerWrapper } from './form-container/index.jsx'
5
+ import { FormContainer, FormContainerWrapper } from './form-container/index.jsx'
6
6
  import { Checkbox ,CheckboxTree } from './field/checkbox/index.jsx'
7
7
  import { default as RadioGrop } from './field/radio/index.jsx'
8
8
  const Field = {