(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dd47c"],{"815b":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n("9127"),o=n("3af9"),c=n("b90b"),a=n("7a23");const s=Object.assign(Object.assign({},o["Rb"]),{pointerEvents:"all"});var i=Object(a["defineComponent"])({name:"DesignerMobileTree",mixins:[o["u"]],props:Object.assign({},o["v"]),setup(e){Object(a["onBeforeMount"])(()=>{const t=e.currentInstance;if(!t)return;const n=o["R"].fetchOptions(t);n.normalMaskStyle=s});const t=Object(a["computed"])(()=>{var t;const n=null===(t=e.currentInstance)||void 0===t?void 0:t.element.properties.nodes;if(null===n||void 0===n?void 0:n.length){const e=[];if(n.forEach(t=>{var n;const o=null===(n=t.modelDefinition)||void 0===n?void 0:n.model;if(o){const n=Object(r["X"])();e.push({key:n,title:t.modelDefinition.displayName||Object(r["W"])("未命名"),value:{},children:[],isLeaf:!0})}}),e.length)return e}return[{key:Object(r["X"])(),title:Object(r["W"])("未配置"),value:{},children:[],isLeaf:!0}]}),n=Object(a["computed"])(()=>{let e,n;const r=t.value,o=r.length,c=o-1;for(let t=0;t<o;t++){const{key:o,title:a,value:s}=r[t],i={key:o,title:a,value:s,children:[],isLeaf:t===c};n?(n.children.push(i),i.parent=n):e=i,n=i}return e}),c=Object(a["computed"])(()=>t.value.map(e=>e.key)),i=Object(a["computed"])(()=>r["F"].ofNullable(e.currentInstance).map(e=>o["R"].fetchProperties(e)).map(e=>e.enableSearch).map(e=>r["c"].toBoolean(e)).orElse(!1));return{rootNodes:t,rootNode:n,expandedKeys:c,enableSearch:i}},render(){const{currentInstance:e,rootNode:t,expandedKeys:n,enableSearch:s}=this;if(!t)return[];const i=Object(a["createVNode"])("OioTree",{class:"mobile-designer-tree",style:Object(o["kc"])(e),data:[t],expandedKeys:n,wrapperClassName:"mobile-designer-tree-wrapper"});return s?Object(a["createVNode"])("div",{class:"mobile-designer-search-tree-wrapper"},[Object(a["createVNode"])(c["V"],{placeholder:Object(r["W"])("请输入关键字")}),i]):[i]}});i.__file="src/view/component/designer-draggable/component/element/tree/DesignerTree.vue"}}]);