(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7ec155d7"],{6911:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a("c621"),c=a("3af9"),l=a("7a23");function o(e){c["R"].isModal(e).result||(e.element.properties&&delete e.element.properties.layout,e.children.forEach(e=>o(e)))}const r={props:{currentInstance:{type:Object,required:!0}},data(){const{layout:e}=Object(c["gd"])(),t=Object(l["computed"])(()=>n["Optional"].ofNullable(this.currentInstance).map(e=>c["R"].fetchProperties(e)).map(e=>e.layout).map(e=>n["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=>o(e))}),Object(c["kd"])({layout:t}),{layout:t}}}},a387:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return r}));var n=a("c621"),c=a("3af9"),l=a("7a23"),o=a("6911"),r=Object(l["defineComponent"])({name:"DesignerView",mixins:[c["u"],o["a"],c["D"]],props:Object.assign(Object.assign({},c["v"]),{emptyHeight:{type:Number,default:500},emptyHint:{type:String,default:"视图区：拖拽「视图」相关组件在这里配置视图模板"}}),setup(e){const t=()=>{const t=e.currentInstance;if(t){const a=c["R"].fetchOptions(t);a.title=n["CastHelper"].cast(Object(l["computed"])(()=>{var t,a,l,o;let r=null===(a=null===(t=e.currentInstance)||void 0===t?void 0:t.element)||void 0===a?void 0:a.title;if(!r){const t=null===(o=null===(l=e.currentInstance)||void 0===l?void 0:l.element)||void 0===o?void 0:o.subtype;if(t)switch(t){case c["A"].TABLE:r="表格视图";break;case c["A"].FORM:r="表单视图";break;case c["A"].DETAIL:r="详情视图";break;case c["A"].SEARCH:r="搜索视图";break;case c["A"].GALLERY:r="画廊视图";break}}return Object(n["translateValueByKey"])(r||"视图")}))}};Object(c["md"])(t);const a=Object(l["computed"])(()=>{var t,a,n,c;return null===(c=null===(n=null===(a=null===(t=e.currentInstance)||void 0===t?void 0:t.element)||void 0===a?void 0:a.subtype)||void 0===n?void 0:n.toLocaleLowerCase)||void 0===c?void 0:c.call(n)}),o=Object(l["computed"])(()=>n["Optional"].ofNullable(e.currentInstance).map(e=>e.children.filter(e=>e.element.bizType!==c["B"].SLOT)).orElse([]));return{viewType:a,realChildren:o}}});const i={key:0,class:"designer-view-item",style:{flex:"1 1 0"}};function s(e,t,a,n,c,o){const r=Object(l["resolveComponent"])("empty-draggable"),s=Object(l["resolveComponent"])("k-draggable");return Object(l["openBlock"])(),Object(l["createBlock"])(s,{class:Object(l["normalizeClass"])([e.isV3ProtocolVersion?"designer-view oio-row":"designer-view-v2",e.viewType?"designer-view-"+e.viewType:""]),list:e.realChildren,"item-key":"id",group:e.currentInstance.draggableGroup,"component-data":e.isV3ProtocolVersion?e.rowComponentData:void 0,sort:e.isAllowElementSort(e.currentInstance),direction:e.DraggableDirection.VERTICAL,invertSwap:!0,disabled:e.isFixedInstance(e.currentInstance),"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.currentInstance),mapper:e.isV3ProtocolVersion?e.mapper:void 0,currentInstance:e.currentInstance},Object(l["createSlots"])({item:Object(l["withCtx"])(({element:t,index:a,colData:n})=>[e.isV3ProtocolVersion?Object(l["withDirectives"])((Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:t.id,style:Object(l["normalizeStyle"])(n.style),class:Object(l["normalizeClass"])(["designer-view-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-view-item",e.fetchDraggableIgnoredClass(t)])},[Object(l["renderSlot"])(e.$slots,"default",{instance:t,index:a})],2)),[[l["vShow"],e.isShowInstance(t)]])]),_:2},[e.isEmptyInstance(e.currentInstance)?{name:"footer",fn:Object(l["withCtx"])(()=>[e.isV3ProtocolVersion?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",i,[Object(l["createVNode"])(r,{height:e.emptyHeight,text:e.emptyHint},null,8,["height","text"])])):(Object(l["openBlock"])(),Object(l["createBlock"])(r,{key:1,height:e.emptyHeight,text:e.emptyHint},null,8,["height","text"]))]),key:"0"}:void 0]),1032,["class","list","group","component-data","sort","direction","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"])}r.render=s,r.__file="src/view/component/designer-draggable/component/view/DesignerView.vue"}}]);