(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7ec36900"],{6911:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var o=a("c621"),n=a("3af9"),l=a("7a23");function r(e){n["R"].isModal(e).result||(e.element.properties&&delete e.element.properties.layout,e.children.forEach(e=>r(e)))}const c={props:{currentInstance:{type:Object,required:!0}},data(){const{layout:e}=Object(n["gd"])(),t=Object(l["computed"])(()=>o["Optional"].ofNullable(this.currentInstance).map(e=>n["R"].fetchProperties(e)).map(e=>e.layout).map(e=>o["FormLayout"][e.toUpperCase()]).orElse(e.value));return Object(l["watch"])(()=>{var e,t,a;return null===(a=null===(t=null===(e=this.currentInstance)||void 0===e?void 0:e.element)||void 0===t?void 0:t.properties)||void 0===a?void 0:a.layout},()=>{var e;null===(e=this.currentInstance)||void 0===e||e.children.forEach(e=>r(e))}),Object(n["kd"])({layout:t}),{layout:t}}}},dbea:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return s}));var o=a("c621"),n=a("3af9"),l=a("7a23"),r=a("6911");const c=Object.assign(Object.assign({},n["Rb"]),{top:"0",height:"100%"}),i=Object.assign(Object.assign({},n["Sb"]),{top:"0"});var s=Object(l["defineComponent"])({name:"DesignerForm",mixins:[n["u"],n["r"],r["a"],n["D"]],props:Object.assign(Object.assign({},n["v"]),{emptyHeight:{type:Number,default:n["l"].DesignerForm.emptyHeight},emptyHint:{type:String,default:n["l"].DesignerForm.emptyHint}}),setup(e){const{protocolVersion:t}=Object(n["fd"])(),a=()=>{const a=e.currentInstance;if(!a)return;const r=n["R"].fetchOptions(a);r.title=o["CastHelper"].cast(Object(l["computed"])(()=>{var t,a;return Object(o["translateValueByKey"])((null===(a=null===(t=e.currentInstance)||void 0===t?void 0:t.element)||void 0===a?void 0:a.title)||"表单组件")})),n["ob"].isV3(t.value)&&(r.normalMaskStyle=c,r.toolbarStyle=i)};return Object(n["md"])(a),{}}});const d={key:0,class:"designer-form-item",style:{flex:"1 1 0"}};function m(e,t,a,o,n,r){const c=Object(l["resolveComponent"])("empty-draggable"),i=Object(l["resolveComponent"])("k-draggable");return Object(l["openBlock"])(),Object(l["createBlock"])(i,{class:Object(l["normalizeClass"])([e.isV3ProtocolVersion?"designer-form oio-row":"designer-form-v2","designer-form-"+e.layout,e.isInline?"designer-form-inline":"",e.mainAreaChildren.length?"":"designer-form-empty"]),list:e.mainAreaChildren,"item-key":"id",group:e.mainArea.draggableGroup,"component-data":e.isV3ProtocolVersion?e.rowComponentData:void 0,sort:e.isAllowElementSort(e.mainArea),direction:e.DraggableDirection.HORIZONTAL,swapThreshold:.6,disabled:e.isFixedInstance(e.mainArea),"start-callback":e.startCallback,"end-callback":e.endCallback,"added-callback":e.addedCallback,"moved-callback":e.movedCallback,"removed-callback":e.removedCallback,"move-to-self-callback":e.moveToSelfCallback,"move-to-other-callback":e.moveToOtherCallback,"draggable-filter":e.draggableFilter,"disable-add":e.isDisableAddElement(e.mainArea),mapper:e.isV3ProtocolVersion?e.mapper:void 0,currentInstance:e.mainArea},Object(l["createSlots"])({item:Object(l["withCtx"])(({element:t,index:a,colData:o})=>[e.isV3ProtocolVersion?Object(l["withDirectives"])((Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:t.id,style:Object(l["normalizeStyle"])(o.style),class:Object(l["normalizeClass"])(["designer-form-item",e.fetchDraggableIgnoredClass(t)])},[Object(l["renderSlot"])(e.$slots,"default",{instance:t,index:a})],6)),[[l["vShow"],e.isShowInstance(t)]]):Object(l["withDirectives"])((Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:1,class:Object(l["normalizeClass"])(["designer-form-item",e.fetchDraggableIgnoredClass(t)])},[Object(l["renderSlot"])(e.$slots,"default",{instance:t,index:a})],2)),[[l["vShow"],e.isShowInstance(t)]])]),_:2},[e.isEmptyInstance(e.mainArea)?{name:"footer",fn:Object(l["withCtx"])(()=>[e.isV3ProtocolVersion?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",d,[Object(l["createVNode"])(c,{height:e.emptyHeight,text:e.emptyHint},null,8,["height","text"])])):(Object(l["openBlock"])(),Object(l["createBlock"])(c,{key:1,height:e.emptyHeight,text:e.emptyHint},null,8,["height","text"]))]),key:"0"}:void 0]),1032,["class","list","group","component-data","sort","direction","swapThreshold","disabled","start-callback","end-callback","added-callback","moved-callback","removed-callback","move-to-self-callback","move-to-other-callback","draggable-filter","disable-add","mapper","currentInstance"])}s.render=m,s.__file="src/view/component/designer-draggable/component/view/form/DesignerForm.vue"}}]);