(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0cbcb0"],{"4ad1":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return r}));var l=n("c621"),o=n("3af9"),a=n("d5fa"),i=n("7a23");const c=Object.assign(Object.assign({},o["Rb"]),{borderWidth:"8px",borderLeftWidth:"8px",borderRightWidth:"8px",borderRadius:"4px",top:"-8px",left:"-8px",width:"calc(100% + 16px)",height:"calc(100% + 16px)"});var r=Object(i["defineComponent"])({name:"DesignerTableField",mixins:[o["u"]],props:Object.assign(Object.assign({},o["v"]),{label:{type:String}}),components:{OioIcon:a["OioIcon"]},setup(e){const t=()=>{const t=e.currentInstance;if(!t)return;const a=o["R"].fetchOptions(t);a.title=l["CastHelper"].cast(Object(i["computed"])(()=>{var t,o,a,i;return n.value||(null===(o=null===(t=e.currentInstance)||void 0===t?void 0:t.element)||void 0===o?void 0:o.title)||(null===(i=null===(a=e.currentInstance)||void 0===a?void 0:a.currentWidget)||void 0===i?void 0:i.widgetDisplayName)||Object(l["translateValueByKey"])("模型字段")})),a.normalMaskStyle=c,a.toolbarStyle=l["CastHelper"].cast(Object(i["computed"])(()=>0===e.currentIndex?{top:"-16px",left:"-8px"}:{top:"-16px",right:"-8px"})),a.removeCondition=()=>{var t,n,l;const a=null===(l=null===(n=null===(t=e.currentInstance)||void 0===t?void 0:t.children)||void 0===n?void 0:n[0])||void 0===l?void 0:l.element;return!(!a||a.bizType!==o["B"].VIEW)},a.removeMessage=Object(l["translateValueByKey"])("当前字段为展开行关联字段，删除后展开行失效，请确认")};Object(o["md"])(t);const n=Object(i["computed"])(()=>{const t=l["Optional"].ofNullable(e.currentInstance).map(e=>e.element);return e.label||t.map(e=>e.properties).map(e=>e.label).orElseGet(()=>t.map(e=>e.widgetData).map(e=>e.displayName||e.name).orElse(""))}),a=Object(i["computed"])(()=>{const t=l["Optional"].ofNullable(e.currentInstance).map(e=>e.element);return n.value&&t.map(e=>e.properties).map(e=>l["BooleanHelper"].toBoolean(e.independentlyEditable)).orElse(!1)}),r=Object(i["computed"])(()=>l["Optional"].ofNullable(e.currentInstance).map(e=>o["R"].fetchProperties(e)).map(e=>l["BooleanHelper"].toBoolean(e.invisible)).orElse(void 0));return{label:n,independentlyEditable:a,invisible:r}}});const s=["id"],d=["title"],p={class:"designer-table-field-label"};function b(e,t,n,l,o,a){const c=Object(i["resolveComponent"])("oio-icon");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{id:e.fetchInstanceDomId(e.currentInstance.id),class:Object(i["normalizeClass"])(["designer-table-field",e.invisible?"designer-table-field-invisible":""])},[Object(i["createElementVNode"])("span",{class:Object(i["normalizeClass"])([!e.currentInstance.element.widgetData&&"designer-table-field-error"]),title:e.label},[Object(i["createElementVNode"])("span",p,[e.independentlyEditable?(Object(i["openBlock"])(),Object(i["createBlock"])(c,{key:0,color:"var(--oio-font-color)",icon:"oinone-biaodanye"})):Object(i["createCommentVNode"])("v-if",!0),Object(i["createElementVNode"])("span",null,Object(i["toDisplayString"])(e.currentInstance.element.widgetData?e.label:e.$translate("未设置字段")),1)])],10,d)],10,s)}r.render=b,r.__file="src/view/component/designer-draggable/component/element/DesignerTableField.vue"}}]);