admin
2025-03-29 9cd0e111d7315074f5574558dab3cae087ff1f68
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-31eae13f"],{4923:function(e,t,n){"use strict";n.r(t);n("d9e2"),n("0643"),n("a573");var a=n("b76a"),r=n.n(a),s=n("a85b");const o={itemBtns(e,t,n,a){const{copyItem:r,deleteItem:s}=this.$listeners;return[e("span",{class:"drawing-item-copy",attrs:{title:"复制"},on:{click:e=>{r(t,a),e.stopPropagation()}}},[e("i",{class:"el-icon-copy-document"})]),e("span",{class:"drawing-item-delete",attrs:{title:"删除"},on:{click:e=>{s(n,a),e.stopPropagation()}}},[e("i",{class:"el-icon-delete"})])]}},i={colFormItem(e,t,n,a){const{activeItem:r}=this.$listeners;let i=this.activeId===t.formId?"drawing-item active-from-item":"drawing-item";return this.formConf.unFocusedComponentBorder&&(i+=" unfocus-bordered"),e("el-col",{attrs:{span:t.span},class:i,nativeOn:{click:e=>{r(t),e.stopPropagation()}}},[e("el-form-item",{attrs:{"label-width":t.labelWidth?t.labelWidth+"px":null,label:t.label,required:t.required}},[e(s["a"],{key:t.renderKey,attrs:{conf:t},on:{input:e=>{this.$set(t,"defaultValue",e)}}})]),o.itemBtns.apply(this,arguments)])},rowFormItem(e,t,n,a){const{activeItem:s}=this.$listeners,i=this.activeId===t.formId?"drawing-row-item active-from-item":"drawing-row-item";let c=l.apply(this,arguments);return"flex"===t.type&&(c=e("el-row",{attrs:{type:t.type,justify:t.justify,align:t.align}},[c])),e("el-col",{attrs:{span:t.span}},[e("el-row",{attrs:{gutter:t.gutter},class:i,nativeOn:{click:e=>{s(t),e.stopPropagation()}}},[e("span",{class:"component-name"},[t.componentName]),e(r.a,{attrs:{list:t.children,animation:340,group:"componentsGroup"},class:"drag-wrapper"},[c]),o.itemBtns.apply(this,arguments)])])}};function l(e,t,n,a){return Array.isArray(t.children)?t.children.map((n,a)=>{const r=i[n.layout];return r?r.call(this,e,n,a,t.children):c()}):null}function c(){throw new Error(`没有与${this.element.layout}匹配的layout`)}var p,d,u={components:{render:s["a"],draggable:r.a},props:["element","index","drawingList","activeId","formConf"],render(e){const t=i[this.element.layout];return t?t.call(this,e,this.element,this.index,this.drawingList):c()}},m=u,h=n("2877"),f=Object(h["a"])(m,p,d,!1,null,null,null);t["default"]=f.exports},a85b:function(e,t,n){"use strict";n("14d9"),n("0643"),n("4e3e");var a=n("ed08");const r=Object(a["e"])("accept,accept-charset,accesskey,action,align,alt,async,autocomplete,autofocus,autoplay,autosave,bgcolor,border,buffered,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,http-equiv,name,contenteditable,contextmenu,controls,coords,data,datetime,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,method,for,form,formaction,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,ismap,itemprop,keytype,kind,label,lang,language,list,loop,low,manifest,max,maxlength,media,method,GET,POST,min,multiple,email,file,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,seamless,selected,shape,size,type,text,password,sizes,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,type,usemap,value,width,wrap");function s(e,t,n){t.props.value=n,t.on.input=t=>{e.$emit("input",t)}}const o={"el-button":{default(e,t,n){return t[n]}},"el-input":{prepend(e,t,n){return e("template",{slot:"prepend"},[t[n]])},append(e,t,n){return e("template",{slot:"append"},[t[n]])}},"el-select":{options(e,t,n){const a=[];return t.options.forEach(t=>{a.push(e("el-option",{attrs:{label:t.label,value:t.value,disabled:t.disabled}}))}),a}},"el-radio-group":{options(e,t,n){const a=[];return t.options.forEach(n=>{"button"===t.optionType?a.push(e("el-radio-button",{attrs:{label:n.value}},[n.label])):a.push(e("el-radio",{attrs:{label:n.value,border:t.border}},[n.label]))}),a}},"el-checkbox-group":{options(e,t,n){const a=[];return t.options.forEach(n=>{"button"===t.optionType?a.push(e("el-checkbox-button",{attrs:{label:n.value}},[n.label])):a.push(e("el-checkbox",{attrs:{label:n.value,border:t.border}},[n.label]))}),a}},"el-upload":{"list-type":(e,t,n)=>{const a=[];return"picture-card"===t["list-type"]?a.push(e("i",{class:"el-icon-plus"})):a.push(e("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-upload"}},[t.buttonText])),t.showTip&&a.push(e("div",{slot:"tip",class:"el-upload__tip"},["只能上传不超过 ",t.fileSize,t.sizeUnit," 的",t.accept,"文件"])),a}}};t["a"]={render(e){const t={attrs:{},props:{},on:{},style:{}},n=JSON.parse(JSON.stringify(this.conf)),a=[],i=o[n.tag];return i&&Object.keys(i).forEach(t=>{const r=i[t];n[t]&&a.push(r(e,n,t))}),Object.keys(n).forEach(e=>{const a=n[e];"vModel"===e?s(this,t,n.defaultValue):t[e]?t[e]=a:r(e)?t.attrs[e]=a:t.props[e]=a}),e(this.conf.tag,t,a)},props:["conf"]}},ed08:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return o})),n.d(t,"f",(function(){return i})),n.d(t,"d",(function(){return l}));n("d9e2"),n("14d9"),n("1e70"),n("79a4"),n("c1a1"),n("8b00"),n("a4e7"),n("1e5a"),n("72c3"),n("0643"),n("4e3e"),n("a573"),n("c38a");function a(e,t,n){let a,r,s,o,i;const l=function(){const c=+new Date-o;c<t&&c>0?a=setTimeout(l,t-c):(a=null,n||(i=e.apply(s,r),a||(s=r=null)))};return function(...r){s=this,o=+new Date;const c=n&&!a;return a||(a=setTimeout(l,t)),c&&(i=e.apply(s,r),s=r=null),i}}function r(e,t){const n=Object.create(null),a=e.split(",");for(let r=0;r<a.length;r++)n[a[r]]=!0;return t?e=>n[e.toLowerCase()]:e=>n[e]}const s="export default ",o={html:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"separate",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},js:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0}};function i(e){return e.replace(/( |^)[a-z]/g,e=>e.toUpperCase())}function l(e){return/^[+-]?(0|([1-9]\d*))(\.\d+)?$/g.test(e)}}}]);