qmw-form-design 0.0.9 → 0.0.11

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.
@@ -157695,7 +157695,7 @@ __p += '`),E0&&(U+=`' +
157695
157695
  function print() { __p += __j.call(arguments, '') }
157696
157696
  `:`;
157697
157697
  `)+U+`return __p
157698
- }`;var q0=ns(function(){return Q0(v,u0+"return "+U).apply(i,P)});if(q0.source=U,Yt(q0))throw q0;return q0}function rq(s){return M0(s).toLowerCase()}function dq(s){return M0(s).toUpperCase()}function aq(s,r,f){if(s=M0(s),s&&(f||r===i))return og(s);if(!s||!(r=l1(r)))return s;var m=L1(s),w=L1(r),v=lg(m,w),P=cg(m,w)+1;return Jx(m,v,P).join("")}function fq(s,r,f){if(s=M0(s),s&&(f||r===i))return s.slice(0,dg(s)+1);if(!s||!(r=l1(r)))return s;var m=L1(s),w=cg(m,L1(r))+1;return Jx(m,0,w).join("")}function bq(s,r,f){if(s=M0(s),s&&(f||r===i))return s.replace(Ye,"");if(!s||!(r=l1(r)))return s;var m=L1(s),w=lg(m,L1(r));return Jx(m,w).join("")}function yq(s,r){var f=L,m=V;if(J0(r)){var w="separator"in r?r.separator:w;f="length"in r?w0(r.length):f,m="omission"in r?l1(r.omission):m}s=M0(s);var v=s.length;if(e8(s)){var P=L1(s);v=P.length}if(f>=v)return s;var A=f-t8(m);if(A<1)return m;var M=P?Jx(P,0,A).join(""):s.slice(0,A);if(w===i)return M+m;if(P&&(A+=M.length-A),Gt(w)){if(s.slice(A).search(w)){var B,I=M;for(w.global||(w=rt(w.source,M0(P7.exec(w))+"g")),w.lastIndex=0;B=w.exec(I);)var U=B.index;M=M.slice(0,U===i?A:U)}}else if(s.indexOf(l1(w),A)!=A){var K=M.lastIndexOf(w);K>-1&&(M=M.slice(0,K))}return M+m}function zq(s){return s=M0(s),s&&Cb.test(s)?s.replace(E7,Uy):s}var mq=c8(function(s,r,f){return s+(f?" ":"")+r.toUpperCase()}),Jt=xu("toUpperCase");function Ju(s,r,f){return s=M0(s),r=f?i:r,r===i?Zy(s)?Gy(s):Ay(s):s.match(r)||[]}var ns=O0(function(s,r){try{return s1(s,i,r)}catch(f){return Yt(f)?f:new y0(f)}}),pq=Ex(function(s,r){return S1(r,function(f){f=ex(f),vx(s,f,Ut(s[f],s))}),s});function jq(s){var r=s==null?0:s.length,f=l0();return s=r?G0(s,function(m){if(typeof m[1]!="function")throw new E1(u);return[f(m[0]),m[1]]}):[],O0(function(m){for(var w=-1;++w<r;){var v=s[w];if(s1(v[0],this,m))return s1(v[1],this,m)}})}function wq(s){return Uz(T1(s,b))}function n9(s){return function(){return s}}function qq(s,r){return s==null||s!==s?r:s}var Oq=eu(),kq=eu(!0);function Hn(s){return s}function x9(s){return Ag(typeof s=="function"?s:T1(s,b))}function vq(s){return $g(T1(s,b))}function Sq(s,r){return Mg(s,T1(r,b))}var Eq=O0(function(s,r){return function(f){return m2(f,s,r)}}),Cq=O0(function(s,r){return function(f){return m2(s,f,r)}});function i9(s,r,f){var m=pn(r),w=a5(r,m);f==null&&!(J0(r)&&(w.length||!m.length))&&(f=r,r=s,s=this,w=a5(r,pn(r)));var v=!(J0(f)&&"chain"in f)||!!f.chain,P=Tx(s);return S1(w,function(A){var M=r[A];s[A]=M,P&&(s.prototype[A]=function(){var B=this.__chain__;if(v||B){var I=s(this.__wrapped__),U=I.__actions__=Fn(this.__actions__);return U.push({func:M,args:arguments,thisArg:s}),I.__chain__=B,I}return M.apply(s,Ux([this.value()],arguments))})}),s}function Tq(){return kn._===this&&(kn._=iz),this}function e9(){}function Pq(s){return s=w0(s),O0(function(r){return Dg(r,s)})}var _q=Qt(G0),Aq=Qt(tg),Qq=Qt(ht);function xs(s){return Bt(s)?gt(ex(s)):lm(s)}function $q(s){return function(r){return s==null?i:S4(s,r)}}var Mq=hu(),Dq=hu(!0);function t9(){return[]}function h9(){return!1}function Rq(){return{}}function Nq(){return""}function Vq(){return!0}function Bq(s,r){if(s=w0(s),s<1||s>C0)return[];var f=D0,m=An(s,D0);r=l0(r),s-=D0;for(var w=ot(m,r);++f<s;)r(f);return w}function Zq(s){return p0(s)?G0(s,ex):c1(s)?[s]:Fn(ju(M0(s)))}function Iq(s){var r=++nz;return M0(s)+r}var Lq=p5(function(s,r){return s+r},0),Wq=$t("ceil"),Xq=p5(function(s,r){return s/r},1),Uq=$t("floor");function Fq(s){return s&&s.length?d5(s,Hn,pt):i}function Yq(s,r){return s&&s.length?d5(s,l0(r,2),pt):i}function Gq(s){return ug(s,Hn)}function Hq(s,r){return ug(s,l0(r,2))}function Kq(s){return s&&s.length?d5(s,Hn,Ot):i}function Jq(s,r){return s&&s.length?d5(s,l0(r,2),Ot):i}var nO=p5(function(s,r){return s*r},1),xO=$t("round"),iO=p5(function(s,r){return s-r},0);function eO(s){return s&&s.length?st(s,Hn):0}function tO(s,r){return s&&s.length?st(s,l0(r,2)):0}return O.after=vj,O.ary=_u,O.assign=dw,O.assignIn=Xu,O.assignInWith=A5,O.assignWith=aw,O.at=fw,O.before=Au,O.bind=Ut,O.bindAll=pq,O.bindKey=Qu,O.castArray=Rj,O.chain=Cu,O.chunk=Um,O.compact=Fm,O.concat=Ym,O.cond=jq,O.conforms=wq,O.constant=n9,O.countBy=ej,O.create=bw,O.curry=$u,O.curryRight=Mu,O.debounce=Du,O.defaults=yw,O.defaultsDeep=zw,O.defer=Sj,O.delay=Ej,O.difference=Gm,O.differenceBy=Hm,O.differenceWith=Km,O.drop=Jm,O.dropRight=np,O.dropRightWhile=xp,O.dropWhile=ip,O.fill=ep,O.filter=hj,O.flatMap=sj,O.flatMapDeep=oj,O.flatMapDepth=lj,O.flatten=ku,O.flattenDeep=tp,O.flattenDepth=hp,O.flip=Cj,O.flow=Oq,O.flowRight=kq,O.fromPairs=gp,O.functions=kw,O.functionsIn=vw,O.groupBy=cj,O.initial=sp,O.intersection=op,O.intersectionBy=lp,O.intersectionWith=cp,O.invert=Ew,O.invertBy=Cw,O.invokeMap=dj,O.iteratee=x9,O.keyBy=aj,O.keys=pn,O.keysIn=Gn,O.map=S5,O.mapKeys=Pw,O.mapValues=_w,O.matches=vq,O.matchesProperty=Sq,O.memoize=C5,O.merge=Aw,O.mergeWith=Uu,O.method=Eq,O.methodOf=Cq,O.mixin=i9,O.negate=T5,O.nthArg=Pq,O.omit=Qw,O.omitBy=$w,O.once=Tj,O.orderBy=fj,O.over=_q,O.overArgs=Pj,O.overEvery=Aq,O.overSome=Qq,O.partial=Ft,O.partialRight=Ru,O.partition=bj,O.pick=Mw,O.pickBy=Fu,O.property=xs,O.propertyOf=$q,O.pull=fp,O.pullAll=Su,O.pullAllBy=bp,O.pullAllWith=yp,O.pullAt=zp,O.range=Mq,O.rangeRight=Dq,O.rearg=_j,O.reject=mj,O.remove=mp,O.rest=Aj,O.reverse=Wt,O.sampleSize=jj,O.set=Rw,O.setWith=Nw,O.shuffle=wj,O.slice=pp,O.sortBy=kj,O.sortedUniq=Sp,O.sortedUniqBy=Ep,O.split=sq,O.spread=Qj,O.tail=Cp,O.take=Tp,O.takeRight=Pp,O.takeRightWhile=_p,O.takeWhile=Ap,O.tap=Fp,O.throttle=$j,O.thru=v5,O.toArray=Iu,O.toPairs=Yu,O.toPairsIn=Gu,O.toPath=Zq,O.toPlainObject=Wu,O.transform=Vw,O.unary=Mj,O.union=Qp,O.unionBy=$p,O.unionWith=Mp,O.uniq=Dp,O.uniqBy=Rp,O.uniqWith=Np,O.unset=Bw,O.unzip=Xt,O.unzipWith=Eu,O.update=Zw,O.updateWith=Iw,O.values=a8,O.valuesIn=Lw,O.without=Vp,O.words=Ju,O.wrap=Dj,O.xor=Bp,O.xorBy=Zp,O.xorWith=Ip,O.zip=Lp,O.zipObject=Wp,O.zipObjectDeep=Xp,O.zipWith=Up,O.entries=Yu,O.entriesIn=Gu,O.extend=Xu,O.extendWith=A5,i9(O,O),O.add=Lq,O.attempt=ns,O.camelCase=Fw,O.capitalize=Hu,O.ceil=Wq,O.clamp=Ww,O.clone=Nj,O.cloneDeep=Bj,O.cloneDeepWith=Zj,O.cloneWith=Vj,O.conformsTo=Ij,O.deburr=Ku,O.defaultTo=qq,O.divide=Xq,O.endsWith=Yw,O.eq=X1,O.escape=Gw,O.escapeRegExp=Hw,O.every=tj,O.find=gj,O.findIndex=qu,O.findKey=mw,O.findLast=uj,O.findLastIndex=Ou,O.findLastKey=pw,O.floor=Uq,O.forEach=Tu,O.forEachRight=Pu,O.forIn=jw,O.forInRight=ww,O.forOwn=qw,O.forOwnRight=Ow,O.get=Ht,O.gt=Lj,O.gte=Wj,O.has=Sw,O.hasIn=Kt,O.head=vu,O.identity=Hn,O.includes=rj,O.indexOf=up,O.inRange=Xw,O.invoke=Tw,O.isArguments=T4,O.isArray=p0,O.isArrayBuffer=Xj,O.isArrayLike=Yn,O.isArrayLikeObject=tn,O.isBoolean=Uj,O.isBuffer=n4,O.isDate=Fj,O.isElement=Yj,O.isEmpty=Gj,O.isEqual=Hj,O.isEqualWith=Kj,O.isError=Yt,O.isFinite=Jj,O.isFunction=Tx,O.isInteger=Nu,O.isLength=P5,O.isMap=Vu,O.isMatch=nw,O.isMatchWith=xw,O.isNaN=iw,O.isNative=ew,O.isNil=hw,O.isNull=tw,O.isNumber=Bu,O.isObject=J0,O.isObjectLike=xn,O.isPlainObject=k2,O.isRegExp=Gt,O.isSafeInteger=gw,O.isSet=Zu,O.isString=_5,O.isSymbol=c1,O.isTypedArray=d8,O.isUndefined=uw,O.isWeakMap=sw,O.isWeakSet=ow,O.join=rp,O.kebabCase=Kw,O.last=_1,O.lastIndexOf=dp,O.lowerCase=Jw,O.lowerFirst=nq,O.lt=lw,O.lte=cw,O.max=Fq,O.maxBy=Yq,O.mean=Gq,O.meanBy=Hq,O.min=Kq,O.minBy=Jq,O.stubArray=t9,O.stubFalse=h9,O.stubObject=Rq,O.stubString=Nq,O.stubTrue=Vq,O.multiply=nO,O.nth=ap,O.noConflict=Tq,O.noop=e9,O.now=E5,O.pad=xq,O.padEnd=iq,O.padStart=eq,O.parseInt=tq,O.random=Uw,O.reduce=yj,O.reduceRight=zj,O.repeat=hq,O.replace=gq,O.result=Dw,O.round=xO,O.runInContext=$,O.sample=pj,O.size=qj,O.snakeCase=uq,O.some=Oj,O.sortedIndex=jp,O.sortedIndexBy=wp,O.sortedIndexOf=qp,O.sortedLastIndex=Op,O.sortedLastIndexBy=kp,O.sortedLastIndexOf=vp,O.startCase=oq,O.startsWith=lq,O.subtract=iO,O.sum=eO,O.sumBy=tO,O.template=cq,O.times=Bq,O.toFinite=Px,O.toInteger=w0,O.toLength=Lu,O.toLower=rq,O.toNumber=A1,O.toSafeInteger=rw,O.toString=M0,O.toUpper=dq,O.trim=aq,O.trimEnd=fq,O.trimStart=bq,O.truncate=yq,O.unescape=zq,O.uniqueId=Iq,O.upperCase=mq,O.upperFirst=Jt,O.each=Tu,O.eachRight=Pu,O.first=vu,i9(O,(function(){var s={};return xx(O,function(r,f){R0.call(O.prototype,f)||(s[f]=r)}),s})(),{chain:!1}),O.VERSION=t,S1(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){O[s].placeholder=O}),S1(["drop","take"],function(s,r){S0.prototype[s]=function(f){f=f===i?1:an(w0(f),0);var m=this.__filtered__&&!r?new S0(this):this.clone();return m.__filtered__?m.__takeCount__=An(f,m.__takeCount__):m.__views__.push({size:An(f,D0),type:s+(m.__dir__<0?"Right":"")}),m},S0.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),S1(["filter","map","takeWhile"],function(s,r){var f=r+1,m=f==h0||f==j0;S0.prototype[s]=function(w){var v=this.clone();return v.__iteratees__.push({iteratee:l0(w,3),type:f}),v.__filtered__=v.__filtered__||m,v}}),S1(["head","last"],function(s,r){var f="take"+(r?"Right":"");S0.prototype[s]=function(){return this[f](1).value()[0]}}),S1(["initial","tail"],function(s,r){var f="drop"+(r?"":"Right");S0.prototype[s]=function(){return this.__filtered__?new S0(this):this[f](1)}}),S0.prototype.compact=function(){return this.filter(Hn)},S0.prototype.find=function(s){return this.filter(s).head()},S0.prototype.findLast=function(s){return this.reverse().find(s)},S0.prototype.invokeMap=O0(function(s,r){return typeof s=="function"?new S0(this):this.map(function(f){return m2(f,s,r)})}),S0.prototype.reject=function(s){return this.filter(T5(l0(s)))},S0.prototype.slice=function(s,r){s=w0(s);var f=this;return f.__filtered__&&(s>0||r<0)?new S0(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),r!==i&&(r=w0(r),f=r<0?f.dropRight(-r):f.take(r-s)),f)},S0.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},S0.prototype.toArray=function(){return this.take(D0)},xx(S0.prototype,function(s,r){var f=/^(?:filter|find|map|reject)|While$/.test(r),m=/^(?:head|last)$/.test(r),w=O[m?"take"+(r=="last"?"Right":""):r],v=m||/^find/.test(r);w&&(O.prototype[r]=function(){var P=this.__wrapped__,A=m?[1]:arguments,M=P instanceof S0,B=A[0],I=M||p0(P),U=function(v0){var E0=w.apply(O,Ux([v0],A));return m&&K?E0[0]:E0};I&&f&&typeof B=="function"&&B.length!=1&&(M=I=!1);var K=this.__chain__,u0=!!this.__actions__.length,c0=v&&!K,q0=M&&!u0;if(!v&&I){P=q0?P:new S0(this);var r0=s.apply(P,A);return r0.__actions__.push({func:v5,args:[U],thisArg:i}),new C1(r0,K)}return c0&&q0?s.apply(this,A):(r0=this.thru(U),c0?m?r0.value()[0]:r0.value():r0)})}),S1(["pop","push","shift","sort","splice","unshift"],function(s){var r=Ki[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",m=/^(?:pop|shift)$/.test(s);O.prototype[s]=function(){var w=arguments;if(m&&!this.__chain__){var v=this.value();return r.apply(p0(v)?v:[],w)}return this[f](function(P){return r.apply(p0(P)?P:[],w)})}}),xx(S0.prototype,function(s,r){var f=O[r];if(f){var m=f.name+"";R0.call(s8,m)||(s8[m]=[]),s8[m].push({name:r,func:f})}}),s8[m5(i,C).name]=[{name:"wrapper",func:i}],S0.prototype.clone=zz,S0.prototype.reverse=mz,S0.prototype.value=pz,O.prototype.at=Yp,O.prototype.chain=Gp,O.prototype.commit=Hp,O.prototype.next=Kp,O.prototype.plant=nj,O.prototype.reverse=xj,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=ij,O.prototype.first=O.prototype.head,r2&&(O.prototype[r2]=Jp),O}),h8=Hy();w4?((w4.exports=h8)._=h8,xt._=h8):kn._=h8}).call(cE)})(B2,B2.exports)),B2.exports}var S2=rE();const J8=jS("formDesigner",{state:()=>({showDesigner:!1,widgetPanel:{containerWidget:{title:"布局组件",expand:!0,children:[{pType:"container",type:"row",title:"栅格",iconCode:"icomoon icon-grid",owner:"common"},{pType:"container",type:"table",title:"表格",iconCode:"icomoon icon-table",owner:"common"}]},basicWidget:{title:"常用组件",expand:!0,children:[{pType:"formWidget",type:"label",title:"纯文本",iconCode:"icomoon icon-text",owner:"common"},{pType:"formWidget",type:"text",title:"单行文本",iconCode:"icomoon icon-text-field",owner:"common"},{pType:"formWidget",type:"textarea",title:"多行文本",iconCode:"icomoon icon-textarea",owner:"common"},{pType:"formWidget",type:"radio",title:"单选框",iconCode:"icomoon icon-radio",owner:"common"},{pType:"formWidget",type:"checkbox",title:"复选框",iconCode:"icomoon icon-checkbox-field",owner:"common"},{pType:"formWidget",type:"select",title:"下拉框",iconCode:"icomoon icon-select",owner:"common"},{pType:"formWidget",type:"number",title:"数字框",iconCode:"icomoon icon-number",owner:"common"},{pType:"formWidget",type:"datetime",title:"日期时间",iconCode:"icomoon icon-date-field",owner:"common"},{pType:"formWidget",type:"switch",title:"开关",iconCode:"icomoon icon-switch",owner:"common"}]},seniorWidget:{title:"高级组件",expand:!0,children:[{pType:"formWidget",type:"richEditor",title:"富文本",iconCode:"icomoon icon-rich-editor",owner:"common"},{pType:"formWidget",type:"tree",title:"树选择器",iconCode:"icomoon icon-menu1",owner:"common"},{pType:"formWidget",type:"cascader",title:"级联选择",iconCode:"icomoon icon-cascader",owner:"common"},{pType:"formWidget",type:"upload",title:"上传文件",iconCode:"icomoon icon-attachment",owner:"common"},{pType:"formWidget",type:"dyTable",title:"子表单",iconCode:"icomoon icon-table1",owner:"common"},{pType:"formWidget",type:"group",title:"分组",iconCode:"icomoon icon-list2",owner:"common"}]},customizeWidget:{title:"自定义组件",expand:!0,children:[]}},formConfig:{labelPosition:"right",labelWidth:80,formWidth:null,formWidgetList:[]},formDesignerStyle:{},selectWidget:null,msgModal:{show:!1,type:"info",content:"",onOk:null},showTdBtn:!1,showStyle:{width:["text","textarea","select","label","td","number","datetime","switch","tree","cascader"],height:["text","textarea","select","label","td","col","number","datetime","richEditor","tree","cascader"],padding:["text","textarea","select","label","radio","checkbox","td","col","richEditor","tree","cascader"],margin:["text","textarea","select","label","radio","checkbox","number","datetime","switch","richEditor","tree","cascader","upload"],fontFamily:["text","textarea","select","radio","checkbox","label","td","col","table","row","number","datetime","switch","tree","cascader"],fontSize:["text","textarea","select","radio","checkbox","label","td","col","table","row","number","datetime","tree","cascader"],fontWeight:["text","textarea","select","radio","checkbox","label","td","col","table","row","number","datetime","tree","cascader"],color:["text","textarea","select","radio","checkbox","label","td","col","table","row","number","datetime","tree","cascader"],textAlign:["label","td","col"]},showConfig:{label:["text","textarea","select","radio","checkbox","number","datetime","switch","richEditor","tree","cascader","upload"],labelPosition:["text","textarea","select","radio","checkbox","number","datetime","switch","richEditor","tree","cascader","upload"],groupLabel:["dyTable","group"],type:["text","textarea","select","radio","checkbox"],felidNameCreateType:["text","textarea","select","radio","checkbox","number","datetime","switch","dyTable","group","richEditor","tree","cascader","upload"],felidName:["text","textarea","select","radio","checkbox","number","datetime","switch","dyTable","group","richEditor","tree","cascader","upload"],placeholder:["text","textarea","number","datetime","richEditor","select","cascader"],prefix:["text","select","number","datetime","tree","cascader"],suffix:["text","select","number","datetime","tree","cascader"],maxLength:["text","textarea","select","radio","checkbox","tree","cascader"],showWordLimit:["text","textarea"],readonly:["text","textarea","number","datetime","dyTable","group","richEditor"],disabled:["text","textarea","select","radio","checkbox","number","datetime","switch","dyTable","group","tree","cascader","upload"],required:["text","textarea","select","radio","checkbox","number","datetime","switch","dyTable","group","richEditor","tree","cascader","upload"],regular:["text"],rowsType:["textarea"],extendAtt:["textarea","text","label","upload"],option:["select","radio","checkbox"],vertical:["radio"],selectType:["select","tree"],textType:["label"],defaultValue:["text","textarea","select","radio","checkbox","number","switch","tree","cascader"],max:["number"],min:["number"],precision:["number"],numberType:["number"],dateTimeType:["datetime"],dateTimeRange:["datetime"],disabledDate:["datetime"],timeSteps:["datetime"],showCurDate:["datetime"],showAndHide:["text","textarea","select","radio","checkbox","label","td","col","table","row","number","datetime","switch","dyTable","group","richEditor","tree","cascader","upload"],onChange:["text","textarea","select","radio","checkbox","number","datetime","switch","tree","cascader"],onFocus:["text","textarea","select","radio","checkbox","number","datetime"],onBlur:["text","textarea","select","radio","checkbox","number","datetime"],onClick:["text","textarea","select","radio","checkbox","number","datetime"],trueValue:["switch"],falseValue:["switch"],trueText:["switch"],falseText:["switch"],switchSize:["switch"],isShowAndHide:["dyTable","group"],treeData:["tree"],transfer:["tree","cascader","select"],cascaderData:["cascader"],multiple:["upload"],fileAccept:["upload"],fileFormat:["upload"],fileMaxSize:["upload"],h5LabelPosition:["text","textarea","select","radio","checkbox","number","datetime","switch","richEditor","tree","cascader","upload"],h5ShowType:["text","textarea","select","radio","checkbox","number","datetime","switch","dyTable","richEditor","tree","cascader","upload"],richEditMode:["richEditor"],richEditWidth:["richEditor"]},rightArea:{formAtt:!0,widgetAtt:!1,widgetConfig:!0,seniorConfig:!1,customizeConfig:!1},historyData:{index:-1,maxStep:100,steps:[]},emit:null}),actions:{initData(e){if(this.historyData.steps.push({formConfig:S2.cloneDeep(this.formConfig)}),this.historyData.index=0,e){if(e.customizeWidget&&e.customizeWidget.length>0&&(this.widgetPanel.customizeWidget.children=e.customizeWidget),e.showStyle)for(const x in e.showStyle)Object.hasOwnProperty.call(this.showStyle,x)&&(this.showStyle[x]=[...this.showStyle[x],...e.showStyle[x]]);if(e.showConfig)for(const x in e.showConfig)Object.hasOwnProperty.call(this.showConfig,x)&&(this.showConfig[x]=[...this.showConfig[x],...e.showConfig[x]])}this.showDesigner=!0},addWidget(e,x,i){let t=e.newIndex,h=JSON.parse(JSON.stringify(x[t]));if(i){if(i.type=="td"){if(h.type=="row"){this.showMsgModal("error","表格组件内不能添加栅格组件"),x.splice(t,1);return}if(h.type=="dyTable"){this.showMsgModal("error","表格组件内不能添加子表单组件"),x.splice(t,1);return}if(h.type=="group"){this.showMsgModal("error","表格组件内不能添加分组组件"),x.splice(t,1);return}}if(i.type=="col"){if(h.type=="dyTable"){this.showMsgModal("error","栅格组件内不能添加子表单组件"),x.splice(t,1);return}if(h.type=="group"){this.showMsgModal("error","栅格组件内不能添加分组组件"),x.splice(t,1);return}}if(i.type=="dyTable"){if(h.type=="table"){this.showMsgModal("error","子表单组件内不能添加表格组件"),x.splice(t,1);return}if(h.type=="row"){this.showMsgModal("error","子表单组件内不能添加栅格组件"),x.splice(t,1);return}if(h.type=="dyTable"){this.showMsgModal("error","子表单组件内不能添加子表单组件"),x.splice(t,1);return}if(h.type=="group"){this.showMsgModal("error","子表单组件内不能添加分组组件"),x.splice(t,1);return}}}if(h.style={},h.labelStyleValue={},h.config={},h.styleValue={},h.labelStyle={},h.type!="label"&&h.pType!="container"&&h.type!="dyTable"&&h.type!="group"){let g={};this.formConfig.labelPosition!="right"&&(g.textAlign=this.formConfig.labelPosition),this.formConfig.labelWidth!="80"&&(g.width=this.formConfig.labelWidth+"px",h.labelStyleValue.width=this.formConfig.labelWidth),h.labelStyle=g}if(h.pType=="formWidget"&&h.type!="label"){h.widgetType=h.type+"Widget";let g=this.generateId();h.id=h.type+g,h.config={showLabel:!0,readonly:!1,disabled:!1,required:!1,felidNameCreateType:"dynamics",felidName:h.type+g.substring(0,3),labelPosition:"sameRow",h5LabelPosition:"sameRow",h5ShowType:"allShow",label:h.title,isEditFelidName:!0}}if(h.owner=="common"){if(h.type=="text")h.config.showWordLimit=!1,h.config.defaultLength=100;else if(h.type=="textarea")h.config.showWordLimit=!1,h.config.defaultLength=500,h.config.rowsType="dynamics",h.config.rows=2,h.config.minRows=2,h.config.maxRows=6;else if(h.type=="radio")h.config.defaultLength=100,h.config.vertical=!1,h.config.option={type:"customize",items:"",getItemListMethod:""};else if(h.type=="checkbox")h.config.defaultLength=200,h.config.option={type:"customize",items:"",getItemListMethod:""};else if(h.type=="select")h.config.defaultLength=100,h.config.selectType="single",h.config.transfer=!1,h.config.option={type:"customize",items:"",getItemListMethod:""},h.style={width:"100px"},h.styleValue={width:"100"};else if(h.type=="label")h.widgetType="labelWidget",h.label="纯文本",h.id=h.type+this.generateId(),h.style={display:"block"},h.config={textType:"single",textValue:"纯文本"},h.showBtn=!0;else if(h.type=="number")h.config.numberType="int";else if(h.type=="datetime")h.config.dateTimeType="yyyy-MM-dd",h.config.dateTimeRange=!1,h.config.showCurDate=!1,h.config.disabledDate={type:"none",startDate:null,endDate:null,day:1};else if(h.type=="switch")h.config.trueValue="",h.config.falseValue="",h.config.trueText="",h.config.falseText="",h.config.switchSize="default";else if(h.type=="richEditor")h.style={float:"left",border:"1px solid #ccc",width:"auto",height:"400px"},h.config.richEditMode="default",h.config.richEditWidth=720;else if(h.type=="tree")h.config.defaultLength=200,h.config.selectType="single",h.config.getTreeDataMethod="",h.config.transfer=!1,h.style={width:"100px"},h.styleValue={width:"100"};else if(h.type=="cascader")h.config.defaultLength=200,h.config.getTreeDataMethod="",h.config.transfer=!1,h.style={width:"100px"},h.styleValue={width:"100"};else if(h.type=="upload")h.config.multiple=!0,h.config.fileAccept="",h.config.fileFormat="",h.config.fileMaxSize=null,h.style={width:"100px"},h.styleValue={width:"100"};else if(h.type=="table"){h.widgetType="tableWidget",h.id=h.type+this.generateId(),h.style={width:"100%",border:"1px solid #e8eaec",borderCollapse:"collapse",tableLayout:"fixed"},h.showBtn=!0,h.children=[];for(let g=0;g<2;g++){const u=this.createTableTr();for(let o=0;o<4;o++)u.children.push(this.createTableTd());h.children.push(u)}}else if(h.type=="row"){h.widgetType="rowColWidget",h.id=h.type+this.generateId(),h.showBtn=!0,h.children=[];for(let g=0;g<2;g++){const u=this.createGridCol();u.style={flex:"0 0 50%"},u.flex=12,h.children.push(u)}h.splitType="span"}else h.type=="dyTable"?(h.config.isShowAndHide=!1,h.children=[],h.labelStyle={textAlign:"left",fontSize:"16px",fontWeight:"bold"},h.labelStyleValue={fontSize:16}):h.type=="group"&&(h.config.isShowAndHide=!1,h.children=[],h.labelStyle={textAlign:"left",fontSize:"16px",fontWeight:"bold"},h.labelStyleValue={fontSize:16});this.addWidgetAfter(x,t,h)}else this.emit("addCustomizeWidget",h,g=>{this.addWidgetAfter(x,t,g)})},addWidgetAfter(e,x,i){i.showBtn=!0,e[x]=i,this.selectWidget&&(this.selectWidget.showBtn=!1,this.selectWidget=null),c.nextTick(()=>{this.selectWidget=i,this.saveHistoryStep()})},generateId(){return Math.floor(Math.random()*1e5+Math.random()*2e4+Math.random()*5e3)+""},onClickFormWidget(e,x){this.selectWidget&&(this.selectWidget.showBtn=!1,this.selectWidget=null),e&&(e.cancelBubble=!0,e.stopPropagation()),this.showTdBtn=!1,c.nextTick(()=>{x.showBtn=!0,this.selectWidget=x})},clearSelectWidget(){this.selectWidget&&(this.selectWidget.showBtn=!1,this.selectWidget.isNotValid=!1,this.selectWidget=null),this.showTdBtn=!1},deleteWidget(e,x,i,t){this.showMsgModal("confirm","是否确定删除?",()=>{if(this.msgModal.show=!1,t=="tr"){let g=e[x].children[i].rowspan||1;for(let u=g-1;u>=0;u--)this.deleteTrOrTdManageMergeCell(e,x+u,i,t),this.deleteWidgetAfter(e,x+u)}else this.deleteWidgetAfter(e,x)})},deleteWidgetAfter(e,x){let i=e.splice(x,1);this.selectWidget.id==i.id&&(this.selectWidget=null),this.saveHistoryStep()},moveUpWidget(e,x){let i=e[x];e.splice(x,1),e.splice(x-1,0,i),this.saveHistoryStep()},moveDownWidget(e,x){let i=e[x];e.splice(x,1),e.splice(x+1,0,i),this.saveHistoryStep()},deleteTd(e,x,i){this.showMsgModal("confirm","是否确定删除?",()=>{this.msgModal.show=!1;let h=e[i].children[x].colspan||1;for(let g=h-1;g>=0;g--)this.deleteTrOrTdManageMergeCell(e,i,x+g,"td"),e.forEach(u=>{let o=u.children||[];x+g<o.length&&this.deleteWidgetAfter(o,x+g)})})},addTr(e,x,i,t){const h=this.createTableTr();let g=this.getMaxTdNum(e);for(let u=0;u<g;u++)h.children.push(this.createTableTd());if(t=="up")x!=0&&this.addTrManageMergeCell(e,x,h),e.splice(x,0,h);else if(t=="down"){let u=this.getValidAddTrIndex(e,x,i);u==0?e.push(h):(this.addTrManageMergeCell(e,x+1,h),e.splice(u,0,h))}else e.push(h);this.saveHistoryStep()},addTrManageMergeCell(e,x,i){for(let t=0;t<i.children.length;t++)if(i.children[t].cMerge=e[x].children[t].cMerge,i.children[t].rMerge=e[x].children[t].rMerge,i.children[t].rMerge){for(let h=x-1;h>=0;h--)if(!e[h].children[t].rMerge){e[h].children[t].rowspan+=1;break}}},getValidAddTrIndex(e,x,i){if(e.length==1)return 0;for(let t=x+1;t<e.length;t++)if(!e[t].children[i].rMerge)return t;return 0},addTd(e,x,i,t){e||(e=[this.createTableTr()]),e.forEach(h=>{const g=this.createTableTd();let u=h.children||[];if(t=="left")i!=0&&this.addTdManageMergeCell(u,i,g),u.splice(i,0,g);else if(t=="right"){let o=this.getValidAddTdIndex(e,x,i);o==0?u.push(g):(this.addTdManageMergeCell(u,i+1,g),u.splice(o,0,g))}else u.push(g);h.children=u}),this.saveHistoryStep()},addTdManageMergeCell(e,x,i){if(e.length==0)return;let t=e[x];if(i.cMerge=t.cMerge,i.rMerge=t.rMerge,i.cMerge){for(let h=x-1;h>=0;h--)if(!e[h].cMerge){e[h].colspan+=1;break}}},getValidAddTdIndex(e,x,i){let t=e[x].children;if(t.length==1)return 0;for(let h=i+1;h<t.length;h++)if(!t[h].cMerge)return h;return 0},deleteTd(e,x,i){this.showMsgModal("confirm","是否确定删除?",()=>{this.msgModal.show=!1;let h=e[i].children[x].colspan||1;for(let g=h-1;g>=0;g--)this.deleteTrOrTdManageMergeCell(e,i,x+g,"td"),e.forEach(u=>{let o=u.children||[];this.deleteWidgetAfter(o,x+g)})})},mergeCell(e,x,i,t){if(t=="left"){let h=null;for(let a=x-1;a>=0&&(h=e[a],!(!h.cMerge&&!h.rMerge));a--);let g=h.colspan||1,u=e[x],o=u.colspan||1,l=u.children||[],d=h.children||[];d.length>0&&(l=[...l,...d]),h.children=l,h.colspan=o+g,u.cMerge=!0,u.children=[],h.cMerge=!1}if(t=="right"){let h=e[x],g=h.colspan||1,u=null;for(let a=x+1;a<e.length&&(u=e[a],!(!u.cMerge&&!u.rMerge));a++);let o=u.colspan||1;h.colspan=g+o;let l=h.children||[],d=u.children||[];d.length>0&&(l=[...l,...d]),h.children=l,h.cMerge=!1,u.cMerge=!0,u.children=[]}if(t=="allRow"){let h=[],g=e[i];g.children.forEach(u=>{if(!u.cMerge&&!u.rMerge){let o=u.children||[];h=[...h,...o],u.cMerge=!0,u.children=[]}}),g.children[0].colspan=g.children.length,g.children[0].children=h,g.children[0].cMerge=!1}if(t=="up"){let h=null;for(let b=i-1;b>=0&&(h=e[b].children[x],!(!h.cMerge&&!h.rMerge));b--);let u=e[i].children[x],o=h.children||[],l=u.children||[];l.length>0&&(o=[...o,...l]),h.children=o;let d=h.rowspan||1,a=u.rowspan||1;h.rowspan=d+a,u.rMerge=!0,u.children=[],h.rMerge=!1}if(t=="down"){let g=e[i].children[x],u=g.rowspan||1,o=null;for(let b=i+1;b<e.length&&(o=e[b].children[x],!(!o.cMerge&&!o.rMerge));b++);let l=o.rowspan||1,d=g.children||[],a=o.children||[];a.length>0&&(d=[...d,...a]),g.children=d,g.rowspan=u+l,g.rMerge=!1,o.rMerge=!0,o.children=[]}if(t=="allCol"){let h=[];for(let g=0;g<e.length;g++){const o=e[g].children[x];if(o.cMerge||o.rMerge)continue;let l=o.children||[];h=[...h,...l],o.rMerge=!0,o.children=[]}e[0].children[x].children=h,e[0].children[x].rowspan=e.length,e[0].children[x].rMerge=!1}this.saveHistoryStep()},deleteTrOrTdManageMergeCell(e,x,i,t){if(!(e.length<2)&&!(e[0].children.length<2)){if(t=="tr"){let h=e[x].children;for(let g=0;g<h.length;g++)if(h[g].rMerge){for(let u=x-1;u>=0;u--)if(!e[u].children[g].rMerge){e[u].children[g].rowspan-=1;break}}}if(t=="td")for(let h=0;h<e.length;h++){let g=e[h].children;if(g[i].cMerge){for(let u=i-1;u>=0;u--)if(!g[u].cMerge){g[u].colspan-=1;break}}}}},cancelMergeCell(e,x,i,t){if(t=="row"){let h=e[i],g=h.children[x].colspan;h.children[x].colspan=1;for(let u=1;u<g;u++){let o=h.children[x+u];o.colspan=1,o.cMerge=!1}}if(t=="col"){let h=e[i].children[x].rowspan;e[i].children[x].rowspan=1;for(let g=1;g<h;g++){let u=e[i+g].children[x];u.rowspan=1,u.rMerge=!1}}this.saveHistoryStep()},getMaxTdNum(e){let x=4;return!e||e.length==0?x:e[0].children.length},createTableTr(){return{pType:"container",type:"tr",id:"tr"+this.generateId(),style:{border:"1px solid #e8eaec",position:"relative"},children:[],title:"表格行",widgetType:"tr",labelStyle:{},config:{}}},createTableTd(){return{pType:"container",type:"td",widgetType:"td",id:"td"+this.generateId(),title:"单元格",style:{minHeight:"30px",border:"1px solid #e8eaec",position:"relative"},styleValue:{},showBtn:!1,cMerge:!1,rMerge:!1,children:[],colspan:1,rowspan:1,labelStyle:{},config:{}}},setAreaClass(e){return e.pType=="formWidget"&&e.type!="dyTable"&&e.type!="group"?e.isNotValid?"form-widget error":e.showBtn?"form-widget active":"form-widget":e.isNotValid?"container-widget error":e.showBtn?"container-widget active":"container-widget"},gridAddCol(e,x,i,t){const h=this.createGridCol();if(t.splitType=="px"&&(h.style={flex:"1 1 auto"},h.flex=0),i=="left"?e.splice(x,0,h):i=="right"?e.length==1?e.push(h):e.splice(x+1,0,h):e.push(h),t.splitType=="span"){let g=100/e.length;g=`0 0 ${g}%`;let u=parseInt(24/e.length);e.forEach(o=>{o.style={flex:g},o.flex=u})}this.saveHistoryStep()},copyNewWidget(e,x){const i=JSON.parse(JSON.stringify(x));i.showBtn=!1,this.resetWidgetId(i),e.push(i),this.saveHistoryStep()},createGridCol(){return{pType:"container",type:"col",widgetType:"col",id:"col"+this.generateId(),title:"栅格列",style:{},styleValue:{},showBtn:!1,children:[],labelStyle:{},config:{}}},resetWidgetId(e){e.id=e.type+this.generateId(),e.children&&e.children.length>0&&e.children.forEach(x=>{this.resetWidgetId(x)})},generateFieldName(){if(!this.selectWidget||!this.selectWidget.config.label)return;let e=this.selectWidget.config.label.replace(/\s/g,"");if(!e||!this.selectWidget.config.isEditFelidName)return;const i=this.toPinyin(e).split(" ");let t="";i.forEach((g,u)=>{u<=1?t+=g:t+=g.substring(0,1)});let h=this.selectWidget.id.replace(this.selectWidget.type,"");this.selectWidget.config.felidName=t+h.substring(0,3)},toPinyin(e){return vh(e,{style:vh.STYLE_NORMAL}).join(" ")},saveHistoryStep(){this.historyData.index===this.historyData.maxStep-1?this.historyData.steps.shift():this.historyData.index++,this.historyData.steps[this.historyData.index]={formConfig:S2.cloneDeep(this.formConfig),selectWidget:this.selectWidget?S2.cloneDeep(this.selectWidget):null},this.historyData.index<this.historyData.steps.length-1&&(this.historyData.steps=this.historyData.steps.slice(0,this.historyData.index+1))},undoHistory(){if(this.historyData.index!=0){if(this.clearSelectWidget(),this.historyData.index!==0&&this.historyData.index--,this.formConfig=S2.cloneDeep(this.historyData.steps[this.historyData.index].formConfig),this.historyData.steps[this.historyData.index].selectWidget){let e=this.historyData.steps[this.historyData.index].selectWidget.id;this.getActonWidget(e,this.formConfig.formWidgetList)}this.showDesigner=!1,c.nextTick(()=>{this.showDesigner=!0,this.handleFormWidthChange()})}},redoHistory(){if(this.clearSelectWidget(),this.historyData.index!==this.historyData.steps.length-1&&this.historyData.index++,this.formConfig=S2.cloneDeep(this.historyData.steps[this.historyData.index].formConfig),this.historyData.steps[this.historyData.index].selectWidget){let e=this.historyData.steps[this.historyData.index].selectWidget.id;this.getActonWidget(e,this.formConfig.formWidgetList)}this.showDesigner=!1,c.nextTick(()=>{this.showDesigner=!0,this.handleFormWidthChange()})},getActonWidget(e,x){let i=!1;for(let t=0;t<x.length;t++)if(x[t].id==e){this.onClickFormWidget(null,x[t]),i=!0;break}if(i)return i;for(let t=0;t<x.length&&(x[t].children&&x[t].children.length>0&&(i=this.getActonWidget(e,x[t].children)),!i);t++);return i},handleFormWidthChange(e){if(!e||e.target.value<=0){this.formConfig.formWidth=null,this.formDesignerStyle={},e&&(e.target.value=0);return}else{this.formConfig.formWidth=e.target.value;let x=document.body.clientWidth-120-280;if(this.formConfig.formWidth>=x)this.formDesignerStyle={width:"100%",overflowX:"auto"};else{let i=(x-this.formConfig.formWidth)/2;this.formDesignerStyle={marginLeft:i+"px"}}}this.saveHistoryStep()},handleLabelWidthChange(e){if(e.target.value<=0){this.formConfig.labelWidth=1,e.target.value=1;return}else this.formConfig.labelWidth=e.target.value;this.formConfig.labelWidth!="80"?this.manageAllFormWidgetLabelWidth(this.formConfig.labelWidth,this.formConfig.formWidgetList,"","labelWidth"):this.manageAllFormWidgetLabelWidth(80,this.formConfig.formWidgetList,"","labelWidth"),this.saveHistoryStep()},handleLabelPosition(e){this.formConfig.labelPosition=e.target.value,this.manageAllFormWidgetLabelWidth(0,this.formConfig.formWidgetList,e.target.value,"labelPosition"),this.saveHistoryStep()},manageAllFormWidgetLabelWidth(e,x,i,t){for(let h=0;h<x.length;h++)x[h].pType=="formWidget"&&x[h].type!="label"&&(t=="labelWidth"?x[h].labelStyleValue.width||(e!=80?x[h].labelStyle.width=e+"px":x[h].labelStyle.width=""):i=="right"?x[h].labelStyle.textAlign="":x[h].labelStyle.textAlign=i,x[h].children&&x[h].children.length>0&&this.manageAllFormWidgetLabelWidth(e,x[h].children,i,t))},hideOrShowWidgetConfig(e){this.rightArea[e]=!this.rightArea[e]},deleteAllWidget(){this.formConfig.formWidgetList.length!=0&&this.showMsgModal("confirm","是否确定清除所有组件?",()=>{this.msgModal.show=!1,this.formConfig.formWidgetList=[],this.selectWidget&&(this.selectWidget=null),this.saveHistoryStep()})},clearDyTableOrGroupAllWidget(){this.selectWidget.children.length!=0&&this.showMsgModal("confirm","是否确定清除内部所有组件?",()=>{this.msgModal.show=!1,this.selectWidget.children=[],this.saveHistoryStep()})},changeWidgetType(e){this.showDesigner=!1,c.nextTick(()=>{this.selectWidget.type=e.target.value,this.selectWidget.widgetType=e.target.value+"Widget";const x=e.target.options[e.target.selectedIndex];this.selectWidget.title=x.label,this.selectWidget.type=="text"&&(delete this.selectWidget.config.rows,delete this.selectWidget.config.minRows,delete this.selectWidget.config.maxRows),this.selectWidget.type=="textarea"&&(this.selectWidget.config.rows=2,this.selectWidget.config.minRows=2,this.selectWidget.config.maxRows=6),this.selectWidget.type=="select"?this.selectWidget.config.selectType="single":delete this.selectWidget.config.selectType,this.saveHistoryStep(),this.showDesigner=!0})},showMsgModal(e,x,i){this.msgModal.content=x,this.msgModal.show=!0,this.msgModal.type=e,this.msgModal.onOk=i},confirm(e){e(),this.msgModal.show=!1},returnFormConfigData(){return this.formConfig.formName?!this.formConfig.formWidgetList||this.formConfig.formWidgetList.length==0?(this.showMsgModal("error","请至少添加一个组件."),null):this.checkFormConfigData(this.formConfig.formWidgetList)?null:this.formConfig:(this.showMsgModal("error","表单名不能为空."),null)},checkFormConfigData(e){let x=!1;for(let i=0;i<e.length;i++){let t=e[i];if(t.type=="table"){if(t.children&&t.children.length==0||!t.children){this.showMsgModal("error","表格组件至少有一行一列."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}t.isNotValid=!1}if(t.type=="row"){if(t.children&&t.children.length==0||!t.children){this.showMsgModal("error","栅格组件至少有一栅格列."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}t.isNotValid=!1}if(t.pType=="formWidget"){if(t.type=="label"&&!t.config.textValue){this.showMsgModal("error","纯文本组件显示内容不能为空."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}else if(t.type!="label"){if(!t.config.label){this.showMsgModal("error",t.title+"组件标签内容不能为空."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}if(!t.config.felidName){this.showMsgModal("error",t.title+"组件字段名不能为空."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}if((t.type=="radio"||t.type=="checkbox"||t.type=="select")&&!t.config.option.items&&!t.config.option.getItemListMethod){this.showMsgModal("error",t.title+"组件选项不能为空."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}if(t.type=="tree"&&!t.config.getTreeDataMethod){this.showMsgModal("error",t.title+"组件树选择器数据不能为空."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}if(t.type=="cascader"&&!t.config.getCascaderDataMethod){this.showMsgModal("error",t.title+"组件级联选择器数据不能为空."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}if(t.type=="dyTable"&&(t.children&&t.children.length==0||!t.children)){this.showMsgModal("error",t.title+"组件内至少有一个表单组件."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}if(t.type=="group"&&(t.children&&t.children.length==0||!t.children)){this.showMsgModal("error",t.title+"组件内至少有一个表单组件."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}if(t.type=="datetime"){let h=t.config.disabledDate,g=!0;if(h.type=="beforeDay"&&(g=!!h.startDate),h.type=="afterDay"&&(g=!!h.endDate),(h.type=="dateRangeInside"||h.type=="dateRangeOutside")&&(g=!!(h.startDate&&h.endDate)),h.type=="date"&&(g=!!h.day),!g){this.showMsgModal("error",t.title+"组件有必填的内容未填写."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}}}t.isNotValid=!1}}if(x)return x;for(let i=0;i<e.length&&(e[i].children&&e[i].children.length>0&&(x=this.checkFormConfigData(e[i].children)),!x);i++);return x}}}),dE={key:0,class:"widget-drag-div",style:{"font-size":"14px",color:"#fff"}},aE=["title"],od={__name:"dragWidget",props:{widget:{type:Object,default:()=>({})}},setup(e){return c.onMounted(()=>{}),(x,i)=>e.widget.showBtn?(c.openBlock(),c.createElementBlock("div",dE,[e.widget.widgetType!="col"&&e.widget.widgetType!="td"?(c.openBlock(),c.createElementBlock("span",{key:0,class:"handle cursor-move",title:e.widget.title},null,8,aE)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)}},fE={key:0,class:"widget-btn-div",style:{"font-size":"14px",color:"#515a6e"}},bE={key:4,class:"widget-td-btn-div"},yE={style:{"border-bottom":"1px solid #e8eaec"}},zE={style:{"border-bottom":"1px solid #e8eaec"}},mE={style:{"border-bottom":"1px solid #e8eaec"}},ld={__name:"handleWidget",props:c.mergeModels({widgetIndex:{type:Number,default:0},trIndex:{type:Number,default:0}},{widget:{},widgetModifiers:{},widgetList:{},widgetListModifiers:{},pWidget:{},pWidgetModifiers:{}}),emits:["update:widget","update:widgetList","update:pWidget"],setup(e){const x=e,i=c.useModel(e,"widget"),t=c.useModel(e,"widgetList"),h=c.useModel(e,"pWidget"),g=J8(H8),u=()=>{i.value.widgetType=="td"?g.deleteWidget(t.value,x.trIndex,x.widgetIndex,"tr"):g.deleteWidget(t.value,x.widgetIndex)},o=()=>{g.moveUpWidget(t.value,x.widgetIndex)},l=()=>{g.moveDownWidget(t.value,x.widgetIndex)},d=C=>{i.value.widgetType=="rowColWidget"?g.gridAddCol(i.value.children,x.widgetIndex,C,h.value):g.gridAddCol(t.value,x.widgetIndex,C,h.value)},a=()=>{g.copyNewWidget(t.value,i.value)},b=C=>{i.value.widgetType=="tableWidget"?g.addTr(i.value.children,x.widgetIndex,C):g.addTr(t.value,x.trIndex,x.widgetIndex,C)},z=C=>{i.value.widgetType=="tableWidget"?g.addTd(i.value.children,x.widgetIndex,C):g.addTd(t.value,x.trIndex,x.widgetIndex,C)},p=()=>{g.showTdBtn=!g.showTdBtn},j=()=>{g.deleteTd(t.value,x.widgetIndex,x.trIndex)},k=C=>{if(C=="1"){if(x.widgetIndex==0)return"li-disable";{let E=t.value[x.trIndex].children,y=null;for(let _=x.widgetIndex-1;_>=0;_--){let D=E[_];if(D.rMerge)break;if(!D.cMerge){y=D;break}}if(!y)return"li-disable";let q=y.rowspan||1,T=i.value.rowspan||1;return q!=T?"li-disable":"li-enable"}}if(C=="2"){let E=t.value[x.trIndex].children,y=null;for(let _=x.widgetIndex+1;_<E.length;_++){let D=E[_];if(D.rMerge)break;if(!D.cMerge){y=D;break}}if(!y)return"li-disable";let q=y.rowspan||1,T=i.value.rowspan||1;return q!=T?"li-disable":"li-enable"}if(C=="3"){if(t.value[x.trIndex].children.length==1)return"li-disable";{let y=!0,q=i.value.rowspan||1;return t.value[x.trIndex].children.forEach(_=>{if(_.rMerge)y=!1;else{let D=_.rowspan||1;q!=D&&(y=!1)}}),y?"li-enable":"li-disable"}}if(C=="4")return(i.value.colspan||1)==1?"li-disable":"li-enable";if(C=="5"){if(x.trIndex==0)return"li-disable";{let E=null;for(let T=x.trIndex-1;T>=0;T--){let _=t.value[T].children[x.widgetIndex];if(_.cMerge)break;if(!_.rMerge){E=_;break}}if(!E)return"li-disable";let y=E.colspan||1,q=i.value.colspan||1;return y!=q?"li-disable":"li-enable"}}if(C=="6"){let E=null;for(let T=x.trIndex+1;T<t.value.length;T++){let _=t.value[T].children[x.widgetIndex];if(_.cMerge)break;if(!_.rMerge){E=_;break}}if(!E)return"li-disable";let y=E.colspan||1,q=i.value.colspan||1;return y!=q?"li-disable":"li-enable"}if(C=="7"){if(t.value.length==1)return"li-disable";{let E=!0,y=i.value.colspan||1,q=0;return t.value.forEach(T=>{let _=T.children[x.widgetIndex];if(!_.rMerge){if(_.cMerge)E=!1;else{let D=_.colspan||1;y!=D&&(E=!1)}q=q+1}}),!E||q==1?"li-disable":"li-enable"}}if(C=="8"){let E=i.value.rowspan||1,y=i.value.colspan||1;return E==1||y>1?"li-disable":"li-enable"}if(C=="9"){let E=i.value.rowspan||1,y=i.value.colspan||1,q=t.value[x.trIndex].children;for(let T=0;T<q.length;T++)if(!(q[T].cMerge||q[T].rMerge)&&(q[T].rowspan<E||q[T].colspan<y))return"li-disable";return"li-enable"}if(C=="10"){let E=i.value.rowspan||1,y=i.value.colspan||1;for(let q=0;q<t.value.length;q++){let T=t.value[q].children[x.widgetIndex];if(!(T.cMerge||T.rMerge)&&(T.rowspan<E||T.colspan<y))return"li-disable"}return"li-enable"}},S=C=>{k(C)!="li-disable"&&(C=="1"&&g.mergeCell(t.value[x.trIndex].children,x.widgetIndex,x.trIndex,"left"),C=="2"&&g.mergeCell(t.value[x.trIndex].children,x.widgetIndex,x.trIndex,"right"),C=="3"&&g.mergeCell(t.value,x.widgetIndex,x.trIndex,"allRow"),C=="4"&&g.cancelMergeCell(t.value,x.widgetIndex,x.trIndex,"row"),C=="5"&&g.mergeCell(t.value,x.widgetIndex,x.trIndex,"up"),C=="6"&&g.mergeCell(t.value,x.widgetIndex,x.trIndex,"down"),C=="7"&&g.mergeCell(t.value,x.widgetIndex,x.trIndex,"allCol"),C=="8"&&g.cancelMergeCell(t.value,x.widgetIndex,x.trIndex,"col"))};return c.onMounted(()=>{}),(C,E)=>i.value.showBtn?(c.openBlock(),c.createElementBlock("div",fE,[i.value.widgetType=="rowColWidget"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[t.value.length>1&&e.widgetIndex!=0?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-arrow-up",title:"上移组件",onClick:c.withModifiers(o,["stop"])})):c.createCommentVNode("",!0),t.value.length>1&&e.widgetIndex!=t.value.length-1?(c.openBlock(),c.createElementBlock("span",{key:1,class:"icomoon icon-arrow-down",title:"下移组件",onClick:c.withModifiers(l,["stop"])})):c.createCommentVNode("",!0),c.createElementVNode("span",{class:"icomoon icon-insertcolumn",title:"插入新列",onClick:E[0]||(E[0]=c.withModifiers(y=>d("end"),["stop"]))}),c.createElementVNode("span",{class:"icomoon icon-files-empty",title:"复制新行",onClick:c.withModifiers(a,["stop"])}),c.createElementVNode("span",{class:"icomoon icon-trash-2",title:"移除组件",onClick:c.withModifiers(u,["stop"])})],64)):c.createCommentVNode("",!0),i.value.widgetType=="col"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[t.value.length>1&&e.widgetIndex!=0?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-arrow-left",title:"左移组件",onClick:c.withModifiers(o,["stop"])})):c.createCommentVNode("",!0),t.value.length>1&&e.widgetIndex!=t.value.length-1?(c.openBlock(),c.createElementBlock("span",{key:1,class:"icomoon icon-arrow-right",title:"右移组件",onClick:c.withModifiers(l,["stop"])})):c.createCommentVNode("",!0),c.createElementVNode("span",{class:"icomoon icon-chevrons-left",title:"左插入新列",onClick:E[1]||(E[1]=c.withModifiers(y=>d("left"),["stop"]))}),c.createElementVNode("span",{class:"icomoon icon-chevrons-right",title:"右插入新列",onClick:E[2]||(E[2]=c.withModifiers(y=>d("right"),["stop"]))}),c.createElementVNode("span",{class:"icomoon icon-files-empty",title:"复制新列",onClick:c.withModifiers(a,["stop"])}),c.createElementVNode("span",{class:"icomoon icon-trash-2",title:"移除组件",onClick:c.withModifiers(u,["stop"])})],64)):c.createCommentVNode("",!0),i.value.widgetType=="tableWidget"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:2},[t.value.length>1&&e.widgetIndex!=0?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-arrow-up",title:"上移组件",onClick:c.withModifiers(o,["stop"])})):c.createCommentVNode("",!0),t.value.length>1&&e.widgetIndex!=t.value.length-1?(c.openBlock(),c.createElementBlock("span",{key:1,class:"icomoon icon-arrow-down",title:"下移组件",onClick:c.withModifiers(l,["stop"])})):c.createCommentVNode("",!0),c.createElementVNode("span",{class:"icomoon icon-insertcolumn",title:"插入新列",onClick:E[3]||(E[3]=c.withModifiers(y=>z("end"),["stop"]))}),c.createElementVNode("span",{class:"icomoon icon-insertrow",title:"插入新行",onClick:E[4]||(E[4]=c.withModifiers(y=>b("end"),["stop"]))}),c.createElementVNode("span",{class:"icomoon icon-files-empty",title:"复制新表格",onClick:c.withModifiers(a,["stop"])}),c.createElementVNode("span",{class:"icomoon icon-trash-2",title:"移除组件",onClick:c.withModifiers(u,["stop"])})],64)):c.createCommentVNode("",!0),i.value.widgetType=="td"?(c.openBlock(),c.createElementBlock("span",{key:3,class:"icomoon icon-menu",title:"单元格操作",onClick:c.withModifiers(p,["stop"])})):c.createCommentVNode("",!0),c.unref(g).showTdBtn?(c.openBlock(),c.createElementBlock("div",bE,[c.createElementVNode("ul",yE,[c.createElementVNode("li",{class:"li-enable",onClick:E[5]||(E[5]=c.withModifiers(y=>b("up"),["stop"]))},"向上插入新行"),c.createElementVNode("li",{class:"li-enable",onClick:E[6]||(E[6]=c.withModifiers(y=>b("down"),["stop"]))},"向下插入新行"),c.createElementVNode("li",{class:c.normalizeClass(k("9")),onClick:c.withModifiers(u,["stop"])},"删除整行",2)]),c.createElementVNode("ul",zE,[c.createElementVNode("li",{class:"li-enable",onClick:E[7]||(E[7]=c.withModifiers(y=>z("left"),["stop"]))},"向左插入新列"),c.createElementVNode("li",{class:"li-enable",onClick:E[8]||(E[8]=c.withModifiers(y=>z("right"),["stop"]))},"向右插入新列"),c.createElementVNode("li",{class:c.normalizeClass(k("10")),onClick:c.withModifiers(j,["stop"])},"删除整列",2)]),c.createElementVNode("ul",mE,[c.createElementVNode("li",{class:c.normalizeClass(k("1")),onClick:E[9]||(E[9]=c.withModifiers(y=>S("1"),["stop"]))},"向左合并单元格",2),c.createElementVNode("li",{class:c.normalizeClass(k("2")),onClick:E[10]||(E[10]=c.withModifiers(y=>S("2"),["stop"]))},"向右合并单元格",2),c.createElementVNode("li",{class:c.normalizeClass(k("3")),onClick:E[11]||(E[11]=c.withModifiers(y=>S("3"),["stop"]))},"合并整行",2),c.createElementVNode("li",{class:c.normalizeClass(k("4")),onClick:E[12]||(E[12]=c.withModifiers(y=>S("4"),["stop"]))},"撤销行合并",2)]),c.createElementVNode("ul",null,[c.createElementVNode("li",{class:c.normalizeClass(k("5")),onClick:E[13]||(E[13]=c.withModifiers(y=>S("5"),["stop"]))},"向上合并单元格",2),c.createElementVNode("li",{class:c.normalizeClass(k("6")),onClick:E[14]||(E[14]=c.withModifiers(y=>S("6"),["stop"]))},"向下合并单元格",2),c.createElementVNode("li",{class:c.normalizeClass(k("7")),onClick:E[15]||(E[15]=c.withModifiers(y=>S("7"),["stop"]))},"合并整列",2),c.createElementVNode("li",{class:c.normalizeClass(k("8")),onClick:E[16]||(E[16]=c.withModifiers(y=>S("8"),["stop"]))},"撤销列合并",2)])])):c.createCommentVNode("",!0),i.value.widgetType=="dyTableWidget"||i.value.widgetType=="groupWidget"?(c.openBlock(),c.createElementBlock("span",{key:5,class:"icomoon icon-bin2",title:"清除内部所有组件",onClick:E[17]||(E[17]=c.withModifiers(y=>c.unref(g).clearDyTableOrGroupAllWidget(),["stop"]))})):c.createCommentVNode("",!0),i.value.pType=="formWidget"?(c.openBlock(),c.createElementBlock("span",{key:6,class:"icomoon icon-trash-2",title:"移除组件",onClick:c.withModifiers(u,["stop"])})):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)}},pE={class:"panel-option"},jE=["onUpdate:modelValue"],wE={key:0},qE={__name:"containerAttribute",setup(e){const x=J8(H8),i=t=>{let h=t?t.target.value:x.selectWidget.splitType;t&&(x.selectWidget.splitType=t.target.value);let g=x.selectWidget.children;if(h=="span"){let u=100/g.length;u=`0 0 ${u}%`;let o=parseInt(24/g.length);g.forEach(l=>{l.style={flex:u},l.flex=o})}else{let u=document.body.clientWidth-120-280;x.formConfig.formWidth&&(u=x.formConfig.formWidth);let o=parseInt(u/g.length);g.forEach(l=>{l.style={flex:`0 0 ${o}px`},l.flex=o}),g[g.length-1].style.flex="1 1 auto",g[g.length-1].flex=0}x.saveHistoryStep()};return c.onMounted(()=>{}),(t,h)=>c.unref(x).selectWidget?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.unref(x).selectWidget.widgetType=="rowColWidget"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createElementVNode("div",pE,[h[3]||(h[3]=c.createElementVNode("span",null,"栅格分割方式:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"span",value:"span","onUpdate:modelValue":h[0]||(h[0]=g=>c.unref(x).selectWidget.splitType=g),onInput:i},null,544),[[c.vModelRadio,c.unref(x).selectWidget.splitType]]),h[4]||(h[4]=c.createElementVNode("label",{for:"span"},"24等分",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"px",value:"px","onUpdate:modelValue":h[1]||(h[1]=g=>c.unref(x).selectWidget.splitType=g),onInput:i},null,544),[[c.vModelRadio,c.unref(x).selectWidget.splitType]]),h[5]||(h[5]=c.createElementVNode("label",{for:"px"},"像素",-1))]),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(x).selectWidget.children,(g,u)=>(c.openBlock(),c.createElementBlock("div",{key:g.id,class:"panel-option"},[c.createElementVNode("span",null,"列"+c.toDisplayString(u+1)+":",1),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":o=>g.flex=o,type:"number",style:{width:"80px"},onBlur:h[2]||(h[2]=o=>i(null))},null,40,jE),[[c.vModelText,g.flex]]),c.unref(x).selectWidget.splitType=="px"?(c.openBlock(),c.createElementBlock("span",wE,"(0=自适应)")):c.createCommentVNode("",!0)]))),128))],64)):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0)}},OE={class:"panel-option"},kE={class:"panel-option"},vE={class:"panel-option"},SE={class:"panel-option"},EE={class:"panel-option"},CE={class:"panel-option"},TE={key:1,style:{"font-weight":"600","margin-left":"5px"}},PE={class:"panel-option"},_E={class:"panel-option"},AE={class:"panel-option"},QE={class:"panel-option"},$E={class:"panel-option"},ME={class:"panel-option"},DE={key:2,class:"panel-option"},RE={key:3,class:"panel-option"},NE={key:4,class:"panel-option"},VE={key:5,class:"panel-option"},BE={key:6,class:"panel-option"},ZE={key:7,class:"panel-option"},IE={key:8,class:"panel-option"},LE={key:9,class:"panel-option"},WE={key:10,class:"panel-option"},XE={__name:"baseAttribute",setup(e){const x=J8(H8),i=c.ref(""),t=c.ref("");let h="#515a6e";const g=E=>{if(E.target.value<=0){x.selectWidget.styleValue.width=null,x.selectWidget.style.width="",E.target.value=null;return}else x.selectWidget.styleValue.width=E.target.value,x.selectWidget.style.width=E.target.value+"px"},u=E=>{if(E.target.value<=0){x.selectWidget.styleValue.height=null,x.selectWidget.style.height="",E.target.value=null;return}else x.selectWidget.styleValue.height=E.target.value,x.selectWidget.style.height=E.target.value+"px"},o=E=>{if(E.target.value<=0){x.selectWidget.styleValue.fontSize=null,x.selectWidget.style.fontSize="",E.target.value=null;return}else x.selectWidget.styleValue.fontSize=E.target.value,x.selectWidget.style.fontSize=E.target.value+"px"},l=E=>{if(E.target.value<=0){x.selectWidget.styleValue.fontWeight=null,x.selectWidget.style.fontWeight=null,E.target.value=null;return}else x.selectWidget.styleValue.fontWeight=E.target.value,x.selectWidget.style.fontWeight=E.target.value},d=E=>{if(E.target.value)x.selectWidget.styleValue.fontFamily=E.target.value,x.selectWidget.style.fontFamily=`"${E.target.value}"`;else{x.selectWidget.styleValue.fontFamily="",x.selectWidget.style.fontFamily="";return}},a=E=>{if(E.target.value)x.selectWidget.styleValue.color=E.target.value,x.selectWidget.style.color=E.target.value;else{x.selectWidget.styleValue.color=h;let y={...x.selectWidget.style};delete y.color,x.selectWidget.style={...y}}},b=E=>{const[y,q,T]=E.match(/\d+/g).map(Number);return`#${((1<<24)+(y<<16)+(q<<8)+T).toString(16).slice(1)}`},z=E=>{if(E.target.value<=0){x.formConfig.labelWidth!="80"?x.selectWidget.labelStyle.width=x.formConfig.labelWidth+"px":x.selectWidget.labelStyle.width="",x.selectWidget.labelStyleValue.width=null,E.target.value=null;return}else x.selectWidget.labelStyleValue.width=E.target.value,x.selectWidget.labelStyle.width=E.target.value+"px"},p=E=>{if(E.target.value)x.selectWidget.labelStyleValue.fontFamily=E.target.value,x.selectWidget.labelStyle.fontFamily=`"${E.target.value}"`;else{x.selectWidget.labelStyleValue.fontFamily="",x.selectWidget.labelStyle.fontFamily="";return}},j=E=>{if(E.target.value<=0){x.selectWidget.labelStyleValue.fontSize=null,x.selectWidget.labelStyle.fontSize="",E.target.value=null;return}else x.selectWidget.labelStyleValue.fontSize=E.target.value,x.selectWidget.labelStyle.fontSize=E.target.value+"px"},k=E=>{if(E.target.value<=0){x.selectWidget.labelStyleValue.fontWeight=null,x.selectWidget.labelStyle.fontWeight=null,E.target.value=null;return}else x.selectWidget.labelStyleValue.fontWeight=E.target.value,x.selectWidget.labelStyle.fontWeight=E.target.value},S=E=>{if(E.target.value)x.selectWidget.labelStyleValue.color=E.target.value,x.selectWidget.labelStyle.color=E.target.value;else{x.selectWidget.labelStyleValue.color=h;let y={...x.selectWidget.labelStyle};delete y.color,x.selectWidget.labelStyle={...y}}},C=()=>{i.value=x.selectWidget.type,t.value=x.selectWidget.pType,x.selectWidget.styleValue.color||(x.selectWidget.styleValue.color=h),x.selectWidget.labelStyleValue&&!x.selectWidget.labelStyleValue.color&&(x.selectWidget.labelStyleValue.color=h)};return c.onMounted(()=>{C();const E=document.body,y=window.getComputedStyle(E);y.color&&(h=y.color,h.indexOf("#")==-1&&(h=b(h)))}),c.watch(x.selectWidget.style,(E,y)=>{x.saveHistoryStep()}),c.watch(x.selectWidget.labelStyle,(E,y)=>{x.saveHistoryStep()}),(E,y)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[t.value=="formWidget"&&i.value!="label"&&i.value!="dyTable"&&i.value!="group"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.unref(x).selectWidget.config.showLabel?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[y[38]||(y[38]=c.createElementVNode("p",{style:{"font-weight":"600","margin-left":"5px"}}," 标签样式: ",-1)),c.createElementVNode("div",OE,[y[25]||(y[25]=c.createElementVNode("span",null,"宽度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[0]||(y[0]=q=>c.unref(x).selectWidget.labelStyleValue.width=q),type:"number",style:{width:"80px"},onBlur:z},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.width]]),y[26]||(y[26]=c.createTextVNode("px ",-1)),y[27]||(y[27]=c.createElementVNode("p",{style:{"margin-left":"40px"}},"(默认值:继承表单全局的标签宽度)",-1))]),c.createElementVNode("div",kE,[y[28]||(y[28]=c.createElementVNode("span",null,"字体:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[1]||(y[1]=q=>c.unref(x).selectWidget.labelStyleValue.fontFamily=q),onBlur:p},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.fontFamily]])]),c.createElementVNode("div",vE,[y[29]||(y[29]=c.createElementVNode("span",null,"字体大小:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[2]||(y[2]=q=>c.unref(x).selectWidget.labelStyleValue.fontSize=q),type:"number",style:{width:"80px"},onBlur:j},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.fontSize]]),y[30]||(y[30]=c.createTextVNode("px ",-1))]),c.createElementVNode("div",SE,[y[31]||(y[31]=c.createElementVNode("span",null,"字体粗细度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[3]||(y[3]=q=>c.unref(x).selectWidget.labelStyleValue.fontWeight=q),type:"number",style:{width:"80px"},onBlur:k},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.fontWeight]]),y[32]||(y[32]=c.createTextVNode("(100~900) ",-1))]),c.createElementVNode("div",EE,[y[33]||(y[33]=c.createElementVNode("span",null,"字体颜色:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[4]||(y[4]=q=>c.unref(x).selectWidget.labelStyleValue.color=q),type:"color",style:{width:"80px",height:"23px"},onInput:S},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.color]]),c.createElementVNode("button",{style:{"margin-left":"10px"},onClick:S},"恢复默认值")]),c.createElementVNode("div",CE,[y[34]||(y[34]=c.createElementVNode("span",null,"内容位置:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":y[5]||(y[5]=q=>c.unref(x).selectWidget.labelStyle.textAlign=q)},null,512),[[c.vModelRadio,c.unref(x).selectWidget.labelStyle.textAlign]]),y[35]||(y[35]=c.createElementVNode("label",{for:"left"},"居左",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"center",value:"center","onUpdate:modelValue":y[6]||(y[6]=q=>c.unref(x).selectWidget.labelStyle.textAlign=q)},null,512),[[c.vModelRadio,c.unref(x).selectWidget.labelStyle.textAlign]]),y[36]||(y[36]=c.createElementVNode("label",{for:"center"},"居中",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":y[7]||(y[7]=q=>c.unref(x).selectWidget.labelStyle.textAlign=q)},null,512),[[c.vModelRadio,c.unref(x).selectWidget.labelStyle.textAlign]]),y[37]||(y[37]=c.createElementVNode("label",{for:"right"},"居右",-1))])],64)):c.createCommentVNode("",!0),t.value=="formWidget"&&i.value!="label"?(c.openBlock(),c.createElementBlock("p",TE," 输入框样式: ")):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0),i.value=="dyTable"||i.value=="group"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createElementVNode("div",PE,[y[39]||(y[39]=c.createElementVNode("span",null,"标签字体:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[8]||(y[8]=q=>c.unref(x).selectWidget.labelStyleValue.fontFamily=q),onBlur:p},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.fontFamily]])]),c.createElementVNode("div",_E,[y[40]||(y[40]=c.createElementVNode("span",null,"标签字体大小:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[9]||(y[9]=q=>c.unref(x).selectWidget.labelStyleValue.fontSize=q),type:"number",min:"16",style:{width:"80px"},onBlur:j},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.fontSize]]),y[41]||(y[41]=c.createTextVNode("px ",-1))]),c.createElementVNode("div",AE,[y[42]||(y[42]=c.createElementVNode("span",null,"字体粗细度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[10]||(y[10]=q=>c.unref(x).selectWidget.labelStyleValue.fontWeight=q),type:"number",style:{width:"80px"},onBlur:k},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.fontWeight]]),y[43]||(y[43]=c.createTextVNode("(100~900) ",-1))]),c.createElementVNode("div",QE,[y[44]||(y[44]=c.createElementVNode("span",null,"标签字体颜色:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[11]||(y[11]=q=>c.unref(x).selectWidget.labelStyleValue.color=q),type:"color",style:{width:"80px",height:"23px"},onInput:S},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.color]]),c.createElementVNode("button",{style:{"margin-left":"10px"},onClick:S},"恢复默认值")]),c.createElementVNode("div",$E,[y[45]||(y[45]=c.createElementVNode("span",null,"标签内边距:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[12]||(y[12]=q=>c.unref(x).selectWidget.labelStyle.padding=q)},null,512),[[c.vModelText,c.unref(x).selectWidget.labelStyle.padding]]),y[46]||(y[46]=c.createElementVNode("p",{style:{"margin-left":"55px"}},"(单位:px;顺序:上 右 下 左)",-1)),y[47]||(y[47]=c.createElementVNode("p",{style:{"margin-left":"55px"}},"(如:5px   5px   5px   5px)",-1))]),c.createElementVNode("div",ME,[y[48]||(y[48]=c.createElementVNode("span",null,"标签外边距:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[13]||(y[13]=q=>c.unref(x).selectWidget.labelStyle.margin=q)},null,512),[[c.vModelText,c.unref(x).selectWidget.labelStyle.margin]]),y[49]||(y[49]=c.createElementVNode("p",{style:{"margin-left":"55px"}},"(单位:px;顺序:上 右 下 左)",-1)),y[50]||(y[50]=c.createElementVNode("p",{style:{"margin-left":"55px"}},"(如:5px   5px   5px   5px)",-1))])],64)):c.createCommentVNode("",!0),c.unref(x).showStyle.width.includes(i.value)?(c.openBlock(),c.createElementBlock("div",DE,[y[51]||(y[51]=c.createElementVNode("span",null,"宽度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[14]||(y[14]=q=>c.unref(x).selectWidget.styleValue.width=q),type:"number",style:{width:"80px"},onBlur:g},null,544),[[c.vModelText,c.unref(x).selectWidget.styleValue.width]]),y[52]||(y[52]=c.createTextVNode("px(默认值:100%) ",-1))])):c.createCommentVNode("",!0),c.unref(x).showStyle.height.includes(i.value)?(c.openBlock(),c.createElementBlock("div",RE,[y[53]||(y[53]=c.createElementVNode("span",null,"高度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[15]||(y[15]=q=>c.unref(x).selectWidget.styleValue.height=q),type:"number",style:{width:"80px"},onBlur:u},null,544),[[c.vModelText,c.unref(x).selectWidget.styleValue.height]]),y[54]||(y[54]=c.createTextVNode("px(默认值:100%) ",-1))])):c.createCommentVNode("",!0),c.unref(x).showStyle.padding.includes(i.value)?(c.openBlock(),c.createElementBlock("div",NE,[y[55]||(y[55]=c.createElementVNode("span",null,"内边距:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[16]||(y[16]=q=>c.unref(x).selectWidget.style.padding=q)},null,512),[[c.vModelText,c.unref(x).selectWidget.style.padding]]),y[56]||(y[56]=c.createElementVNode("p",{style:{"margin-left":"55px"}},"(单位:px;顺序:上 右 下 左)",-1)),y[57]||(y[57]=c.createElementVNode("p",{style:{"margin-left":"55px"}},"(如:5px   5px   5px   5px)",-1))])):c.createCommentVNode("",!0),c.unref(x).showStyle.margin.includes(i.value)?(c.openBlock(),c.createElementBlock("div",VE,[y[58]||(y[58]=c.createElementVNode("span",null,"外边距:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[17]||(y[17]=q=>c.unref(x).selectWidget.style.margin=q)},null,512),[[c.vModelText,c.unref(x).selectWidget.style.margin]]),y[59]||(y[59]=c.createElementVNode("p",{style:{"margin-left":"55px"}},"(单位:px;顺序:上 右 下 左)",-1)),y[60]||(y[60]=c.createElementVNode("p",{style:{"margin-left":"55px"}},"(如:5px   5px   5px   5px)",-1))])):c.createCommentVNode("",!0),c.unref(x).showStyle.fontFamily.includes(i.value)?(c.openBlock(),c.createElementBlock("div",BE,[y[61]||(y[61]=c.createElementVNode("span",null,"字体:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[18]||(y[18]=q=>c.unref(x).selectWidget.styleValue.fontFamily=q),onBlur:d},null,544),[[c.vModelText,c.unref(x).selectWidget.styleValue.fontFamily]])])):c.createCommentVNode("",!0),c.unref(x).showStyle.fontSize.includes(i.value)?(c.openBlock(),c.createElementBlock("div",ZE,[y[62]||(y[62]=c.createElementVNode("span",null,"字体大小:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[19]||(y[19]=q=>c.unref(x).selectWidget.styleValue.fontSize=q),type:"number",style:{width:"80px"},onBlur:o},null,544),[[c.vModelText,c.unref(x).selectWidget.styleValue.fontSize]]),y[63]||(y[63]=c.createTextVNode("px ",-1))])):c.createCommentVNode("",!0),c.unref(x).showStyle.fontSize.includes(i.value)?(c.openBlock(),c.createElementBlock("div",IE,[y[64]||(y[64]=c.createElementVNode("span",null,"字体粗细度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[20]||(y[20]=q=>c.unref(x).selectWidget.styleValue.fontWeight=q),type:"number",style:{width:"80px"},onBlur:l},null,544),[[c.vModelText,c.unref(x).selectWidget.styleValue.fontWeight]]),y[65]||(y[65]=c.createTextVNode("(100~900) ",-1))])):c.createCommentVNode("",!0),c.unref(x).showStyle.color.includes(i.value)?(c.openBlock(),c.createElementBlock("div",LE,[y[66]||(y[66]=c.createElementVNode("span",null,"字体颜色:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[21]||(y[21]=q=>c.unref(x).selectWidget.styleValue.color=q),type:"color",style:{width:"80px",height:"23px"},onInput:a},null,544),[[c.vModelText,c.unref(x).selectWidget.styleValue.color]]),c.createElementVNode("button",{style:{"margin-left":"10px"},onClick:a},"恢复默认值")])):c.createCommentVNode("",!0),c.unref(x).showStyle.textAlign.includes(i.value)?(c.openBlock(),c.createElementBlock("div",WE,[y[67]||(y[67]=c.createElementVNode("span",null,"内容位置:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":y[22]||(y[22]=q=>c.unref(x).selectWidget.style.textAlign=q)},null,512),[[c.vModelRadio,c.unref(x).selectWidget.style.textAlign]]),y[68]||(y[68]=c.createElementVNode("label",{for:"left"},"居左",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"center",value:"center","onUpdate:modelValue":y[23]||(y[23]=q=>c.unref(x).selectWidget.style.textAlign=q)},null,512),[[c.vModelRadio,c.unref(x).selectWidget.style.textAlign]]),y[69]||(y[69]=c.createElementVNode("label",{for:"center"},"居中",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":y[24]||(y[24]=q=>c.unref(x).selectWidget.style.textAlign=q)},null,512),[[c.vModelRadio,c.unref(x).selectWidget.style.textAlign]]),y[70]||(y[70]=c.createElementVNode("label",{for:"right"},"居右",-1))])):c.createCommentVNode("",!0)],64))}};let Sh=[],cd=[];(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(x=>x?parseInt(x,36):1);for(let x=0,i=0;x<e.length;x++)(x%2?cd:Sh).push(i=i+e[x])})();function UE(e){if(e<768)return!1;for(let x=0,i=Sh.length;;){let t=x+i>>1;if(e<Sh[t])i=t;else if(e>=cd[t])x=t+1;else return!0;if(x==i)return!1}}function Uo(e){return e>=127462&&e<=127487}const Fo=8205;function FE(e,x,i=!0,t=!0){return(i?rd:YE)(e,x,t)}function rd(e,x,i){if(x==e.length)return x;x&&dd(e.charCodeAt(x))&&ad(e.charCodeAt(x-1))&&x--;let t=S9(e,x);for(x+=Yo(t);x<e.length;){let h=S9(e,x);if(t==Fo||h==Fo||i&&UE(h))x+=Yo(h),t=h;else if(Uo(h)){let g=0,u=x-2;for(;u>=0&&Uo(S9(e,u));)g++,u-=2;if(g%2==0)break;x+=2}else break}return x}function YE(e,x,i){for(;x>0;){let t=rd(e,x-2,i);if(t<x)return t;x--}return 0}function S9(e,x){let i=e.charCodeAt(x);if(!ad(i)||x+1==e.length)return i;let t=e.charCodeAt(x+1);return dd(t)?(i-55296<<10)+(t-56320)+65536:i}function dd(e){return e>=56320&&e<57344}function ad(e){return e>=55296&&e<56320}function Yo(e){return e<65536?1:2}class T0{lineAt(x){if(x<0||x>this.length)throw new RangeError(`Invalid position ${x} in document of length ${this.length}`);return this.lineInner(x,!1,1,0)}line(x){if(x<1||x>this.lines)throw new RangeError(`Invalid line number ${x} in ${this.lines}-line document`);return this.lineInner(x,!0,1,0)}replace(x,i,t){[x,i]=Z8(this,x,i);let h=[];return this.decompose(0,x,h,2),t.length&&t.decompose(0,t.length,h,3),this.decompose(i,this.length,h,1),ox.from(h,this.length-(i-x)+t.length)}append(x){return this.replace(this.length,this.length,x)}slice(x,i=this.length){[x,i]=Z8(this,x,i);let t=[];return this.decompose(x,i,t,0),ox.from(t,i-x)}eq(x){if(x==this)return!0;if(x.length!=this.length||x.lines!=this.lines)return!1;let i=this.scanIdentical(x,1),t=this.length-this.scanIdentical(x,-1),h=new ni(this),g=new ni(x);for(let u=i,o=i;;){if(h.next(u),g.next(u),u=0,h.lineBreak!=g.lineBreak||h.done!=g.done||h.value!=g.value)return!1;if(o+=h.value.length,h.done||o>=t)return!0}}iter(x=1){return new ni(this,x)}iterRange(x,i=this.length){return new fd(this,x,i)}iterLines(x,i){let t;if(x==null)t=this.iter();else{i==null&&(i=this.lines+1);let h=this.line(x).from;t=this.iterRange(h,Math.max(h,i==this.lines+1?this.length:i<=1?0:this.line(i-1).to))}return new bd(t)}toString(){return this.sliceString(0)}toJSON(){let x=[];return this.flatten(x),x}constructor(){}static of(x){if(x.length==0)throw new RangeError("A document must have at least one line");return x.length==1&&!x[0]?T0.empty:x.length<=32?new gn(x):ox.from(gn.split(x,[]))}}class gn extends T0{constructor(x,i=GE(x)){super(),this.text=x,this.length=i}get lines(){return this.text.length}get children(){return null}lineInner(x,i,t,h){for(let g=0;;g++){let u=this.text[g],o=h+u.length;if((i?t:o)>=x)return new HE(h,o,t,u);h=o+1,t++}}decompose(x,i,t,h){let g=x<=0&&i>=this.length?this:new gn(Go(this.text,x,i),Math.min(i,this.length)-Math.max(0,x));if(h&1){let u=t.pop(),o=k3(g.text,u.text.slice(),0,g.length);if(o.length<=32)t.push(new gn(o,u.length+g.length));else{let l=o.length>>1;t.push(new gn(o.slice(0,l)),new gn(o.slice(l)))}}else t.push(g)}replace(x,i,t){if(!(t instanceof gn))return super.replace(x,i,t);[x,i]=Z8(this,x,i);let h=k3(this.text,k3(t.text,Go(this.text,0,x)),i),g=this.length+t.length-(i-x);return h.length<=32?new gn(h,g):ox.from(gn.split(h,[]),g)}sliceString(x,i=this.length,t=`
157698
+ }`;var q0=ns(function(){return Q0(v,u0+"return "+U).apply(i,P)});if(q0.source=U,Yt(q0))throw q0;return q0}function rq(s){return M0(s).toLowerCase()}function dq(s){return M0(s).toUpperCase()}function aq(s,r,f){if(s=M0(s),s&&(f||r===i))return og(s);if(!s||!(r=l1(r)))return s;var m=L1(s),w=L1(r),v=lg(m,w),P=cg(m,w)+1;return Jx(m,v,P).join("")}function fq(s,r,f){if(s=M0(s),s&&(f||r===i))return s.slice(0,dg(s)+1);if(!s||!(r=l1(r)))return s;var m=L1(s),w=cg(m,L1(r))+1;return Jx(m,0,w).join("")}function bq(s,r,f){if(s=M0(s),s&&(f||r===i))return s.replace(Ye,"");if(!s||!(r=l1(r)))return s;var m=L1(s),w=lg(m,L1(r));return Jx(m,w).join("")}function yq(s,r){var f=L,m=V;if(J0(r)){var w="separator"in r?r.separator:w;f="length"in r?w0(r.length):f,m="omission"in r?l1(r.omission):m}s=M0(s);var v=s.length;if(e8(s)){var P=L1(s);v=P.length}if(f>=v)return s;var A=f-t8(m);if(A<1)return m;var M=P?Jx(P,0,A).join(""):s.slice(0,A);if(w===i)return M+m;if(P&&(A+=M.length-A),Gt(w)){if(s.slice(A).search(w)){var B,I=M;for(w.global||(w=rt(w.source,M0(P7.exec(w))+"g")),w.lastIndex=0;B=w.exec(I);)var U=B.index;M=M.slice(0,U===i?A:U)}}else if(s.indexOf(l1(w),A)!=A){var K=M.lastIndexOf(w);K>-1&&(M=M.slice(0,K))}return M+m}function zq(s){return s=M0(s),s&&Cb.test(s)?s.replace(E7,Uy):s}var mq=c8(function(s,r,f){return s+(f?" ":"")+r.toUpperCase()}),Jt=xu("toUpperCase");function Ju(s,r,f){return s=M0(s),r=f?i:r,r===i?Zy(s)?Gy(s):Ay(s):s.match(r)||[]}var ns=O0(function(s,r){try{return s1(s,i,r)}catch(f){return Yt(f)?f:new y0(f)}}),pq=Ex(function(s,r){return S1(r,function(f){f=ex(f),vx(s,f,Ut(s[f],s))}),s});function jq(s){var r=s==null?0:s.length,f=l0();return s=r?G0(s,function(m){if(typeof m[1]!="function")throw new E1(u);return[f(m[0]),m[1]]}):[],O0(function(m){for(var w=-1;++w<r;){var v=s[w];if(s1(v[0],this,m))return s1(v[1],this,m)}})}function wq(s){return Uz(T1(s,b))}function n9(s){return function(){return s}}function qq(s,r){return s==null||s!==s?r:s}var Oq=eu(),kq=eu(!0);function Hn(s){return s}function x9(s){return Ag(typeof s=="function"?s:T1(s,b))}function vq(s){return $g(T1(s,b))}function Sq(s,r){return Mg(s,T1(r,b))}var Eq=O0(function(s,r){return function(f){return m2(f,s,r)}}),Cq=O0(function(s,r){return function(f){return m2(s,f,r)}});function i9(s,r,f){var m=pn(r),w=a5(r,m);f==null&&!(J0(r)&&(w.length||!m.length))&&(f=r,r=s,s=this,w=a5(r,pn(r)));var v=!(J0(f)&&"chain"in f)||!!f.chain,P=Tx(s);return S1(w,function(A){var M=r[A];s[A]=M,P&&(s.prototype[A]=function(){var B=this.__chain__;if(v||B){var I=s(this.__wrapped__),U=I.__actions__=Fn(this.__actions__);return U.push({func:M,args:arguments,thisArg:s}),I.__chain__=B,I}return M.apply(s,Ux([this.value()],arguments))})}),s}function Tq(){return kn._===this&&(kn._=iz),this}function e9(){}function Pq(s){return s=w0(s),O0(function(r){return Dg(r,s)})}var _q=Qt(G0),Aq=Qt(tg),Qq=Qt(ht);function xs(s){return Bt(s)?gt(ex(s)):lm(s)}function $q(s){return function(r){return s==null?i:S4(s,r)}}var Mq=hu(),Dq=hu(!0);function t9(){return[]}function h9(){return!1}function Rq(){return{}}function Nq(){return""}function Vq(){return!0}function Bq(s,r){if(s=w0(s),s<1||s>C0)return[];var f=D0,m=An(s,D0);r=l0(r),s-=D0;for(var w=ot(m,r);++f<s;)r(f);return w}function Zq(s){return p0(s)?G0(s,ex):c1(s)?[s]:Fn(ju(M0(s)))}function Iq(s){var r=++nz;return M0(s)+r}var Lq=p5(function(s,r){return s+r},0),Wq=$t("ceil"),Xq=p5(function(s,r){return s/r},1),Uq=$t("floor");function Fq(s){return s&&s.length?d5(s,Hn,pt):i}function Yq(s,r){return s&&s.length?d5(s,l0(r,2),pt):i}function Gq(s){return ug(s,Hn)}function Hq(s,r){return ug(s,l0(r,2))}function Kq(s){return s&&s.length?d5(s,Hn,Ot):i}function Jq(s,r){return s&&s.length?d5(s,l0(r,2),Ot):i}var nO=p5(function(s,r){return s*r},1),xO=$t("round"),iO=p5(function(s,r){return s-r},0);function eO(s){return s&&s.length?st(s,Hn):0}function tO(s,r){return s&&s.length?st(s,l0(r,2)):0}return O.after=vj,O.ary=_u,O.assign=dw,O.assignIn=Xu,O.assignInWith=A5,O.assignWith=aw,O.at=fw,O.before=Au,O.bind=Ut,O.bindAll=pq,O.bindKey=Qu,O.castArray=Rj,O.chain=Cu,O.chunk=Um,O.compact=Fm,O.concat=Ym,O.cond=jq,O.conforms=wq,O.constant=n9,O.countBy=ej,O.create=bw,O.curry=$u,O.curryRight=Mu,O.debounce=Du,O.defaults=yw,O.defaultsDeep=zw,O.defer=Sj,O.delay=Ej,O.difference=Gm,O.differenceBy=Hm,O.differenceWith=Km,O.drop=Jm,O.dropRight=np,O.dropRightWhile=xp,O.dropWhile=ip,O.fill=ep,O.filter=hj,O.flatMap=sj,O.flatMapDeep=oj,O.flatMapDepth=lj,O.flatten=ku,O.flattenDeep=tp,O.flattenDepth=hp,O.flip=Cj,O.flow=Oq,O.flowRight=kq,O.fromPairs=gp,O.functions=kw,O.functionsIn=vw,O.groupBy=cj,O.initial=sp,O.intersection=op,O.intersectionBy=lp,O.intersectionWith=cp,O.invert=Ew,O.invertBy=Cw,O.invokeMap=dj,O.iteratee=x9,O.keyBy=aj,O.keys=pn,O.keysIn=Gn,O.map=S5,O.mapKeys=Pw,O.mapValues=_w,O.matches=vq,O.matchesProperty=Sq,O.memoize=C5,O.merge=Aw,O.mergeWith=Uu,O.method=Eq,O.methodOf=Cq,O.mixin=i9,O.negate=T5,O.nthArg=Pq,O.omit=Qw,O.omitBy=$w,O.once=Tj,O.orderBy=fj,O.over=_q,O.overArgs=Pj,O.overEvery=Aq,O.overSome=Qq,O.partial=Ft,O.partialRight=Ru,O.partition=bj,O.pick=Mw,O.pickBy=Fu,O.property=xs,O.propertyOf=$q,O.pull=fp,O.pullAll=Su,O.pullAllBy=bp,O.pullAllWith=yp,O.pullAt=zp,O.range=Mq,O.rangeRight=Dq,O.rearg=_j,O.reject=mj,O.remove=mp,O.rest=Aj,O.reverse=Wt,O.sampleSize=jj,O.set=Rw,O.setWith=Nw,O.shuffle=wj,O.slice=pp,O.sortBy=kj,O.sortedUniq=Sp,O.sortedUniqBy=Ep,O.split=sq,O.spread=Qj,O.tail=Cp,O.take=Tp,O.takeRight=Pp,O.takeRightWhile=_p,O.takeWhile=Ap,O.tap=Fp,O.throttle=$j,O.thru=v5,O.toArray=Iu,O.toPairs=Yu,O.toPairsIn=Gu,O.toPath=Zq,O.toPlainObject=Wu,O.transform=Vw,O.unary=Mj,O.union=Qp,O.unionBy=$p,O.unionWith=Mp,O.uniq=Dp,O.uniqBy=Rp,O.uniqWith=Np,O.unset=Bw,O.unzip=Xt,O.unzipWith=Eu,O.update=Zw,O.updateWith=Iw,O.values=a8,O.valuesIn=Lw,O.without=Vp,O.words=Ju,O.wrap=Dj,O.xor=Bp,O.xorBy=Zp,O.xorWith=Ip,O.zip=Lp,O.zipObject=Wp,O.zipObjectDeep=Xp,O.zipWith=Up,O.entries=Yu,O.entriesIn=Gu,O.extend=Xu,O.extendWith=A5,i9(O,O),O.add=Lq,O.attempt=ns,O.camelCase=Fw,O.capitalize=Hu,O.ceil=Wq,O.clamp=Ww,O.clone=Nj,O.cloneDeep=Bj,O.cloneDeepWith=Zj,O.cloneWith=Vj,O.conformsTo=Ij,O.deburr=Ku,O.defaultTo=qq,O.divide=Xq,O.endsWith=Yw,O.eq=X1,O.escape=Gw,O.escapeRegExp=Hw,O.every=tj,O.find=gj,O.findIndex=qu,O.findKey=mw,O.findLast=uj,O.findLastIndex=Ou,O.findLastKey=pw,O.floor=Uq,O.forEach=Tu,O.forEachRight=Pu,O.forIn=jw,O.forInRight=ww,O.forOwn=qw,O.forOwnRight=Ow,O.get=Ht,O.gt=Lj,O.gte=Wj,O.has=Sw,O.hasIn=Kt,O.head=vu,O.identity=Hn,O.includes=rj,O.indexOf=up,O.inRange=Xw,O.invoke=Tw,O.isArguments=T4,O.isArray=p0,O.isArrayBuffer=Xj,O.isArrayLike=Yn,O.isArrayLikeObject=tn,O.isBoolean=Uj,O.isBuffer=n4,O.isDate=Fj,O.isElement=Yj,O.isEmpty=Gj,O.isEqual=Hj,O.isEqualWith=Kj,O.isError=Yt,O.isFinite=Jj,O.isFunction=Tx,O.isInteger=Nu,O.isLength=P5,O.isMap=Vu,O.isMatch=nw,O.isMatchWith=xw,O.isNaN=iw,O.isNative=ew,O.isNil=hw,O.isNull=tw,O.isNumber=Bu,O.isObject=J0,O.isObjectLike=xn,O.isPlainObject=k2,O.isRegExp=Gt,O.isSafeInteger=gw,O.isSet=Zu,O.isString=_5,O.isSymbol=c1,O.isTypedArray=d8,O.isUndefined=uw,O.isWeakMap=sw,O.isWeakSet=ow,O.join=rp,O.kebabCase=Kw,O.last=_1,O.lastIndexOf=dp,O.lowerCase=Jw,O.lowerFirst=nq,O.lt=lw,O.lte=cw,O.max=Fq,O.maxBy=Yq,O.mean=Gq,O.meanBy=Hq,O.min=Kq,O.minBy=Jq,O.stubArray=t9,O.stubFalse=h9,O.stubObject=Rq,O.stubString=Nq,O.stubTrue=Vq,O.multiply=nO,O.nth=ap,O.noConflict=Tq,O.noop=e9,O.now=E5,O.pad=xq,O.padEnd=iq,O.padStart=eq,O.parseInt=tq,O.random=Uw,O.reduce=yj,O.reduceRight=zj,O.repeat=hq,O.replace=gq,O.result=Dw,O.round=xO,O.runInContext=$,O.sample=pj,O.size=qj,O.snakeCase=uq,O.some=Oj,O.sortedIndex=jp,O.sortedIndexBy=wp,O.sortedIndexOf=qp,O.sortedLastIndex=Op,O.sortedLastIndexBy=kp,O.sortedLastIndexOf=vp,O.startCase=oq,O.startsWith=lq,O.subtract=iO,O.sum=eO,O.sumBy=tO,O.template=cq,O.times=Bq,O.toFinite=Px,O.toInteger=w0,O.toLength=Lu,O.toLower=rq,O.toNumber=A1,O.toSafeInteger=rw,O.toString=M0,O.toUpper=dq,O.trim=aq,O.trimEnd=fq,O.trimStart=bq,O.truncate=yq,O.unescape=zq,O.uniqueId=Iq,O.upperCase=mq,O.upperFirst=Jt,O.each=Tu,O.eachRight=Pu,O.first=vu,i9(O,(function(){var s={};return xx(O,function(r,f){R0.call(O.prototype,f)||(s[f]=r)}),s})(),{chain:!1}),O.VERSION=t,S1(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){O[s].placeholder=O}),S1(["drop","take"],function(s,r){S0.prototype[s]=function(f){f=f===i?1:an(w0(f),0);var m=this.__filtered__&&!r?new S0(this):this.clone();return m.__filtered__?m.__takeCount__=An(f,m.__takeCount__):m.__views__.push({size:An(f,D0),type:s+(m.__dir__<0?"Right":"")}),m},S0.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),S1(["filter","map","takeWhile"],function(s,r){var f=r+1,m=f==h0||f==j0;S0.prototype[s]=function(w){var v=this.clone();return v.__iteratees__.push({iteratee:l0(w,3),type:f}),v.__filtered__=v.__filtered__||m,v}}),S1(["head","last"],function(s,r){var f="take"+(r?"Right":"");S0.prototype[s]=function(){return this[f](1).value()[0]}}),S1(["initial","tail"],function(s,r){var f="drop"+(r?"":"Right");S0.prototype[s]=function(){return this.__filtered__?new S0(this):this[f](1)}}),S0.prototype.compact=function(){return this.filter(Hn)},S0.prototype.find=function(s){return this.filter(s).head()},S0.prototype.findLast=function(s){return this.reverse().find(s)},S0.prototype.invokeMap=O0(function(s,r){return typeof s=="function"?new S0(this):this.map(function(f){return m2(f,s,r)})}),S0.prototype.reject=function(s){return this.filter(T5(l0(s)))},S0.prototype.slice=function(s,r){s=w0(s);var f=this;return f.__filtered__&&(s>0||r<0)?new S0(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),r!==i&&(r=w0(r),f=r<0?f.dropRight(-r):f.take(r-s)),f)},S0.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},S0.prototype.toArray=function(){return this.take(D0)},xx(S0.prototype,function(s,r){var f=/^(?:filter|find|map|reject)|While$/.test(r),m=/^(?:head|last)$/.test(r),w=O[m?"take"+(r=="last"?"Right":""):r],v=m||/^find/.test(r);w&&(O.prototype[r]=function(){var P=this.__wrapped__,A=m?[1]:arguments,M=P instanceof S0,B=A[0],I=M||p0(P),U=function(v0){var E0=w.apply(O,Ux([v0],A));return m&&K?E0[0]:E0};I&&f&&typeof B=="function"&&B.length!=1&&(M=I=!1);var K=this.__chain__,u0=!!this.__actions__.length,c0=v&&!K,q0=M&&!u0;if(!v&&I){P=q0?P:new S0(this);var r0=s.apply(P,A);return r0.__actions__.push({func:v5,args:[U],thisArg:i}),new C1(r0,K)}return c0&&q0?s.apply(this,A):(r0=this.thru(U),c0?m?r0.value()[0]:r0.value():r0)})}),S1(["pop","push","shift","sort","splice","unshift"],function(s){var r=Ki[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",m=/^(?:pop|shift)$/.test(s);O.prototype[s]=function(){var w=arguments;if(m&&!this.__chain__){var v=this.value();return r.apply(p0(v)?v:[],w)}return this[f](function(P){return r.apply(p0(P)?P:[],w)})}}),xx(S0.prototype,function(s,r){var f=O[r];if(f){var m=f.name+"";R0.call(s8,m)||(s8[m]=[]),s8[m].push({name:r,func:f})}}),s8[m5(i,C).name]=[{name:"wrapper",func:i}],S0.prototype.clone=zz,S0.prototype.reverse=mz,S0.prototype.value=pz,O.prototype.at=Yp,O.prototype.chain=Gp,O.prototype.commit=Hp,O.prototype.next=Kp,O.prototype.plant=nj,O.prototype.reverse=xj,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=ij,O.prototype.first=O.prototype.head,r2&&(O.prototype[r2]=Jp),O}),h8=Hy();w4?((w4.exports=h8)._=h8,xt._=h8):kn._=h8}).call(cE)})(B2,B2.exports)),B2.exports}var S2=rE();const J8=jS("formDesigner",{state:()=>({showDesigner:!1,widgetPanel:{containerWidget:{title:"布局组件",expand:!0,children:[{pType:"container",type:"row",title:"栅格",iconCode:"icomoon icon-grid",owner:"common"},{pType:"container",type:"table",title:"表格",iconCode:"icomoon icon-table",owner:"common"}]},basicWidget:{title:"常用组件",expand:!0,children:[{pType:"formWidget",type:"label",title:"纯文本",iconCode:"icomoon icon-text",owner:"common"},{pType:"formWidget",type:"text",title:"单行文本",iconCode:"icomoon icon-text-field",owner:"common"},{pType:"formWidget",type:"textarea",title:"多行文本",iconCode:"icomoon icon-textarea",owner:"common"},{pType:"formWidget",type:"radio",title:"单选框",iconCode:"icomoon icon-radio",owner:"common"},{pType:"formWidget",type:"checkbox",title:"复选框",iconCode:"icomoon icon-checkbox-field",owner:"common"},{pType:"formWidget",type:"select",title:"下拉框",iconCode:"icomoon icon-select",owner:"common"},{pType:"formWidget",type:"number",title:"数字框",iconCode:"icomoon icon-number",owner:"common"},{pType:"formWidget",type:"datetime",title:"日期时间",iconCode:"icomoon icon-date-field",owner:"common"},{pType:"formWidget",type:"switch",title:"开关",iconCode:"icomoon icon-switch",owner:"common"}]},seniorWidget:{title:"高级组件",expand:!0,children:[{pType:"formWidget",type:"richEditor",title:"富文本",iconCode:"icomoon icon-rich-editor",owner:"common"},{pType:"formWidget",type:"tree",title:"树选择器",iconCode:"icomoon icon-menu1",owner:"common"},{pType:"formWidget",type:"cascader",title:"级联选择",iconCode:"icomoon icon-cascader",owner:"common"},{pType:"formWidget",type:"upload",title:"上传文件",iconCode:"icomoon icon-attachment",owner:"common"},{pType:"formWidget",type:"dyTable",title:"动态表格",iconCode:"icomoon icon-table1",owner:"common"},{pType:"formWidget",type:"group",title:"分组",iconCode:"icomoon icon-list2",owner:"common"}]},customizeWidget:{title:"自定义组件",expand:!0,children:[]}},formConfig:{labelPosition:"right",labelWidth:80,formWidth:null,formWidgetList:[]},formDesignerStyle:{},selectWidget:null,msgModal:{show:!1,type:"info",content:"",onOk:null},showTdBtn:!1,showStyle:{width:["text","textarea","select","label","td","number","datetime","switch","tree","cascader"],height:["text","textarea","select","label","td","col","number","datetime","richEditor","tree","cascader"],padding:["text","textarea","select","label","radio","checkbox","td","col","richEditor","tree","cascader"],margin:["text","textarea","select","label","radio","checkbox","number","datetime","switch","richEditor","tree","cascader","upload"],fontFamily:["text","textarea","select","radio","checkbox","label","td","col","table","row","number","datetime","switch","tree","cascader"],fontSize:["text","textarea","select","radio","checkbox","label","td","col","table","row","number","datetime","tree","cascader"],fontWeight:["text","textarea","select","radio","checkbox","label","td","col","table","row","number","datetime","tree","cascader"],color:["text","textarea","select","radio","checkbox","label","td","col","table","row","number","datetime","tree","cascader"],textAlign:["label","td","col"]},showConfig:{label:["text","textarea","select","radio","checkbox","number","datetime","switch","richEditor","tree","cascader","upload"],labelPosition:["text","textarea","select","radio","checkbox","number","datetime","switch","richEditor","tree","cascader","upload"],groupLabel:["dyTable","group"],type:["text","textarea","select","radio","checkbox"],felidNameCreateType:["text","textarea","select","radio","checkbox","number","datetime","switch","dyTable","richEditor","tree","cascader"],felidName:["text","textarea","select","radio","checkbox","number","datetime","switch","dyTable","richEditor","tree","cascader"],placeholder:["text","textarea","number","datetime","richEditor","select","cascader"],prefix:["text","select","number","datetime","tree","cascader"],suffix:["text","select","number","datetime","tree","cascader"],maxLength:["text","textarea","select","radio","checkbox","tree","cascader"],showWordLimit:["text","textarea"],readonly:["text","textarea","number","datetime","dyTable","group","richEditor","upload"],disabled:["text","textarea","select","radio","checkbox","number","datetime","switch","dyTable","group","tree","cascader","upload"],required:["text","textarea","select","radio","checkbox","number","datetime","switch","dyTable","richEditor","tree","cascader","upload"],regular:["text"],rowsType:["textarea"],extendAtt:["textarea","text","label","upload"],option:["select","radio","checkbox"],vertical:["radio"],selectType:["select","tree"],textType:["label"],defaultValue:["text","textarea","select","radio","checkbox","number","switch","tree","cascader"],max:["number"],min:["number"],precision:["number"],numberType:["number"],dateTimeType:["datetime"],dateTimeRange:["datetime"],disabledDate:["datetime"],timeSteps:["datetime"],showCurDate:["datetime"],showAndHide:["text","textarea","select","radio","checkbox","label","td","col","table","row","number","datetime","switch","dyTable","group","richEditor","tree","cascader","upload"],onChange:["text","textarea","select","radio","checkbox","number","datetime","switch","tree","cascader"],onFocus:["text","textarea","select","radio","checkbox","number","datetime"],onBlur:["text","textarea","select","radio","checkbox","number","datetime"],onClick:["text","textarea","select","radio","checkbox","number","datetime"],trueValue:["switch"],falseValue:["switch"],trueText:["switch"],falseText:["switch"],switchSize:["switch"],isShowAndHide:["dyTable","group"],treeData:["tree"],transfer:["tree","cascader","select"],cascaderData:["cascader"],multiple:["upload"],fileAccept:["upload"],fileFormat:["upload"],fileMaxSize:["upload"],h5LabelPosition:["text","textarea","select","radio","checkbox","number","datetime","switch","richEditor","tree","cascader","upload"],h5ShowType:["text","textarea","select","radio","checkbox","number","datetime","switch","dyTable","richEditor","tree","cascader","upload"],richEditMode:["richEditor"],richEditWidth:["richEditor"],canAdd:["dyTable"],canEdit:["dyTable"],canDelete:["dyTable"]},rightArea:{formAtt:!0,widgetAtt:!1,widgetConfig:!0,seniorConfig:!1,customizeConfig:!1},historyData:{index:-1,maxStep:100,steps:[]},emit:null}),actions:{initData(e){if(this.historyData.steps.push({formConfig:S2.cloneDeep(this.formConfig)}),this.historyData.index=0,e){if(e.customizeWidget&&e.customizeWidget.length>0&&(this.widgetPanel.customizeWidget.children=e.customizeWidget),e.showStyle)for(const x in e.showStyle)Object.hasOwnProperty.call(this.showStyle,x)&&(this.showStyle[x]=[...this.showStyle[x],...e.showStyle[x]]);if(e.showConfig)for(const x in e.showConfig)Object.hasOwnProperty.call(this.showConfig,x)&&(this.showConfig[x]=[...this.showConfig[x],...e.showConfig[x]])}this.showDesigner=!0},addWidget(e,x,i){let t=e.newIndex,h=JSON.parse(JSON.stringify(x[t]));if(i){if(i.type=="td"){if(h.type=="row"){this.showMsgModal("error","表格组件内不能添加栅格组件"),x.splice(t,1);return}if(h.type=="dyTable"){this.showMsgModal("error","表格组件内不能添加动态表格组件"),x.splice(t,1);return}if(h.type=="group"){this.showMsgModal("error","表格组件内不能添加分组组件"),x.splice(t,1);return}}if(i.type=="col"){if(h.type=="dyTable"){this.showMsgModal("error","栅格组件内不能添加动态表格组件"),x.splice(t,1);return}if(h.type=="group"){this.showMsgModal("error","栅格组件内不能添加分组组件"),x.splice(t,1);return}}if(i.type=="dyTable"){if(h.type=="table"){this.showMsgModal("error","动态表格组件内不能添加表格组件"),x.splice(t,1);return}if(h.type=="row"){this.showMsgModal("error","动态表格组件内不能添加栅格组件"),x.splice(t,1);return}if(h.type=="dyTable"){this.showMsgModal("error","动态表格组件内不能添加动态表格组件"),x.splice(t,1);return}if(h.type=="group"){this.showMsgModal("error","动态表格组件内不能添加分组组件"),x.splice(t,1);return}}}if(h.style={},h.labelStyleValue={},h.config={},h.styleValue={},h.labelStyle={},h.type!="label"&&h.pType!="container"&&h.type!="dyTable"&&h.type!="group"){let g={};this.formConfig.labelPosition!="right"&&(g.textAlign=this.formConfig.labelPosition),this.formConfig.labelWidth!="80"&&(g.width=this.formConfig.labelWidth+"px",h.labelStyleValue.width=this.formConfig.labelWidth),h.labelStyle=g}if(h.pType=="formWidget"&&h.type!="label"){h.widgetType=h.type+"Widget";let g=this.generateId();h.id=h.type+g,h.config={showLabel:!0,readonly:!1,disabled:!1,required:!1,felidNameCreateType:"dynamics",felidName:h.type+g.substring(0,3),labelPosition:"sameRow",h5LabelPosition:"sameRow",h5ShowType:"allShow",label:h.title,isEditFelidName:!0}}if(h.owner=="common"){if(h.type=="text")h.config.showWordLimit=!1,h.config.defaultLength=100;else if(h.type=="textarea")h.config.showWordLimit=!1,h.config.defaultLength=500,h.config.rowsType="dynamics",h.config.rows=2,h.config.minRows=2,h.config.maxRows=6;else if(h.type=="radio")h.config.defaultLength=100,h.config.vertical=!1,h.config.option={type:"customize",items:"",getItemListMethod:""};else if(h.type=="checkbox")h.config.defaultLength=200,h.config.option={type:"customize",items:"",getItemListMethod:""};else if(h.type=="select")h.config.defaultLength=100,h.config.selectType="single",h.config.transfer=!1,h.config.option={type:"customize",items:"",getItemListMethod:""},h.style={width:"100px"},h.styleValue={width:"100"};else if(h.type=="label")h.widgetType="labelWidget",h.label="纯文本",h.id=h.type+this.generateId(),h.style={display:"block"},h.config={textType:"single",textValue:"纯文本"},h.showBtn=!0;else if(h.type=="number")h.config.numberType="int";else if(h.type=="datetime")h.config.dateTimeType="yyyy-MM-dd",h.config.dateTimeRange=!1,h.config.showCurDate=!1,h.config.disabledDate={type:"none",startDate:null,endDate:null,day:1};else if(h.type=="switch")h.config.trueValue="",h.config.falseValue="",h.config.trueText="",h.config.falseText="",h.config.switchSize="default";else if(h.type=="richEditor")h.style={float:"left",border:"1px solid #ccc",width:"auto",height:"400px"},h.config.richEditMode="default",h.config.richEditWidth=720;else if(h.type=="tree")h.config.defaultLength=200,h.config.selectType="single",h.config.getTreeDataMethod="",h.config.transfer=!1,h.style={width:"100px"},h.styleValue={width:"100"};else if(h.type=="cascader")h.config.defaultLength=200,h.config.getTreeDataMethod="",h.config.transfer=!1,h.style={width:"100px"},h.styleValue={width:"100"};else if(h.type=="upload")h.config.multiple=!0,h.config.fileAccept="",h.config.fileFormat="",h.config.fileMaxSize=null,h.style={width:"100px"},h.styleValue={width:"100"};else if(h.type=="table"){h.widgetType="tableWidget",h.id=h.type+this.generateId(),h.style={width:"100%",border:"1px solid #e8eaec",borderCollapse:"collapse",tableLayout:"fixed"},h.showBtn=!0,h.children=[];for(let g=0;g<2;g++){const u=this.createTableTr();for(let o=0;o<4;o++)u.children.push(this.createTableTd());h.children.push(u)}}else if(h.type=="row"){h.widgetType="rowColWidget",h.id=h.type+this.generateId(),h.showBtn=!0,h.children=[];for(let g=0;g<2;g++){const u=this.createGridCol();u.style={flex:"0 0 50%"},u.flex=12,h.children.push(u)}h.splitType="span"}else h.type=="dyTable"?(h.config.isShowAndHide=!1,h.config.canAdd=!0,h.config.canEdit=!0,h.config.canDelete=!0,h.children=[],h.labelStyle={textAlign:"left",fontSize:"16px",fontWeight:"bold"},h.labelStyleValue={fontSize:16}):h.type=="group"&&(h.config.isShowAndHide=!1,h.children=[],h.labelStyle={textAlign:"left",fontSize:"16px",fontWeight:"bold"},h.labelStyleValue={fontSize:16});this.addWidgetAfter(x,t,h)}else this.emit("addCustomizeWidget",h,g=>{this.addWidgetAfter(x,t,g)})},addWidgetAfter(e,x,i){i.showBtn=!0,e[x]=i,this.selectWidget&&(this.selectWidget.showBtn=!1,this.selectWidget=null),c.nextTick(()=>{this.selectWidget=i,this.saveHistoryStep()})},generateId(){return Math.floor(Math.random()*1e5+Math.random()*2e4+Math.random()*5e3)+""},onClickFormWidget(e,x){this.selectWidget&&(this.selectWidget.showBtn=!1,this.selectWidget=null),e&&(e.cancelBubble=!0,e.stopPropagation()),this.showTdBtn=!1,c.nextTick(()=>{x.showBtn=!0,this.selectWidget=x})},clearSelectWidget(){this.selectWidget&&(this.selectWidget.showBtn=!1,this.selectWidget.isNotValid=!1,this.selectWidget=null),this.showTdBtn=!1},deleteWidget(e,x,i,t){this.showMsgModal("confirm","是否确定删除?",()=>{if(this.msgModal.show=!1,t=="tr"){let g=e[x].children[i].rowspan||1;for(let u=g-1;u>=0;u--)this.deleteTrOrTdManageMergeCell(e,x+u,i,t),this.deleteWidgetAfter(e,x+u)}else this.deleteWidgetAfter(e,x)})},deleteWidgetAfter(e,x){let i=e.splice(x,1);this.selectWidget.id==i.id&&(this.selectWidget=null),this.saveHistoryStep()},moveUpWidget(e,x){let i=e[x];e.splice(x,1),e.splice(x-1,0,i),this.saveHistoryStep()},moveDownWidget(e,x){let i=e[x];e.splice(x,1),e.splice(x+1,0,i),this.saveHistoryStep()},deleteTd(e,x,i){this.showMsgModal("confirm","是否确定删除?",()=>{this.msgModal.show=!1;let h=e[i].children[x].colspan||1;for(let g=h-1;g>=0;g--)this.deleteTrOrTdManageMergeCell(e,i,x+g,"td"),e.forEach(u=>{let o=u.children||[];x+g<o.length&&this.deleteWidgetAfter(o,x+g)})})},addTr(e,x,i,t){const h=this.createTableTr();let g=this.getMaxTdNum(e);for(let u=0;u<g;u++)h.children.push(this.createTableTd());if(t=="up")x!=0&&this.addTrManageMergeCell(e,x,h),e.splice(x,0,h);else if(t=="down"){let u=this.getValidAddTrIndex(e,x,i);u==0?e.push(h):(this.addTrManageMergeCell(e,x+1,h),e.splice(u,0,h))}else e.push(h);this.saveHistoryStep()},addTrManageMergeCell(e,x,i){for(let t=0;t<i.children.length;t++)if(i.children[t].cMerge=e[x].children[t].cMerge,i.children[t].rMerge=e[x].children[t].rMerge,i.children[t].rMerge){for(let h=x-1;h>=0;h--)if(!e[h].children[t].rMerge){e[h].children[t].rowspan+=1;break}}},getValidAddTrIndex(e,x,i){if(e.length==1)return 0;for(let t=x+1;t<e.length;t++)if(!e[t].children[i].rMerge)return t;return 0},addTd(e,x,i,t){e||(e=[this.createTableTr()]),e.forEach(h=>{const g=this.createTableTd();let u=h.children||[];if(t=="left")i!=0&&this.addTdManageMergeCell(u,i,g),u.splice(i,0,g);else if(t=="right"){let o=this.getValidAddTdIndex(e,x,i);o==0?u.push(g):(this.addTdManageMergeCell(u,i+1,g),u.splice(o,0,g))}else u.push(g);h.children=u}),this.saveHistoryStep()},addTdManageMergeCell(e,x,i){if(e.length==0)return;let t=e[x];if(i.cMerge=t.cMerge,i.rMerge=t.rMerge,i.cMerge){for(let h=x-1;h>=0;h--)if(!e[h].cMerge){e[h].colspan+=1;break}}},getValidAddTdIndex(e,x,i){let t=e[x].children;if(t.length==1)return 0;for(let h=i+1;h<t.length;h++)if(!t[h].cMerge)return h;return 0},deleteTd(e,x,i){this.showMsgModal("confirm","是否确定删除?",()=>{this.msgModal.show=!1;let h=e[i].children[x].colspan||1;for(let g=h-1;g>=0;g--)this.deleteTrOrTdManageMergeCell(e,i,x+g,"td"),e.forEach(u=>{let o=u.children||[];this.deleteWidgetAfter(o,x+g)})})},mergeCell(e,x,i,t){if(t=="left"){let h=null;for(let a=x-1;a>=0&&(h=e[a],!(!h.cMerge&&!h.rMerge));a--);let g=h.colspan||1,u=e[x],o=u.colspan||1,l=u.children||[],d=h.children||[];d.length>0&&(l=[...l,...d]),h.children=l,h.colspan=o+g,u.cMerge=!0,u.children=[],h.cMerge=!1}if(t=="right"){let h=e[x],g=h.colspan||1,u=null;for(let a=x+1;a<e.length&&(u=e[a],!(!u.cMerge&&!u.rMerge));a++);let o=u.colspan||1;h.colspan=g+o;let l=h.children||[],d=u.children||[];d.length>0&&(l=[...l,...d]),h.children=l,h.cMerge=!1,u.cMerge=!0,u.children=[]}if(t=="allRow"){let h=[],g=e[i];g.children.forEach(u=>{if(!u.cMerge&&!u.rMerge){let o=u.children||[];h=[...h,...o],u.cMerge=!0,u.children=[]}}),g.children[0].colspan=g.children.length,g.children[0].children=h,g.children[0].cMerge=!1}if(t=="up"){let h=null;for(let b=i-1;b>=0&&(h=e[b].children[x],!(!h.cMerge&&!h.rMerge));b--);let u=e[i].children[x],o=h.children||[],l=u.children||[];l.length>0&&(o=[...o,...l]),h.children=o;let d=h.rowspan||1,a=u.rowspan||1;h.rowspan=d+a,u.rMerge=!0,u.children=[],h.rMerge=!1}if(t=="down"){let g=e[i].children[x],u=g.rowspan||1,o=null;for(let b=i+1;b<e.length&&(o=e[b].children[x],!(!o.cMerge&&!o.rMerge));b++);let l=o.rowspan||1,d=g.children||[],a=o.children||[];a.length>0&&(d=[...d,...a]),g.children=d,g.rowspan=u+l,g.rMerge=!1,o.rMerge=!0,o.children=[]}if(t=="allCol"){let h=[];for(let g=0;g<e.length;g++){const o=e[g].children[x];if(o.cMerge||o.rMerge)continue;let l=o.children||[];h=[...h,...l],o.rMerge=!0,o.children=[]}e[0].children[x].children=h,e[0].children[x].rowspan=e.length,e[0].children[x].rMerge=!1}this.saveHistoryStep()},deleteTrOrTdManageMergeCell(e,x,i,t){if(!(e.length<2)&&!(e[0].children.length<2)){if(t=="tr"){let h=e[x].children;for(let g=0;g<h.length;g++)if(h[g].rMerge){for(let u=x-1;u>=0;u--)if(!e[u].children[g].rMerge){e[u].children[g].rowspan-=1;break}}}if(t=="td")for(let h=0;h<e.length;h++){let g=e[h].children;if(g[i].cMerge){for(let u=i-1;u>=0;u--)if(!g[u].cMerge){g[u].colspan-=1;break}}}}},cancelMergeCell(e,x,i,t){if(t=="row"){let h=e[i],g=h.children[x].colspan;h.children[x].colspan=1;for(let u=1;u<g;u++){let o=h.children[x+u];o.colspan=1,o.cMerge=!1}}if(t=="col"){let h=e[i].children[x].rowspan;e[i].children[x].rowspan=1;for(let g=1;g<h;g++){let u=e[i+g].children[x];u.rowspan=1,u.rMerge=!1}}this.saveHistoryStep()},getMaxTdNum(e){let x=4;return!e||e.length==0?x:e[0].children.length},createTableTr(){return{pType:"container",type:"tr",id:"tr"+this.generateId(),style:{border:"1px solid #e8eaec",position:"relative"},children:[],title:"表格行",widgetType:"tr",labelStyle:{},config:{}}},createTableTd(){return{pType:"container",type:"td",widgetType:"td",id:"td"+this.generateId(),title:"单元格",style:{minHeight:"30px",border:"1px solid #e8eaec",position:"relative"},styleValue:{},showBtn:!1,cMerge:!1,rMerge:!1,children:[],colspan:1,rowspan:1,labelStyle:{},config:{}}},setAreaClass(e){return e.pType=="formWidget"&&e.type!="dyTable"&&e.type!="group"?e.isNotValid?"form-widget error":e.showBtn?"form-widget active":"form-widget":e.isNotValid?"container-widget error":e.showBtn?"container-widget active":"container-widget"},gridAddCol(e,x,i,t){const h=this.createGridCol();if(t.splitType=="px"&&(h.style={flex:"1 1 auto"},h.flex=0),i=="left"?e.splice(x,0,h):i=="right"?e.length==1?e.push(h):e.splice(x+1,0,h):e.push(h),t.splitType=="span"){let g=100/e.length;g=`0 0 ${g}%`;let u=parseInt(24/e.length);e.forEach(o=>{o.style={flex:g},o.flex=u})}this.saveHistoryStep()},copyNewWidget(e,x){const i=JSON.parse(JSON.stringify(x));i.showBtn=!1,this.resetWidgetId(i),e.push(i),this.saveHistoryStep()},createGridCol(){return{pType:"container",type:"col",widgetType:"col",id:"col"+this.generateId(),title:"栅格列",style:{},styleValue:{},showBtn:!1,children:[],labelStyle:{},config:{}}},resetWidgetId(e){e.id=e.type+this.generateId(),e.children&&e.children.length>0&&e.children.forEach(x=>{this.resetWidgetId(x)})},generateFieldName(){if(!this.selectWidget||!this.selectWidget.config.label)return;let e=this.selectWidget.config.label.replace(/\s/g,"");if(!e||!this.selectWidget.config.isEditFelidName)return;const i=this.toPinyin(e).split(" ");let t="";i.forEach((g,u)=>{u<=1?t+=g:t+=g.substring(0,1)});let h=this.selectWidget.id.replace(this.selectWidget.type,"");this.selectWidget.config.felidName=t+h.substring(0,3)},toPinyin(e){return vh(e,{style:vh.STYLE_NORMAL}).join(" ")},saveHistoryStep(){this.historyData.index===this.historyData.maxStep-1?this.historyData.steps.shift():this.historyData.index++,this.historyData.steps[this.historyData.index]={formConfig:S2.cloneDeep(this.formConfig),selectWidget:this.selectWidget?S2.cloneDeep(this.selectWidget):null},this.historyData.index<this.historyData.steps.length-1&&(this.historyData.steps=this.historyData.steps.slice(0,this.historyData.index+1))},undoHistory(){if(this.historyData.index!=0){if(this.clearSelectWidget(),this.historyData.index!==0&&this.historyData.index--,this.formConfig=S2.cloneDeep(this.historyData.steps[this.historyData.index].formConfig),this.historyData.steps[this.historyData.index].selectWidget){let e=this.historyData.steps[this.historyData.index].selectWidget.id;this.getActonWidget(e,this.formConfig.formWidgetList)}this.showDesigner=!1,c.nextTick(()=>{this.showDesigner=!0,this.handleFormWidthChange()})}},redoHistory(){if(this.clearSelectWidget(),this.historyData.index!==this.historyData.steps.length-1&&this.historyData.index++,this.formConfig=S2.cloneDeep(this.historyData.steps[this.historyData.index].formConfig),this.historyData.steps[this.historyData.index].selectWidget){let e=this.historyData.steps[this.historyData.index].selectWidget.id;this.getActonWidget(e,this.formConfig.formWidgetList)}this.showDesigner=!1,c.nextTick(()=>{this.showDesigner=!0,this.handleFormWidthChange()})},getActonWidget(e,x){let i=!1;for(let t=0;t<x.length;t++)if(x[t].id==e){this.onClickFormWidget(null,x[t]),i=!0;break}if(i)return i;for(let t=0;t<x.length&&(x[t].children&&x[t].children.length>0&&(i=this.getActonWidget(e,x[t].children)),!i);t++);return i},handleFormWidthChange(e){if(!e||e.target.value<=0){this.formConfig.formWidth=null,this.formDesignerStyle={},e&&(e.target.value=0);return}else{this.formConfig.formWidth=e.target.value;let x=document.body.clientWidth-120-280;if(this.formConfig.formWidth>=x)this.formDesignerStyle={width:"100%",overflowX:"auto"};else{let i=(x-this.formConfig.formWidth)/2;this.formDesignerStyle={marginLeft:i+"px"}}}this.saveHistoryStep()},handleLabelWidthChange(e){if(e.target.value<=0){this.formConfig.labelWidth=1,e.target.value=1;return}else this.formConfig.labelWidth=e.target.value;this.formConfig.labelWidth!="80"?this.manageAllFormWidgetLabelWidth(this.formConfig.labelWidth,this.formConfig.formWidgetList,"","labelWidth"):this.manageAllFormWidgetLabelWidth(80,this.formConfig.formWidgetList,"","labelWidth"),this.saveHistoryStep()},handleLabelPosition(e){this.formConfig.labelPosition=e.target.value,this.manageAllFormWidgetLabelWidth(0,this.formConfig.formWidgetList,e.target.value,"labelPosition"),this.saveHistoryStep()},manageAllFormWidgetLabelWidth(e,x,i,t){for(let h=0;h<x.length;h++)x[h].pType=="formWidget"&&x[h].type!="label"&&(t=="labelWidth"?x[h].labelStyleValue.width||(e!=80?x[h].labelStyle.width=e+"px":x[h].labelStyle.width=""):i=="right"?x[h].labelStyle.textAlign="":x[h].labelStyle.textAlign=i,x[h].children&&x[h].children.length>0&&this.manageAllFormWidgetLabelWidth(e,x[h].children,i,t))},hideOrShowWidgetConfig(e){this.rightArea[e]=!this.rightArea[e]},deleteAllWidget(){this.formConfig.formWidgetList.length!=0&&this.showMsgModal("confirm","是否确定清除所有组件?",()=>{this.msgModal.show=!1,this.formConfig.formWidgetList=[],this.selectWidget&&(this.selectWidget=null),this.saveHistoryStep()})},clearDyTableOrGroupAllWidget(){this.selectWidget.children.length!=0&&this.showMsgModal("confirm","是否确定清除内部所有组件?",()=>{this.msgModal.show=!1,this.selectWidget.children=[],this.saveHistoryStep()})},changeWidgetType(e){this.showDesigner=!1,c.nextTick(()=>{this.selectWidget.type=e.target.value,this.selectWidget.widgetType=e.target.value+"Widget";const x=e.target.options[e.target.selectedIndex];this.selectWidget.title=x.label,this.selectWidget.type=="text"&&(delete this.selectWidget.config.rows,delete this.selectWidget.config.minRows,delete this.selectWidget.config.maxRows),this.selectWidget.type=="textarea"&&(this.selectWidget.config.rows=2,this.selectWidget.config.minRows=2,this.selectWidget.config.maxRows=6),this.selectWidget.type=="select"?this.selectWidget.config.selectType="single":delete this.selectWidget.config.selectType,this.saveHistoryStep(),this.showDesigner=!0})},showMsgModal(e,x,i){this.msgModal.content=x,this.msgModal.show=!0,this.msgModal.type=e,this.msgModal.onOk=i},confirm(e){e(),this.msgModal.show=!1},returnFormConfigData(){return this.formConfig.formName?!this.formConfig.formWidgetList||this.formConfig.formWidgetList.length==0?(this.showMsgModal("error","请至少添加一个组件."),null):this.checkFormConfigData(this.formConfig.formWidgetList)?null:this.formConfig:(this.showMsgModal("error","表单名不能为空."),null)},checkFormConfigData(e){let x=!1;for(let i=0;i<e.length;i++){let t=e[i];if(t.type=="table"){if(t.children&&t.children.length==0||!t.children){this.showMsgModal("error","表格组件至少有一行一列."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}t.isNotValid=!1}if(t.type=="row"){if(t.children&&t.children.length==0||!t.children){this.showMsgModal("error","栅格组件至少有一栅格列."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}t.isNotValid=!1}if(t.pType=="formWidget"){if(t.type=="label"&&!t.config.textValue){this.showMsgModal("error","纯文本组件显示内容不能为空."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}else if(t.type!="label"){if(!t.config.label){this.showMsgModal("error",t.title+"组件标签内容不能为空."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}if(!t.config.felidName){this.showMsgModal("error",t.title+"组件字段名不能为空."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}if((t.type=="radio"||t.type=="checkbox"||t.type=="select")&&!t.config.option.items&&!t.config.option.getItemListMethod){this.showMsgModal("error",t.title+"组件选项不能为空."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}if(t.type=="tree"&&!t.config.getTreeDataMethod){this.showMsgModal("error",t.title+"组件树选择器数据不能为空."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}if(t.type=="cascader"&&!t.config.getCascaderDataMethod){this.showMsgModal("error",t.title+"组件级联选择器数据不能为空."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}if(t.type=="dyTable"&&(t.children&&t.children.length==0||!t.children)){this.showMsgModal("error",t.title+"组件内至少有一个表单组件."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}if(t.type=="group"&&(t.children&&t.children.length==0||!t.children)){this.showMsgModal("error",t.title+"组件内至少有一个表单组件."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}if(t.type=="datetime"){let h=t.config.disabledDate,g=!0;if(h.type=="beforeDay"&&(g=!!h.startDate),h.type=="afterDay"&&(g=!!h.endDate),(h.type=="dateRangeInside"||h.type=="dateRangeOutside")&&(g=!!(h.startDate&&h.endDate)),h.type=="date"&&(g=!!h.day),!g){this.showMsgModal("error",t.title+"组件有必填的内容未填写."),x=!0,t.isNotValid=!0,this.onClickFormWidget(null,t);break}}}t.isNotValid=!1}}if(x)return x;for(let i=0;i<e.length&&(e[i].children&&e[i].children.length>0&&(x=this.checkFormConfigData(e[i].children)),!x);i++);return x}}}),dE={key:0,class:"widget-drag-div",style:{"font-size":"14px",color:"#fff"}},aE=["title"],od={__name:"dragWidget",props:{widget:{type:Object,default:()=>({})}},setup(e){return c.onMounted(()=>{}),(x,i)=>e.widget.showBtn?(c.openBlock(),c.createElementBlock("div",dE,[e.widget.widgetType!="col"&&e.widget.widgetType!="td"?(c.openBlock(),c.createElementBlock("span",{key:0,class:"handle cursor-move",title:e.widget.title},null,8,aE)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)}},fE={key:0,class:"widget-btn-div",style:{"font-size":"14px",color:"#515a6e"}},bE={key:4,class:"widget-td-btn-div"},yE={style:{"border-bottom":"1px solid #e8eaec"}},zE={style:{"border-bottom":"1px solid #e8eaec"}},mE={style:{"border-bottom":"1px solid #e8eaec"}},ld={__name:"handleWidget",props:c.mergeModels({widgetIndex:{type:Number,default:0},trIndex:{type:Number,default:0}},{widget:{},widgetModifiers:{},widgetList:{},widgetListModifiers:{},pWidget:{},pWidgetModifiers:{}}),emits:["update:widget","update:widgetList","update:pWidget"],setup(e){const x=e,i=c.useModel(e,"widget"),t=c.useModel(e,"widgetList"),h=c.useModel(e,"pWidget"),g=J8(H8),u=()=>{i.value.widgetType=="td"?g.deleteWidget(t.value,x.trIndex,x.widgetIndex,"tr"):g.deleteWidget(t.value,x.widgetIndex)},o=()=>{g.moveUpWidget(t.value,x.widgetIndex)},l=()=>{g.moveDownWidget(t.value,x.widgetIndex)},d=C=>{i.value.widgetType=="rowColWidget"?g.gridAddCol(i.value.children,x.widgetIndex,C,h.value):g.gridAddCol(t.value,x.widgetIndex,C,h.value)},a=()=>{g.copyNewWidget(t.value,i.value)},b=C=>{i.value.widgetType=="tableWidget"?g.addTr(i.value.children,x.widgetIndex,C):g.addTr(t.value,x.trIndex,x.widgetIndex,C)},z=C=>{i.value.widgetType=="tableWidget"?g.addTd(i.value.children,x.widgetIndex,C):g.addTd(t.value,x.trIndex,x.widgetIndex,C)},p=()=>{g.showTdBtn=!g.showTdBtn},j=()=>{g.deleteTd(t.value,x.widgetIndex,x.trIndex)},k=C=>{if(C=="1"){if(x.widgetIndex==0)return"li-disable";{let E=t.value[x.trIndex].children,y=null;for(let _=x.widgetIndex-1;_>=0;_--){let D=E[_];if(D.rMerge)break;if(!D.cMerge){y=D;break}}if(!y)return"li-disable";let q=y.rowspan||1,T=i.value.rowspan||1;return q!=T?"li-disable":"li-enable"}}if(C=="2"){let E=t.value[x.trIndex].children,y=null;for(let _=x.widgetIndex+1;_<E.length;_++){let D=E[_];if(D.rMerge)break;if(!D.cMerge){y=D;break}}if(!y)return"li-disable";let q=y.rowspan||1,T=i.value.rowspan||1;return q!=T?"li-disable":"li-enable"}if(C=="3"){if(t.value[x.trIndex].children.length==1)return"li-disable";{let y=!0,q=i.value.rowspan||1;return t.value[x.trIndex].children.forEach(_=>{if(_.rMerge)y=!1;else{let D=_.rowspan||1;q!=D&&(y=!1)}}),y?"li-enable":"li-disable"}}if(C=="4")return(i.value.colspan||1)==1?"li-disable":"li-enable";if(C=="5"){if(x.trIndex==0)return"li-disable";{let E=null;for(let T=x.trIndex-1;T>=0;T--){let _=t.value[T].children[x.widgetIndex];if(_.cMerge)break;if(!_.rMerge){E=_;break}}if(!E)return"li-disable";let y=E.colspan||1,q=i.value.colspan||1;return y!=q?"li-disable":"li-enable"}}if(C=="6"){let E=null;for(let T=x.trIndex+1;T<t.value.length;T++){let _=t.value[T].children[x.widgetIndex];if(_.cMerge)break;if(!_.rMerge){E=_;break}}if(!E)return"li-disable";let y=E.colspan||1,q=i.value.colspan||1;return y!=q?"li-disable":"li-enable"}if(C=="7"){if(t.value.length==1)return"li-disable";{let E=!0,y=i.value.colspan||1,q=0;return t.value.forEach(T=>{let _=T.children[x.widgetIndex];if(!_.rMerge){if(_.cMerge)E=!1;else{let D=_.colspan||1;y!=D&&(E=!1)}q=q+1}}),!E||q==1?"li-disable":"li-enable"}}if(C=="8"){let E=i.value.rowspan||1,y=i.value.colspan||1;return E==1||y>1?"li-disable":"li-enable"}if(C=="9"){let E=i.value.rowspan||1,y=i.value.colspan||1,q=t.value[x.trIndex].children;for(let T=0;T<q.length;T++)if(!(q[T].cMerge||q[T].rMerge)&&(q[T].rowspan<E||q[T].colspan<y))return"li-disable";return"li-enable"}if(C=="10"){let E=i.value.rowspan||1,y=i.value.colspan||1;for(let q=0;q<t.value.length;q++){let T=t.value[q].children[x.widgetIndex];if(!(T.cMerge||T.rMerge)&&(T.rowspan<E||T.colspan<y))return"li-disable"}return"li-enable"}},S=C=>{k(C)!="li-disable"&&(C=="1"&&g.mergeCell(t.value[x.trIndex].children,x.widgetIndex,x.trIndex,"left"),C=="2"&&g.mergeCell(t.value[x.trIndex].children,x.widgetIndex,x.trIndex,"right"),C=="3"&&g.mergeCell(t.value,x.widgetIndex,x.trIndex,"allRow"),C=="4"&&g.cancelMergeCell(t.value,x.widgetIndex,x.trIndex,"row"),C=="5"&&g.mergeCell(t.value,x.widgetIndex,x.trIndex,"up"),C=="6"&&g.mergeCell(t.value,x.widgetIndex,x.trIndex,"down"),C=="7"&&g.mergeCell(t.value,x.widgetIndex,x.trIndex,"allCol"),C=="8"&&g.cancelMergeCell(t.value,x.widgetIndex,x.trIndex,"col"))};return c.onMounted(()=>{}),(C,E)=>i.value.showBtn?(c.openBlock(),c.createElementBlock("div",fE,[i.value.widgetType=="rowColWidget"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[t.value.length>1&&e.widgetIndex!=0?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-arrow-up",title:"上移组件",onClick:c.withModifiers(o,["stop"])})):c.createCommentVNode("",!0),t.value.length>1&&e.widgetIndex!=t.value.length-1?(c.openBlock(),c.createElementBlock("span",{key:1,class:"icomoon icon-arrow-down",title:"下移组件",onClick:c.withModifiers(l,["stop"])})):c.createCommentVNode("",!0),c.createElementVNode("span",{class:"icomoon icon-insertcolumn",title:"插入新列",onClick:E[0]||(E[0]=c.withModifiers(y=>d("end"),["stop"]))}),c.createElementVNode("span",{class:"icomoon icon-files-empty",title:"复制新行",onClick:c.withModifiers(a,["stop"])}),c.createElementVNode("span",{class:"icomoon icon-trash-2",title:"移除组件",onClick:c.withModifiers(u,["stop"])})],64)):c.createCommentVNode("",!0),i.value.widgetType=="col"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[t.value.length>1&&e.widgetIndex!=0?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-arrow-left",title:"左移组件",onClick:c.withModifiers(o,["stop"])})):c.createCommentVNode("",!0),t.value.length>1&&e.widgetIndex!=t.value.length-1?(c.openBlock(),c.createElementBlock("span",{key:1,class:"icomoon icon-arrow-right",title:"右移组件",onClick:c.withModifiers(l,["stop"])})):c.createCommentVNode("",!0),c.createElementVNode("span",{class:"icomoon icon-chevrons-left",title:"左插入新列",onClick:E[1]||(E[1]=c.withModifiers(y=>d("left"),["stop"]))}),c.createElementVNode("span",{class:"icomoon icon-chevrons-right",title:"右插入新列",onClick:E[2]||(E[2]=c.withModifiers(y=>d("right"),["stop"]))}),c.createElementVNode("span",{class:"icomoon icon-files-empty",title:"复制新列",onClick:c.withModifiers(a,["stop"])}),c.createElementVNode("span",{class:"icomoon icon-trash-2",title:"移除组件",onClick:c.withModifiers(u,["stop"])})],64)):c.createCommentVNode("",!0),i.value.widgetType=="tableWidget"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:2},[t.value.length>1&&e.widgetIndex!=0?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-arrow-up",title:"上移组件",onClick:c.withModifiers(o,["stop"])})):c.createCommentVNode("",!0),t.value.length>1&&e.widgetIndex!=t.value.length-1?(c.openBlock(),c.createElementBlock("span",{key:1,class:"icomoon icon-arrow-down",title:"下移组件",onClick:c.withModifiers(l,["stop"])})):c.createCommentVNode("",!0),c.createElementVNode("span",{class:"icomoon icon-insertcolumn",title:"插入新列",onClick:E[3]||(E[3]=c.withModifiers(y=>z("end"),["stop"]))}),c.createElementVNode("span",{class:"icomoon icon-insertrow",title:"插入新行",onClick:E[4]||(E[4]=c.withModifiers(y=>b("end"),["stop"]))}),c.createElementVNode("span",{class:"icomoon icon-files-empty",title:"复制新表格",onClick:c.withModifiers(a,["stop"])}),c.createElementVNode("span",{class:"icomoon icon-trash-2",title:"移除组件",onClick:c.withModifiers(u,["stop"])})],64)):c.createCommentVNode("",!0),i.value.widgetType=="td"?(c.openBlock(),c.createElementBlock("span",{key:3,class:"icomoon icon-menu",title:"单元格操作",onClick:c.withModifiers(p,["stop"])})):c.createCommentVNode("",!0),c.unref(g).showTdBtn?(c.openBlock(),c.createElementBlock("div",bE,[c.createElementVNode("ul",yE,[c.createElementVNode("li",{class:"li-enable",onClick:E[5]||(E[5]=c.withModifiers(y=>b("up"),["stop"]))},"向上插入新行"),c.createElementVNode("li",{class:"li-enable",onClick:E[6]||(E[6]=c.withModifiers(y=>b("down"),["stop"]))},"向下插入新行"),c.createElementVNode("li",{class:c.normalizeClass(k("9")),onClick:c.withModifiers(u,["stop"])},"删除整行",2)]),c.createElementVNode("ul",zE,[c.createElementVNode("li",{class:"li-enable",onClick:E[7]||(E[7]=c.withModifiers(y=>z("left"),["stop"]))},"向左插入新列"),c.createElementVNode("li",{class:"li-enable",onClick:E[8]||(E[8]=c.withModifiers(y=>z("right"),["stop"]))},"向右插入新列"),c.createElementVNode("li",{class:c.normalizeClass(k("10")),onClick:c.withModifiers(j,["stop"])},"删除整列",2)]),c.createElementVNode("ul",mE,[c.createElementVNode("li",{class:c.normalizeClass(k("1")),onClick:E[9]||(E[9]=c.withModifiers(y=>S("1"),["stop"]))},"向左合并单元格",2),c.createElementVNode("li",{class:c.normalizeClass(k("2")),onClick:E[10]||(E[10]=c.withModifiers(y=>S("2"),["stop"]))},"向右合并单元格",2),c.createElementVNode("li",{class:c.normalizeClass(k("3")),onClick:E[11]||(E[11]=c.withModifiers(y=>S("3"),["stop"]))},"合并整行",2),c.createElementVNode("li",{class:c.normalizeClass(k("4")),onClick:E[12]||(E[12]=c.withModifiers(y=>S("4"),["stop"]))},"撤销行合并",2)]),c.createElementVNode("ul",null,[c.createElementVNode("li",{class:c.normalizeClass(k("5")),onClick:E[13]||(E[13]=c.withModifiers(y=>S("5"),["stop"]))},"向上合并单元格",2),c.createElementVNode("li",{class:c.normalizeClass(k("6")),onClick:E[14]||(E[14]=c.withModifiers(y=>S("6"),["stop"]))},"向下合并单元格",2),c.createElementVNode("li",{class:c.normalizeClass(k("7")),onClick:E[15]||(E[15]=c.withModifiers(y=>S("7"),["stop"]))},"合并整列",2),c.createElementVNode("li",{class:c.normalizeClass(k("8")),onClick:E[16]||(E[16]=c.withModifiers(y=>S("8"),["stop"]))},"撤销列合并",2)])])):c.createCommentVNode("",!0),i.value.widgetType=="dyTableWidget"||i.value.widgetType=="groupWidget"?(c.openBlock(),c.createElementBlock("span",{key:5,class:"icomoon icon-bin2",title:"清除内部所有组件",onClick:E[17]||(E[17]=c.withModifiers(y=>c.unref(g).clearDyTableOrGroupAllWidget(),["stop"]))})):c.createCommentVNode("",!0),i.value.pType=="formWidget"?(c.openBlock(),c.createElementBlock("span",{key:6,class:"icomoon icon-trash-2",title:"移除组件",onClick:c.withModifiers(u,["stop"])})):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)}},pE={class:"panel-option"},jE=["onUpdate:modelValue"],wE={key:0},qE={__name:"containerAttribute",setup(e){const x=J8(H8),i=t=>{let h=t?t.target.value:x.selectWidget.splitType;t&&(x.selectWidget.splitType=t.target.value);let g=x.selectWidget.children;if(h=="span"){let u=100/g.length;u=`0 0 ${u}%`;let o=parseInt(24/g.length);g.forEach(l=>{l.style={flex:u},l.flex=o})}else{let u=document.body.clientWidth-120-280;x.formConfig.formWidth&&(u=x.formConfig.formWidth);let o=parseInt(u/g.length);g.forEach(l=>{l.style={flex:`0 0 ${o}px`},l.flex=o}),g[g.length-1].style.flex="1 1 auto",g[g.length-1].flex=0}x.saveHistoryStep()};return c.onMounted(()=>{}),(t,h)=>c.unref(x).selectWidget?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.unref(x).selectWidget.widgetType=="rowColWidget"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createElementVNode("div",pE,[h[3]||(h[3]=c.createElementVNode("span",null,"栅格分割方式:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"span",value:"span","onUpdate:modelValue":h[0]||(h[0]=g=>c.unref(x).selectWidget.splitType=g),onInput:i},null,544),[[c.vModelRadio,c.unref(x).selectWidget.splitType]]),h[4]||(h[4]=c.createElementVNode("label",{for:"span"},"24等分",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"px",value:"px","onUpdate:modelValue":h[1]||(h[1]=g=>c.unref(x).selectWidget.splitType=g),onInput:i},null,544),[[c.vModelRadio,c.unref(x).selectWidget.splitType]]),h[5]||(h[5]=c.createElementVNode("label",{for:"px"},"像素",-1))]),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(x).selectWidget.children,(g,u)=>(c.openBlock(),c.createElementBlock("div",{key:g.id,class:"panel-option"},[c.createElementVNode("span",null,"列"+c.toDisplayString(u+1)+":",1),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":o=>g.flex=o,type:"number",style:{width:"80px"},onBlur:h[2]||(h[2]=o=>i(null))},null,40,jE),[[c.vModelText,g.flex]]),c.unref(x).selectWidget.splitType=="px"?(c.openBlock(),c.createElementBlock("span",wE,"(0=自适应)")):c.createCommentVNode("",!0)]))),128))],64)):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0)}},OE={class:"panel-option"},kE={class:"panel-option"},vE={class:"panel-option"},SE={class:"panel-option"},EE={class:"panel-option"},CE={class:"panel-option"},TE={key:1,style:{"font-weight":"600","margin-left":"5px"}},PE={class:"panel-option"},_E={class:"panel-option"},AE={class:"panel-option"},QE={class:"panel-option"},$E={class:"panel-option"},ME={class:"panel-option"},DE={key:2,class:"panel-option"},RE={key:3,class:"panel-option"},NE={key:4,class:"panel-option"},VE={key:5,class:"panel-option"},BE={key:6,class:"panel-option"},ZE={key:7,class:"panel-option"},IE={key:8,class:"panel-option"},LE={key:9,class:"panel-option"},WE={key:10,class:"panel-option"},XE={__name:"baseAttribute",setup(e){const x=J8(H8),i=c.ref(""),t=c.ref("");let h="#515a6e";const g=E=>{if(E.target.value<=0){x.selectWidget.styleValue.width=null,x.selectWidget.style.width="",E.target.value=null;return}else x.selectWidget.styleValue.width=E.target.value,x.selectWidget.style.width=E.target.value+"px"},u=E=>{if(E.target.value<=0){x.selectWidget.styleValue.height=null,x.selectWidget.style.height="",E.target.value=null;return}else x.selectWidget.styleValue.height=E.target.value,x.selectWidget.style.height=E.target.value+"px"},o=E=>{if(E.target.value<=0){x.selectWidget.styleValue.fontSize=null,x.selectWidget.style.fontSize="",E.target.value=null;return}else x.selectWidget.styleValue.fontSize=E.target.value,x.selectWidget.style.fontSize=E.target.value+"px"},l=E=>{if(E.target.value<=0){x.selectWidget.styleValue.fontWeight=null,x.selectWidget.style.fontWeight=null,E.target.value=null;return}else x.selectWidget.styleValue.fontWeight=E.target.value,x.selectWidget.style.fontWeight=E.target.value},d=E=>{if(E.target.value)x.selectWidget.styleValue.fontFamily=E.target.value,x.selectWidget.style.fontFamily=`"${E.target.value}"`;else{x.selectWidget.styleValue.fontFamily="",x.selectWidget.style.fontFamily="";return}},a=E=>{if(E.target.value)x.selectWidget.styleValue.color=E.target.value,x.selectWidget.style.color=E.target.value;else{x.selectWidget.styleValue.color=h;let y={...x.selectWidget.style};delete y.color,x.selectWidget.style={...y}}},b=E=>{const[y,q,T]=E.match(/\d+/g).map(Number);return`#${((1<<24)+(y<<16)+(q<<8)+T).toString(16).slice(1)}`},z=E=>{if(E.target.value<=0){x.formConfig.labelWidth!="80"?x.selectWidget.labelStyle.width=x.formConfig.labelWidth+"px":x.selectWidget.labelStyle.width="",x.selectWidget.labelStyleValue.width=null,E.target.value=null;return}else x.selectWidget.labelStyleValue.width=E.target.value,x.selectWidget.labelStyle.width=E.target.value+"px"},p=E=>{if(E.target.value)x.selectWidget.labelStyleValue.fontFamily=E.target.value,x.selectWidget.labelStyle.fontFamily=`"${E.target.value}"`;else{x.selectWidget.labelStyleValue.fontFamily="",x.selectWidget.labelStyle.fontFamily="";return}},j=E=>{if(E.target.value<=0){x.selectWidget.labelStyleValue.fontSize=null,x.selectWidget.labelStyle.fontSize="",E.target.value=null;return}else x.selectWidget.labelStyleValue.fontSize=E.target.value,x.selectWidget.labelStyle.fontSize=E.target.value+"px"},k=E=>{if(E.target.value<=0){x.selectWidget.labelStyleValue.fontWeight=null,x.selectWidget.labelStyle.fontWeight=null,E.target.value=null;return}else x.selectWidget.labelStyleValue.fontWeight=E.target.value,x.selectWidget.labelStyle.fontWeight=E.target.value},S=E=>{if(E.target.value)x.selectWidget.labelStyleValue.color=E.target.value,x.selectWidget.labelStyle.color=E.target.value;else{x.selectWidget.labelStyleValue.color=h;let y={...x.selectWidget.labelStyle};delete y.color,x.selectWidget.labelStyle={...y}}},C=()=>{i.value=x.selectWidget.type,t.value=x.selectWidget.pType,x.selectWidget.styleValue.color||(x.selectWidget.styleValue.color=h),x.selectWidget.labelStyleValue&&!x.selectWidget.labelStyleValue.color&&(x.selectWidget.labelStyleValue.color=h)};return c.onMounted(()=>{C();const E=document.body,y=window.getComputedStyle(E);y.color&&(h=y.color,h.indexOf("#")==-1&&(h=b(h)))}),c.watch(x.selectWidget.style,(E,y)=>{x.saveHistoryStep()}),c.watch(x.selectWidget.labelStyle,(E,y)=>{x.saveHistoryStep()}),(E,y)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[t.value=="formWidget"&&i.value!="label"&&i.value!="dyTable"&&i.value!="group"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.unref(x).selectWidget.config.showLabel?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[y[38]||(y[38]=c.createElementVNode("p",{style:{"font-weight":"600","margin-left":"5px"}}," 标签样式: ",-1)),c.createElementVNode("div",OE,[y[25]||(y[25]=c.createElementVNode("span",null,"宽度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[0]||(y[0]=q=>c.unref(x).selectWidget.labelStyleValue.width=q),type:"number",style:{width:"80px"},onBlur:z},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.width]]),y[26]||(y[26]=c.createTextVNode("px ",-1)),y[27]||(y[27]=c.createElementVNode("p",{style:{"margin-left":"40px"}},"(默认值:继承表单全局的标签宽度)",-1))]),c.createElementVNode("div",kE,[y[28]||(y[28]=c.createElementVNode("span",null,"字体:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[1]||(y[1]=q=>c.unref(x).selectWidget.labelStyleValue.fontFamily=q),onBlur:p},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.fontFamily]])]),c.createElementVNode("div",vE,[y[29]||(y[29]=c.createElementVNode("span",null,"字体大小:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[2]||(y[2]=q=>c.unref(x).selectWidget.labelStyleValue.fontSize=q),type:"number",style:{width:"80px"},onBlur:j},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.fontSize]]),y[30]||(y[30]=c.createTextVNode("px ",-1))]),c.createElementVNode("div",SE,[y[31]||(y[31]=c.createElementVNode("span",null,"字体粗细度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[3]||(y[3]=q=>c.unref(x).selectWidget.labelStyleValue.fontWeight=q),type:"number",style:{width:"80px"},onBlur:k},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.fontWeight]]),y[32]||(y[32]=c.createTextVNode("(100~900) ",-1))]),c.createElementVNode("div",EE,[y[33]||(y[33]=c.createElementVNode("span",null,"字体颜色:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[4]||(y[4]=q=>c.unref(x).selectWidget.labelStyleValue.color=q),type:"color",style:{width:"80px",height:"23px"},onInput:S},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.color]]),c.createElementVNode("button",{style:{"margin-left":"10px"},onClick:S},"恢复默认值")]),c.createElementVNode("div",CE,[y[34]||(y[34]=c.createElementVNode("span",null,"内容位置:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":y[5]||(y[5]=q=>c.unref(x).selectWidget.labelStyle.textAlign=q)},null,512),[[c.vModelRadio,c.unref(x).selectWidget.labelStyle.textAlign]]),y[35]||(y[35]=c.createElementVNode("label",{for:"left"},"居左",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"center",value:"center","onUpdate:modelValue":y[6]||(y[6]=q=>c.unref(x).selectWidget.labelStyle.textAlign=q)},null,512),[[c.vModelRadio,c.unref(x).selectWidget.labelStyle.textAlign]]),y[36]||(y[36]=c.createElementVNode("label",{for:"center"},"居中",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":y[7]||(y[7]=q=>c.unref(x).selectWidget.labelStyle.textAlign=q)},null,512),[[c.vModelRadio,c.unref(x).selectWidget.labelStyle.textAlign]]),y[37]||(y[37]=c.createElementVNode("label",{for:"right"},"居右",-1))])],64)):c.createCommentVNode("",!0),t.value=="formWidget"&&i.value!="label"?(c.openBlock(),c.createElementBlock("p",TE," 输入框样式: ")):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0),i.value=="dyTable"||i.value=="group"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createElementVNode("div",PE,[y[39]||(y[39]=c.createElementVNode("span",null,"标签字体:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[8]||(y[8]=q=>c.unref(x).selectWidget.labelStyleValue.fontFamily=q),onBlur:p},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.fontFamily]])]),c.createElementVNode("div",_E,[y[40]||(y[40]=c.createElementVNode("span",null,"标签字体大小:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[9]||(y[9]=q=>c.unref(x).selectWidget.labelStyleValue.fontSize=q),type:"number",min:"16",style:{width:"80px"},onBlur:j},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.fontSize]]),y[41]||(y[41]=c.createTextVNode("px ",-1))]),c.createElementVNode("div",AE,[y[42]||(y[42]=c.createElementVNode("span",null,"字体粗细度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[10]||(y[10]=q=>c.unref(x).selectWidget.labelStyleValue.fontWeight=q),type:"number",style:{width:"80px"},onBlur:k},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.fontWeight]]),y[43]||(y[43]=c.createTextVNode("(100~900) ",-1))]),c.createElementVNode("div",QE,[y[44]||(y[44]=c.createElementVNode("span",null,"标签字体颜色:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[11]||(y[11]=q=>c.unref(x).selectWidget.labelStyleValue.color=q),type:"color",style:{width:"80px",height:"23px"},onInput:S},null,544),[[c.vModelText,c.unref(x).selectWidget.labelStyleValue.color]]),c.createElementVNode("button",{style:{"margin-left":"10px"},onClick:S},"恢复默认值")]),c.createElementVNode("div",$E,[y[45]||(y[45]=c.createElementVNode("span",null,"标签内边距:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[12]||(y[12]=q=>c.unref(x).selectWidget.labelStyle.padding=q)},null,512),[[c.vModelText,c.unref(x).selectWidget.labelStyle.padding]]),y[46]||(y[46]=c.createElementVNode("p",{style:{"margin-left":"55px"}},"(单位:px;顺序:上 右 下 左)",-1)),y[47]||(y[47]=c.createElementVNode("p",{style:{"margin-left":"55px"}},"(如:5px   5px   5px   5px)",-1))]),c.createElementVNode("div",ME,[y[48]||(y[48]=c.createElementVNode("span",null,"标签外边距:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[13]||(y[13]=q=>c.unref(x).selectWidget.labelStyle.margin=q)},null,512),[[c.vModelText,c.unref(x).selectWidget.labelStyle.margin]]),y[49]||(y[49]=c.createElementVNode("p",{style:{"margin-left":"55px"}},"(单位:px;顺序:上 右 下 左)",-1)),y[50]||(y[50]=c.createElementVNode("p",{style:{"margin-left":"55px"}},"(如:5px   5px   5px   5px)",-1))])],64)):c.createCommentVNode("",!0),c.unref(x).showStyle.width.includes(i.value)?(c.openBlock(),c.createElementBlock("div",DE,[y[51]||(y[51]=c.createElementVNode("span",null,"宽度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[14]||(y[14]=q=>c.unref(x).selectWidget.styleValue.width=q),type:"number",style:{width:"80px"},onBlur:g},null,544),[[c.vModelText,c.unref(x).selectWidget.styleValue.width]]),y[52]||(y[52]=c.createTextVNode("px(默认值:100%) ",-1))])):c.createCommentVNode("",!0),c.unref(x).showStyle.height.includes(i.value)?(c.openBlock(),c.createElementBlock("div",RE,[y[53]||(y[53]=c.createElementVNode("span",null,"高度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[15]||(y[15]=q=>c.unref(x).selectWidget.styleValue.height=q),type:"number",style:{width:"80px"},onBlur:u},null,544),[[c.vModelText,c.unref(x).selectWidget.styleValue.height]]),y[54]||(y[54]=c.createTextVNode("px(默认值:100%) ",-1))])):c.createCommentVNode("",!0),c.unref(x).showStyle.padding.includes(i.value)?(c.openBlock(),c.createElementBlock("div",NE,[y[55]||(y[55]=c.createElementVNode("span",null,"内边距:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[16]||(y[16]=q=>c.unref(x).selectWidget.style.padding=q)},null,512),[[c.vModelText,c.unref(x).selectWidget.style.padding]]),y[56]||(y[56]=c.createElementVNode("p",{style:{"margin-left":"55px"}},"(单位:px;顺序:上 右 下 左)",-1)),y[57]||(y[57]=c.createElementVNode("p",{style:{"margin-left":"55px"}},"(如:5px   5px   5px   5px)",-1))])):c.createCommentVNode("",!0),c.unref(x).showStyle.margin.includes(i.value)?(c.openBlock(),c.createElementBlock("div",VE,[y[58]||(y[58]=c.createElementVNode("span",null,"外边距:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[17]||(y[17]=q=>c.unref(x).selectWidget.style.margin=q)},null,512),[[c.vModelText,c.unref(x).selectWidget.style.margin]]),y[59]||(y[59]=c.createElementVNode("p",{style:{"margin-left":"55px"}},"(单位:px;顺序:上 右 下 左)",-1)),y[60]||(y[60]=c.createElementVNode("p",{style:{"margin-left":"55px"}},"(如:5px   5px   5px   5px)",-1))])):c.createCommentVNode("",!0),c.unref(x).showStyle.fontFamily.includes(i.value)?(c.openBlock(),c.createElementBlock("div",BE,[y[61]||(y[61]=c.createElementVNode("span",null,"字体:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[18]||(y[18]=q=>c.unref(x).selectWidget.styleValue.fontFamily=q),onBlur:d},null,544),[[c.vModelText,c.unref(x).selectWidget.styleValue.fontFamily]])])):c.createCommentVNode("",!0),c.unref(x).showStyle.fontSize.includes(i.value)?(c.openBlock(),c.createElementBlock("div",ZE,[y[62]||(y[62]=c.createElementVNode("span",null,"字体大小:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[19]||(y[19]=q=>c.unref(x).selectWidget.styleValue.fontSize=q),type:"number",style:{width:"80px"},onBlur:o},null,544),[[c.vModelText,c.unref(x).selectWidget.styleValue.fontSize]]),y[63]||(y[63]=c.createTextVNode("px ",-1))])):c.createCommentVNode("",!0),c.unref(x).showStyle.fontSize.includes(i.value)?(c.openBlock(),c.createElementBlock("div",IE,[y[64]||(y[64]=c.createElementVNode("span",null,"字体粗细度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[20]||(y[20]=q=>c.unref(x).selectWidget.styleValue.fontWeight=q),type:"number",style:{width:"80px"},onBlur:l},null,544),[[c.vModelText,c.unref(x).selectWidget.styleValue.fontWeight]]),y[65]||(y[65]=c.createTextVNode("(100~900) ",-1))])):c.createCommentVNode("",!0),c.unref(x).showStyle.color.includes(i.value)?(c.openBlock(),c.createElementBlock("div",LE,[y[66]||(y[66]=c.createElementVNode("span",null,"字体颜色:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[21]||(y[21]=q=>c.unref(x).selectWidget.styleValue.color=q),type:"color",style:{width:"80px",height:"23px"},onInput:a},null,544),[[c.vModelText,c.unref(x).selectWidget.styleValue.color]]),c.createElementVNode("button",{style:{"margin-left":"10px"},onClick:a},"恢复默认值")])):c.createCommentVNode("",!0),c.unref(x).showStyle.textAlign.includes(i.value)?(c.openBlock(),c.createElementBlock("div",WE,[y[67]||(y[67]=c.createElementVNode("span",null,"内容位置:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":y[22]||(y[22]=q=>c.unref(x).selectWidget.style.textAlign=q)},null,512),[[c.vModelRadio,c.unref(x).selectWidget.style.textAlign]]),y[68]||(y[68]=c.createElementVNode("label",{for:"left"},"居左",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"center",value:"center","onUpdate:modelValue":y[23]||(y[23]=q=>c.unref(x).selectWidget.style.textAlign=q)},null,512),[[c.vModelRadio,c.unref(x).selectWidget.style.textAlign]]),y[69]||(y[69]=c.createElementVNode("label",{for:"center"},"居中",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":y[24]||(y[24]=q=>c.unref(x).selectWidget.style.textAlign=q)},null,512),[[c.vModelRadio,c.unref(x).selectWidget.style.textAlign]]),y[70]||(y[70]=c.createElementVNode("label",{for:"right"},"居右",-1))])):c.createCommentVNode("",!0)],64))}};let Sh=[],cd=[];(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(x=>x?parseInt(x,36):1);for(let x=0,i=0;x<e.length;x++)(x%2?cd:Sh).push(i=i+e[x])})();function UE(e){if(e<768)return!1;for(let x=0,i=Sh.length;;){let t=x+i>>1;if(e<Sh[t])i=t;else if(e>=cd[t])x=t+1;else return!0;if(x==i)return!1}}function Uo(e){return e>=127462&&e<=127487}const Fo=8205;function FE(e,x,i=!0,t=!0){return(i?rd:YE)(e,x,t)}function rd(e,x,i){if(x==e.length)return x;x&&dd(e.charCodeAt(x))&&ad(e.charCodeAt(x-1))&&x--;let t=S9(e,x);for(x+=Yo(t);x<e.length;){let h=S9(e,x);if(t==Fo||h==Fo||i&&UE(h))x+=Yo(h),t=h;else if(Uo(h)){let g=0,u=x-2;for(;u>=0&&Uo(S9(e,u));)g++,u-=2;if(g%2==0)break;x+=2}else break}return x}function YE(e,x,i){for(;x>0;){let t=rd(e,x-2,i);if(t<x)return t;x--}return 0}function S9(e,x){let i=e.charCodeAt(x);if(!ad(i)||x+1==e.length)return i;let t=e.charCodeAt(x+1);return dd(t)?(i-55296<<10)+(t-56320)+65536:i}function dd(e){return e>=56320&&e<57344}function ad(e){return e>=55296&&e<56320}function Yo(e){return e<65536?1:2}class T0{lineAt(x){if(x<0||x>this.length)throw new RangeError(`Invalid position ${x} in document of length ${this.length}`);return this.lineInner(x,!1,1,0)}line(x){if(x<1||x>this.lines)throw new RangeError(`Invalid line number ${x} in ${this.lines}-line document`);return this.lineInner(x,!0,1,0)}replace(x,i,t){[x,i]=Z8(this,x,i);let h=[];return this.decompose(0,x,h,2),t.length&&t.decompose(0,t.length,h,3),this.decompose(i,this.length,h,1),ox.from(h,this.length-(i-x)+t.length)}append(x){return this.replace(this.length,this.length,x)}slice(x,i=this.length){[x,i]=Z8(this,x,i);let t=[];return this.decompose(x,i,t,0),ox.from(t,i-x)}eq(x){if(x==this)return!0;if(x.length!=this.length||x.lines!=this.lines)return!1;let i=this.scanIdentical(x,1),t=this.length-this.scanIdentical(x,-1),h=new ni(this),g=new ni(x);for(let u=i,o=i;;){if(h.next(u),g.next(u),u=0,h.lineBreak!=g.lineBreak||h.done!=g.done||h.value!=g.value)return!1;if(o+=h.value.length,h.done||o>=t)return!0}}iter(x=1){return new ni(this,x)}iterRange(x,i=this.length){return new fd(this,x,i)}iterLines(x,i){let t;if(x==null)t=this.iter();else{i==null&&(i=this.lines+1);let h=this.line(x).from;t=this.iterRange(h,Math.max(h,i==this.lines+1?this.length:i<=1?0:this.line(i-1).to))}return new bd(t)}toString(){return this.sliceString(0)}toJSON(){let x=[];return this.flatten(x),x}constructor(){}static of(x){if(x.length==0)throw new RangeError("A document must have at least one line");return x.length==1&&!x[0]?T0.empty:x.length<=32?new gn(x):ox.from(gn.split(x,[]))}}class gn extends T0{constructor(x,i=GE(x)){super(),this.text=x,this.length=i}get lines(){return this.text.length}get children(){return null}lineInner(x,i,t,h){for(let g=0;;g++){let u=this.text[g],o=h+u.length;if((i?t:o)>=x)return new HE(h,o,t,u);h=o+1,t++}}decompose(x,i,t,h){let g=x<=0&&i>=this.length?this:new gn(Go(this.text,x,i),Math.min(i,this.length)-Math.max(0,x));if(h&1){let u=t.pop(),o=k3(g.text,u.text.slice(),0,g.length);if(o.length<=32)t.push(new gn(o,u.length+g.length));else{let l=o.length>>1;t.push(new gn(o.slice(0,l)),new gn(o.slice(l)))}}else t.push(g)}replace(x,i,t){if(!(t instanceof gn))return super.replace(x,i,t);[x,i]=Z8(this,x,i);let h=k3(this.text,k3(t.text,Go(this.text,0,x)),i),g=this.length+t.length-(i-x);return h.length<=32?new gn(h,g):ox.from(gn.split(h,[]),g)}sliceString(x,i=this.length,t=`
157699
157699
  `){[x,i]=Z8(this,x,i);let h="";for(let g=0,u=0;g<=i&&u<this.text.length;u++){let o=this.text[u],l=g+o.length;g>x&&u&&(h+=t),x<l&&i>g&&(h+=o.slice(Math.max(0,x-g),i-g)),g=l+1}return h}flatten(x){for(let i of this.text)x.push(i)}scanIdentical(){return 0}static split(x,i){let t=[],h=-1;for(let g of x)t.push(g),h+=g.length+1,t.length==32&&(i.push(new gn(t,h)),t=[],h=-1);return h>-1&&i.push(new gn(t,h)),i}}class ox extends T0{constructor(x,i){super(),this.children=x,this.length=i,this.lines=0;for(let t of x)this.lines+=t.lines}lineInner(x,i,t,h){for(let g=0;;g++){let u=this.children[g],o=h+u.length,l=t+u.lines-1;if((i?l:o)>=x)return u.lineInner(x,i,t,h);h=o+1,t=l+1}}decompose(x,i,t,h){for(let g=0,u=0;u<=i&&g<this.children.length;g++){let o=this.children[g],l=u+o.length;if(x<=l&&i>=u){let d=h&((u<=x?1:0)|(l>=i?2:0));u>=x&&l<=i&&!d?t.push(o):o.decompose(x-u,i-u,t,d)}u=l+1}}replace(x,i,t){if([x,i]=Z8(this,x,i),t.lines<this.lines)for(let h=0,g=0;h<this.children.length;h++){let u=this.children[h],o=g+u.length;if(x>=g&&i<=o){let l=u.replace(x-g,i-g,t),d=this.lines-u.lines+l.lines;if(l.lines<d>>4&&l.lines>d>>6){let a=this.children.slice();return a[h]=l,new ox(a,this.length-(i-x)+t.length)}return super.replace(g,o,l)}g=o+1}return super.replace(x,i,t)}sliceString(x,i=this.length,t=`
157700
157700
  `){[x,i]=Z8(this,x,i);let h="";for(let g=0,u=0;g<this.children.length&&u<=i;g++){let o=this.children[g],l=u+o.length;u>x&&g&&(h+=t),x<l&&i>u&&(h+=o.sliceString(x-u,i-u,t)),u=l+1}return h}flatten(x){for(let i of this.children)i.flatten(x)}scanIdentical(x,i){if(!(x instanceof ox))return 0;let t=0,[h,g,u,o]=i>0?[0,0,this.children.length,x.children.length]:[this.children.length-1,x.children.length-1,-1,-1];for(;;h+=i,g+=i){if(h==u||g==o)return t;let l=this.children[h],d=x.children[g];if(l!=d)return t+l.scanIdentical(d,i);t+=l.length+1}}static from(x,i=x.reduce((t,h)=>t+h.length+1,-1)){let t=0;for(let p of x)t+=p.lines;if(t<32){let p=[];for(let j of x)j.flatten(p);return new gn(p,i)}let h=Math.max(32,t>>5),g=h<<1,u=h>>1,o=[],l=0,d=-1,a=[];function b(p){let j;if(p.lines>g&&p instanceof ox)for(let k of p.children)b(k);else p.lines>u&&(l>u||!l)?(z(),o.push(p)):p instanceof gn&&l&&(j=a[a.length-1])instanceof gn&&p.lines+j.lines<=32?(l+=p.lines,d+=p.length+1,a[a.length-1]=new gn(j.text.concat(p.text),j.length+1+p.length)):(l+p.lines>h&&z(),l+=p.lines,d+=p.length+1,a.push(p))}function z(){l!=0&&(o.push(a.length==1?a[0]:ox.from(a,d)),d=-1,l=a.length=0)}for(let p of x)b(p);return z(),o.length==1?o[0]:new ox(o,i)}}T0.empty=new gn([""],0);function GE(e){let x=-1;for(let i of e)x+=i.length+1;return x}function k3(e,x,i=0,t=1e9){for(let h=0,g=0,u=!0;g<e.length&&h<=t;g++){let o=e[g],l=h+o.length;l>=i&&(l>t&&(o=o.slice(0,t-h)),h<i&&(o=o.slice(i-h)),u?(x[x.length-1]+=o,u=!1):x.push(o)),h=l+1}return x}function Go(e,x,i){return k3(e,[""],x,i)}class ni{constructor(x,i=1){this.dir=i,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[x],this.offsets=[i>0?1:(x instanceof gn?x.text.length:x.children.length)<<1]}nextInner(x,i){for(this.done=this.lineBreak=!1;;){let t=this.nodes.length-1,h=this.nodes[t],g=this.offsets[t],u=g>>1,o=h instanceof gn?h.text.length:h.children.length;if(u==(i>0?o:0)){if(t==0)return this.done=!0,this.value="",this;i>0&&this.offsets[t-1]++,this.nodes.pop(),this.offsets.pop()}else if((g&1)==(i>0?0:1)){if(this.offsets[t]+=i,x==0)return this.lineBreak=!0,this.value=`
157701
157701
  `,this;x--}else if(h instanceof gn){let l=h.text[u+(i<0?-1:0)];if(this.offsets[t]+=i,l.length>Math.max(0,x))return this.value=x==0?l:i>0?l.slice(x):l.slice(0,l.length-x),this;x-=l.length}else{let l=h.children[u+(i<0?-1:0)];x>l.length?(x-=l.length,this.offsets[t]+=i):(i<0&&this.offsets[t]--,this.nodes.push(l),this.offsets.push(i>0?1:(l instanceof gn?l.text.length:l.children.length)<<1))}}}next(x=0){return x<0&&(this.nextInner(-x,-this.dir),x=this.value.length),this.nextInner(x,this.dir)}}class fd{constructor(x,i,t){this.value="",this.done=!1,this.cursor=new ni(x,i>t?-1:1),this.pos=i>t?x.length:0,this.from=Math.min(i,t),this.to=Math.max(i,t)}nextInner(x,i){if(i<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;x+=Math.max(0,i<0?this.pos-this.to:this.from-this.pos);let t=i<0?this.pos-this.from:this.to-this.pos;x>t&&(x=t),t-=x;let{value:h}=this.cursor.next(x);return this.pos+=(h.length+x)*i,this.value=h.length<=t?h:i<0?h.slice(h.length-t):h.slice(0,t),this.done=!this.value,this}next(x=0){return x<0?x=Math.max(x,this.from-this.pos):x>0&&(x=Math.min(x,this.to-this.pos)),this.nextInner(x,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class bd{constructor(x){this.inner=x,this.afterBreak=!0,this.value="",this.done=!1}next(x=0){let{done:i,lineBreak:t,value:h}=this.inner.next(x);return i&&this.afterBreak?(this.value="",this.afterBreak=!1):i?(this.done=!0,this.value=""):t?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=h,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(T0.prototype[Symbol.iterator]=function(){return this.iter()},ni.prototype[Symbol.iterator]=fd.prototype[Symbol.iterator]=bd.prototype[Symbol.iterator]=function(){return this});class HE{constructor(x,i,t,h){this.from=x,this.to=i,this.number=t,this.text=h}get length(){return this.to-this.from}}function Z8(e,x,i){return x=Math.max(0,Math.min(e.length,x)),[x,Math.max(x,Math.min(e.length,i))]}function Pn(e,x,i=!0,t=!0){return FE(e,x,i,t)}function KE(e){return e>=56320&&e<57344}function JE(e){return e>=55296&&e<56320}function n1(e,x){let i=e.charCodeAt(x);if(!JE(i)||x+1==e.length)return i;let t=e.charCodeAt(x+1);return KE(t)?(i-55296<<10)+(t-56320)+65536:i}function Z6(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function lx(e){return e<65536?1:2}const Eh=/\r\n?|\n/;var Tn=(function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e})(Tn||(Tn={}));class yx{constructor(x){this.sections=x}get length(){let x=0;for(let i=0;i<this.sections.length;i+=2)x+=this.sections[i];return x}get newLength(){let x=0;for(let i=0;i<this.sections.length;i+=2){let t=this.sections[i+1];x+=t<0?this.sections[i]:t}return x}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(x){for(let i=0,t=0,h=0;i<this.sections.length;){let g=this.sections[i++],u=this.sections[i++];u<0?(x(t,h,g),h+=g):h+=u,t+=g}}iterChangedRanges(x,i=!1){Ch(this,x,i)}get invertedDesc(){let x=[];for(let i=0;i<this.sections.length;){let t=this.sections[i++],h=this.sections[i++];h<0?x.push(t,h):x.push(h,t)}return new yx(x)}composeDesc(x){return this.empty?x:x.empty?this:yd(this,x)}mapDesc(x,i=!1){return x.empty?this:Th(this,x,i)}mapPos(x,i=-1,t=Tn.Simple){let h=0,g=0;for(let u=0;u<this.sections.length;){let o=this.sections[u++],l=this.sections[u++],d=h+o;if(l<0){if(d>x)return g+(x-h);g+=o}else{if(t!=Tn.Simple&&d>=x&&(t==Tn.TrackDel&&h<x&&d>x||t==Tn.TrackBefore&&h<x||t==Tn.TrackAfter&&d>x))return null;if(d>x||d==x&&i<0&&!o)return x==h||i<0?g:g+l;g+=l}h=d}if(x>h)throw new RangeError(`Position ${x} is out of range for changeset of length ${h}`);return g}touchesRange(x,i=x){for(let t=0,h=0;t<this.sections.length&&h<=i;){let g=this.sections[t++],u=this.sections[t++],o=h+g;if(u>=0&&h<=i&&o>=x)return h<x&&o>i?"cover":!0;h=o}return!1}toString(){let x="";for(let i=0;i<this.sections.length;){let t=this.sections[i++],h=this.sections[i++];x+=(x?" ":"")+t+(h>=0?":"+h:"")}return x}toJSON(){return this.sections}static fromJSON(x){if(!Array.isArray(x)||x.length%2||x.some(i=>typeof i!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new yx(x)}static create(x){return new yx(x)}}class fn extends yx{constructor(x,i){super(x),this.inserted=i}apply(x){if(this.length!=x.length)throw new RangeError("Applying change set to a document with the wrong length");return Ch(this,(i,t,h,g,u)=>x=x.replace(h,h+(t-i),u),!1),x}mapDesc(x,i=!1){return Th(this,x,i,!0)}invert(x){let i=this.sections.slice(),t=[];for(let h=0,g=0;h<i.length;h+=2){let u=i[h],o=i[h+1];if(o>=0){i[h]=o,i[h+1]=u;let l=h>>1;for(;t.length<l;)t.push(T0.empty);t.push(u?x.slice(g,g+u):T0.empty)}g+=u}return new fn(i,t)}compose(x){return this.empty?x:x.empty?this:yd(this,x,!0)}map(x,i=!1){return x.empty?this:Th(this,x,i,!0)}iterChanges(x,i=!1){Ch(this,x,i)}get desc(){return yx.create(this.sections)}filter(x){let i=[],t=[],h=[],g=new ci(this);n:for(let u=0,o=0;;){let l=u==x.length?1e9:x[u++];for(;o<l||o==l&&g.len==0;){if(g.done)break n;let a=Math.min(g.len,l-o);Dn(h,a,-1);let b=g.ins==-1?-1:g.off==0?g.ins:0;Dn(i,a,b),b>0&&l4(t,i,g.text),g.forward(a),o+=a}let d=x[u++];for(;o<d;){if(g.done)break n;let a=Math.min(g.len,d-o);Dn(i,a,-1),Dn(h,a,g.ins==-1?-1:g.off==0?g.ins:0),g.forward(a),o+=a}}return{changes:new fn(i,t),filtered:yx.create(h)}}toJSON(){let x=[];for(let i=0;i<this.sections.length;i+=2){let t=this.sections[i],h=this.sections[i+1];h<0?x.push(t):h==0?x.push([t]):x.push([t].concat(this.inserted[i>>1].toJSON()))}return x}static of(x,i,t){let h=[],g=[],u=0,o=null;function l(a=!1){if(!a&&!h.length)return;u<i&&Dn(h,i-u,-1);let b=new fn(h,g);o=o?o.compose(b.map(o)):b,h=[],g=[],u=0}function d(a){if(Array.isArray(a))for(let b of a)d(b);else if(a instanceof fn){if(a.length!=i)throw new RangeError(`Mismatched change set length (got ${a.length}, expected ${i})`);l(),o=o?o.compose(a.map(o)):a}else{let{from:b,to:z=b,insert:p}=a;if(b>z||b<0||z>i)throw new RangeError(`Invalid change range ${b} to ${z} (in doc of length ${i})`);let j=p?typeof p=="string"?T0.of(p.split(t||Eh)):p:T0.empty,k=j.length;if(b==z&&k==0)return;b<u&&l(),b>u&&Dn(h,b-u,-1),Dn(h,z-b,k),l4(g,h,j),u=z}}return d(x),l(!o),o}static empty(x){return new fn(x?[x,-1]:[],[])}static fromJSON(x){if(!Array.isArray(x))throw new RangeError("Invalid JSON representation of ChangeSet");let i=[],t=[];for(let h=0;h<x.length;h++){let g=x[h];if(typeof g=="number")i.push(g,-1);else{if(!Array.isArray(g)||typeof g[0]!="number"||g.some((u,o)=>o&&typeof u!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(g.length==1)i.push(g[0],0);else{for(;t.length<h;)t.push(T0.empty);t[h]=T0.of(g.slice(1)),i.push(g[0],t[h].length)}}}return new fn(i,t)}static createSet(x,i){return new fn(x,i)}}function Dn(e,x,i,t=!1){if(x==0&&i<=0)return;let h=e.length-2;h>=0&&i<=0&&i==e[h+1]?e[h]+=x:h>=0&&x==0&&e[h]==0?e[h+1]+=i:t?(e[h]+=x,e[h+1]+=i):e.push(x,i)}function l4(e,x,i){if(i.length==0)return;let t=x.length-2>>1;if(t<e.length)e[e.length-1]=e[e.length-1].append(i);else{for(;e.length<t;)e.push(T0.empty);e.push(i)}}function Ch(e,x,i){let t=e.inserted;for(let h=0,g=0,u=0;u<e.sections.length;){let o=e.sections[u++],l=e.sections[u++];if(l<0)h+=o,g+=o;else{let d=h,a=g,b=T0.empty;for(;d+=o,a+=l,l&&t&&(b=b.append(t[u-2>>1])),!(i||u==e.sections.length||e.sections[u+1]<0);)o=e.sections[u++],l=e.sections[u++];x(h,d,g,a,b),h=d,g=a}}}function Th(e,x,i,t=!1){let h=[],g=t?[]:null,u=new ci(e),o=new ci(x);for(let l=-1;;){if(u.done&&o.len||o.done&&u.len)throw new Error("Mismatched change set lengths");if(u.ins==-1&&o.ins==-1){let d=Math.min(u.len,o.len);Dn(h,d,-1),u.forward(d),o.forward(d)}else if(o.ins>=0&&(u.ins<0||l==u.i||u.off==0&&(o.len<u.len||o.len==u.len&&!i))){let d=o.len;for(Dn(h,o.ins,-1);d;){let a=Math.min(u.len,d);u.ins>=0&&l<u.i&&u.len<=a&&(Dn(h,0,u.ins),g&&l4(g,h,u.text),l=u.i),u.forward(a),d-=a}o.next()}else if(u.ins>=0){let d=0,a=u.len;for(;a;)if(o.ins==-1){let b=Math.min(a,o.len);d+=b,a-=b,o.forward(b)}else if(o.ins==0&&o.len<a)a-=o.len,o.next();else break;Dn(h,d,l<u.i?u.ins:0),g&&l<u.i&&l4(g,h,u.text),l=u.i,u.forward(u.len-a)}else{if(u.done&&o.done)return g?fn.createSet(h,g):yx.create(h);throw new Error("Mismatched change set lengths")}}}function yd(e,x,i=!1){let t=[],h=i?[]:null,g=new ci(e),u=new ci(x);for(let o=!1;;){if(g.done&&u.done)return h?fn.createSet(t,h):yx.create(t);if(g.ins==0)Dn(t,g.len,0,o),g.next();else if(u.len==0&&!u.done)Dn(t,0,u.ins,o),h&&l4(h,t,u.text),u.next();else{if(g.done||u.done)throw new Error("Mismatched change set lengths");{let l=Math.min(g.len2,u.len),d=t.length;if(g.ins==-1){let a=u.ins==-1?-1:u.off?0:u.ins;Dn(t,l,a,o),h&&a&&l4(h,t,u.text)}else u.ins==-1?(Dn(t,g.off?0:g.len,l,o),h&&l4(h,t,g.textBit(l))):(Dn(t,g.off?0:g.len,u.off?0:u.ins,o),h&&!u.off&&l4(h,t,u.text));o=(g.ins>l||u.ins>=0&&u.len>l)&&(o||t.length>d),g.forward2(l),u.forward(l)}}}}class ci{constructor(x){this.set=x,this.i=0,this.next()}next(){let{sections:x}=this.set;this.i<x.length?(this.len=x[this.i++],this.ins=x[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:x}=this.set,i=this.i-2>>1;return i>=x.length?T0.empty:x[i]}textBit(x){let{inserted:i}=this.set,t=this.i-2>>1;return t>=i.length&&!x?T0.empty:i[t].slice(this.off,x==null?void 0:this.off+x)}forward(x){x==this.len?this.next():(this.len-=x,this.off+=x)}forward2(x){this.ins==-1?this.forward(x):x==this.ins?this.next():(this.ins-=x,this.off+=x)}}class Z4{constructor(x,i,t){this.from=x,this.to=i,this.flags=t}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let x=this.flags&7;return x==7?null:x}get goalColumn(){let x=this.flags>>6;return x==16777215?void 0:x}map(x,i=-1){let t,h;return this.empty?t=h=x.mapPos(this.from,i):(t=x.mapPos(this.from,1),h=x.mapPos(this.to,-1)),t==this.from&&h==this.to?this:new Z4(t,h,this.flags)}extend(x,i=x){if(x<=this.anchor&&i>=this.anchor)return Z.range(x,i);let t=Math.abs(x-this.anchor)>Math.abs(i-this.anchor)?x:i;return Z.range(this.anchor,t)}eq(x,i=!1){return this.anchor==x.anchor&&this.head==x.head&&(!i||!this.empty||this.assoc==x.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(x){if(!x||typeof x.anchor!="number"||typeof x.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Z.range(x.anchor,x.head)}static create(x,i,t){return new Z4(x,i,t)}}class Z{constructor(x,i){this.ranges=x,this.mainIndex=i}map(x,i=-1){return x.empty?this:Z.create(this.ranges.map(t=>t.map(x,i)),this.mainIndex)}eq(x,i=!1){if(this.ranges.length!=x.ranges.length||this.mainIndex!=x.mainIndex)return!1;for(let t=0;t<this.ranges.length;t++)if(!this.ranges[t].eq(x.ranges[t],i))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new Z([this.main],0)}addRange(x,i=!0){return Z.create([x].concat(this.ranges),i?0:this.mainIndex+1)}replaceRange(x,i=this.mainIndex){let t=this.ranges.slice();return t[i]=x,Z.create(t,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(x=>x.toJSON()),main:this.mainIndex}}static fromJSON(x){if(!x||!Array.isArray(x.ranges)||typeof x.main!="number"||x.main>=x.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Z(x.ranges.map(i=>Z4.fromJSON(i)),x.main)}static single(x,i=x){return new Z([Z.range(x,i)],0)}static create(x,i=0){if(x.length==0)throw new RangeError("A selection needs at least one range");for(let t=0,h=0;h<x.length;h++){let g=x[h];if(g.empty?g.from<=t:g.from<t)return Z.normalized(x.slice(),i);t=g.to}return new Z(x,i)}static cursor(x,i=0,t,h){return Z4.create(x,x,(i==0?0:i<0?8:16)|(t==null?7:Math.min(6,t))|(h??16777215)<<6)}static range(x,i,t,h){let g=(t??16777215)<<6|(h==null?7:Math.min(6,h));return i<x?Z4.create(i,x,48|g):Z4.create(x,i,(i>x?8:0)|g)}static normalized(x,i=0){let t=x[i];x.sort((h,g)=>h.from-g.from),i=x.indexOf(t);for(let h=1;h<x.length;h++){let g=x[h],u=x[h-1];if(g.empty?g.from<=u.to:g.from<u.to){let o=u.from,l=Math.max(g.to,u.to);h<=i&&i--,x.splice(--h,2,g.anchor>g.head?Z.range(l,o):Z.range(o,l))}}return new Z(x,i)}}function zd(e,x){for(let i of e.ranges)if(i.to>x)throw new RangeError("Selection points outside of document")}let I6=0;class i0{constructor(x,i,t,h,g){this.combine=x,this.compareInput=i,this.compare=t,this.isStatic=h,this.id=I6++,this.default=x([]),this.extensions=typeof g=="function"?g(this):g}get reader(){return this}static define(x={}){return new i0(x.combine||(i=>i),x.compareInput||((i,t)=>i===t),x.compare||(x.combine?(i,t)=>i===t:L6),!!x.static,x.enables)}of(x){return new v3([],this,0,x)}compute(x,i){if(this.isStatic)throw new Error("Can't compute a static facet");return new v3(x,this,1,i)}computeN(x,i){if(this.isStatic)throw new Error("Can't compute a static facet");return new v3(x,this,2,i)}from(x,i){return i||(i=t=>t),this.compute([x],t=>i(t.field(x)))}}function L6(e,x){return e==x||e.length==x.length&&e.every((i,t)=>i===x[t])}class v3{constructor(x,i,t,h){this.dependencies=x,this.facet=i,this.type=t,this.value=h,this.id=I6++}dynamicSlot(x){var i;let t=this.value,h=this.facet.compareInput,g=this.id,u=x[g]>>1,o=this.type==2,l=!1,d=!1,a=[];for(let b of this.dependencies)b=="doc"?l=!0:b=="selection"?d=!0:(((i=x[b.id])!==null&&i!==void 0?i:1)&1)==0&&a.push(x[b.id]);return{create(b){return b.values[u]=t(b),1},update(b,z){if(l&&z.docChanged||d&&(z.docChanged||z.selection)||Ph(b,a)){let p=t(b);if(o?!Ho(p,b.values[u],h):!h(p,b.values[u]))return b.values[u]=p,1}return 0},reconfigure:(b,z)=>{let p,j=z.config.address[g];if(j!=null){let k=F3(z,j);if(this.dependencies.every(S=>S instanceof i0?z.facet(S)===b.facet(S):S instanceof qn?z.field(S,!1)==b.field(S,!1):!0)||(o?Ho(p=t(b),k,h):h(p=t(b),k)))return b.values[u]=k,0}else p=t(b);return b.values[u]=p,1}}}}function Ho(e,x,i){if(e.length!=x.length)return!1;for(let t=0;t<e.length;t++)if(!i(e[t],x[t]))return!1;return!0}function Ph(e,x){let i=!1;for(let t of x)xi(e,t)&1&&(i=!0);return i}function nC(e,x,i){let t=i.map(l=>e[l.id]),h=i.map(l=>l.type),g=t.filter(l=>!(l&1)),u=e[x.id]>>1;function o(l){let d=[];for(let a=0;a<t.length;a++){let b=F3(l,t[a]);if(h[a]==2)for(let z of b)d.push(z);else d.push(b)}return x.combine(d)}return{create(l){for(let d of t)xi(l,d);return l.values[u]=o(l),1},update(l,d){if(!Ph(l,g))return 0;let a=o(l);return x.compare(a,l.values[u])?0:(l.values[u]=a,1)},reconfigure(l,d){let a=Ph(l,t),b=d.config.facets[x.id],z=d.facet(x);if(b&&!a&&L6(i,b))return l.values[u]=z,0;let p=o(l);return x.compare(p,z)?(l.values[u]=z,0):(l.values[u]=p,1)}}}const I5=i0.define({static:!0});class qn{constructor(x,i,t,h,g){this.id=x,this.createF=i,this.updateF=t,this.compareF=h,this.spec=g,this.provides=void 0}static define(x){let i=new qn(I6++,x.create,x.update,x.compare||((t,h)=>t===h),x);return x.provide&&(i.provides=x.provide(i)),i}create(x){let i=x.facet(I5).find(t=>t.field==this);return(i?.create||this.createF)(x)}slot(x){let i=x[this.id]>>1;return{create:t=>(t.values[i]=this.create(t),1),update:(t,h)=>{let g=t.values[i],u=this.updateF(g,h);return this.compareF(g,u)?0:(t.values[i]=u,1)},reconfigure:(t,h)=>{let g=t.facet(I5),u=h.facet(I5),o;return(o=g.find(l=>l.field==this))&&o!=u.find(l=>l.field==this)?(t.values[i]=o.create(t),1):h.config.address[this.id]!=null?(t.values[i]=h.field(this),0):(t.values[i]=this.create(t),1)}}}init(x){return[this,I5.of({field:this,create:x})]}get extension(){return this}}const N4={lowest:4,low:3,default:2,high:1,highest:0};function E2(e){return x=>new md(x,e)}const p4={highest:E2(N4.highest),high:E2(N4.high),default:E2(N4.default),low:E2(N4.low),lowest:E2(N4.lowest)};class md{constructor(x,i){this.inner=x,this.prec=i}}class Oe{of(x){return new _h(this,x)}reconfigure(x){return Oe.reconfigure.of({compartment:this,extension:x})}get(x){return x.config.compartments.get(this)}}class _h{constructor(x,i){this.compartment=x,this.inner=i}}class U3{constructor(x,i,t,h,g,u){for(this.base=x,this.compartments=i,this.dynamicSlots=t,this.address=h,this.staticValues=g,this.facets=u,this.statusTemplate=[];this.statusTemplate.length<t.length;)this.statusTemplate.push(0)}staticFacet(x){let i=this.address[x.id];return i==null?x.default:this.staticValues[i>>1]}static resolve(x,i,t){let h=[],g=Object.create(null),u=new Map;for(let z of xC(x,i,u))z instanceof qn?h.push(z):(g[z.facet.id]||(g[z.facet.id]=[])).push(z);let o=Object.create(null),l=[],d=[];for(let z of h)o[z.id]=d.length<<1,d.push(p=>z.slot(p));let a=t?.config.facets;for(let z in g){let p=g[z],j=p[0].facet,k=a&&a[z]||[];if(p.every(S=>S.type==0))if(o[j.id]=l.length<<1|1,L6(k,p))l.push(t.facet(j));else{let S=j.combine(p.map(C=>C.value));l.push(t&&j.compare(S,t.facet(j))?t.facet(j):S)}else{for(let S of p)S.type==0?(o[S.id]=l.length<<1|1,l.push(S.value)):(o[S.id]=d.length<<1,d.push(C=>S.dynamicSlot(C)));o[j.id]=d.length<<1,d.push(S=>nC(S,j,p))}}let b=d.map(z=>z(o));return new U3(x,u,b,o,l,g)}}function xC(e,x,i){let t=[[],[],[],[],[]],h=new Map;function g(u,o){let l=h.get(u);if(l!=null){if(l<=o)return;let d=t[l].indexOf(u);d>-1&&t[l].splice(d,1),u instanceof _h&&i.delete(u.compartment)}if(h.set(u,o),Array.isArray(u))for(let d of u)g(d,o);else if(u instanceof _h){if(i.has(u.compartment))throw new RangeError("Duplicate use of compartment in extensions");let d=x.get(u.compartment)||u.inner;i.set(u.compartment,d),g(d,o)}else if(u instanceof md)g(u.inner,u.prec);else if(u instanceof qn)t[o].push(u),u.provides&&g(u.provides,o);else if(u instanceof v3)t[o].push(u),u.facet.extensions&&g(u.facet.extensions,N4.default);else{let d=u.extension;if(!d)throw new Error(`Unrecognized extension value in extension set (${u}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);g(d,o)}}return g(e,N4.default),t.reduce((u,o)=>u.concat(o))}function xi(e,x){if(x&1)return 2;let i=x>>1,t=e.status[i];if(t==4)throw new Error("Cyclic dependency between fields and/or facets");if(t&2)return t;e.status[i]=4;let h=e.computeSlot(e,e.config.dynamicSlots[i]);return e.status[i]=2|h}function F3(e,x){return x&1?e.config.staticValues[x>>1]:e.values[x>>1]}const pd=i0.define(),Ah=i0.define({combine:e=>e.some(x=>x),static:!0}),jd=i0.define({combine:e=>e.length?e[0]:void 0,static:!0}),wd=i0.define(),qd=i0.define(),Od=i0.define(),kd=i0.define({combine:e=>e.length?e[0]:!1});class Lx{constructor(x,i){this.type=x,this.value=i}static define(){return new iC}}class iC{of(x){return new Lx(this,x)}}class eC{constructor(x){this.map=x}of(x){return new m0(this,x)}}class m0{constructor(x,i){this.type=x,this.value=i}map(x){let i=this.type.map(this.value,x);return i===void 0?void 0:i==this.value?this:new m0(this.type,i)}is(x){return this.type==x}static define(x={}){return new eC(x.map||(i=>i))}static mapEffects(x,i){if(!x.length)return x;let t=[];for(let h of x){let g=h.map(i);g&&t.push(g)}return t}}m0.reconfigure=m0.define();m0.appendConfig=m0.define();class ln{constructor(x,i,t,h,g,u){this.startState=x,this.changes=i,this.selection=t,this.effects=h,this.annotations=g,this.scrollIntoView=u,this._doc=null,this._state=null,t&&zd(t,i.newLength),g.some(o=>o.type==ln.time)||(this.annotations=g.concat(ln.time.of(Date.now())))}static create(x,i,t,h,g,u){return new ln(x,i,t,h,g,u)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(x){for(let i of this.annotations)if(i.type==x)return i.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(x){let i=this.annotation(ln.userEvent);return!!(i&&(i==x||i.length>x.length&&i.slice(0,x.length)==x&&i[x.length]=="."))}}ln.time=Lx.define();ln.userEvent=Lx.define();ln.addToHistory=Lx.define();ln.remote=Lx.define();function tC(e,x){let i=[];for(let t=0,h=0;;){let g,u;if(t<e.length&&(h==x.length||x[h]>=e[t]))g=e[t++],u=e[t++];else if(h<x.length)g=x[h++],u=x[h++];else return i;!i.length||i[i.length-1]<g?i.push(g,u):i[i.length-1]<u&&(i[i.length-1]=u)}}function vd(e,x,i){var t;let h,g,u;return i?(h=x.changes,g=fn.empty(x.changes.length),u=e.changes.compose(x.changes)):(h=x.changes.map(e.changes),g=e.changes.mapDesc(x.changes,!0),u=e.changes.compose(h)),{changes:u,selection:x.selection?x.selection.map(g):(t=e.selection)===null||t===void 0?void 0:t.map(h),effects:m0.mapEffects(e.effects,h).concat(m0.mapEffects(x.effects,g)),annotations:e.annotations.length?e.annotations.concat(x.annotations):x.annotations,scrollIntoView:e.scrollIntoView||x.scrollIntoView}}function Qh(e,x,i){let t=x.selection,h=_8(x.annotations);return x.userEvent&&(h=h.concat(ln.userEvent.of(x.userEvent))),{changes:x.changes instanceof fn?x.changes:fn.of(x.changes||[],i,e.facet(jd)),selection:t&&(t instanceof Z?t:Z.single(t.anchor,t.head)),effects:_8(x.effects),annotations:h,scrollIntoView:!!x.scrollIntoView}}function Sd(e,x,i){let t=Qh(e,x.length?x[0]:{},e.doc.length);x.length&&x[0].filter===!1&&(i=!1);for(let g=1;g<x.length;g++){x[g].filter===!1&&(i=!1);let u=!!x[g].sequential;t=vd(t,Qh(e,x[g],u?t.changes.newLength:e.doc.length),u)}let h=ln.create(e,t.changes,t.selection,t.effects,t.annotations,t.scrollIntoView);return gC(i?hC(h):h)}function hC(e){let x=e.startState,i=!0;for(let h of x.facet(wd)){let g=h(e);if(g===!1){i=!1;break}Array.isArray(g)&&(i=i===!0?g:tC(i,g))}if(i!==!0){let h,g;if(i===!1)g=e.changes.invertedDesc,h=fn.empty(x.doc.length);else{let u=e.changes.filter(i);h=u.changes,g=u.filtered.mapDesc(u.changes).invertedDesc}e=ln.create(x,h,e.selection&&e.selection.map(g),m0.mapEffects(e.effects,g),e.annotations,e.scrollIntoView)}let t=x.facet(qd);for(let h=t.length-1;h>=0;h--){let g=t[h](e);g instanceof ln?e=g:Array.isArray(g)&&g.length==1&&g[0]instanceof ln?e=g[0]:e=Sd(x,_8(g),!1)}return e}function gC(e){let x=e.startState,i=x.facet(Od),t=e;for(let h=i.length-1;h>=0;h--){let g=i[h](e);g&&Object.keys(g).length&&(t=vd(t,Qh(x,g,e.changes.newLength),!0))}return t==e?e:ln.create(x,e.changes,e.selection,t.effects,t.annotations,t.scrollIntoView)}const uC=[];function _8(e){return e==null?uC:Array.isArray(e)?e:[e]}var K0=(function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e})(K0||(K0={}));const sC=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let $h;try{$h=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function oC(e){if($h)return $h.test(e);for(let x=0;x<e.length;x++){let i=e[x];if(/\w/.test(i)||i>"€"&&(i.toUpperCase()!=i.toLowerCase()||sC.test(i)))return!0}return!1}function lC(e){return x=>{if(!/\S/.test(x))return K0.Space;if(oC(x))return K0.Word;for(let i=0;i<e.length;i++)if(x.indexOf(e[i])>-1)return K0.Word;return K0.Other}}class A0{constructor(x,i,t,h,g,u){this.config=x,this.doc=i,this.selection=t,this.values=h,this.status=x.statusTemplate.slice(),this.computeSlot=g,u&&(u._state=this);for(let o=0;o<this.config.dynamicSlots.length;o++)xi(this,o<<1);this.computeSlot=null}field(x,i=!0){let t=this.config.address[x.id];if(t==null){if(i)throw new RangeError("Field is not present in this state");return}return xi(this,t),F3(this,t)}update(...x){return Sd(this,x,!0)}applyTransaction(x){let i=this.config,{base:t,compartments:h}=i;for(let o of x.effects)o.is(Oe.reconfigure)?(i&&(h=new Map,i.compartments.forEach((l,d)=>h.set(d,l)),i=null),h.set(o.value.compartment,o.value.extension)):o.is(m0.reconfigure)?(i=null,t=o.value):o.is(m0.appendConfig)&&(i=null,t=_8(t).concat(o.value));let g;i?g=x.startState.values.slice():(i=U3.resolve(t,h,this),g=new A0(i,this.doc,this.selection,i.dynamicSlots.map(()=>null),(l,d)=>d.reconfigure(l,this),null).values);let u=x.startState.facet(Ah)?x.newSelection:x.newSelection.asSingle();new A0(i,x.newDoc,u,g,(o,l)=>l.update(o,x),x)}replaceSelection(x){return typeof x=="string"&&(x=this.toText(x)),this.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:x},range:Z.cursor(i.from+x.length)}))}changeByRange(x){let i=this.selection,t=x(i.ranges[0]),h=this.changes(t.changes),g=[t.range],u=_8(t.effects);for(let o=1;o<i.ranges.length;o++){let l=x(i.ranges[o]),d=this.changes(l.changes),a=d.map(h);for(let z=0;z<o;z++)g[z]=g[z].map(a);let b=h.mapDesc(d,!0);g.push(l.range.map(b)),h=h.compose(a),u=m0.mapEffects(u,a).concat(m0.mapEffects(_8(l.effects),b))}return{changes:h,selection:Z.create(g,i.mainIndex),effects:u}}changes(x=[]){return x instanceof fn?x:fn.of(x,this.doc.length,this.facet(A0.lineSeparator))}toText(x){return T0.of(x.split(this.facet(A0.lineSeparator)||Eh))}sliceDoc(x=0,i=this.doc.length){return this.doc.sliceString(x,i,this.lineBreak)}facet(x){let i=this.config.address[x.id];return i==null?x.default:(xi(this,i),F3(this,i))}toJSON(x){let i={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(x)for(let t in x){let h=x[t];h instanceof qn&&this.config.address[h.id]!=null&&(i[t]=h.spec.toJSON(this.field(x[t]),this))}return i}static fromJSON(x,i={},t){if(!x||typeof x.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let h=[];if(t){for(let g in t)if(Object.prototype.hasOwnProperty.call(x,g)){let u=t[g],o=x[g];h.push(u.init(l=>u.spec.fromJSON(o,l)))}}return A0.create({doc:x.doc,selection:Z.fromJSON(x.selection),extensions:i.extensions?h.concat([i.extensions]):h})}static create(x={}){let i=U3.resolve(x.extensions||[],new Map),t=x.doc instanceof T0?x.doc:T0.of((x.doc||"").split(i.staticFacet(A0.lineSeparator)||Eh)),h=x.selection?x.selection instanceof Z?x.selection:Z.single(x.selection.anchor,x.selection.head):Z.single(0);return zd(h,t.length),i.staticFacet(Ah)||(h=h.asSingle()),new A0(i,t,h,i.dynamicSlots.map(()=>null),(g,u)=>u.create(g),null)}get tabSize(){return this.facet(A0.tabSize)}get lineBreak(){return this.facet(A0.lineSeparator)||`
@@ -157718,7 +157718,7 @@ function print() { __p += __j.call(arguments, '') }
157718
157718
  constructor(\${params}) {
157719
157719
  \${}
157720
157720
  }
157721
- }`,{label:"class",detail:"definition",type:"keyword"}),Jn('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Jn('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],MM=ab.concat([Jn("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Jn("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Jn("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Nc=new KP,fb=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Q2(e){return(x,i)=>{let t=x.node.getChild("VariableDefinition");return t&&i(t,e),!0}}const DM=["FunctionDeclaration"],RM={FunctionDeclaration:Q2("function"),ClassDeclaration:Q2("class"),ClassExpression:()=>!0,EnumDeclaration:Q2("constant"),TypeAliasDeclaration:Q2("type"),NamespaceDeclaration:Q2("namespace"),VariableDefinition(e,x){e.matchContext(DM)||x(e,"variable")},TypeDefinition(e,x){x(e,"type")},__proto__:null};function bb(e,x){let i=Nc.get(x);if(i)return i;let t=[],h=!0;function g(u,o){let l=e.sliceString(u.from,u.to);t.push({label:l,type:o})}return x.cursor(bn.IncludeAnonymous).iterate(u=>{if(h)h=!1;else if(u.name){let o=RM[u.name];if(o&&o(u,g)||fb.has(u.name))return!1}else if(u.to-u.from>8192){for(let o of bb(e,u.node))t.push(o);return!1}}),Nc.set(x,t),t}const Vc=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,yb=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function NM(e){let x=zn(e.state).resolveInner(e.pos,-1);if(yb.indexOf(x.name)>-1)return null;let i=x.name=="VariableName"||x.to-x.from<20&&Vc.test(e.state.sliceDoc(x.from,x.to));if(!i&&!e.explicit)return null;let t=[];for(let h=x;h;h=h.parent)fb.has(h.name)&&(t=t.concat(bb(e.state.doc,h)));return{options:t,from:i?x.from:e.pos,validFor:Vc}}const X4=te.define({name:"javascript",parser:$M.configure({props:[Fa.add({IfStatement:L9({except:/^\s*({|else\b)/}),TryStatement:L9({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:m_,SwitchBody:e=>{let x=e.textAfter,i=/^\s*\}/.test(x),t=/^\s*(case|default)\b/.test(x);return e.baseIndent+(i?0:t?1:2)*e.unit},Block:z_({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":L9({except:/^\s*{/}),JSXElement(e){let x=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(x?0:e.unit)},JSXEscape(e){let x=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(x?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),Ha.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":q_,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),zb={test:e=>/^JSX/.test(e.name),facet:Xa({commentTokens:{block:{open:"{/*",close:"*/}"}}})},VM=X4.configure({dialect:"ts"},"typescript"),BM=X4.configure({dialect:"jsx",props:[u7.add(e=>e.isTop?[zb]:void 0)]}),ZM=X4.configure({dialect:"jsx ts",props:[u7.add(e=>e.isTop?[zb]:void 0)]},"typescript");let mb=e=>({label:e,type:"keyword"});const pb="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(mb),IM=pb.concat(["declare","implements","private","protected","public"].map(mb));function LM(e={}){let x=e.jsx?e.typescript?ZM:BM:e.typescript?VM:X4,i=e.typescript?MM.concat(IM):ab.concat(pb);return new l_(x,[X4.data.of({autocomplete:VQ(yb,Hf(i))}),X4.data.of({autocomplete:NM}),e.jsx?UM:[]])}function WM(e){for(;;){if(e.name=="JSXOpenTag"||e.name=="JSXSelfClosingTag"||e.name=="JSXFragmentTag")return e;if(e.name=="JSXEscape"||!e.parent)return null;e=e.parent}}function Bc(e,x,i=e.length){for(let t=x?.firstChild;t;t=t.nextSibling)if(t.name=="JSXIdentifier"||t.name=="JSXBuiltin"||t.name=="JSXNamespacedName"||t.name=="JSXMemberExpression")return e.sliceString(t.from,Math.min(t.to,i));return""}const XM=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),UM=n0.inputHandler.of((e,x,i,t,h)=>{if((XM?e.composing:e.compositionStarted)||e.state.readOnly||x!=i||t!=">"&&t!="/"||!X4.isActiveAt(e.state,x,-1))return!1;let g=h(),{state:u}=g,o=u.changeByRange(l=>{var d;let{head:a}=l,b=zn(u).resolveInner(a-1,-1),z;if(b.name=="JSXStartTag"&&(b=b.parent),!(u.doc.sliceString(a-1,a)!=t||b.name=="JSXAttributeValue"&&b.to>a)){if(t==">"&&b.name=="JSXFragmentTag")return{range:l,changes:{from:a,insert:"</>"}};if(t=="/"&&b.name=="JSXStartCloseTag"){let p=b.parent,j=p.parent;if(j&&p.from==a-2&&((z=Bc(u.doc,j.firstChild,a))||((d=j.firstChild)===null||d===void 0?void 0:d.name)=="JSXFragmentTag")){let k=`${z}>`;return{range:Z.cursor(a+k.length,-1),changes:{from:a,insert:k}}}}else if(t==">"){let p=WM(b);if(p&&p.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(u.doc.sliceString(a,a+2))&&(z=Bc(u.doc,p,a)))return{range:l,changes:{from:a,insert:`</${z}>`}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([g,u.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),FM="#e5c07b",Zc="#e06c75",YM="#56b6c2",GM="#ffffff",M3="#abb2bf",O6="#7d8799",HM="#61afef",KM="#98c379",Ic="#d19a66",JM="#c678dd",nD="#21252b",Lc="#2c313a",Wc="#282c34",eh="#353a42",xD="#3E4451",Xc="#528bff",iD=n0.theme({"&":{color:M3,backgroundColor:Wc},".cm-content":{caretColor:Xc},".cm-cursor, .cm-dropCursor":{borderLeftColor:Xc},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:xD},".cm-panels":{backgroundColor:nD,color:M3},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Wc,color:O6,border:"none"},".cm-activeLineGutter":{backgroundColor:Lc},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:eh},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:eh,borderBottomColor:eh},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Lc,color:M3}}},{dark:!0}),eD=Di.define([{tag:Q.keyword,color:JM},{tag:[Q.name,Q.deleted,Q.character,Q.propertyName,Q.macroName],color:Zc},{tag:[Q.function(Q.variableName),Q.labelName],color:HM},{tag:[Q.color,Q.constant(Q.name),Q.standard(Q.name)],color:Ic},{tag:[Q.definition(Q.name),Q.separator],color:M3},{tag:[Q.typeName,Q.className,Q.number,Q.changed,Q.annotation,Q.modifier,Q.self,Q.namespace],color:FM},{tag:[Q.operator,Q.operatorKeyword,Q.url,Q.escape,Q.regexp,Q.link,Q.special(Q.string)],color:YM},{tag:[Q.meta,Q.comment],color:O6},{tag:Q.strong,fontWeight:"bold"},{tag:Q.emphasis,fontStyle:"italic"},{tag:Q.strikethrough,textDecoration:"line-through"},{tag:Q.link,color:O6,textDecoration:"underline"},{tag:Q.heading,fontWeight:"bold",color:Zc},{tag:[Q.atom,Q.bool,Q.special(Q.variableName)],color:Ic},{tag:[Q.processingInstruction,Q.string,Q.inserted],color:KM},{tag:Q.invalid,color:GM}]),tD=[iD,uf(eD)],k7={__name:"codeEditor",props:{codeValue:{type:String,default:""}},setup(e,{expose:x}){const i=e,t=c.ref(null);let h=null;const g=(o,l,d,a)=>{let b=h?.state.doc.toString()||"";if(!u(b))return"";if(a=="json")return h?.state.doc.toString()||"";const z=`let value=${o||null};let field=${l||null};let formData=${d?JSON.stringify(d):null};${b}`;try{return new Function(z)(),h?.state.doc.toString()||""}catch(p){return"error:"+p.message}},u=o=>o.replace(/\/\/.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"").replace(/[\r\n]/g,"").replace(/\s+/g,"");return c.onMounted(()=>{h=new n0({doc:i.codeValue,extensions:[Y$,LM(),tD],parent:t.value})}),c.onUnmounted(()=>{h&&h.destroy()}),x({getEditorContent:g}),(o,l)=>(c.openBlock(),c.createElementBlock("div",{class:"code-editor",ref_key:"editorRef",ref:t},null,512))}},hD={class:"panel-option"},gD={class:"panel-option"},uD={key:0,class:"panel-option"},sD={class:"panel-option"},oD={class:"panel-option"},lD={key:2,class:"panel-option"},cD={key:3,class:"panel-option",style:{display:"flex"}},rD={style:{float:"left"}},dD=["disabled"],aD=["disabled"],fD={key:4,class:"panel-option"},bD=["disabled"],yD={key:5,class:"panel-option"},zD={key:6,class:"panel-option"},mD={key:7,class:"panel-option"},pD={key:8,class:"panel-option"},jD={key:9,class:"panel-option"},wD={key:10,class:"panel-option"},qD={key:11,class:"panel-option"},OD={key:12,class:"panel-option"},kD={key:13,class:"panel-option"},vD={key:14,class:"panel-option",style:{display:"flex"}},SD={style:{float:"left"}},ED={key:15,class:"panel-option"},CD={key:16,class:"panel-option"},TD={key:17,class:"panel-option"},PD={key:18,class:"panel-option"},_D={key:19,class:"panel-option"},AD={key:20,class:"panel-option"},QD={key:21,class:"panel-option"},$D={key:1,style:{"margin-left":"5px"}},MD={key:2,style:{"margin-left":"60px"}},DD=["title"],RD={key:22,class:"panel-option"},ND={key:23,class:"panel-option"},VD={key:24,class:"panel-option"},BD={key:25,class:"panel-option"},ZD={key:26,class:"panel-option"},ID={key:27,class:"panel-option"},LD={key:28,class:"panel-option"},WD={class:"panel-option"},XD={key:0,class:"panel-option"},UD={key:1,class:"panel-option"},FD={key:2,class:"panel-option"},YD={key:3,class:"panel-option"},GD={key:30,class:"panel-option"},HD={key:31,class:"panel-option"},KD={key:32,class:"panel-option"},JD={key:33,class:"panel-option"},nR={key:34,class:"panel-option"},xR={key:35,class:"panel-option"},iR={key:36,class:"panel-option"},eR={key:37,class:"panel-option"},tR={key:38,class:"panel-option"},hR={key:39,class:"panel-option"},gR={key:40,class:"panel-option"},uR={key:41,class:"panel-option"},sR=["title"],oR={key:42,class:"panel-option"},lR=["title"],cR={key:43,class:"panel-option"},rR={key:44,class:"panel-option"},dR={key:45,class:"panel-option"},aR={key:46,class:"panel-option"},fR={key:47,class:"panel-option"},bR={key:48,class:"panel-option"},yR={key:49,class:"panel-option"},zR={key:50,class:"panel-option"},mR={key:0,class:"panel-option"},pR={key:1,class:"panel-option"},jR={key:0,class:"msg-container",style:{"z-index":"1000"}},wR={class:"msg-div code-div"},qR={class:"msg-div-title"},OR={class:"msg-div-content",style:{padding:"5px 10px"}},kR={class:"msg-div-bottom"},vR={__name:"widgetConfig",setup(e){const x=J8(H8),i=c.ref(""),t=c.ref(""),h=c.ref(!0),g=c.ref({}),u=c.ref({}),o=c.ref(!1),l=c.ref(!1),d=c.ref(""),a=c.ref(""),b=c.ref(null);let z={getItemListMethod:`/**例如:
157721
+ }`,{label:"class",detail:"definition",type:"keyword"}),Jn('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Jn('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],MM=ab.concat([Jn("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Jn("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Jn("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Nc=new KP,fb=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Q2(e){return(x,i)=>{let t=x.node.getChild("VariableDefinition");return t&&i(t,e),!0}}const DM=["FunctionDeclaration"],RM={FunctionDeclaration:Q2("function"),ClassDeclaration:Q2("class"),ClassExpression:()=>!0,EnumDeclaration:Q2("constant"),TypeAliasDeclaration:Q2("type"),NamespaceDeclaration:Q2("namespace"),VariableDefinition(e,x){e.matchContext(DM)||x(e,"variable")},TypeDefinition(e,x){x(e,"type")},__proto__:null};function bb(e,x){let i=Nc.get(x);if(i)return i;let t=[],h=!0;function g(u,o){let l=e.sliceString(u.from,u.to);t.push({label:l,type:o})}return x.cursor(bn.IncludeAnonymous).iterate(u=>{if(h)h=!1;else if(u.name){let o=RM[u.name];if(o&&o(u,g)||fb.has(u.name))return!1}else if(u.to-u.from>8192){for(let o of bb(e,u.node))t.push(o);return!1}}),Nc.set(x,t),t}const Vc=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,yb=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function NM(e){let x=zn(e.state).resolveInner(e.pos,-1);if(yb.indexOf(x.name)>-1)return null;let i=x.name=="VariableName"||x.to-x.from<20&&Vc.test(e.state.sliceDoc(x.from,x.to));if(!i&&!e.explicit)return null;let t=[];for(let h=x;h;h=h.parent)fb.has(h.name)&&(t=t.concat(bb(e.state.doc,h)));return{options:t,from:i?x.from:e.pos,validFor:Vc}}const X4=te.define({name:"javascript",parser:$M.configure({props:[Fa.add({IfStatement:L9({except:/^\s*({|else\b)/}),TryStatement:L9({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:m_,SwitchBody:e=>{let x=e.textAfter,i=/^\s*\}/.test(x),t=/^\s*(case|default)\b/.test(x);return e.baseIndent+(i?0:t?1:2)*e.unit},Block:z_({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":L9({except:/^\s*{/}),JSXElement(e){let x=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(x?0:e.unit)},JSXEscape(e){let x=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(x?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),Ha.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":q_,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),zb={test:e=>/^JSX/.test(e.name),facet:Xa({commentTokens:{block:{open:"{/*",close:"*/}"}}})},VM=X4.configure({dialect:"ts"},"typescript"),BM=X4.configure({dialect:"jsx",props:[u7.add(e=>e.isTop?[zb]:void 0)]}),ZM=X4.configure({dialect:"jsx ts",props:[u7.add(e=>e.isTop?[zb]:void 0)]},"typescript");let mb=e=>({label:e,type:"keyword"});const pb="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(mb),IM=pb.concat(["declare","implements","private","protected","public"].map(mb));function LM(e={}){let x=e.jsx?e.typescript?ZM:BM:e.typescript?VM:X4,i=e.typescript?MM.concat(IM):ab.concat(pb);return new l_(x,[X4.data.of({autocomplete:VQ(yb,Hf(i))}),X4.data.of({autocomplete:NM}),e.jsx?UM:[]])}function WM(e){for(;;){if(e.name=="JSXOpenTag"||e.name=="JSXSelfClosingTag"||e.name=="JSXFragmentTag")return e;if(e.name=="JSXEscape"||!e.parent)return null;e=e.parent}}function Bc(e,x,i=e.length){for(let t=x?.firstChild;t;t=t.nextSibling)if(t.name=="JSXIdentifier"||t.name=="JSXBuiltin"||t.name=="JSXNamespacedName"||t.name=="JSXMemberExpression")return e.sliceString(t.from,Math.min(t.to,i));return""}const XM=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),UM=n0.inputHandler.of((e,x,i,t,h)=>{if((XM?e.composing:e.compositionStarted)||e.state.readOnly||x!=i||t!=">"&&t!="/"||!X4.isActiveAt(e.state,x,-1))return!1;let g=h(),{state:u}=g,o=u.changeByRange(l=>{var d;let{head:a}=l,b=zn(u).resolveInner(a-1,-1),z;if(b.name=="JSXStartTag"&&(b=b.parent),!(u.doc.sliceString(a-1,a)!=t||b.name=="JSXAttributeValue"&&b.to>a)){if(t==">"&&b.name=="JSXFragmentTag")return{range:l,changes:{from:a,insert:"</>"}};if(t=="/"&&b.name=="JSXStartCloseTag"){let p=b.parent,j=p.parent;if(j&&p.from==a-2&&((z=Bc(u.doc,j.firstChild,a))||((d=j.firstChild)===null||d===void 0?void 0:d.name)=="JSXFragmentTag")){let k=`${z}>`;return{range:Z.cursor(a+k.length,-1),changes:{from:a,insert:k}}}}else if(t==">"){let p=WM(b);if(p&&p.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(u.doc.sliceString(a,a+2))&&(z=Bc(u.doc,p,a)))return{range:l,changes:{from:a,insert:`</${z}>`}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([g,u.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),FM="#e5c07b",Zc="#e06c75",YM="#56b6c2",GM="#ffffff",M3="#abb2bf",O6="#7d8799",HM="#61afef",KM="#98c379",Ic="#d19a66",JM="#c678dd",nD="#21252b",Lc="#2c313a",Wc="#282c34",eh="#353a42",xD="#3E4451",Xc="#528bff",iD=n0.theme({"&":{color:M3,backgroundColor:Wc},".cm-content":{caretColor:Xc},".cm-cursor, .cm-dropCursor":{borderLeftColor:Xc},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:xD},".cm-panels":{backgroundColor:nD,color:M3},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Wc,color:O6,border:"none"},".cm-activeLineGutter":{backgroundColor:Lc},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:eh},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:eh,borderBottomColor:eh},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Lc,color:M3}}},{dark:!0}),eD=Di.define([{tag:Q.keyword,color:JM},{tag:[Q.name,Q.deleted,Q.character,Q.propertyName,Q.macroName],color:Zc},{tag:[Q.function(Q.variableName),Q.labelName],color:HM},{tag:[Q.color,Q.constant(Q.name),Q.standard(Q.name)],color:Ic},{tag:[Q.definition(Q.name),Q.separator],color:M3},{tag:[Q.typeName,Q.className,Q.number,Q.changed,Q.annotation,Q.modifier,Q.self,Q.namespace],color:FM},{tag:[Q.operator,Q.operatorKeyword,Q.url,Q.escape,Q.regexp,Q.link,Q.special(Q.string)],color:YM},{tag:[Q.meta,Q.comment],color:O6},{tag:Q.strong,fontWeight:"bold"},{tag:Q.emphasis,fontStyle:"italic"},{tag:Q.strikethrough,textDecoration:"line-through"},{tag:Q.link,color:O6,textDecoration:"underline"},{tag:Q.heading,fontWeight:"bold",color:Zc},{tag:[Q.atom,Q.bool,Q.special(Q.variableName)],color:Ic},{tag:[Q.processingInstruction,Q.string,Q.inserted],color:KM},{tag:Q.invalid,color:GM}]),tD=[iD,uf(eD)],k7={__name:"codeEditor",props:{codeValue:{type:String,default:""}},setup(e,{expose:x}){const i=e,t=c.ref(null);let h=null;const g=(o,l,d,a)=>{let b=h?.state.doc.toString()||"";if(!u(b))return"";if(a=="json")return h?.state.doc.toString()||"";const z=`let value=${o||null};let field=${l||null};let formData=${d?JSON.stringify(d):null};${b}`;try{return new Function(z)(),h?.state.doc.toString()||""}catch(p){return"error:"+p.message}},u=o=>o.replace(/\/\/.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"").replace(/[\r\n]/g,"").replace(/\s+/g,"");return c.onMounted(()=>{h=new n0({doc:i.codeValue,extensions:[Y$,LM(),tD],parent:t.value})}),c.onUnmounted(()=>{h&&h.destroy()}),x({getEditorContent:g}),(o,l)=>(c.openBlock(),c.createElementBlock("div",{class:"code-editor",ref_key:"editorRef",ref:t},null,512))}},hD={class:"panel-option"},gD={class:"panel-option"},uD={key:0,class:"panel-option"},sD={class:"panel-option"},oD={class:"panel-option"},lD={key:2,class:"panel-option"},cD={key:3,class:"panel-option",style:{display:"flex"}},rD={style:{float:"left"}},dD=["disabled"],aD=["disabled"],fD={key:4,class:"panel-option"},bD=["disabled"],yD={key:5,class:"panel-option"},zD={key:6,class:"panel-option"},mD={key:7,class:"panel-option"},pD={key:8,class:"panel-option"},jD={key:9,class:"panel-option"},wD={key:10,class:"panel-option"},qD={key:11,class:"panel-option"},OD={key:12,class:"panel-option"},kD={key:13,class:"panel-option"},vD={key:14,class:"panel-option",style:{display:"flex"}},SD={style:{float:"left"}},ED={key:15,class:"panel-option"},CD={key:16,class:"panel-option"},TD={key:17,class:"panel-option"},PD={key:18,class:"panel-option"},_D={key:19,class:"panel-option"},AD={key:20,class:"panel-option"},QD={key:21,class:"panel-option"},$D={key:1,style:{"margin-left":"5px"}},MD={key:2,style:{"margin-left":"60px"}},DD=["title"],RD={key:22,class:"panel-option"},ND={key:23,class:"panel-option"},VD={key:24,class:"panel-option"},BD={key:25,class:"panel-option"},ZD={key:26,class:"panel-option"},ID={key:27,class:"panel-option"},LD={key:28,class:"panel-option"},WD={class:"panel-option"},XD={key:0,class:"panel-option"},UD={key:1,class:"panel-option"},FD={key:2,class:"panel-option"},YD={key:3,class:"panel-option"},GD={key:30,class:"panel-option"},HD={key:31,class:"panel-option"},KD={key:32,class:"panel-option"},JD={key:33,class:"panel-option"},nR={key:34,class:"panel-option"},xR={key:35,class:"panel-option"},iR={key:36,class:"panel-option"},eR={key:37,class:"panel-option"},tR={key:38,class:"panel-option"},hR={key:39,class:"panel-option"},gR={key:40,class:"panel-option"},uR={key:41,class:"panel-option"},sR={key:42,class:"panel-option"},oR={key:43,class:"panel-option"},lR={key:44,class:"panel-option"},cR=["title"],rR={key:45,class:"panel-option"},dR=["title"],aR={key:46,class:"panel-option"},fR={key:47,class:"panel-option"},bR={key:48,class:"panel-option"},yR={key:49,class:"panel-option"},zR={key:50,class:"panel-option"},mR={key:51,class:"panel-option"},pR={key:52,class:"panel-option"},jR={key:53,class:"panel-option"},wR={key:0,class:"panel-option"},qR={key:1,class:"panel-option"},OR={key:0,class:"msg-container",style:{"z-index":"1000"}},kR={class:"msg-div code-div"},vR={class:"msg-div-title"},SR={class:"msg-div-content",style:{padding:"5px 10px"}},ER={class:"msg-div-bottom"},CR={__name:"widgetConfig",setup(e){const x=J8(H8),i=c.ref(""),t=c.ref(""),h=c.ref(!0),g=c.ref({}),u=c.ref({}),o=c.ref(!1),l=c.ref(!1),d=c.ref(""),a=c.ref(""),b=c.ref(null);let z={getItemListMethod:`/**例如:
157722
157722
  return [{ value: '1', label: '选项1' },{ value: '2', label: '选项2' }];
157723
157723
  */`,getTreeDataMethod:`/**例如:
157724
157724
  return [
@@ -157744,7 +157744,7 @@ return [
157744
157744
  ]
157745
157745
  }
157746
157746
  ]
157747
- */`};const p=()=>{let E=x.selectWidget.felidName,y=b.value.getEditorContent("",E,{},"method");if(y.includes("error:")){x.showMsgModal("error",y.replace("error:",""));return}d.value=="getItemListMethod"?x.selectWidget.config.option.getItemListMethod=y:x.selectWidget.config[d.value]=y,l.value=!1},j=E=>{E=="getItemListMethod"?a.value=x.selectWidget.config.option.getItemListMethod||z[E]||"":a.value=x.selectWidget.config[E]||z[E]||"",d.value=E,l.value=!0},k=E=>{E.target.checked?x.selectWidget.labelStyle.display="":x.selectWidget.labelStyle.display="none"},S=()=>{g.value.regularType=="email"?g.value.regular="/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$/":g.value.regularType=="mobile"?g.value.regular="/^1[3-9]d{9}$/":g.value.regularType=="IDCard"?g.value.regular="/^[1-9]d{5}(18|19|20)d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)d{3}[0-9Xx]$/":g.value.regular=""},C=()=>{i.value=x.selectWidget.type,t.value=x.selectWidget.pType,g.value=x.selectWidget.config,u.value=x.showConfig,o.value=!0};return c.onMounted(()=>{C()}),c.watch(x.selectWidget.config,(E,y)=>{h.value?h.value=!1:x.saveHistoryStep()}),(E,y)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[o.value?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[u.value.label.includes(i.value)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[y[91]||(y[91]=c.createElementVNode("p",{style:{"font-weight":"600","margin-left":"5px"}}," 标签属性: ",-1)),c.createElementVNode("div",hD,[y[85]||(y[85]=c.createElementVNode("span",{style:{color:"red"}},"*",-1)),y[86]||(y[86]=c.createElementVNode("span",null,"标签内容:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[0]||(y[0]=q=>g.value.label=q),onBlur:y[1]||(y[1]=(...q)=>c.unref(x).generateFieldName&&c.unref(x).generateFieldName(...q))},null,544),[[c.vModelText,g.value.label]])]),c.createElementVNode("div",gD,[y[87]||(y[87]=c.createElementVNode("span",null,"是否可见:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[2]||(y[2]=q=>g.value.showLabel=q),onChange:k},null,544),[[c.vModelCheckbox,g.value.showLabel]])]),u.value.labelPosition.includes(i.value)&&g.value.showLabel?(c.openBlock(),c.createElementBlock("div",uD,[y[88]||(y[88]=c.createElementVNode("span",null,"标签位置:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"sameRow",value:"sameRow","onUpdate:modelValue":y[3]||(y[3]=q=>g.value.labelPosition=q)},null,512),[[c.vModelRadio,g.value.labelPosition]]),y[89]||(y[89]=c.createElementVNode("label",{for:"sameRow"},"与输入框同行",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"exclusiveRow",value:"exclusiveRow","onUpdate:modelValue":y[4]||(y[4]=q=>g.value.labelPosition=q)},null,512),[[c.vModelRadio,g.value.labelPosition]]),y[90]||(y[90]=c.createElementVNode("label",{for:"exclusiveRow"},"独占一行",-1))])):c.createCommentVNode("",!0),y[92]||(y[92]=c.createElementVNode("p",{style:{"font-weight":"600","margin-left":"5px"}}," 输入框属性: ",-1))],64)):c.createCommentVNode("",!0),u.value.groupLabel.includes(i.value)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createElementVNode("div",sD,[y[93]||(y[93]=c.createElementVNode("span",null,"标签内容:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[5]||(y[5]=q=>g.value.label=q),onBlur:y[6]||(y[6]=(...q)=>c.unref(x).generateFieldName&&c.unref(x).generateFieldName(...q))},null,544),[[c.vModelText,g.value.label]])]),c.createElementVNode("div",oD,[y[94]||(y[94]=c.createElementVNode("span",null,"是否可见:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[7]||(y[7]=q=>g.value.showLabel=q),onChange:k},null,544),[[c.vModelCheckbox,g.value.showLabel]])])],64)):c.createCommentVNode("",!0),u.value.type.includes(i.value)?(c.openBlock(),c.createElementBlock("div",lD,[y[97]||(y[97]=c.createElementVNode("span",null,"组件类型:",-1)),i.value=="text"||i.value=="textarea"?c.withDirectives((c.openBlock(),c.createElementBlock("select",{key:0,"onUpdate:modelValue":y[8]||(y[8]=q=>c.unref(x).selectWidget.type=q),style:{width:"180px"},onChange:y[9]||(y[9]=(...q)=>c.unref(x).changeWidgetType&&c.unref(x).changeWidgetType(...q))},[...y[95]||(y[95]=[c.createElementVNode("option",{value:"text",label:"单行文本"},"单行文本",-1),c.createElementVNode("option",{value:"textarea",label:"多行文本"},"多行文本",-1)])],544)),[[c.vModelSelect,c.unref(x).selectWidget.type]]):c.createCommentVNode("",!0),i.value=="select"||i.value=="radio"||i.value=="checkbox"?c.withDirectives((c.openBlock(),c.createElementBlock("select",{key:1,"onUpdate:modelValue":y[10]||(y[10]=q=>c.unref(x).selectWidget.type=q),style:{width:"180px"},onChange:y[11]||(y[11]=(...q)=>c.unref(x).changeWidgetType&&c.unref(x).changeWidgetType(...q))},[...y[96]||(y[96]=[c.createElementVNode("option",{value:"radio",label:"单选框"},"单选框",-1),c.createElementVNode("option",{value:"checkbox",label:"复选框"},"复选框",-1),c.createElementVNode("option",{value:"select",label:"下拉框"},"下拉框",-1)])],544)),[[c.vModelSelect,c.unref(x).selectWidget.type]]):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),u.value.felidNameCreateType.includes(i.value)?(c.openBlock(),c.createElementBlock("div",cD,[y[101]||(y[101]=c.createElementVNode("div",{style:{float:"left",width:"112px"}},"字段名生成方式:",-1)),c.createElementVNode("div",rD,[c.withDirectives(c.createElementVNode("input",{type:"radio",id:"dynamics",value:"dynamics","onUpdate:modelValue":y[12]||(y[12]=q=>g.value.felidNameCreateType=q),onInput:y[13]||(y[13]=(...q)=>c.unref(x).generateFieldName&&c.unref(x).generateFieldName(...q)),disabled:!g.value.isEditFelidName},null,40,dD),[[c.vModelRadio,g.value.felidNameCreateType]]),y[98]||(y[98]=c.createElementVNode("label",{for:"dynamics"},"根据标签内容生成",-1)),y[99]||(y[99]=c.createElementVNode("br",null,null,-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"customize",value:"customize","onUpdate:modelValue":y[14]||(y[14]=q=>g.value.felidNameCreateType=q),disabled:!g.value.isEditFelidName},null,8,aD),[[c.vModelRadio,g.value.felidNameCreateType]]),y[100]||(y[100]=c.createElementVNode("label",{for:"customize"},"自定义",-1))])])):c.createCommentVNode("",!0),u.value.felidName.includes(i.value)?(c.openBlock(),c.createElementBlock("div",fD,[y[102]||(y[102]=c.createElementVNode("span",{style:{color:"red"}},"*",-1)),y[103]||(y[103]=c.createElementVNode("span",null,"字段名:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[15]||(y[15]=q=>g.value.felidName=q),disabled:g.value.felidNameCreateType=="dynamics"},null,8,bD),[[c.vModelText,g.value.felidName]])])):c.createCommentVNode("",!0),u.value.placeholder.includes(i.value)?(c.openBlock(),c.createElementBlock("div",yD,[y[104]||(y[104]=c.createElementVNode("span",null,"占位内容:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[16]||(y[16]=q=>g.value.placeholder=q)},null,512),[[c.vModelText,g.value.placeholder]])])):c.createCommentVNode("",!0),u.value.prefix.includes(i.value)?(c.openBlock(),c.createElementBlock("div",zD,[y[105]||(y[105]=c.createElementVNode("span",null,"前缀:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[17]||(y[17]=q=>g.value.prefix=q)},null,512),[[c.vModelText,g.value.prefix]])])):c.createCommentVNode("",!0),u.value.suffix.includes(i.value)?(c.openBlock(),c.createElementBlock("div",mD,[y[106]||(y[106]=c.createElementVNode("span",null,"后缀:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[18]||(y[18]=q=>g.value.suffix=q)},null,512),[[c.vModelText,g.value.suffix]])])):c.createCommentVNode("",!0),u.value.maxLength.includes(i.value)?(c.openBlock(),c.createElementBlock("div",pD,[y[107]||(y[107]=c.createElementVNode("span",null,"最大长度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[19]||(y[19]=q=>g.value.maxLength=q),type:"number",min:"1",style:{width:"80px"}},null,512),[[c.vModelText,g.value.maxLength]]),c.createTextVNode("(默认:"+c.toDisplayString(g.value.defaultLength)+") ",1)])):c.createCommentVNode("",!0),u.value.showWordLimit.includes(i.value)?(c.openBlock(),c.createElementBlock("div",jD,[y[108]||(y[108]=c.createElementVNode("span",null,"显示计数:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[20]||(y[20]=q=>g.value.showWordLimit=q)},null,512),[[c.vModelCheckbox,g.value.showWordLimit]])])):c.createCommentVNode("",!0),u.value.readonly.includes(i.value)?(c.openBlock(),c.createElementBlock("div",wD,[y[109]||(y[109]=c.createElementVNode("span",null,"是否只读:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[21]||(y[21]=q=>g.value.readonly=q)},null,512),[[c.vModelCheckbox,g.value.readonly]])])):c.createCommentVNode("",!0),u.value.disabled.includes(i.value)?(c.openBlock(),c.createElementBlock("div",qD,[y[110]||(y[110]=c.createElementVNode("span",null,"是否禁用:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[22]||(y[22]=q=>g.value.disabled=q)},null,512),[[c.vModelCheckbox,g.value.disabled]])])):c.createCommentVNode("",!0),u.value.required.includes(i.value)?(c.openBlock(),c.createElementBlock("div",OD,[y[111]||(y[111]=c.createElementVNode("span",null,"是否必填:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[23]||(y[23]=q=>g.value.required=q)},null,512),[[c.vModelCheckbox,g.value.required]])])):c.createCommentVNode("",!0),g.value.required?(c.openBlock(),c.createElementBlock("div",kD,[y[112]||(y[112]=c.createElementVNode("span",null,"必填提示语:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[24]||(y[24]=q=>g.value.requiredMsg=q),placeholder:"默认值:此值是必需的"},null,512),[[c.vModelText,g.value.requiredMsg]])])):c.createCommentVNode("",!0),u.value.regular.includes(i.value)?(c.openBlock(),c.createElementBlock("div",vD,[y[119]||(y[119]=c.createElementVNode("div",{style:{float:"left",width:"70px"}},"字段校验:",-1)),c.createElementVNode("div",SD,[c.withDirectives(c.createElementVNode("input",{type:"radio",id:"email",value:"email","onUpdate:modelValue":y[25]||(y[25]=q=>g.value.regularType=q),onChange:S},null,544),[[c.vModelRadio,g.value.regularType]]),y[113]||(y[113]=c.createElementVNode("label",{for:"email"},"邮件",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"mobile",value:"mobile","onUpdate:modelValue":y[26]||(y[26]=q=>g.value.regularType=q),onChange:S},null,544),[[c.vModelRadio,g.value.regularType]]),y[114]||(y[114]=c.createElementVNode("label",{for:"mobile"},"手机号码",-1)),y[115]||(y[115]=c.createElementVNode("br",null,null,-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"IDCard",value:"IDCard","onUpdate:modelValue":y[27]||(y[27]=q=>g.value.regularType=q),onChange:S},null,544),[[c.vModelRadio,g.value.regularType]]),y[116]||(y[116]=c.createElementVNode("label",{for:"IDCard"},"身份证号",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"customize",value:"customize","onUpdate:modelValue":y[28]||(y[28]=q=>g.value.regularType=q),onChange:S},null,544),[[c.vModelRadio,g.value.regularType]]),y[117]||(y[117]=c.createElementVNode("label",{for:"customize"},"自定义",-1)),y[118]||(y[118]=c.createElementVNode("br",null,null,-1)),g.value.regularType=="customize"?c.withDirectives((c.openBlock(),c.createElementBlock("input",{key:0,"onUpdate:modelValue":y[29]||(y[29]=q=>g.value.regular=q),placeholder:"请输入正则表达式"},null,512)),[[c.vModelText,g.value.regular]]):c.createCommentVNode("",!0)])])):c.createCommentVNode("",!0),u.value.regular.includes(i.value)?(c.openBlock(),c.createElementBlock("div",ED,[y[120]||(y[120]=c.createElementVNode("span",null,"校验失败提示:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[30]||(y[30]=q=>g.value.regularMsg=q),style:{width:"150px"},placeholder:"默认值:此值是不合法的"},null,512),[[c.vModelText,g.value.regularMsg]])])):c.createCommentVNode("",!0),u.value.rowsType.includes(i.value)?(c.openBlock(),c.createElementBlock("div",CD,[y[121]||(y[121]=c.createElementVNode("span",null,"显示行数:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"dynamics",value:"dynamics","onUpdate:modelValue":y[31]||(y[31]=q=>g.value.rowsType=q)},null,512),[[c.vModelRadio,g.value.rowsType]]),y[122]||(y[122]=c.createElementVNode("label",{for:"dynamics"},"自适应",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"customize",value:"customize","onUpdate:modelValue":y[32]||(y[32]=q=>g.value.rowsType=q)},null,512),[[c.vModelRadio,g.value.rowsType]]),y[123]||(y[123]=c.createElementVNode("label",{for:"customize"},"自定义",-1))])):c.createCommentVNode("",!0),g.value.rowsType=="customize"?(c.openBlock(),c.createElementBlock("div",TD,[y[124]||(y[124]=c.createElementVNode("span",null,"固定行数:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[33]||(y[33]=q=>g.value.rows=q),type:"number",min:"1",style:{width:"80px"}},null,512),[[c.vModelText,g.value.rows]])])):c.createCommentVNode("",!0),g.value.rowsType=="dynamics"?(c.openBlock(),c.createElementBlock("div",PD,[y[125]||(y[125]=c.createElementVNode("span",null,"最小行数:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[34]||(y[34]=q=>g.value.minRows=q),type:"number",min:"1",style:{width:"80px"}},null,512),[[c.vModelText,g.value.minRows]])])):c.createCommentVNode("",!0),g.value.rowsType=="dynamics"?(c.openBlock(),c.createElementBlock("div",_D,[y[126]||(y[126]=c.createElementVNode("span",null,"最大行数:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[35]||(y[35]=q=>g.value.maxRows=q),type:"number",min:"1",style:{width:"80px"}},null,512),[[c.vModelText,g.value.maxRows]])])):c.createCommentVNode("",!0),u.value.vertical.includes(i.value)?(c.openBlock(),c.createElementBlock("div",AD,[y[127]||(y[127]=c.createElementVNode("span",null,"是否垂直排列:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[36]||(y[36]=q=>g.value.vertical=q)},null,512),[[c.vModelCheckbox,g.value.vertical]])])):c.createCommentVNode("",!0),u.value.option.includes(i.value)?(c.openBlock(),c.createElementBlock("div",QD,[c.createElementVNode("p",null,[y[128]||(y[128]=c.createElementVNode("span",{style:{color:"red"}},"*",-1)),y[129]||(y[129]=c.createTextVNode("选项: ",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"customize",value:"customize","onUpdate:modelValue":y[37]||(y[37]=q=>g.value.option.type=q)},null,512),[[c.vModelRadio,g.value.option.type]]),y[130]||(y[130]=c.createElementVNode("label",{for:"customize"},"自定义",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"dynamics",value:"dynamics","onUpdate:modelValue":y[38]||(y[38]=q=>g.value.option.type=q)},null,512),[[c.vModelRadio,g.value.option.type]]),y[131]||(y[131]=c.createElementVNode("label",{for:"dynamics"},"编写代码",-1))]),g.value.option.type=="customize"?c.withDirectives((c.openBlock(),c.createElementBlock("textarea",{key:0,"onUpdate:modelValue":y[39]||(y[39]=q=>g.value.option.items=q),style:{width:"90%"}},null,512)),[[c.vModelText,g.value.option.items]]):c.createCommentVNode("",!0),g.value.option.type=="customize"?(c.openBlock(),c.createElementBlock("p",$D,"(格式:value|label;value|label,如:1|男;2|女)")):c.createCommentVNode("",!0),g.value.option.type=="dynamics"?(c.openBlock(),c.createElementBlock("p",MD,[c.createElementVNode("button",{onClick:y[40]||(y[40]=q=>j("getItemListMethod"))},"编写代码"),c.unref(x).selectWidget.config.option.getItemListMethod?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-eye opt-button",style:{"margin-left":"10px"},title:c.unref(x).selectWidget.config.option.getItemListMethod},"预览",8,DD)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),u.value.selectType.includes(i.value)?(c.openBlock(),c.createElementBlock("div",RD,[y[132]||(y[132]=c.createElementVNode("span",null,"选择方式:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"single",value:"single","onUpdate:modelValue":y[41]||(y[41]=q=>g.value.selectType=q)},null,512),[[c.vModelRadio,g.value.selectType]]),y[133]||(y[133]=c.createElementVNode("label",{for:"single"},"单选",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"more",value:"more","onUpdate:modelValue":y[42]||(y[42]=q=>g.value.selectType=q)},null,512),[[c.vModelRadio,g.value.selectType]]),y[134]||(y[134]=c.createElementVNode("label",{for:"more"},"多选",-1))])):c.createCommentVNode("",!0),u.value.numberType.includes(i.value)?(c.openBlock(),c.createElementBlock("div",ND,[y[135]||(y[135]=c.createElementVNode("span",null,"数字类型:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"int",value:"int","onUpdate:modelValue":y[43]||(y[43]=q=>g.value.numberType=q)},null,512),[[c.vModelRadio,g.value.numberType]]),y[136]||(y[136]=c.createElementVNode("label",{for:"int"},"整数",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"float",value:"float","onUpdate:modelValue":y[44]||(y[44]=q=>g.value.numberType=q)},null,512),[[c.vModelRadio,g.value.numberType]]),y[137]||(y[137]=c.createElementVNode("label",{for:"float"},"浮点数",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"money",value:"money","onUpdate:modelValue":y[45]||(y[45]=q=>g.value.numberType=q)},null,512),[[c.vModelRadio,g.value.numberType]]),y[138]||(y[138]=c.createElementVNode("label",{for:"money"},"金额",-1))])):c.createCommentVNode("",!0),u.value.max.includes(i.value)?(c.openBlock(),c.createElementBlock("div",VD,[y[139]||(y[139]=c.createElementVNode("span",null,"最大值:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[46]||(y[46]=q=>g.value.max=q),type:"number",style:{width:"80px"}},null,512),[[c.vModelText,g.value.max]])])):c.createCommentVNode("",!0),u.value.min.includes(i.value)?(c.openBlock(),c.createElementBlock("div",BD,[y[140]||(y[140]=c.createElementVNode("span",null,"最小值:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[47]||(y[47]=q=>g.value.min=q),type:"number",style:{width:"80px"}},null,512),[[c.vModelText,g.value.min]])])):c.createCommentVNode("",!0),u.value.precision.includes(i.value)&&g.value.numberType!="int"?(c.openBlock(),c.createElementBlock("div",ZD,[y[141]||(y[141]=c.createElementVNode("span",null,"精度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[48]||(y[48]=q=>g.value.precision=q),type:"number",min:"0",style:{width:"80px"}},null,512),[[c.vModelText,g.value.precision]])])):c.createCommentVNode("",!0),u.value.showCurDate.includes(i.value)?(c.openBlock(),c.createElementBlock("div",ID,[y[142]||(y[142]=c.createElementVNode("span",null,"默认显示当前时间:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[49]||(y[49]=q=>g.value.showCurDate=q)},null,512),[[c.vModelCheckbox,g.value.showCurDate]])])):c.createCommentVNode("",!0),u.value.dateTimeType.includes(i.value)?(c.openBlock(),c.createElementBlock("div",LD,[y[144]||(y[144]=c.createElementVNode("span",null,"时间类型:",-1)),c.withDirectives(c.createElementVNode("select",{"onUpdate:modelValue":y[50]||(y[50]=q=>g.value.dateTimeType=q),style:{width:"180px"}},[...y[143]||(y[143]=[c.createElementVNode("option",null,"yyyy",-1),c.createElementVNode("option",null,"yyyy-MM",-1),c.createElementVNode("option",null,"yyyy-MM-dd",-1),c.createElementVNode("option",null,"yyyy-MM-dd HH",-1),c.createElementVNode("option",null,"yyyy-MM-dd HH:mm",-1),c.createElementVNode("option",null,"yyyy-MM-dd HH:mm:ss",-1),c.createElementVNode("option",null,"HH:mm:ss",-1),c.createElementVNode("option",null,"HH:mm",-1)])],512),[[c.vModelSelect,g.value.dateTimeType]])])):c.createCommentVNode("",!0),u.value.disabledDate.includes(i.value)&&(g.value.dateTimeType=="yyyy-MM-dd"||g.value.dateTimeType=="yyyy-MM-dd HH"||g.value.dateTimeType=="yyyy-MM-dd HH:mm"||g.value.dateTimeType=="yyyy-MM-dd HH:mm:ss")?(c.openBlock(),c.createElementBlock(c.Fragment,{key:29},[c.createElementVNode("div",WD,[y[146]||(y[146]=c.createElementVNode("span",null,"不可选日期:",-1)),c.withDirectives(c.createElementVNode("select",{"onUpdate:modelValue":y[51]||(y[51]=q=>g.value.disabledDate.type=q),style:{width:"180px"}},[...y[145]||(y[145]=[c.createStaticVNode('<option value="none">无</option><option value="beforeCurDay">当天以前</option><option value="afterCurDay">当天以后</option><option value="beforeDay">指定日期以前</option><option value="afterDay">指定日期以后</option><option value="dateRangeInside">指定日期范围以内</option><option value="dateRangeOutside">指定日期范围以外</option><option value="date">指定每月的几号</option>',8)])],512),[[c.vModelSelect,g.value.disabledDate.type]])]),g.value.disabledDate.type=="beforeDay"?(c.openBlock(),c.createElementBlock("div",XD,[y[147]||(y[147]=c.createElementVNode("span",{style:{color:"red"}},"*",-1)),y[148]||(y[148]=c.createElementVNode("span",null,"日期:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[52]||(y[52]=q=>g.value.disabledDate.startDate=q),type:"text"},null,512),[[c.vModelText,g.value.disabledDate.startDate]]),y[149]||(y[149]=c.createElementVNode("p",{style:{"margin-left":"50px"}},"(格式:yyyy-MM-dd)",-1))])):c.createCommentVNode("",!0),g.value.disabledDate.type=="afterDay"?(c.openBlock(),c.createElementBlock("div",UD,[y[150]||(y[150]=c.createElementVNode("span",{style:{color:"red"}},"*",-1)),y[151]||(y[151]=c.createElementVNode("span",null,"日期:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[53]||(y[53]=q=>g.value.disabledDate.endDate=q),type:"text"},null,512),[[c.vModelText,g.value.disabledDate.endDate]]),y[152]||(y[152]=c.createElementVNode("p",{style:{"margin-left":"50px"}},"(格式:yyyy-MM-dd)",-1))])):c.createCommentVNode("",!0),g.value.disabledDate.type=="dateRangeInside"||g.value.disabledDate.type=="dateRangeOutside"?(c.openBlock(),c.createElementBlock("div",FD,[y[153]||(y[153]=c.createElementVNode("span",{style:{color:"red"}},"*",-1)),y[154]||(y[154]=c.createElementVNode("span",null,"日期:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[54]||(y[54]=q=>g.value.disabledDate.startDate=q),type:"text",style:{width:"90px"}},null,512),[[c.vModelText,g.value.disabledDate.startDate]]),y[155]||(y[155]=c.createTextVNode("-- ",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[55]||(y[55]=q=>g.value.disabledDate.endDate=q),type:"text",style:{width:"90px"}},null,512),[[c.vModelText,g.value.disabledDate.endDate]]),y[156]||(y[156]=c.createElementVNode("p",{style:{"margin-left":"70px"}},"(格式:yyyy-MM-dd)",-1))])):c.createCommentVNode("",!0),g.value.disabledDate.type=="date"?(c.openBlock(),c.createElementBlock("div",YD,[y[157]||(y[157]=c.createElementVNode("span",{style:{color:"red"}},"*",-1)),y[158]||(y[158]=c.createElementVNode("span",null,"几号:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[56]||(y[56]=q=>g.value.disabledDate.day=q),type:"number",style:{width:"80px"},min:"1",max:"31"},null,512),[[c.vModelText,g.value.disabledDate.day]])])):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0),u.value.dateTimeRange.includes(i.value)&&!(g.value.dateTimeType=="yyyy"||g.value.dateTimeType=="yyyy-MM")?(c.openBlock(),c.createElementBlock("div",GD,[y[159]||(y[159]=c.createElementVNode("span",null,"是否范围选择:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[57]||(y[57]=q=>g.value.dateTimeRange=q)},null,512),[[c.vModelCheckbox,g.value.dateTimeRange]])])):c.createCommentVNode("",!0),u.value.timeSteps.includes(i.value)&&(g.value.dateTimeType=="yyyy-MM-dd HH"||g.value.dateTimeType=="yyyy-MM-dd HH:mm"||g.value.dateTimeType=="yyyy-MM-dd HH:mm:ss"||g.value.dateTimeType=="HH:mm:ss"||g.value.dateTimeType=="HH:mm")?(c.openBlock(),c.createElementBlock("div",HD,[y[160]||(y[160]=c.createElementVNode("span",null,"选择时间的间隔:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[58]||(y[58]=q=>g.value.timeSteps=q),type:"text",placeholder:"[1, 1, 1]",style:{width:"80px"}},null,512),[[c.vModelText,g.value.timeSteps]]),y[161]||(y[161]=c.createElementVNode("p",null,"(格式:[1, 15, 15]-数组的三项分别对应小时、分钟、秒)",-1))])):c.createCommentVNode("",!0),u.value.defaultValue.includes(i.value)?(c.openBlock(),c.createElementBlock("div",KD,[y[162]||(y[162]=c.createElementVNode("span",null,"默认值:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[59]||(y[59]=q=>g.value.defaultValue=q)},null,512),[[c.vModelText,g.value.defaultValue]]),y[163]||(y[163]=c.createElementVNode("p",{style:{"margin-left":"30px"}},"(对复选框,下拉框,多值的以,分隔)",-1))])):c.createCommentVNode("",!0),u.value.textType.includes(i.value)?(c.openBlock(),c.createElementBlock("div",JD,[y[164]||(y[164]=c.createElementVNode("span",null,"显示方式:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"single",value:"single","onUpdate:modelValue":y[60]||(y[60]=q=>g.value.textType=q)},null,512),[[c.vModelRadio,g.value.textType]]),y[165]||(y[165]=c.createElementVNode("label",{for:"single"},"单行",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"more",value:"more","onUpdate:modelValue":y[61]||(y[61]=q=>g.value.textType=q)},null,512),[[c.vModelRadio,g.value.textType]]),y[166]||(y[166]=c.createElementVNode("label",{for:"more"},"多行",-1))])):c.createCommentVNode("",!0),u.value.textType.includes(i.value)?(c.openBlock(),c.createElementBlock("div",nR,[y[167]||(y[167]=c.createElementVNode("p",null,[c.createElementVNode("span",{style:{color:"red"}},"*"),c.createTextVNode("显示内容:")],-1)),g.value.textType=="single"?c.withDirectives((c.openBlock(),c.createElementBlock("input",{key:0,"onUpdate:modelValue":y[62]||(y[62]=q=>g.value.textValue=q),style:{width:"90%"}},null,512)),[[c.vModelText,g.value.textValue]]):c.withDirectives((c.openBlock(),c.createElementBlock("textarea",{key:1,"onUpdate:modelValue":y[63]||(y[63]=q=>g.value.textValue=q),style:{width:"90%"}},null,512)),[[c.vModelText,g.value.textValue]])])):c.createCommentVNode("",!0),u.value.trueValue.includes(i.value)?(c.openBlock(),c.createElementBlock("div",xR,[y[168]||(y[168]=c.createElementVNode("span",null,"选中时的值:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[64]||(y[64]=q=>g.value.trueValue=q),style:{width:"60px"},type:"text"},null,512),[[c.vModelText,g.value.trueValue]])])):c.createCommentVNode("",!0),u.value.trueText.includes(i.value)?(c.openBlock(),c.createElementBlock("div",iR,[y[169]||(y[169]=c.createElementVNode("span",null,"选中时显示的文字:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[65]||(y[65]=q=>g.value.trueText=q),style:{width:"60px"},type:"text"},null,512),[[c.vModelText,g.value.trueText]])])):c.createCommentVNode("",!0),u.value.falseValue.includes(i.value)?(c.openBlock(),c.createElementBlock("div",eR,[y[170]||(y[170]=c.createElementVNode("span",null,"未选中时的值:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[66]||(y[66]=q=>g.value.falseValue=q),style:{width:"60px"},type:"text"},null,512),[[c.vModelText,g.value.falseValue]])])):c.createCommentVNode("",!0),u.value.falseText.includes(i.value)?(c.openBlock(),c.createElementBlock("div",tR,[y[171]||(y[171]=c.createElementVNode("span",null,"未选中时显示的文字:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[67]||(y[67]=q=>g.value.falseText=q),style:{width:"60px"},type:"text"},null,512),[[c.vModelText,g.value.falseText]])])):c.createCommentVNode("",!0),u.value.switchSize.includes(i.value)?(c.openBlock(),c.createElementBlock("div",hR,[y[173]||(y[173]=c.createElementVNode("span",null,"尺寸:",-1)),c.withDirectives(c.createElementVNode("select",{"onUpdate:modelValue":y[68]||(y[68]=q=>g.value.switchSize=q),style:{width:"40px"}},[...y[172]||(y[172]=[c.createElementVNode("option",{value:"small"},"小",-1),c.createElementVNode("option",{value:"default"},"中",-1),c.createElementVNode("option",{value:"large"},"大",-1)])],512),[[c.vModelSelect,g.value.switchSize]]),y[174]||(y[174]=c.createElementVNode("p",{style:{"margin-left":"10px"}},"(2个汉字的文字,建议选择:大)",-1))])):c.createCommentVNode("",!0),u.value.isShowAndHide.includes(i.value)?(c.openBlock(),c.createElementBlock("div",gR,[y[175]||(y[175]=c.createElementVNode("span",null,"组件内容区域开启显示与隐藏功能:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[69]||(y[69]=q=>g.value.isShowAndHide=q)},null,512),[[c.vModelCheckbox,g.value.isShowAndHide]])])):c.createCommentVNode("",!0),u.value.treeData.includes(i.value)?(c.openBlock(),c.createElementBlock("div",uR,[y[176]||(y[176]=c.createElementVNode("span",null,[c.createElementVNode("span",{style:{color:"red"}},"*"),c.createTextVNode("树选择器数据:")],-1)),c.createElementVNode("button",{onClick:y[70]||(y[70]=q=>j("getTreeDataMethod"))},"编写代码"),c.unref(x).selectWidget.config.getTreeDataMethod?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-eye opt-button",style:{"margin-left":"10px"},title:c.unref(x).selectWidget.config.getTreeDataMethod},"预览",8,sR)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),u.value.cascaderData.includes(i.value)?(c.openBlock(),c.createElementBlock("div",oR,[y[177]||(y[177]=c.createElementVNode("span",null,[c.createElementVNode("span",{style:{color:"red"}},"*"),c.createTextVNode("级联选择器数据:")],-1)),c.createElementVNode("button",{onClick:y[71]||(y[71]=q=>j("getCascaderDataMethod"))},"编写代码"),c.unref(x).selectWidget.config.getCascaderDataMethod?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-eye opt-button",style:{"margin-left":"10px"},title:c.unref(x).selectWidget.config.getCascaderDataMethod},"预览",8,lR)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),u.value.transfer.includes(i.value)?(c.openBlock(),c.createElementBlock("div",cR,[y[178]||(y[178]=c.createElementVNode("span",null,"将弹层放置于body内:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[72]||(y[72]=q=>g.value.transfer=q)},null,512),[[c.vModelCheckbox,g.value.transfer]])])):c.createCommentVNode("",!0),u.value.multiple.includes(i.value)?(c.openBlock(),c.createElementBlock("div",rR,[y[179]||(y[179]=c.createElementVNode("span",null,"支持多选文件:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[73]||(y[73]=q=>g.value.multiple=q)},null,512),[[c.vModelCheckbox,g.value.multiple]])])):c.createCommentVNode("",!0),u.value.fileAccept.includes(i.value)?(c.openBlock(),c.createElementBlock("div",dR,[y[180]||(y[180]=c.createElementVNode("span",null,[c.createTextVNode("接受上传的"),c.createElementVNode("a",{href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/file",target:"_blank"},"文件类型"),c.createTextVNode(":")],-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[74]||(y[74]=q=>g.value.fileAccept=q),type:"text",style:{width:"120px"}},null,512),[[c.vModelText,g.value.fileAccept]])])):c.createCommentVNode("",!0),u.value.fileFormat.includes(i.value)?(c.openBlock(),c.createElementBlock("div",aR,[y[181]||(y[181]=c.createElementVNode("span",null,"支持的文件类型:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[75]||(y[75]=q=>g.value.fileFormat=q),type:"text",placeholder:".docx,.pdf",style:{width:"150px"}},null,512),[[c.vModelText,g.value.fileFormat]])])):c.createCommentVNode("",!0),u.value.fileMaxSize.includes(i.value)?(c.openBlock(),c.createElementBlock("div",fR,[y[182]||(y[182]=c.createElementVNode("span",null,"文件大小限制:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[76]||(y[76]=q=>g.value.fileMaxSize=q),min:"1",type:"number",style:{width:"80px"}},null,512),[[c.vModelText,g.value.fileMaxSize]]),y[183]||(y[183]=c.createTextVNode("(单位 kb) ",-1))])):c.createCommentVNode("",!0),u.value.richEditMode.includes(i.value)?(c.openBlock(),c.createElementBlock("div",bR,[y[184]||(y[184]=c.createElementVNode("span",null,"显示模式:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"default",value:"default","onUpdate:modelValue":y[77]||(y[77]=q=>g.value.richEditMode=q)},null,512),[[c.vModelRadio,g.value.richEditMode]]),y[185]||(y[185]=c.createElementVNode("label",{for:"default"},"普通",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"simple",value:"simple","onUpdate:modelValue":y[78]||(y[78]=q=>g.value.richEditMode=q)},null,512),[[c.vModelRadio,g.value.richEditMode]]),y[186]||(y[186]=c.createElementVNode("label",{for:"simple"},"简易",-1))])):c.createCommentVNode("",!0),u.value.richEditWidth.includes(i.value)?(c.openBlock(),c.createElementBlock("div",yR,[y[187]||(y[187]=c.createElementVNode("span",null,"编辑框宽度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[79]||(y[79]=q=>g.value.richEditWidth=q),min:"100",type:"number",style:{width:"80px"}},null,512),[[c.vModelText,g.value.richEditWidth]]),y[188]||(y[188]=c.createTextVNode("(px) ",-1))])):c.createCommentVNode("",!0),u.value.extendAtt.includes(i.value)?(c.openBlock(),c.createElementBlock("div",zR,[y[189]||(y[189]=c.createElementVNode("span",null,"扩展属性:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[80]||(y[80]=q=>g.value.extendAtt=q),type:"text"},null,512),[[c.vModelText,g.value.extendAtt]])])):c.createCommentVNode("",!0),i.value!="label"&&i.value!="group"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:51},[y[195]||(y[195]=c.createElementVNode("p",{style:{"font-weight":"600","margin-left":"5px"}}," 移动端相关属性: ",-1)),u.value.h5LabelPosition.includes(i.value)?(c.openBlock(),c.createElementBlock("div",mR,[y[190]||(y[190]=c.createElementVNode("span",null,"标签位置:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"sameRow",value:"sameRow","onUpdate:modelValue":y[81]||(y[81]=q=>g.value.h5LabelPosition=q)},null,512),[[c.vModelRadio,g.value.h5LabelPosition]]),y[191]||(y[191]=c.createElementVNode("label",{for:"sameRow"},"与输入框同行",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"exclusiveRow",value:"exclusiveRow","onUpdate:modelValue":y[82]||(y[82]=q=>g.value.h5LabelPosition=q)},null,512),[[c.vModelRadio,g.value.h5LabelPosition]]),y[192]||(y[192]=c.createElementVNode("label",{for:"exclusiveRow"},"独占一行",-1))])):c.createCommentVNode("",!0),u.value.h5ShowType.includes(i.value)?(c.openBlock(),c.createElementBlock("div",pR,[y[194]||(y[194]=c.createElementVNode("span",null,"显示控制:",-1)),c.withDirectives(c.createElementVNode("select",{"onUpdate:modelValue":y[83]||(y[83]=q=>g.value.h5ShowType=q),style:{width:"180px"}},[...y[193]||(y[193]=[c.createElementVNode("option",{value:"allShow"},"空值也显示",-1),c.createElementVNode("option",{value:"valueShow"},"空值不显示",-1),c.createElementVNode("option",{value:"notShow"},"不显示",-1)])],512),[[c.vModelSelect,g.value.h5ShowType]])])):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0),(c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[l.value?(c.openBlock(),c.createElementBlock("div",jR,[c.createElementVNode("div",wR,[c.createElementVNode("div",qR,c.toDisplayString(d.value)+"的代码 ",1),c.createElementVNode("div",OR,[y[196]||(y[196]=c.createElementVNode("p",{class:"code-desc"}," /** ",-1)),y[197]||(y[197]=c.createElementVNode("p",{class:"code-desc"},[c.createTextVNode(" *value:字段值"),c.createElementVNode("br"),c.createTextVNode(" *field:字段名 ")],-1)),y[198]||(y[198]=c.createElementVNode("p",{class:"code-desc"}," *formData:为表单数据对象 ",-1)),y[199]||(y[199]=c.createElementVNode("p",{class:"code-desc"}," *return:必需的 ",-1)),y[200]||(y[200]=c.createElementVNode("p",{class:"code-desc"}," */ ",-1)),y[201]||(y[201]=c.createElementVNode("p",{class:"code-desc"},"(value,field,formData)=>{",-1)),c.createVNode(k7,{ref_key:"codeEditorRef",ref:b,codeValue:a.value},null,8,["codeValue"]),y[202]||(y[202]=c.createElementVNode("p",{class:"code-desc"},"}",-1))]),c.createElementVNode("div",kR,[c.createElementVNode("button",{onClick:y[84]||(y[84]=c.withModifiers(q=>l.value=!1,["stop"]))},"取消"),c.createElementVNode("button",{onClick:c.withModifiers(p,["stop"]),class:"active"},"确定")])])])):c.createCommentVNode("",!0)]))],64))}},SR={key:0,class:"panel-option"},ER=["title"],CR={key:1,class:"panel-option"},TR=["title"],PR={key:2,class:"panel-option"},_R=["title"],AR={key:3,class:"panel-option"},QR=["title"],$R={key:4,class:"panel-option"},MR=["title"],DR={key:0,class:"msg-container",style:{"z-index":"800"}},RR={class:"msg-div code-div"},NR={class:"msg-div-title"},VR={class:"msg-div-content",style:{padding:"5px 10px"}},BR={key:0,class:"code-desc"},ZR={key:1,class:"code-desc"},IR={key:2,class:"code-desc"},LR={key:3,class:"code-desc"},WR={class:"msg-div-bottom"},XR={__name:"widgetSeniorConfig",setup(e){const x=J8(H8),i=c.ref(""),t=c.ref(""),h=c.ref(!0),g=c.ref(!1),u=c.ref(""),o=c.ref(""),l=c.ref(null);let d={showAndHide:`/**例如:
157747
+ */`};const p=()=>{let E=x.selectWidget.felidName,y=b.value.getEditorContent("",E,{},"method");if(y.includes("error:")){x.showMsgModal("error",y.replace("error:",""));return}d.value=="getItemListMethod"?x.selectWidget.config.option.getItemListMethod=y:x.selectWidget.config[d.value]=y,l.value=!1},j=E=>{E=="getItemListMethod"?a.value=x.selectWidget.config.option.getItemListMethod||z[E]||"":a.value=x.selectWidget.config[E]||z[E]||"",d.value=E,l.value=!0},k=E=>{E.target.checked?x.selectWidget.labelStyle.display="":x.selectWidget.labelStyle.display="none"},S=()=>{g.value.regularType=="email"?g.value.regular="/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$/":g.value.regularType=="mobile"?g.value.regular="/^1[3-9]d{9}$/":g.value.regularType=="IDCard"?g.value.regular="/^[1-9]d{5}(18|19|20)d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)d{3}[0-9Xx]$/":g.value.regular=""},C=()=>{i.value=x.selectWidget.type,t.value=x.selectWidget.pType,g.value=x.selectWidget.config,u.value=x.showConfig,o.value=!0};return c.onMounted(()=>{C()}),c.watch(x.selectWidget.config,(E,y)=>{h.value?h.value=!1:x.saveHistoryStep()}),(E,y)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[o.value?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[u.value.label.includes(i.value)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[y[94]||(y[94]=c.createElementVNode("p",{style:{"font-weight":"600","margin-left":"5px"}}," 标签属性: ",-1)),c.createElementVNode("div",hD,[y[88]||(y[88]=c.createElementVNode("span",{style:{color:"red"}},"*",-1)),y[89]||(y[89]=c.createElementVNode("span",null,"标签内容:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[0]||(y[0]=q=>g.value.label=q),onBlur:y[1]||(y[1]=(...q)=>c.unref(x).generateFieldName&&c.unref(x).generateFieldName(...q))},null,544),[[c.vModelText,g.value.label]])]),c.createElementVNode("div",gD,[y[90]||(y[90]=c.createElementVNode("span",null,"是否可见:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[2]||(y[2]=q=>g.value.showLabel=q),onChange:k},null,544),[[c.vModelCheckbox,g.value.showLabel]])]),u.value.labelPosition.includes(i.value)&&g.value.showLabel?(c.openBlock(),c.createElementBlock("div",uD,[y[91]||(y[91]=c.createElementVNode("span",null,"标签位置:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"sameRow",value:"sameRow","onUpdate:modelValue":y[3]||(y[3]=q=>g.value.labelPosition=q)},null,512),[[c.vModelRadio,g.value.labelPosition]]),y[92]||(y[92]=c.createElementVNode("label",{for:"sameRow"},"与输入框同行",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"exclusiveRow",value:"exclusiveRow","onUpdate:modelValue":y[4]||(y[4]=q=>g.value.labelPosition=q)},null,512),[[c.vModelRadio,g.value.labelPosition]]),y[93]||(y[93]=c.createElementVNode("label",{for:"exclusiveRow"},"独占一行",-1))])):c.createCommentVNode("",!0),y[95]||(y[95]=c.createElementVNode("p",{style:{"font-weight":"600","margin-left":"5px"}}," 输入框属性: ",-1))],64)):c.createCommentVNode("",!0),u.value.groupLabel.includes(i.value)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createElementVNode("div",sD,[y[96]||(y[96]=c.createElementVNode("span",null,"标签内容:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[5]||(y[5]=q=>g.value.label=q),onBlur:y[6]||(y[6]=(...q)=>c.unref(x).generateFieldName&&c.unref(x).generateFieldName(...q))},null,544),[[c.vModelText,g.value.label]])]),c.createElementVNode("div",oD,[y[97]||(y[97]=c.createElementVNode("span",null,"是否可见:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[7]||(y[7]=q=>g.value.showLabel=q),onChange:k},null,544),[[c.vModelCheckbox,g.value.showLabel]])])],64)):c.createCommentVNode("",!0),u.value.type.includes(i.value)?(c.openBlock(),c.createElementBlock("div",lD,[y[100]||(y[100]=c.createElementVNode("span",null,"组件类型:",-1)),i.value=="text"||i.value=="textarea"?c.withDirectives((c.openBlock(),c.createElementBlock("select",{key:0,"onUpdate:modelValue":y[8]||(y[8]=q=>c.unref(x).selectWidget.type=q),style:{width:"180px"},onChange:y[9]||(y[9]=(...q)=>c.unref(x).changeWidgetType&&c.unref(x).changeWidgetType(...q))},[...y[98]||(y[98]=[c.createElementVNode("option",{value:"text",label:"单行文本"},"单行文本",-1),c.createElementVNode("option",{value:"textarea",label:"多行文本"},"多行文本",-1)])],544)),[[c.vModelSelect,c.unref(x).selectWidget.type]]):c.createCommentVNode("",!0),i.value=="select"||i.value=="radio"||i.value=="checkbox"?c.withDirectives((c.openBlock(),c.createElementBlock("select",{key:1,"onUpdate:modelValue":y[10]||(y[10]=q=>c.unref(x).selectWidget.type=q),style:{width:"180px"},onChange:y[11]||(y[11]=(...q)=>c.unref(x).changeWidgetType&&c.unref(x).changeWidgetType(...q))},[...y[99]||(y[99]=[c.createElementVNode("option",{value:"radio",label:"单选框"},"单选框",-1),c.createElementVNode("option",{value:"checkbox",label:"复选框"},"复选框",-1),c.createElementVNode("option",{value:"select",label:"下拉框"},"下拉框",-1)])],544)),[[c.vModelSelect,c.unref(x).selectWidget.type]]):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),u.value.felidNameCreateType.includes(i.value)?(c.openBlock(),c.createElementBlock("div",cD,[y[104]||(y[104]=c.createElementVNode("div",{style:{float:"left",width:"112px"}},"字段名生成方式:",-1)),c.createElementVNode("div",rD,[c.withDirectives(c.createElementVNode("input",{type:"radio",id:"dynamics",value:"dynamics","onUpdate:modelValue":y[12]||(y[12]=q=>g.value.felidNameCreateType=q),onInput:y[13]||(y[13]=(...q)=>c.unref(x).generateFieldName&&c.unref(x).generateFieldName(...q)),disabled:!g.value.isEditFelidName},null,40,dD),[[c.vModelRadio,g.value.felidNameCreateType]]),y[101]||(y[101]=c.createElementVNode("label",{for:"dynamics"},"根据标签内容生成",-1)),y[102]||(y[102]=c.createElementVNode("br",null,null,-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"customize",value:"customize","onUpdate:modelValue":y[14]||(y[14]=q=>g.value.felidNameCreateType=q),disabled:!g.value.isEditFelidName},null,8,aD),[[c.vModelRadio,g.value.felidNameCreateType]]),y[103]||(y[103]=c.createElementVNode("label",{for:"customize"},"自定义",-1))])])):c.createCommentVNode("",!0),u.value.felidName.includes(i.value)?(c.openBlock(),c.createElementBlock("div",fD,[y[105]||(y[105]=c.createElementVNode("span",{style:{color:"red"}},"*",-1)),y[106]||(y[106]=c.createElementVNode("span",null,"字段名:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[15]||(y[15]=q=>g.value.felidName=q),disabled:g.value.felidNameCreateType=="dynamics"},null,8,bD),[[c.vModelText,g.value.felidName]])])):c.createCommentVNode("",!0),u.value.placeholder.includes(i.value)?(c.openBlock(),c.createElementBlock("div",yD,[y[107]||(y[107]=c.createElementVNode("span",null,"占位内容:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[16]||(y[16]=q=>g.value.placeholder=q)},null,512),[[c.vModelText,g.value.placeholder]])])):c.createCommentVNode("",!0),u.value.prefix.includes(i.value)?(c.openBlock(),c.createElementBlock("div",zD,[y[108]||(y[108]=c.createElementVNode("span",null,"前缀:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[17]||(y[17]=q=>g.value.prefix=q)},null,512),[[c.vModelText,g.value.prefix]])])):c.createCommentVNode("",!0),u.value.suffix.includes(i.value)?(c.openBlock(),c.createElementBlock("div",mD,[y[109]||(y[109]=c.createElementVNode("span",null,"后缀:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[18]||(y[18]=q=>g.value.suffix=q)},null,512),[[c.vModelText,g.value.suffix]])])):c.createCommentVNode("",!0),u.value.maxLength.includes(i.value)?(c.openBlock(),c.createElementBlock("div",pD,[y[110]||(y[110]=c.createElementVNode("span",null,"最大长度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[19]||(y[19]=q=>g.value.maxLength=q),type:"number",min:"1",style:{width:"80px"}},null,512),[[c.vModelText,g.value.maxLength]]),c.createTextVNode("(默认:"+c.toDisplayString(g.value.defaultLength)+") ",1)])):c.createCommentVNode("",!0),u.value.showWordLimit.includes(i.value)?(c.openBlock(),c.createElementBlock("div",jD,[y[111]||(y[111]=c.createElementVNode("span",null,"显示计数:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[20]||(y[20]=q=>g.value.showWordLimit=q)},null,512),[[c.vModelCheckbox,g.value.showWordLimit]])])):c.createCommentVNode("",!0),u.value.readonly.includes(i.value)?(c.openBlock(),c.createElementBlock("div",wD,[y[112]||(y[112]=c.createElementVNode("span",null,"是否只读:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[21]||(y[21]=q=>g.value.readonly=q)},null,512),[[c.vModelCheckbox,g.value.readonly]])])):c.createCommentVNode("",!0),u.value.disabled.includes(i.value)?(c.openBlock(),c.createElementBlock("div",qD,[y[113]||(y[113]=c.createElementVNode("span",null,"是否禁用:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[22]||(y[22]=q=>g.value.disabled=q)},null,512),[[c.vModelCheckbox,g.value.disabled]])])):c.createCommentVNode("",!0),u.value.required.includes(i.value)?(c.openBlock(),c.createElementBlock("div",OD,[y[114]||(y[114]=c.createElementVNode("span",null,"是否必填:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[23]||(y[23]=q=>g.value.required=q)},null,512),[[c.vModelCheckbox,g.value.required]])])):c.createCommentVNode("",!0),g.value.required?(c.openBlock(),c.createElementBlock("div",kD,[y[115]||(y[115]=c.createElementVNode("span",null,"必填提示语:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[24]||(y[24]=q=>g.value.requiredMsg=q),placeholder:"默认值:此值是必需的"},null,512),[[c.vModelText,g.value.requiredMsg]])])):c.createCommentVNode("",!0),u.value.regular.includes(i.value)?(c.openBlock(),c.createElementBlock("div",vD,[y[122]||(y[122]=c.createElementVNode("div",{style:{float:"left",width:"70px"}},"字段校验:",-1)),c.createElementVNode("div",SD,[c.withDirectives(c.createElementVNode("input",{type:"radio",id:"email",value:"email","onUpdate:modelValue":y[25]||(y[25]=q=>g.value.regularType=q),onChange:S},null,544),[[c.vModelRadio,g.value.regularType]]),y[116]||(y[116]=c.createElementVNode("label",{for:"email"},"邮件",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"mobile",value:"mobile","onUpdate:modelValue":y[26]||(y[26]=q=>g.value.regularType=q),onChange:S},null,544),[[c.vModelRadio,g.value.regularType]]),y[117]||(y[117]=c.createElementVNode("label",{for:"mobile"},"手机号码",-1)),y[118]||(y[118]=c.createElementVNode("br",null,null,-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"IDCard",value:"IDCard","onUpdate:modelValue":y[27]||(y[27]=q=>g.value.regularType=q),onChange:S},null,544),[[c.vModelRadio,g.value.regularType]]),y[119]||(y[119]=c.createElementVNode("label",{for:"IDCard"},"身份证号",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"customize",value:"customize","onUpdate:modelValue":y[28]||(y[28]=q=>g.value.regularType=q),onChange:S},null,544),[[c.vModelRadio,g.value.regularType]]),y[120]||(y[120]=c.createElementVNode("label",{for:"customize"},"自定义",-1)),y[121]||(y[121]=c.createElementVNode("br",null,null,-1)),g.value.regularType=="customize"?c.withDirectives((c.openBlock(),c.createElementBlock("input",{key:0,"onUpdate:modelValue":y[29]||(y[29]=q=>g.value.regular=q),placeholder:"请输入正则表达式"},null,512)),[[c.vModelText,g.value.regular]]):c.createCommentVNode("",!0)])])):c.createCommentVNode("",!0),u.value.regular.includes(i.value)?(c.openBlock(),c.createElementBlock("div",ED,[y[123]||(y[123]=c.createElementVNode("span",null,"校验失败提示:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[30]||(y[30]=q=>g.value.regularMsg=q),style:{width:"150px"},placeholder:"默认值:此值是不合法的"},null,512),[[c.vModelText,g.value.regularMsg]])])):c.createCommentVNode("",!0),u.value.rowsType.includes(i.value)?(c.openBlock(),c.createElementBlock("div",CD,[y[124]||(y[124]=c.createElementVNode("span",null,"显示行数:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"dynamics",value:"dynamics","onUpdate:modelValue":y[31]||(y[31]=q=>g.value.rowsType=q)},null,512),[[c.vModelRadio,g.value.rowsType]]),y[125]||(y[125]=c.createElementVNode("label",{for:"dynamics"},"自适应",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"customize",value:"customize","onUpdate:modelValue":y[32]||(y[32]=q=>g.value.rowsType=q)},null,512),[[c.vModelRadio,g.value.rowsType]]),y[126]||(y[126]=c.createElementVNode("label",{for:"customize"},"自定义",-1))])):c.createCommentVNode("",!0),g.value.rowsType=="customize"?(c.openBlock(),c.createElementBlock("div",TD,[y[127]||(y[127]=c.createElementVNode("span",null,"固定行数:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[33]||(y[33]=q=>g.value.rows=q),type:"number",min:"1",style:{width:"80px"}},null,512),[[c.vModelText,g.value.rows]])])):c.createCommentVNode("",!0),g.value.rowsType=="dynamics"?(c.openBlock(),c.createElementBlock("div",PD,[y[128]||(y[128]=c.createElementVNode("span",null,"最小行数:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[34]||(y[34]=q=>g.value.minRows=q),type:"number",min:"1",style:{width:"80px"}},null,512),[[c.vModelText,g.value.minRows]])])):c.createCommentVNode("",!0),g.value.rowsType=="dynamics"?(c.openBlock(),c.createElementBlock("div",_D,[y[129]||(y[129]=c.createElementVNode("span",null,"最大行数:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[35]||(y[35]=q=>g.value.maxRows=q),type:"number",min:"1",style:{width:"80px"}},null,512),[[c.vModelText,g.value.maxRows]])])):c.createCommentVNode("",!0),u.value.vertical.includes(i.value)?(c.openBlock(),c.createElementBlock("div",AD,[y[130]||(y[130]=c.createElementVNode("span",null,"是否垂直排列:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[36]||(y[36]=q=>g.value.vertical=q)},null,512),[[c.vModelCheckbox,g.value.vertical]])])):c.createCommentVNode("",!0),u.value.option.includes(i.value)?(c.openBlock(),c.createElementBlock("div",QD,[c.createElementVNode("p",null,[y[131]||(y[131]=c.createElementVNode("span",{style:{color:"red"}},"*",-1)),y[132]||(y[132]=c.createTextVNode("选项: ",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"customize",value:"customize","onUpdate:modelValue":y[37]||(y[37]=q=>g.value.option.type=q)},null,512),[[c.vModelRadio,g.value.option.type]]),y[133]||(y[133]=c.createElementVNode("label",{for:"customize"},"自定义",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"dynamics",value:"dynamics","onUpdate:modelValue":y[38]||(y[38]=q=>g.value.option.type=q)},null,512),[[c.vModelRadio,g.value.option.type]]),y[134]||(y[134]=c.createElementVNode("label",{for:"dynamics"},"编写代码",-1))]),g.value.option.type=="customize"?c.withDirectives((c.openBlock(),c.createElementBlock("textarea",{key:0,"onUpdate:modelValue":y[39]||(y[39]=q=>g.value.option.items=q),style:{width:"90%"}},null,512)),[[c.vModelText,g.value.option.items]]):c.createCommentVNode("",!0),g.value.option.type=="customize"?(c.openBlock(),c.createElementBlock("p",$D,"(格式:value|label;value|label,如:1|男;2|女)")):c.createCommentVNode("",!0),g.value.option.type=="dynamics"?(c.openBlock(),c.createElementBlock("p",MD,[c.createElementVNode("button",{onClick:y[40]||(y[40]=q=>j("getItemListMethod"))},"编写代码"),c.unref(x).selectWidget.config.option.getItemListMethod?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-eye opt-button",style:{"margin-left":"10px"},title:c.unref(x).selectWidget.config.option.getItemListMethod},"预览",8,DD)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),u.value.selectType.includes(i.value)?(c.openBlock(),c.createElementBlock("div",RD,[y[135]||(y[135]=c.createElementVNode("span",null,"选择方式:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"single",value:"single","onUpdate:modelValue":y[41]||(y[41]=q=>g.value.selectType=q)},null,512),[[c.vModelRadio,g.value.selectType]]),y[136]||(y[136]=c.createElementVNode("label",{for:"single"},"单选",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"more",value:"more","onUpdate:modelValue":y[42]||(y[42]=q=>g.value.selectType=q)},null,512),[[c.vModelRadio,g.value.selectType]]),y[137]||(y[137]=c.createElementVNode("label",{for:"more"},"多选",-1))])):c.createCommentVNode("",!0),u.value.numberType.includes(i.value)?(c.openBlock(),c.createElementBlock("div",ND,[y[138]||(y[138]=c.createElementVNode("span",null,"数字类型:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"int",value:"int","onUpdate:modelValue":y[43]||(y[43]=q=>g.value.numberType=q)},null,512),[[c.vModelRadio,g.value.numberType]]),y[139]||(y[139]=c.createElementVNode("label",{for:"int"},"整数",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"float",value:"float","onUpdate:modelValue":y[44]||(y[44]=q=>g.value.numberType=q)},null,512),[[c.vModelRadio,g.value.numberType]]),y[140]||(y[140]=c.createElementVNode("label",{for:"float"},"浮点数",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"money",value:"money","onUpdate:modelValue":y[45]||(y[45]=q=>g.value.numberType=q)},null,512),[[c.vModelRadio,g.value.numberType]]),y[141]||(y[141]=c.createElementVNode("label",{for:"money"},"金额",-1))])):c.createCommentVNode("",!0),u.value.max.includes(i.value)?(c.openBlock(),c.createElementBlock("div",VD,[y[142]||(y[142]=c.createElementVNode("span",null,"最大值:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[46]||(y[46]=q=>g.value.max=q),type:"number",style:{width:"80px"}},null,512),[[c.vModelText,g.value.max]])])):c.createCommentVNode("",!0),u.value.min.includes(i.value)?(c.openBlock(),c.createElementBlock("div",BD,[y[143]||(y[143]=c.createElementVNode("span",null,"最小值:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[47]||(y[47]=q=>g.value.min=q),type:"number",style:{width:"80px"}},null,512),[[c.vModelText,g.value.min]])])):c.createCommentVNode("",!0),u.value.precision.includes(i.value)&&g.value.numberType!="int"?(c.openBlock(),c.createElementBlock("div",ZD,[y[144]||(y[144]=c.createElementVNode("span",null,"精度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[48]||(y[48]=q=>g.value.precision=q),type:"number",min:"0",style:{width:"80px"}},null,512),[[c.vModelText,g.value.precision]])])):c.createCommentVNode("",!0),u.value.showCurDate.includes(i.value)?(c.openBlock(),c.createElementBlock("div",ID,[y[145]||(y[145]=c.createElementVNode("span",null,"默认显示当前时间:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[49]||(y[49]=q=>g.value.showCurDate=q)},null,512),[[c.vModelCheckbox,g.value.showCurDate]])])):c.createCommentVNode("",!0),u.value.dateTimeType.includes(i.value)?(c.openBlock(),c.createElementBlock("div",LD,[y[147]||(y[147]=c.createElementVNode("span",null,"时间类型:",-1)),c.withDirectives(c.createElementVNode("select",{"onUpdate:modelValue":y[50]||(y[50]=q=>g.value.dateTimeType=q),style:{width:"180px"}},[...y[146]||(y[146]=[c.createElementVNode("option",null,"yyyy",-1),c.createElementVNode("option",null,"yyyy-MM",-1),c.createElementVNode("option",null,"yyyy-MM-dd",-1),c.createElementVNode("option",null,"yyyy-MM-dd HH",-1),c.createElementVNode("option",null,"yyyy-MM-dd HH:mm",-1),c.createElementVNode("option",null,"yyyy-MM-dd HH:mm:ss",-1),c.createElementVNode("option",null,"HH:mm:ss",-1),c.createElementVNode("option",null,"HH:mm",-1)])],512),[[c.vModelSelect,g.value.dateTimeType]])])):c.createCommentVNode("",!0),u.value.disabledDate.includes(i.value)&&(g.value.dateTimeType=="yyyy-MM-dd"||g.value.dateTimeType=="yyyy-MM-dd HH"||g.value.dateTimeType=="yyyy-MM-dd HH:mm"||g.value.dateTimeType=="yyyy-MM-dd HH:mm:ss")?(c.openBlock(),c.createElementBlock(c.Fragment,{key:29},[c.createElementVNode("div",WD,[y[149]||(y[149]=c.createElementVNode("span",null,"不可选日期:",-1)),c.withDirectives(c.createElementVNode("select",{"onUpdate:modelValue":y[51]||(y[51]=q=>g.value.disabledDate.type=q),style:{width:"180px"}},[...y[148]||(y[148]=[c.createStaticVNode('<option value="none">无</option><option value="beforeCurDay">当天以前</option><option value="afterCurDay">当天以后</option><option value="beforeDay">指定日期以前</option><option value="afterDay">指定日期以后</option><option value="dateRangeInside">指定日期范围以内</option><option value="dateRangeOutside">指定日期范围以外</option><option value="date">指定每月的几号</option>',8)])],512),[[c.vModelSelect,g.value.disabledDate.type]])]),g.value.disabledDate.type=="beforeDay"?(c.openBlock(),c.createElementBlock("div",XD,[y[150]||(y[150]=c.createElementVNode("span",{style:{color:"red"}},"*",-1)),y[151]||(y[151]=c.createElementVNode("span",null,"日期:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[52]||(y[52]=q=>g.value.disabledDate.startDate=q),type:"text"},null,512),[[c.vModelText,g.value.disabledDate.startDate]]),y[152]||(y[152]=c.createElementVNode("p",{style:{"margin-left":"50px"}},"(格式:yyyy-MM-dd)",-1))])):c.createCommentVNode("",!0),g.value.disabledDate.type=="afterDay"?(c.openBlock(),c.createElementBlock("div",UD,[y[153]||(y[153]=c.createElementVNode("span",{style:{color:"red"}},"*",-1)),y[154]||(y[154]=c.createElementVNode("span",null,"日期:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[53]||(y[53]=q=>g.value.disabledDate.endDate=q),type:"text"},null,512),[[c.vModelText,g.value.disabledDate.endDate]]),y[155]||(y[155]=c.createElementVNode("p",{style:{"margin-left":"50px"}},"(格式:yyyy-MM-dd)",-1))])):c.createCommentVNode("",!0),g.value.disabledDate.type=="dateRangeInside"||g.value.disabledDate.type=="dateRangeOutside"?(c.openBlock(),c.createElementBlock("div",FD,[y[156]||(y[156]=c.createElementVNode("span",{style:{color:"red"}},"*",-1)),y[157]||(y[157]=c.createElementVNode("span",null,"日期:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[54]||(y[54]=q=>g.value.disabledDate.startDate=q),type:"text",style:{width:"90px"}},null,512),[[c.vModelText,g.value.disabledDate.startDate]]),y[158]||(y[158]=c.createTextVNode("-- ",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[55]||(y[55]=q=>g.value.disabledDate.endDate=q),type:"text",style:{width:"90px"}},null,512),[[c.vModelText,g.value.disabledDate.endDate]]),y[159]||(y[159]=c.createElementVNode("p",{style:{"margin-left":"70px"}},"(格式:yyyy-MM-dd)",-1))])):c.createCommentVNode("",!0),g.value.disabledDate.type=="date"?(c.openBlock(),c.createElementBlock("div",YD,[y[160]||(y[160]=c.createElementVNode("span",{style:{color:"red"}},"*",-1)),y[161]||(y[161]=c.createElementVNode("span",null,"几号:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[56]||(y[56]=q=>g.value.disabledDate.day=q),type:"number",style:{width:"80px"},min:"1",max:"31"},null,512),[[c.vModelText,g.value.disabledDate.day]])])):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0),u.value.dateTimeRange.includes(i.value)&&!(g.value.dateTimeType=="yyyy"||g.value.dateTimeType=="yyyy-MM")?(c.openBlock(),c.createElementBlock("div",GD,[y[162]||(y[162]=c.createElementVNode("span",null,"是否范围选择:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[57]||(y[57]=q=>g.value.dateTimeRange=q)},null,512),[[c.vModelCheckbox,g.value.dateTimeRange]])])):c.createCommentVNode("",!0),u.value.timeSteps.includes(i.value)&&(g.value.dateTimeType=="yyyy-MM-dd HH"||g.value.dateTimeType=="yyyy-MM-dd HH:mm"||g.value.dateTimeType=="yyyy-MM-dd HH:mm:ss"||g.value.dateTimeType=="HH:mm:ss"||g.value.dateTimeType=="HH:mm")?(c.openBlock(),c.createElementBlock("div",HD,[y[163]||(y[163]=c.createElementVNode("span",null,"选择时间的间隔:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[58]||(y[58]=q=>g.value.timeSteps=q),type:"text",placeholder:"[1, 1, 1]",style:{width:"80px"}},null,512),[[c.vModelText,g.value.timeSteps]]),y[164]||(y[164]=c.createElementVNode("p",null,"(格式:[1, 15, 15]-数组的三项分别对应小时、分钟、秒)",-1))])):c.createCommentVNode("",!0),u.value.defaultValue.includes(i.value)?(c.openBlock(),c.createElementBlock("div",KD,[y[165]||(y[165]=c.createElementVNode("span",null,"默认值:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[59]||(y[59]=q=>g.value.defaultValue=q)},null,512),[[c.vModelText,g.value.defaultValue]]),y[166]||(y[166]=c.createElementVNode("p",{style:{"margin-left":"30px"}},"(对复选框,下拉框,多值的以,分隔)",-1))])):c.createCommentVNode("",!0),u.value.textType.includes(i.value)?(c.openBlock(),c.createElementBlock("div",JD,[y[167]||(y[167]=c.createElementVNode("span",null,"显示方式:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"single",value:"single","onUpdate:modelValue":y[60]||(y[60]=q=>g.value.textType=q)},null,512),[[c.vModelRadio,g.value.textType]]),y[168]||(y[168]=c.createElementVNode("label",{for:"single"},"单行",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"more",value:"more","onUpdate:modelValue":y[61]||(y[61]=q=>g.value.textType=q)},null,512),[[c.vModelRadio,g.value.textType]]),y[169]||(y[169]=c.createElementVNode("label",{for:"more"},"多行",-1))])):c.createCommentVNode("",!0),u.value.textType.includes(i.value)?(c.openBlock(),c.createElementBlock("div",nR,[y[170]||(y[170]=c.createElementVNode("p",null,[c.createElementVNode("span",{style:{color:"red"}},"*"),c.createTextVNode("显示内容:")],-1)),g.value.textType=="single"?c.withDirectives((c.openBlock(),c.createElementBlock("input",{key:0,"onUpdate:modelValue":y[62]||(y[62]=q=>g.value.textValue=q),style:{width:"90%"}},null,512)),[[c.vModelText,g.value.textValue]]):c.withDirectives((c.openBlock(),c.createElementBlock("textarea",{key:1,"onUpdate:modelValue":y[63]||(y[63]=q=>g.value.textValue=q),style:{width:"90%"}},null,512)),[[c.vModelText,g.value.textValue]])])):c.createCommentVNode("",!0),u.value.trueValue.includes(i.value)?(c.openBlock(),c.createElementBlock("div",xR,[y[171]||(y[171]=c.createElementVNode("span",null,"选中时的值:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[64]||(y[64]=q=>g.value.trueValue=q),style:{width:"60px"},type:"text"},null,512),[[c.vModelText,g.value.trueValue]])])):c.createCommentVNode("",!0),u.value.trueText.includes(i.value)?(c.openBlock(),c.createElementBlock("div",iR,[y[172]||(y[172]=c.createElementVNode("span",null,"选中时显示的文字:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[65]||(y[65]=q=>g.value.trueText=q),style:{width:"60px"},type:"text"},null,512),[[c.vModelText,g.value.trueText]])])):c.createCommentVNode("",!0),u.value.falseValue.includes(i.value)?(c.openBlock(),c.createElementBlock("div",eR,[y[173]||(y[173]=c.createElementVNode("span",null,"未选中时的值:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[66]||(y[66]=q=>g.value.falseValue=q),style:{width:"60px"},type:"text"},null,512),[[c.vModelText,g.value.falseValue]])])):c.createCommentVNode("",!0),u.value.falseText.includes(i.value)?(c.openBlock(),c.createElementBlock("div",tR,[y[174]||(y[174]=c.createElementVNode("span",null,"未选中时显示的文字:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[67]||(y[67]=q=>g.value.falseText=q),style:{width:"60px"},type:"text"},null,512),[[c.vModelText,g.value.falseText]])])):c.createCommentVNode("",!0),u.value.switchSize.includes(i.value)?(c.openBlock(),c.createElementBlock("div",hR,[y[176]||(y[176]=c.createElementVNode("span",null,"尺寸:",-1)),c.withDirectives(c.createElementVNode("select",{"onUpdate:modelValue":y[68]||(y[68]=q=>g.value.switchSize=q),style:{width:"40px"}},[...y[175]||(y[175]=[c.createElementVNode("option",{value:"small"},"小",-1),c.createElementVNode("option",{value:"default"},"中",-1),c.createElementVNode("option",{value:"large"},"大",-1)])],512),[[c.vModelSelect,g.value.switchSize]]),y[177]||(y[177]=c.createElementVNode("p",{style:{"margin-left":"10px"}},"(2个汉字的文字,建议选择:大)",-1))])):c.createCommentVNode("",!0),u.value.isShowAndHide.includes(i.value)?(c.openBlock(),c.createElementBlock("div",gR,[y[178]||(y[178]=c.createElementVNode("span",null,"组件内容区域开启显示与隐藏功能:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[69]||(y[69]=q=>g.value.isShowAndHide=q)},null,512),[[c.vModelCheckbox,g.value.isShowAndHide]])])):c.createCommentVNode("",!0),u.value.canAdd.includes(i.value)?(c.openBlock(),c.createElementBlock("div",uR,[y[179]||(y[179]=c.createElementVNode("span",null,"是否可新增行数据:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[70]||(y[70]=q=>g.value.canAdd=q)},null,512),[[c.vModelCheckbox,g.value.canAdd]])])):c.createCommentVNode("",!0),u.value.canEdit.includes(i.value)?(c.openBlock(),c.createElementBlock("div",sR,[y[180]||(y[180]=c.createElementVNode("span",null,"是否可编辑行数据:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[71]||(y[71]=q=>g.value.canEdit=q)},null,512),[[c.vModelCheckbox,g.value.canEdit]])])):c.createCommentVNode("",!0),u.value.canDelete.includes(i.value)?(c.openBlock(),c.createElementBlock("div",oR,[y[181]||(y[181]=c.createElementVNode("span",null,"是否可删除行数据:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[72]||(y[72]=q=>g.value.canDelete=q)},null,512),[[c.vModelCheckbox,g.value.canDelete]])])):c.createCommentVNode("",!0),u.value.treeData.includes(i.value)?(c.openBlock(),c.createElementBlock("div",lR,[y[182]||(y[182]=c.createElementVNode("span",null,[c.createElementVNode("span",{style:{color:"red"}},"*"),c.createTextVNode("树选择器数据:")],-1)),c.createElementVNode("button",{onClick:y[73]||(y[73]=q=>j("getTreeDataMethod"))},"编写代码"),c.unref(x).selectWidget.config.getTreeDataMethod?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-eye opt-button",style:{"margin-left":"10px"},title:c.unref(x).selectWidget.config.getTreeDataMethod},"预览",8,cR)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),u.value.cascaderData.includes(i.value)?(c.openBlock(),c.createElementBlock("div",rR,[y[183]||(y[183]=c.createElementVNode("span",null,[c.createElementVNode("span",{style:{color:"red"}},"*"),c.createTextVNode("级联选择器数据:")],-1)),c.createElementVNode("button",{onClick:y[74]||(y[74]=q=>j("getCascaderDataMethod"))},"编写代码"),c.unref(x).selectWidget.config.getCascaderDataMethod?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-eye opt-button",style:{"margin-left":"10px"},title:c.unref(x).selectWidget.config.getCascaderDataMethod},"预览",8,dR)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),u.value.transfer.includes(i.value)?(c.openBlock(),c.createElementBlock("div",aR,[y[184]||(y[184]=c.createElementVNode("span",null,"将弹层放置于body内:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[75]||(y[75]=q=>g.value.transfer=q)},null,512),[[c.vModelCheckbox,g.value.transfer]])])):c.createCommentVNode("",!0),u.value.multiple.includes(i.value)?(c.openBlock(),c.createElementBlock("div",fR,[y[185]||(y[185]=c.createElementVNode("span",null,"支持多选文件:",-1)),c.withDirectives(c.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":y[76]||(y[76]=q=>g.value.multiple=q)},null,512),[[c.vModelCheckbox,g.value.multiple]])])):c.createCommentVNode("",!0),u.value.fileAccept.includes(i.value)?(c.openBlock(),c.createElementBlock("div",bR,[y[186]||(y[186]=c.createElementVNode("span",null,[c.createTextVNode("接受上传的"),c.createElementVNode("a",{href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/file",target:"_blank"},"文件类型"),c.createTextVNode(":")],-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[77]||(y[77]=q=>g.value.fileAccept=q),type:"text",style:{width:"120px"}},null,512),[[c.vModelText,g.value.fileAccept]])])):c.createCommentVNode("",!0),u.value.fileFormat.includes(i.value)?(c.openBlock(),c.createElementBlock("div",yR,[y[187]||(y[187]=c.createElementVNode("span",null,"支持的文件类型:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[78]||(y[78]=q=>g.value.fileFormat=q),type:"text",placeholder:".docx,.pdf",style:{width:"150px"}},null,512),[[c.vModelText,g.value.fileFormat]])])):c.createCommentVNode("",!0),u.value.fileMaxSize.includes(i.value)?(c.openBlock(),c.createElementBlock("div",zR,[y[188]||(y[188]=c.createElementVNode("span",null,"文件大小限制:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[79]||(y[79]=q=>g.value.fileMaxSize=q),min:"1",type:"number",style:{width:"80px"}},null,512),[[c.vModelText,g.value.fileMaxSize]]),y[189]||(y[189]=c.createTextVNode("(单位 kb) ",-1))])):c.createCommentVNode("",!0),u.value.richEditMode.includes(i.value)?(c.openBlock(),c.createElementBlock("div",mR,[y[190]||(y[190]=c.createElementVNode("span",null,"显示模式:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"default",value:"default","onUpdate:modelValue":y[80]||(y[80]=q=>g.value.richEditMode=q)},null,512),[[c.vModelRadio,g.value.richEditMode]]),y[191]||(y[191]=c.createElementVNode("label",{for:"default"},"普通",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"simple",value:"simple","onUpdate:modelValue":y[81]||(y[81]=q=>g.value.richEditMode=q)},null,512),[[c.vModelRadio,g.value.richEditMode]]),y[192]||(y[192]=c.createElementVNode("label",{for:"simple"},"简易",-1))])):c.createCommentVNode("",!0),u.value.richEditWidth.includes(i.value)?(c.openBlock(),c.createElementBlock("div",pR,[y[193]||(y[193]=c.createElementVNode("span",null,"编辑框宽度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[82]||(y[82]=q=>g.value.richEditWidth=q),min:"100",type:"number",style:{width:"80px"}},null,512),[[c.vModelText,g.value.richEditWidth]]),y[194]||(y[194]=c.createTextVNode("(px) ",-1))])):c.createCommentVNode("",!0),u.value.extendAtt.includes(i.value)?(c.openBlock(),c.createElementBlock("div",jR,[y[195]||(y[195]=c.createElementVNode("span",null,"扩展属性:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":y[83]||(y[83]=q=>g.value.extendAtt=q),type:"text"},null,512),[[c.vModelText,g.value.extendAtt]])])):c.createCommentVNode("",!0),i.value!="label"&&i.value!="group"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:54},[y[201]||(y[201]=c.createElementVNode("p",{style:{"font-weight":"600","margin-left":"5px"}}," 移动端相关属性: ",-1)),u.value.h5LabelPosition.includes(i.value)?(c.openBlock(),c.createElementBlock("div",wR,[y[196]||(y[196]=c.createElementVNode("span",null,"标签位置:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"sameRow",value:"sameRow","onUpdate:modelValue":y[84]||(y[84]=q=>g.value.h5LabelPosition=q)},null,512),[[c.vModelRadio,g.value.h5LabelPosition]]),y[197]||(y[197]=c.createElementVNode("label",{for:"sameRow"},"与输入框同行",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"exclusiveRow",value:"exclusiveRow","onUpdate:modelValue":y[85]||(y[85]=q=>g.value.h5LabelPosition=q)},null,512),[[c.vModelRadio,g.value.h5LabelPosition]]),y[198]||(y[198]=c.createElementVNode("label",{for:"exclusiveRow"},"独占一行",-1))])):c.createCommentVNode("",!0),u.value.h5ShowType.includes(i.value)?(c.openBlock(),c.createElementBlock("div",qR,[y[200]||(y[200]=c.createElementVNode("span",null,"显示控制:",-1)),c.withDirectives(c.createElementVNode("select",{"onUpdate:modelValue":y[86]||(y[86]=q=>g.value.h5ShowType=q),style:{width:"180px"}},[...y[199]||(y[199]=[c.createElementVNode("option",{value:"allShow"},"空值也显示",-1),c.createElementVNode("option",{value:"valueShow"},"空值不显示",-1),c.createElementVNode("option",{value:"notShow"},"不显示",-1)])],512),[[c.vModelSelect,g.value.h5ShowType]])])):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0),(c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[l.value?(c.openBlock(),c.createElementBlock("div",OR,[c.createElementVNode("div",kR,[c.createElementVNode("div",vR,c.toDisplayString(d.value)+"的代码 ",1),c.createElementVNode("div",SR,[y[202]||(y[202]=c.createElementVNode("p",{class:"code-desc"}," /** ",-1)),y[203]||(y[203]=c.createElementVNode("p",{class:"code-desc"},[c.createTextVNode(" *value:字段值"),c.createElementVNode("br"),c.createTextVNode(" *field:字段名 ")],-1)),y[204]||(y[204]=c.createElementVNode("p",{class:"code-desc"}," *formData:为表单数据对象 ",-1)),y[205]||(y[205]=c.createElementVNode("p",{class:"code-desc"}," *return:必需的 ",-1)),y[206]||(y[206]=c.createElementVNode("p",{class:"code-desc"}," */ ",-1)),y[207]||(y[207]=c.createElementVNode("p",{class:"code-desc"},"(value,field,formData)=>{",-1)),c.createVNode(k7,{ref_key:"codeEditorRef",ref:b,codeValue:a.value},null,8,["codeValue"]),y[208]||(y[208]=c.createElementVNode("p",{class:"code-desc"},"}",-1))]),c.createElementVNode("div",ER,[c.createElementVNode("button",{onClick:y[87]||(y[87]=c.withModifiers(q=>l.value=!1,["stop"]))},"取消"),c.createElementVNode("button",{onClick:c.withModifiers(p,["stop"]),class:"active"},"确定")])])])):c.createCommentVNode("",!0)]))],64))}},TR={key:0,class:"panel-option"},PR=["title"],_R={key:1,class:"panel-option"},AR=["title"],QR={key:2,class:"panel-option"},$R=["title"],MR={key:3,class:"panel-option"},DR=["title"],RR={key:4,class:"panel-option"},NR=["title"],VR={key:0,class:"msg-container",style:{"z-index":"800"}},BR={class:"msg-div code-div"},ZR={class:"msg-div-title"},IR={class:"msg-div-content",style:{padding:"5px 10px"}},LR={key:0,class:"code-desc"},WR={key:1,class:"code-desc"},XR={key:2,class:"code-desc"},UR={key:3,class:"code-desc"},FR={class:"msg-div-bottom"},YR={__name:"widgetSeniorConfig",setup(e){const x=J8(H8),i=c.ref(""),t=c.ref(""),h=c.ref(!0),g=c.ref(!1),u=c.ref(""),o=c.ref(""),l=c.ref(null);let d={showAndHide:`/**例如:
157748
157748
  //金额总计大于100
157749
157749
  return formData.jeezj>100;
157750
- */`};const a=()=>{let p="";u.value!="showAndHide"&&(p=x.selectWidget.felidName);let j=l.value.getEditorContent("",p,{},"method");if(j.includes("error:")){x.showMsgModal("error",j.replace("error:",""));return}x.selectWidget.config[u.value]=j,g.value=!1},b=p=>{o.value=x.selectWidget.config[p]||d[p]||"",u.value=p,g.value=!0},z=()=>{i.value=x.selectWidget.type,t.value=x.selectWidget.pType};return c.onMounted(()=>{z()}),c.watch(x.selectWidget.config,(p,j)=>{h.value?h.value=!1:x.saveHistoryStep()}),(p,j)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.unref(x).showConfig.showAndHide.includes(i.value)?(c.openBlock(),c.createElementBlock("div",SR,[j[6]||(j[6]=c.createElementVNode("span",null,"显示隐藏条件:",-1)),c.createElementVNode("button",{onClick:j[0]||(j[0]=k=>b("showAndHide"))},"编写代码"),c.unref(x).selectWidget.config.showAndHide?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-eye opt-button",style:{"margin-left":"10px"},title:c.unref(x).selectWidget.config.showAndHide},"预览",8,ER)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),c.unref(x).showConfig.onChange.includes(i.value)?(c.openBlock(),c.createElementBlock("div",CR,[j[7]||(j[7]=c.createElementVNode("span",null,"onChange:",-1)),c.createElementVNode("button",{onClick:j[1]||(j[1]=k=>b("onChange"))},"编写代码"),c.unref(x).selectWidget.config.onChange?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-eye opt-button",style:{"margin-left":"10px"},title:c.unref(x).selectWidget.config.onChange},"预览",8,TR)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),c.unref(x).showConfig.onFocus.includes(i.value)?(c.openBlock(),c.createElementBlock("div",PR,[j[8]||(j[8]=c.createElementVNode("span",null,"onFocus:",-1)),c.createElementVNode("button",{onClick:j[2]||(j[2]=k=>b("onFocus"))},"编写代码"),c.unref(x).selectWidget.config.onFocus?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-eye opt-button",style:{"margin-left":"10px"},title:c.unref(x).selectWidget.config.onFocus},"预览",8,_R)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),c.unref(x).showConfig.onBlur.includes(i.value)?(c.openBlock(),c.createElementBlock("div",AR,[j[9]||(j[9]=c.createElementVNode("span",null,"onBlur:",-1)),c.createElementVNode("button",{onClick:j[3]||(j[3]=k=>b("onBlur"))},"编写代码"),c.unref(x).selectWidget.config.onBlur?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-eye opt-button",style:{"margin-left":"10px"},title:c.unref(x).selectWidget.config.onBlur},"预览",8,QR)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),c.unref(x).showConfig.onClick.includes(i.value)?(c.openBlock(),c.createElementBlock("div",$R,[j[10]||(j[10]=c.createElementVNode("span",null,"onClick:",-1)),c.createElementVNode("button",{onClick:j[4]||(j[4]=k=>b("onClick"))},"编写代码"),c.unref(x).selectWidget.config.onClick?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-eye opt-button",style:{"margin-left":"10px"},title:c.unref(x).selectWidget.config.onClick},"预览",8,MR)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),(c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[g.value?(c.openBlock(),c.createElementBlock("div",DR,[c.createElementVNode("div",RR,[c.createElementVNode("div",NR,c.toDisplayString(u.value=="showAndHide"?"显示与隐藏":u.value)+"的代码 ",1),c.createElementVNode("div",VR,[j[12]||(j[12]=c.createElementVNode("p",{class:"code-desc"}," /** ",-1)),u.value!="showAndHide"?(c.openBlock(),c.createElementBlock("p",BR,[...j[11]||(j[11]=[c.createTextVNode(" *value:字段值",-1),c.createElementVNode("br",null,null,-1),c.createTextVNode(" *field:字段名 ",-1)])])):c.createCommentVNode("",!0),j[13]||(j[13]=c.createElementVNode("p",{class:"code-desc"}," *formData:为表单数据对象 ",-1)),u.value=="showAndHide"?(c.openBlock(),c.createElementBlock("p",ZR," *return:true/false ")):c.createCommentVNode("",!0),j[14]||(j[14]=c.createElementVNode("p",{class:"code-desc"}," */ ",-1)),u.value=="showAndHide"?(c.openBlock(),c.createElementBlock("p",IR,"(formData)=>{")):(c.openBlock(),c.createElementBlock("p",LR,"(value,field,formData)=>{")),c.createVNode(k7,{ref_key:"codeEditorRef",ref:l,codeValue:o.value},null,8,["codeValue"]),j[15]||(j[15]=c.createElementVNode("p",{class:"code-desc"},"}",-1))]),c.createElementVNode("div",WR,[c.createElementVNode("button",{onClick:j[5]||(j[5]=c.withModifiers(k=>g.value=!1,["stop"]))},"取消"),c.createElementVNode("button",{onClick:c.withModifiers(a,["stop"]),class:"active"},"确定")])])])):c.createCommentVNode("",!0)]))],64))}};function UR(e){const x=Object.assign({"./rowColWidget.vue":()=>Promise.resolve().then(()=>require("./rowColWidget-Dp47Zqem.js")),"./tableWidget.vue":()=>Promise.resolve().then(()=>require("./tableWidget-BTp6J2Ty.js"))});for(const i in x){let t=i.replace("./","").replace(".vue","");e.component(t,c.defineAsyncComponent(x[i]))}}function FR(e){const x=Object.assign({"./cascaderWidget.vue":()=>Promise.resolve().then(()=>require("./cascaderWidget-CZXbv3tO.js")),"./checkboxWidget.vue":()=>Promise.resolve().then(()=>require("./checkboxWidget-BaFz4odQ.js")),"./datetimeWidget.vue":()=>Promise.resolve().then(()=>require("./datetimeWidget-BRI1k9lz.js")),"./dyTableWidget.vue":()=>Promise.resolve().then(()=>require("./dyTableWidget-QybzWaQ8.js")),"./groupWidget.vue":()=>Promise.resolve().then(()=>require("./groupWidget-DO_hSQHt.js")),"./labelWidget.vue":()=>Promise.resolve().then(()=>require("./labelWidget-mp6MkWZ4.js")),"./numberWidget.vue":()=>Promise.resolve().then(()=>require("./numberWidget-ok9nP1sB.js")),"./radioWidget.vue":()=>Promise.resolve().then(()=>require("./radioWidget-ClJWGKCx.js")),"./richEditorWidget.vue":()=>Promise.resolve().then(()=>require("./richEditorWidget-Dz4JXc5-.js")),"./selectWidget.vue":()=>Promise.resolve().then(()=>require("./selectWidget-2a60eLQg.js")),"./switchWidget.vue":()=>Promise.resolve().then(()=>require("./switchWidget-PJIx0RQC.js")),"./textWidget.vue":()=>Promise.resolve().then(()=>require("./textWidget-BYYSe1Ad.js")),"./textareaWidget.vue":()=>Promise.resolve().then(()=>require("./textareaWidget-CwWBNrZR.js")),"./treeWidget.vue":()=>Promise.resolve().then(()=>require("./treeWidget-D4GFodhm.js")),"./uploadWidget.vue":()=>Promise.resolve().then(()=>require("./uploadWidget-CMPjxcFH.js"))});for(const i in x){let t=i.replace("./","").replace(".vue","");e.component(t,c.defineAsyncComponent(x[i]))}}const YR={class:"container-left"},GR={class:"panel-group-title"},HR={class:"panel-widget-list"},KR={class:"widget-title"},JR={class:"container-center"},nN={class:"container-center-top"},xN={class:"center-top-left"},iN=["disabled"],eN=["disabled"],tN={class:"center-top-right"},hN=["onClick"],gN={class:"container-right"},uN={class:"widget-option-panel"},sN={class:"panel-group-title"},oN={style:{float:"left"}},lN={class:"panel-option"},cN={class:"panel-option"},rN={class:"panel-option"},dN={class:"panel-option"},aN={class:"panel-group-title"},fN={style:{float:"left"}},bN={class:"panel-group-title"},yN={style:{float:"left"}},zN={class:"panel-group-title"},mN={style:{float:"left"}},pN={class:"panel-group-title"},jN={style:{float:"left"}},wN={class:"msg-container"},qN={class:"msg-div"},ON={class:"msg-div-content"},kN={class:"msg-div-bottom"},vN={key:0,class:"msg-container",style:{"z-index":"800"}},SN={class:"msg-div code-div"},EN={class:"msg-div-title"},CN={class:"msg-div-content",style:{padding:"5px 10px"}},TN={class:"msg-div-bottom"},PN=["disable"],_N=["disable"],AN={__name:"FormDesigner",props:{topSpace:{type:Number,default:0}},emits:["addCustomizeWidget","onPreview"],setup(e,{expose:x,emit:i}){const t=e,h=i,g=J8(H8);window.$formDesignerStore=g;const u=c.ref(""),o=c.ref(""),l=c.ref(null),d=c.ref(!1),a=c.ref(!0),b=c.ref("calc(100vh - 1px)"),z=c.ref("calc(100vh - 50px)"),p=c.ref("calc(100vh - 55px)"),j=()=>{h("onPreview")},k=()=>{let q=l.value.getEditorContent("","",{},"json");if(u.value=="导出JSON")C(q);else{a.value=!1;try{let T=JSON.parse(q);typeof T=="object"&&T!==null?g.formConfig=T:g.showMsgModal("error","导入内容不是JSON格式,请查检.")}catch(T){console.error("导入失败:",T),g.showMsgModal("error","导入内容不是JSON格式,请查检.")}setTimeout(()=>{a.value=!0},300)}},S=q=>{q=="导出JSON"?o.value=JSON.stringify(g.formConfig,null,2):o.value="",u.value=q,d.value=!0},C=async q=>{if(a.value=!1,navigator.clipboard)try{await navigator.clipboard.writeText(q)}catch(T){console.error("复制失败:",T)}else{const T=document.createElement("textarea");T.value=q,T.style.position="fixed",document.body.appendChild(T),T.select();try{document.execCommand("copy")}catch(_){console.error("复制失败:",_)}document.body.removeChild(T)}setTimeout(()=>{a.value=!0},300)},E=c.computed(()=>g.formConfig.formWidth?{width:g.formConfig.formWidth+"px",minHeight:p.value}:{minHeight:p.value}),y=c.computed(()=>q=>q=="undo"?g.historyData.index>0&&g.historyData.steps.length>0:g.historyData.index<g.historyData.steps.length-1);return c.onMounted(()=>{t.topSpace&&t.topSpace>0&&(b.value=`calc(100vh - ${t.topSpace}px)`,z.value=`calc(100vh - ${t.topSpace+50}px)`,p.value=`calc(100vh - ${t.topSpace+55}px)`),UR(window.$app),FR(window.$app),g.emit=h}),x({initData:g.initData,returnFormConfigData:g.returnFormConfigData,saveHistoryStep:g.saveHistoryStep}),(q,T)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.unref(g).showDesigner?(c.openBlock(),c.createElementBlock("div",{key:0,class:"main-designer-container",style:c.normalizeStyle("height:"+b.value+" ;")},[c.createElementVNode("div",YR,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(g).widgetPanel,(_,D)=>(c.openBlock(),c.createElementBlock("div",{class:"widget-panel",key:D},[_.children&&_.children.length>0?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createElementVNode("div",GR,c.toDisplayString(_.title),1),c.createElementVNode("div",HR,[c.createVNode(c.unref(oh),{modelValue:_.children,"onUpdate:modelValue":X=>_.children=X,animation:"150",group:{name:"formContainer",pull:"clone",put:!1},sort:!1},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(_.children,X=>(c.openBlock(),c.createElementBlock("div",{key:X.type,class:"panel-widget-item cursor-pointer"},[c.createElementVNode("span",{class:c.normalizeClass(X.iconCode)},null,2),c.createElementVNode("span",KR,c.toDisplayString(X.title),1)]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])])],64)):c.createCommentVNode("",!0)]))),128))]),c.createElementVNode("div",JR,[c.createElementVNode("div",nN,[c.createElementVNode("div",xN,[c.createElementVNode("button",{class:c.normalizeClass(["icomoon icon-undo",y.value("undo")?"opt-button":"button-disable"]),title:"撤消",disabled:!y.value("undo"),onClick:T[0]||(T[0]=(..._)=>c.unref(g).undoHistory&&c.unref(g).undoHistory(..._))},null,10,iN),c.createElementVNode("button",{class:c.normalizeClass(["icomoon icon-redo",y.value("redo")?"opt-button":"button-disable"]),title:"重做",disabled:!y.value("redo"),onClick:T[1]||(T[1]=(..._)=>c.unref(g).redoHistory&&c.unref(g).redoHistory(..._))},null,10,eN),c.renderSlot(q.$slots,"topLeftButRight")]),c.createElementVNode("div",tN,[c.renderSlot(q.$slots,"topRightButLeft"),c.createElementVNode("button",{class:"icomoon icon-trash-2 opt-button",onClick:T[2]||(T[2]=(..._)=>c.unref(g).deleteAllWidget&&c.unref(g).deleteAllWidget(..._))},"清空"),c.createElementVNode("button",{class:"icomoon icon-eye opt-button",onClick:T[3]||(T[3]=_=>j())},"预览"),c.createElementVNode("button",{class:"opt-button",onClick:T[4]||(T[4]=_=>S("导出JSON"))},"导出JSON"),c.createElementVNode("button",{class:"opt-button",onClick:T[5]||(T[5]=_=>S("导入JSON"))},"导入JSON"),c.renderSlot(q.$slots,"topRightButRight")])]),c.createElementVNode("div",{class:"container-center-middle",style:c.normalizeStyle("height:"+z.value+" ;")},[c.createVNode(c.unref(oh),{modelValue:c.unref(g).formConfig.formWidgetList,"onUpdate:modelValue":T[6]||(T[6]=_=>c.unref(g).formConfig.formWidgetList=_),animation:"150",group:"formContainer",class:"vue-draggable",handle:".handle",onAdd:T[7]||(T[7]=_=>{c.unref(g).addWidget(_,c.unref(g).formConfig.formWidgetList,null)}),onEnd:c.unref(g).saveHistoryStep,onClick:c.withModifiers(c.unref(g).clearSelectWidget,["stop"]),style:c.normalizeStyle(E.value)},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(g).formConfig.formWidgetList,(_,D)=>(c.openBlock(),c.createElementBlock("div",{key:_.type,onClick:c.withModifiers(X=>{c.unref(g).onClickFormWidget(X,_)},["stop"]),class:c.normalizeClass(["widget-div",c.unref(g).setAreaClass(_)])},[c.createVNode(od,{widget:_},null,8,["widget"]),c.createVNode(ld,{widget:_,widgetList:c.unref(g).formConfig.formWidgetList,widgetIndex:D,pWidget:_},null,8,["widget","widgetList","widgetIndex","pWidget"]),_.pType=="formWidget"?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(_.widgetType),{key:0,widget:_,style:c.normalizeStyle(_.style)},null,8,["widget","style"])):(c.openBlock(),c.createBlock(c.resolveDynamicComponent(_.widgetType),{key:1,widgetList:_.children,style:c.normalizeStyle(_.style)},null,8,["widgetList","style"]))],10,hN))),128))]),_:1},8,["modelValue","onEnd","onClick","style"])],4)]),c.createElementVNode("div",gN,[c.createElementVNode("div",uN,[c.createElementVNode("div",sN,[T[33]||(T[33]=c.createElementVNode("div",{style:{float:"left",width:"240px"}},"表单属性",-1)),c.createElementVNode("div",oN,[c.unref(g).rightArea.formAtt?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon cursor-pointer icon-chevron-down",title:"隐藏",onClick:T[8]||(T[8]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("formAtt"),["stop"]))})):(c.openBlock(),c.createElementBlock("span",{key:1,class:"icomoon cursor-pointer icon-chevron-right",title:"展开",onClick:T[9]||(T[9]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("formAtt"),["stop"]))}))])]),c.unref(g).rightArea.formAtt?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createElementVNode("div",lN,[T[34]||(T[34]=c.createElementVNode("span",{style:{color:"red"}},"*",-1)),T[35]||(T[35]=c.createElementVNode("span",null,"表单名:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":T[10]||(T[10]=_=>c.unref(g).formConfig.formName=_),type:"text",onBlur:T[11]||(T[11]=(..._)=>c.unref(g).saveHistoryStep&&c.unref(g).saveHistoryStep(..._))},null,544),[[c.vModelText,c.unref(g).formConfig.formName]])]),c.createElementVNode("div",cN,[T[36]||(T[36]=c.createElementVNode("span",null,"表单宽度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":T[12]||(T[12]=_=>c.unref(g).formConfig.formWidth=_),type:"number",style:{width:"80px"},onBlur:T[13]||(T[13]=(..._)=>c.unref(g).handleFormWidthChange&&c.unref(g).handleFormWidthChange(..._))},null,544),[[c.vModelText,c.unref(g).formConfig.formWidth]]),T[37]||(T[37]=c.createTextVNode("px(默认值:100%) ",-1))]),c.createElementVNode("div",rN,[T[38]||(T[38]=c.createElementVNode("span",null,"字段标签对齐:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":T[14]||(T[14]=_=>c.unref(g).formConfig.labelPosition=_),onInput:T[15]||(T[15]=(..._)=>c.unref(g).handleLabelPosition&&c.unref(g).handleLabelPosition(..._))},null,544),[[c.vModelRadio,c.unref(g).formConfig.labelPosition]]),T[39]||(T[39]=c.createElementVNode("label",{for:"left"},"居左",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"center",value:"center","onUpdate:modelValue":T[16]||(T[16]=_=>c.unref(g).formConfig.labelPosition=_),onInput:T[17]||(T[17]=(..._)=>c.unref(g).handleLabelPosition&&c.unref(g).handleLabelPosition(..._))},null,544),[[c.vModelRadio,c.unref(g).formConfig.labelPosition]]),T[40]||(T[40]=c.createElementVNode("label",{for:"center"},"居中",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":T[18]||(T[18]=_=>c.unref(g).formConfig.labelPosition=_),onInput:T[19]||(T[19]=(..._)=>c.unref(g).handleLabelPosition&&c.unref(g).handleLabelPosition(..._))},null,544),[[c.vModelRadio,c.unref(g).formConfig.labelPosition]]),T[41]||(T[41]=c.createElementVNode("label",{for:"right"},"居右",-1))]),c.createElementVNode("div",dN,[T[42]||(T[42]=c.createElementVNode("span",null,"标签宽度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":T[20]||(T[20]=_=>c.unref(g).formConfig.labelWidth=_),type:"number",min:"10",onBlur:T[21]||(T[21]=(..._)=>c.unref(g).handleLabelWidthChange&&c.unref(g).handleLabelWidthChange(..._))},null,544),[[c.vModelText,c.unref(g).formConfig.labelWidth]])])],64)):c.createCommentVNode("",!0),c.unref(g).selectWidget?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.unref(g).selectWidget.pType=="formWidget"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createElementVNode("div",aN,[T[43]||(T[43]=c.createElementVNode("div",{style:{float:"left",width:"240px"}},"组件属性",-1)),c.createElementVNode("div",fN,[c.unref(g).rightArea.widgetConfig?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon cursor-pointer icon-chevron-down",title:"隐藏",onClick:T[22]||(T[22]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("widgetConfig"),["stop"]))})):(c.openBlock(),c.createElementBlock("span",{key:1,class:"icomoon cursor-pointer icon-chevron-right",title:"展开",onClick:T[23]||(T[23]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("widgetConfig"),["stop"]))}))])]),c.unref(g).rightArea.widgetConfig?(c.openBlock(),c.createBlock(vR,{key:0})):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0),c.createElementVNode("div",bN,[T[44]||(T[44]=c.createElementVNode("div",{style:{float:"left",width:"240px"}},"组件样式",-1)),c.createElementVNode("div",yN,[c.unref(g).rightArea.widgetAtt?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon cursor-pointer icon-chevron-down",title:"隐藏",onClick:T[24]||(T[24]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("widgetAtt"),["stop"]))})):(c.openBlock(),c.createElementBlock("span",{key:1,class:"icomoon cursor-pointer icon-chevron-right",title:"展开",onClick:T[25]||(T[25]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("widgetAtt"),["stop"]))}))])]),c.unref(g).rightArea.widgetAtt?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createVNode(XE),c.unref(g).selectWidget.pType=="container"?(c.openBlock(),c.createBlock(qE,{key:0})):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0),c.createElementVNode("div",zN,[T[45]||(T[45]=c.createElementVNode("div",{style:{float:"left",width:"240px"}},"高级属性",-1)),c.createElementVNode("div",mN,[c.unref(g).rightArea.seniorConfig?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon cursor-pointer icon-chevron-down",title:"隐藏",onClick:T[26]||(T[26]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("seniorConfig"),["stop"]))})):(c.openBlock(),c.createElementBlock("span",{key:1,class:"icomoon cursor-pointer icon-chevron-right",title:"展开",onClick:T[27]||(T[27]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("seniorConfig"),["stop"]))}))])]),c.unref(g).rightArea.seniorConfig?(c.openBlock(),c.createBlock(XR,{key:2})):c.createCommentVNode("",!0),c.createElementVNode("div",pN,[T[46]||(T[46]=c.createElementVNode("div",{style:{float:"left",width:"240px"}},"自定义属性",-1)),c.createElementVNode("div",jN,[c.unref(g).rightArea.customizeConfig?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon cursor-pointer icon-chevron-down",title:"隐藏",onClick:T[28]||(T[28]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("customizeConfig"),["stop"]))})):(c.openBlock(),c.createElementBlock("span",{key:1,class:"icomoon cursor-pointer icon-chevron-right",title:"展开",onClick:T[29]||(T[29]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("customizeConfig"),["stop"]))}))])]),c.unref(g).rightArea.customizeConfig?c.renderSlot(q.$slots,"customizeConfig",{key:3,widget:c.unref(g).selectWidget}):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0)])])],4)):c.createCommentVNode("",!0),c.withDirectives(c.createElementVNode("div",wN,[c.createElementVNode("div",qN,[T[47]||(T[47]=c.createElementVNode("div",{class:"msg-div-title"}," 提示 ",-1)),c.createElementVNode("div",ON,c.toDisplayString(c.unref(g).msgModal.content),1),c.createElementVNode("div",kN,[c.createElementVNode("button",{onClick:T[30]||(T[30]=c.withModifiers(_=>c.unref(g).msgModal.show=!1,["stop"]))},"关闭"),c.withDirectives(c.createElementVNode("button",{onClick:T[31]||(T[31]=c.withModifiers(_=>c.unref(g).confirm(c.unref(g).msgModal.onOk),["stop"])),style:{"background-color":"#2d8cf0",color:"#fff"}},"确定",512),[[c.vShow,c.unref(g).msgModal.type=="confirm"]])])])],512),[[c.vShow,c.unref(g).msgModal.show]]),(c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[d.value?(c.openBlock(),c.createElementBlock("div",vN,[c.createElementVNode("div",SN,[c.createElementVNode("div",EN,c.toDisplayString(u.value),1),c.createElementVNode("div",CN,[c.createVNode(k7,{ref_key:"codeEditorRef",ref:l,codeValue:o.value},null,8,["codeValue"])]),c.createElementVNode("div",TN,[c.createElementVNode("button",{onClick:T[32]||(T[32]=c.withModifiers(_=>d.value=!1,["stop"]))},"取消"),u.value=="导出JSON"?(c.openBlock(),c.createElementBlock("button",{key:0,onClick:c.withModifiers(k,["stop"]),class:c.normalizeClass(a.value?"active":"disable"),disable:!a.value},"复制JSON",10,PN)):(c.openBlock(),c.createElementBlock("button",{key:1,onClick:c.withModifiers(k,["stop"]),class:c.normalizeClass(a.value?"active":"disable"),disable:!a.value},"导入",10,_N))])])])):c.createCommentVNode("",!0)]))],64))}},QN={install:e=>{e.component("form-Designer",AN)}};exports._sfc_main=od;exports._sfc_main$1=ld;exports.formDesign=QN;exports.lo=oh;
157750
+ */`};const a=()=>{let p="";u.value!="showAndHide"&&(p=x.selectWidget.felidName);let j=l.value.getEditorContent("",p,{},"method");if(j.includes("error:")){x.showMsgModal("error",j.replace("error:",""));return}x.selectWidget.config[u.value]=j,g.value=!1},b=p=>{o.value=x.selectWidget.config[p]||d[p]||"",u.value=p,g.value=!0},z=()=>{i.value=x.selectWidget.type,t.value=x.selectWidget.pType};return c.onMounted(()=>{z()}),c.watch(x.selectWidget.config,(p,j)=>{h.value?h.value=!1:x.saveHistoryStep()}),(p,j)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.unref(x).showConfig.showAndHide.includes(i.value)?(c.openBlock(),c.createElementBlock("div",TR,[j[6]||(j[6]=c.createElementVNode("span",null,"显示隐藏条件:",-1)),c.createElementVNode("button",{onClick:j[0]||(j[0]=k=>b("showAndHide"))},"编写代码"),c.unref(x).selectWidget.config.showAndHide?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-eye opt-button",style:{"margin-left":"10px"},title:c.unref(x).selectWidget.config.showAndHide},"预览",8,PR)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),c.unref(x).showConfig.onChange.includes(i.value)?(c.openBlock(),c.createElementBlock("div",_R,[j[7]||(j[7]=c.createElementVNode("span",null,"onChange:",-1)),c.createElementVNode("button",{onClick:j[1]||(j[1]=k=>b("onChange"))},"编写代码"),c.unref(x).selectWidget.config.onChange?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-eye opt-button",style:{"margin-left":"10px"},title:c.unref(x).selectWidget.config.onChange},"预览",8,AR)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),c.unref(x).showConfig.onFocus.includes(i.value)?(c.openBlock(),c.createElementBlock("div",QR,[j[8]||(j[8]=c.createElementVNode("span",null,"onFocus:",-1)),c.createElementVNode("button",{onClick:j[2]||(j[2]=k=>b("onFocus"))},"编写代码"),c.unref(x).selectWidget.config.onFocus?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-eye opt-button",style:{"margin-left":"10px"},title:c.unref(x).selectWidget.config.onFocus},"预览",8,$R)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),c.unref(x).showConfig.onBlur.includes(i.value)?(c.openBlock(),c.createElementBlock("div",MR,[j[9]||(j[9]=c.createElementVNode("span",null,"onBlur:",-1)),c.createElementVNode("button",{onClick:j[3]||(j[3]=k=>b("onBlur"))},"编写代码"),c.unref(x).selectWidget.config.onBlur?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-eye opt-button",style:{"margin-left":"10px"},title:c.unref(x).selectWidget.config.onBlur},"预览",8,DR)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),c.unref(x).showConfig.onClick.includes(i.value)?(c.openBlock(),c.createElementBlock("div",RR,[j[10]||(j[10]=c.createElementVNode("span",null,"onClick:",-1)),c.createElementVNode("button",{onClick:j[4]||(j[4]=k=>b("onClick"))},"编写代码"),c.unref(x).selectWidget.config.onClick?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon icon-eye opt-button",style:{"margin-left":"10px"},title:c.unref(x).selectWidget.config.onClick},"预览",8,NR)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),(c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[g.value?(c.openBlock(),c.createElementBlock("div",VR,[c.createElementVNode("div",BR,[c.createElementVNode("div",ZR,c.toDisplayString(u.value=="showAndHide"?"显示与隐藏":u.value)+"的代码 ",1),c.createElementVNode("div",IR,[j[12]||(j[12]=c.createElementVNode("p",{class:"code-desc"}," /** ",-1)),u.value!="showAndHide"?(c.openBlock(),c.createElementBlock("p",LR,[...j[11]||(j[11]=[c.createTextVNode(" *value:字段值",-1),c.createElementVNode("br",null,null,-1),c.createTextVNode(" *field:字段名 ",-1)])])):c.createCommentVNode("",!0),j[13]||(j[13]=c.createElementVNode("p",{class:"code-desc"}," *formData:为表单数据对象 ",-1)),u.value=="showAndHide"?(c.openBlock(),c.createElementBlock("p",WR," *return:true/false ")):c.createCommentVNode("",!0),j[14]||(j[14]=c.createElementVNode("p",{class:"code-desc"}," */ ",-1)),u.value=="showAndHide"?(c.openBlock(),c.createElementBlock("p",XR,"(formData)=>{")):(c.openBlock(),c.createElementBlock("p",UR,"(value,field,formData)=>{")),c.createVNode(k7,{ref_key:"codeEditorRef",ref:l,codeValue:o.value},null,8,["codeValue"]),j[15]||(j[15]=c.createElementVNode("p",{class:"code-desc"},"}",-1))]),c.createElementVNode("div",FR,[c.createElementVNode("button",{onClick:j[5]||(j[5]=c.withModifiers(k=>g.value=!1,["stop"]))},"取消"),c.createElementVNode("button",{onClick:c.withModifiers(a,["stop"]),class:"active"},"确定")])])])):c.createCommentVNode("",!0)]))],64))}};function GR(e){const x=Object.assign({"./rowColWidget.vue":()=>Promise.resolve().then(()=>require("./rowColWidget-C3LgSES5.js")),"./tableWidget.vue":()=>Promise.resolve().then(()=>require("./tableWidget-Dw2pJu1r.js"))});for(const i in x){let t=i.replace("./","").replace(".vue","");e.component(t,c.defineAsyncComponent(x[i]))}}function HR(e){const x=Object.assign({"./cascaderWidget.vue":()=>Promise.resolve().then(()=>require("./cascaderWidget-CZXbv3tO.js")),"./checkboxWidget.vue":()=>Promise.resolve().then(()=>require("./checkboxWidget-BaFz4odQ.js")),"./datetimeWidget.vue":()=>Promise.resolve().then(()=>require("./datetimeWidget-BRI1k9lz.js")),"./dyTableWidget.vue":()=>Promise.resolve().then(()=>require("./dyTableWidget-hp6xq-Sa.js")),"./groupWidget.vue":()=>Promise.resolve().then(()=>require("./groupWidget-DD2TmxX7.js")),"./labelWidget.vue":()=>Promise.resolve().then(()=>require("./labelWidget-mp6MkWZ4.js")),"./numberWidget.vue":()=>Promise.resolve().then(()=>require("./numberWidget-ok9nP1sB.js")),"./radioWidget.vue":()=>Promise.resolve().then(()=>require("./radioWidget-ClJWGKCx.js")),"./richEditorWidget.vue":()=>Promise.resolve().then(()=>require("./richEditorWidget-Dz4JXc5-.js")),"./selectWidget.vue":()=>Promise.resolve().then(()=>require("./selectWidget-2a60eLQg.js")),"./switchWidget.vue":()=>Promise.resolve().then(()=>require("./switchWidget-PJIx0RQC.js")),"./textWidget.vue":()=>Promise.resolve().then(()=>require("./textWidget-BYYSe1Ad.js")),"./textareaWidget.vue":()=>Promise.resolve().then(()=>require("./textareaWidget-CwWBNrZR.js")),"./treeWidget.vue":()=>Promise.resolve().then(()=>require("./treeWidget-D4GFodhm.js")),"./uploadWidget.vue":()=>Promise.resolve().then(()=>require("./uploadWidget-CMPjxcFH.js"))});for(const i in x){let t=i.replace("./","").replace(".vue","");e.component(t,c.defineAsyncComponent(x[i]))}}const KR={class:"container-left"},JR={class:"panel-group-title"},nN={class:"panel-widget-list"},xN={class:"widget-title"},iN={class:"container-center"},eN={class:"container-center-top"},tN={class:"center-top-left"},hN=["disabled"],gN=["disabled"],uN={class:"center-top-right"},sN=["onClick"],oN={class:"container-right"},lN={class:"widget-option-panel"},cN={class:"panel-group-title"},rN={style:{float:"left"}},dN={class:"panel-option"},aN={class:"panel-option"},fN={class:"panel-option"},bN={class:"panel-option"},yN={class:"panel-group-title"},zN={style:{float:"left"}},mN={class:"panel-group-title"},pN={style:{float:"left"}},jN={class:"panel-group-title"},wN={style:{float:"left"}},qN={class:"panel-group-title"},ON={style:{float:"left"}},kN={class:"msg-container"},vN={class:"msg-div"},SN={class:"msg-div-content"},EN={class:"msg-div-bottom"},CN={key:0,class:"msg-container",style:{"z-index":"800"}},TN={class:"msg-div code-div"},PN={class:"msg-div-title"},_N={class:"msg-div-content",style:{padding:"5px 10px"}},AN={class:"msg-div-bottom"},QN=["disable"],$N=["disable"],MN={__name:"FormDesigner",props:{topSpace:{type:Number,default:0}},emits:["addCustomizeWidget","onPreview"],setup(e,{expose:x,emit:i}){const t=e,h=i,g=J8(H8);window.$formDesignerStore=g;const u=c.ref(""),o=c.ref(""),l=c.ref(null),d=c.ref(!1),a=c.ref(!0),b=c.ref("calc(100vh - 1px)"),z=c.ref("calc(100vh - 50px)"),p=c.ref("calc(100vh - 55px)"),j=()=>{h("onPreview")},k=()=>{let q=l.value.getEditorContent("","",{},"json");if(u.value=="导出JSON")C(q);else{a.value=!1;try{let T=JSON.parse(q);typeof T=="object"&&T!==null?g.formConfig=T:g.showMsgModal("error","导入内容不是JSON格式,请查检.")}catch(T){console.error("导入失败:",T),g.showMsgModal("error","导入内容不是JSON格式,请查检.")}setTimeout(()=>{a.value=!0},300)}},S=q=>{q=="导出JSON"?o.value=JSON.stringify(g.formConfig,null,2):o.value="",u.value=q,d.value=!0},C=async q=>{if(a.value=!1,navigator.clipboard)try{await navigator.clipboard.writeText(q)}catch(T){console.error("复制失败:",T)}else{const T=document.createElement("textarea");T.value=q,T.style.position="fixed",document.body.appendChild(T),T.select();try{document.execCommand("copy")}catch(_){console.error("复制失败:",_)}document.body.removeChild(T)}setTimeout(()=>{a.value=!0},300)},E=c.computed(()=>g.formConfig.formWidth?{width:g.formConfig.formWidth+"px",minHeight:p.value}:{minHeight:p.value}),y=c.computed(()=>q=>q=="undo"?g.historyData.index>0&&g.historyData.steps.length>0:g.historyData.index<g.historyData.steps.length-1);return c.onMounted(()=>{t.topSpace&&t.topSpace>0&&(b.value=`calc(100vh - ${t.topSpace}px)`,z.value=`calc(100vh - ${t.topSpace+50}px)`,p.value=`calc(100vh - ${t.topSpace+55}px)`),GR(window.$app),HR(window.$app),g.emit=h}),x({initData:g.initData,returnFormConfigData:g.returnFormConfigData,saveHistoryStep:g.saveHistoryStep}),(q,T)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.unref(g).showDesigner?(c.openBlock(),c.createElementBlock("div",{key:0,class:"main-designer-container",style:c.normalizeStyle("height:"+b.value+" ;")},[c.createElementVNode("div",KR,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(g).widgetPanel,(_,D)=>(c.openBlock(),c.createElementBlock("div",{class:"widget-panel",key:D},[_.children&&_.children.length>0?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createElementVNode("div",JR,c.toDisplayString(_.title),1),c.createElementVNode("div",nN,[c.createVNode(c.unref(oh),{modelValue:_.children,"onUpdate:modelValue":X=>_.children=X,animation:"150",group:{name:"formContainer",pull:"clone",put:!1},sort:!1},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(_.children,X=>(c.openBlock(),c.createElementBlock("div",{key:X.type,class:"panel-widget-item cursor-pointer"},[c.createElementVNode("span",{class:c.normalizeClass(X.iconCode)},null,2),c.createElementVNode("span",xN,c.toDisplayString(X.title),1)]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])])],64)):c.createCommentVNode("",!0)]))),128))]),c.createElementVNode("div",iN,[c.createElementVNode("div",eN,[c.createElementVNode("div",tN,[c.createElementVNode("button",{class:c.normalizeClass(["icomoon icon-undo",y.value("undo")?"opt-button":"button-disable"]),title:"撤消",disabled:!y.value("undo"),onClick:T[0]||(T[0]=(..._)=>c.unref(g).undoHistory&&c.unref(g).undoHistory(..._))},null,10,hN),c.createElementVNode("button",{class:c.normalizeClass(["icomoon icon-redo",y.value("redo")?"opt-button":"button-disable"]),title:"重做",disabled:!y.value("redo"),onClick:T[1]||(T[1]=(..._)=>c.unref(g).redoHistory&&c.unref(g).redoHistory(..._))},null,10,gN),c.renderSlot(q.$slots,"topLeftButRight")]),c.createElementVNode("div",uN,[c.renderSlot(q.$slots,"topRightButLeft"),c.createElementVNode("button",{class:"icomoon icon-trash-2 opt-button",onClick:T[2]||(T[2]=(..._)=>c.unref(g).deleteAllWidget&&c.unref(g).deleteAllWidget(..._))},"清空"),c.createElementVNode("button",{class:"icomoon icon-eye opt-button",onClick:T[3]||(T[3]=_=>j())},"预览"),c.createElementVNode("button",{class:"opt-button",onClick:T[4]||(T[4]=_=>S("导出JSON"))},"导出JSON"),c.createElementVNode("button",{class:"opt-button",onClick:T[5]||(T[5]=_=>S("导入JSON"))},"导入JSON"),c.renderSlot(q.$slots,"topRightButRight")])]),c.createElementVNode("div",{class:"container-center-middle",style:c.normalizeStyle("height:"+z.value+" ;")},[c.createVNode(c.unref(oh),{modelValue:c.unref(g).formConfig.formWidgetList,"onUpdate:modelValue":T[6]||(T[6]=_=>c.unref(g).formConfig.formWidgetList=_),animation:"150",group:"formContainer",class:"vue-draggable",handle:".handle",onAdd:T[7]||(T[7]=_=>{c.unref(g).addWidget(_,c.unref(g).formConfig.formWidgetList,null)}),onEnd:c.unref(g).saveHistoryStep,onClick:c.withModifiers(c.unref(g).clearSelectWidget,["stop"]),style:c.normalizeStyle(E.value)},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(g).formConfig.formWidgetList,(_,D)=>(c.openBlock(),c.createElementBlock("div",{key:_.type,onClick:c.withModifiers(X=>{c.unref(g).onClickFormWidget(X,_)},["stop"]),class:c.normalizeClass(["widget-div",c.unref(g).setAreaClass(_)])},[c.createVNode(od,{widget:_},null,8,["widget"]),c.createVNode(ld,{widget:_,widgetList:c.unref(g).formConfig.formWidgetList,widgetIndex:D,pWidget:_},null,8,["widget","widgetList","widgetIndex","pWidget"]),_.pType=="formWidget"?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(_.widgetType),{key:0,widget:_,style:c.normalizeStyle(_.style)},null,8,["widget","style"])):(c.openBlock(),c.createBlock(c.resolveDynamicComponent(_.widgetType),{key:1,widgetList:_.children,style:c.normalizeStyle(_.style)},null,8,["widgetList","style"]))],10,sN))),128))]),_:1},8,["modelValue","onEnd","onClick","style"])],4)]),c.createElementVNode("div",oN,[c.createElementVNode("div",lN,[c.createElementVNode("div",cN,[T[33]||(T[33]=c.createElementVNode("div",{style:{float:"left",width:"240px"}},"表单属性",-1)),c.createElementVNode("div",rN,[c.unref(g).rightArea.formAtt?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon cursor-pointer icon-chevron-down",title:"隐藏",onClick:T[8]||(T[8]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("formAtt"),["stop"]))})):(c.openBlock(),c.createElementBlock("span",{key:1,class:"icomoon cursor-pointer icon-chevron-right",title:"展开",onClick:T[9]||(T[9]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("formAtt"),["stop"]))}))])]),c.unref(g).rightArea.formAtt?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createElementVNode("div",dN,[T[34]||(T[34]=c.createElementVNode("span",{style:{color:"red"}},"*",-1)),T[35]||(T[35]=c.createElementVNode("span",null,"表单名:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":T[10]||(T[10]=_=>c.unref(g).formConfig.formName=_),type:"text",onBlur:T[11]||(T[11]=(..._)=>c.unref(g).saveHistoryStep&&c.unref(g).saveHistoryStep(..._))},null,544),[[c.vModelText,c.unref(g).formConfig.formName]])]),c.createElementVNode("div",aN,[T[36]||(T[36]=c.createElementVNode("span",null,"表单宽度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":T[12]||(T[12]=_=>c.unref(g).formConfig.formWidth=_),type:"number",style:{width:"80px"},onBlur:T[13]||(T[13]=(..._)=>c.unref(g).handleFormWidthChange&&c.unref(g).handleFormWidthChange(..._))},null,544),[[c.vModelText,c.unref(g).formConfig.formWidth]]),T[37]||(T[37]=c.createTextVNode("px(默认值:100%) ",-1))]),c.createElementVNode("div",fN,[T[38]||(T[38]=c.createElementVNode("span",null,"字段标签对齐:",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":T[14]||(T[14]=_=>c.unref(g).formConfig.labelPosition=_),onInput:T[15]||(T[15]=(..._)=>c.unref(g).handleLabelPosition&&c.unref(g).handleLabelPosition(..._))},null,544),[[c.vModelRadio,c.unref(g).formConfig.labelPosition]]),T[39]||(T[39]=c.createElementVNode("label",{for:"left"},"居左",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"center",value:"center","onUpdate:modelValue":T[16]||(T[16]=_=>c.unref(g).formConfig.labelPosition=_),onInput:T[17]||(T[17]=(..._)=>c.unref(g).handleLabelPosition&&c.unref(g).handleLabelPosition(..._))},null,544),[[c.vModelRadio,c.unref(g).formConfig.labelPosition]]),T[40]||(T[40]=c.createElementVNode("label",{for:"center"},"居中",-1)),c.withDirectives(c.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":T[18]||(T[18]=_=>c.unref(g).formConfig.labelPosition=_),onInput:T[19]||(T[19]=(..._)=>c.unref(g).handleLabelPosition&&c.unref(g).handleLabelPosition(..._))},null,544),[[c.vModelRadio,c.unref(g).formConfig.labelPosition]]),T[41]||(T[41]=c.createElementVNode("label",{for:"right"},"居右",-1))]),c.createElementVNode("div",bN,[T[42]||(T[42]=c.createElementVNode("span",null,"标签宽度:",-1)),c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":T[20]||(T[20]=_=>c.unref(g).formConfig.labelWidth=_),type:"number",min:"10",onBlur:T[21]||(T[21]=(..._)=>c.unref(g).handleLabelWidthChange&&c.unref(g).handleLabelWidthChange(..._))},null,544),[[c.vModelText,c.unref(g).formConfig.labelWidth]])])],64)):c.createCommentVNode("",!0),c.unref(g).selectWidget?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.unref(g).selectWidget.pType=="formWidget"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createElementVNode("div",yN,[T[43]||(T[43]=c.createElementVNode("div",{style:{float:"left",width:"240px"}},"组件属性",-1)),c.createElementVNode("div",zN,[c.unref(g).rightArea.widgetConfig?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon cursor-pointer icon-chevron-down",title:"隐藏",onClick:T[22]||(T[22]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("widgetConfig"),["stop"]))})):(c.openBlock(),c.createElementBlock("span",{key:1,class:"icomoon cursor-pointer icon-chevron-right",title:"展开",onClick:T[23]||(T[23]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("widgetConfig"),["stop"]))}))])]),c.unref(g).rightArea.widgetConfig?(c.openBlock(),c.createBlock(CR,{key:0})):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0),c.createElementVNode("div",mN,[T[44]||(T[44]=c.createElementVNode("div",{style:{float:"left",width:"240px"}},"组件样式",-1)),c.createElementVNode("div",pN,[c.unref(g).rightArea.widgetAtt?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon cursor-pointer icon-chevron-down",title:"隐藏",onClick:T[24]||(T[24]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("widgetAtt"),["stop"]))})):(c.openBlock(),c.createElementBlock("span",{key:1,class:"icomoon cursor-pointer icon-chevron-right",title:"展开",onClick:T[25]||(T[25]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("widgetAtt"),["stop"]))}))])]),c.unref(g).rightArea.widgetAtt?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createVNode(XE),c.unref(g).selectWidget.pType=="container"?(c.openBlock(),c.createBlock(qE,{key:0})):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0),c.createElementVNode("div",jN,[T[45]||(T[45]=c.createElementVNode("div",{style:{float:"left",width:"240px"}},"高级属性",-1)),c.createElementVNode("div",wN,[c.unref(g).rightArea.seniorConfig?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon cursor-pointer icon-chevron-down",title:"隐藏",onClick:T[26]||(T[26]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("seniorConfig"),["stop"]))})):(c.openBlock(),c.createElementBlock("span",{key:1,class:"icomoon cursor-pointer icon-chevron-right",title:"展开",onClick:T[27]||(T[27]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("seniorConfig"),["stop"]))}))])]),c.unref(g).rightArea.seniorConfig?(c.openBlock(),c.createBlock(YR,{key:2})):c.createCommentVNode("",!0),c.createElementVNode("div",qN,[T[46]||(T[46]=c.createElementVNode("div",{style:{float:"left",width:"240px"}},"自定义属性",-1)),c.createElementVNode("div",ON,[c.unref(g).rightArea.customizeConfig?(c.openBlock(),c.createElementBlock("span",{key:0,class:"icomoon cursor-pointer icon-chevron-down",title:"隐藏",onClick:T[28]||(T[28]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("customizeConfig"),["stop"]))})):(c.openBlock(),c.createElementBlock("span",{key:1,class:"icomoon cursor-pointer icon-chevron-right",title:"展开",onClick:T[29]||(T[29]=c.withModifiers(_=>c.unref(g).hideOrShowWidgetConfig("customizeConfig"),["stop"]))}))])]),c.unref(g).rightArea.customizeConfig?c.renderSlot(q.$slots,"customizeConfig",{key:3,widget:c.unref(g).selectWidget}):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0)])])],4)):c.createCommentVNode("",!0),c.withDirectives(c.createElementVNode("div",kN,[c.createElementVNode("div",vN,[T[47]||(T[47]=c.createElementVNode("div",{class:"msg-div-title"}," 提示 ",-1)),c.createElementVNode("div",SN,c.toDisplayString(c.unref(g).msgModal.content),1),c.createElementVNode("div",EN,[c.createElementVNode("button",{onClick:T[30]||(T[30]=c.withModifiers(_=>c.unref(g).msgModal.show=!1,["stop"]))},"关闭"),c.withDirectives(c.createElementVNode("button",{onClick:T[31]||(T[31]=c.withModifiers(_=>c.unref(g).confirm(c.unref(g).msgModal.onOk),["stop"])),style:{"background-color":"#2d8cf0",color:"#fff"}},"确定",512),[[c.vShow,c.unref(g).msgModal.type=="confirm"]])])])],512),[[c.vShow,c.unref(g).msgModal.show]]),(c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[d.value?(c.openBlock(),c.createElementBlock("div",CN,[c.createElementVNode("div",TN,[c.createElementVNode("div",PN,c.toDisplayString(u.value),1),c.createElementVNode("div",_N,[c.createVNode(k7,{ref_key:"codeEditorRef",ref:l,codeValue:o.value},null,8,["codeValue"])]),c.createElementVNode("div",AN,[c.createElementVNode("button",{onClick:T[32]||(T[32]=c.withModifiers(_=>d.value=!1,["stop"]))},"取消"),u.value=="导出JSON"?(c.openBlock(),c.createElementBlock("button",{key:0,onClick:c.withModifiers(k,["stop"]),class:c.normalizeClass(a.value?"active":"disable"),disable:!a.value},"复制JSON",10,QN)):(c.openBlock(),c.createElementBlock("button",{key:1,onClick:c.withModifiers(k,["stop"]),class:c.normalizeClass(a.value?"active":"disable"),disable:!a.value},"导入",10,$N))])])])):c.createCommentVNode("",!0)]))],64))}},DN={install:e=>{e.component("form-Designer",MN)}};exports._sfc_main=od;exports._sfc_main$1=ld;exports.formDesign=DN;exports.lo=oh;