import{l as a}from"./index-design-C8wrC2s6.js";const l=(e,t)=>e===null?!0:!e||typeof e!="string"?!1:/gx-pc-button$/.test(e)?a("action-type",t?.rawXmlObj?.property)==="menu-group":/gx-pc-table-column$/.test(e)?a("type",t?.rawXmlObj?.property)==="操作列":/gx-pc-(panel|table|dialog|collapse|collapse-item|tabs|tab-panel|menu|sub-menu|grid-layout|dropdown|dialog-footer|flow-operation)$/.test(e),n=e=>e===null?!0:!e||typeof e!="string"?!1:/gx-pc-(panel|table|dialog|collapse|tabs|tab-panel)$/.test(e),s=(e,t)=>{if(!e||typeof e!="string")return!1;if(/gx-pc-panel$/.test(e)){const r=a("form-content-type",t?.rawXmlObj?.property);return r==="detail"||r==="edit"}return/gx-pc-(table-column)$/.test(e)?a("type",t?.rawXmlObj?.property)==="clickable":/gx-pc-(table|form|checkbox-group|radio-group|select|dropdown|button|upload|dialog)$/.test(e)},i=(e,t)=>!e||typeof e!="string"?!1:!!/gx-pc-(button)$/.test(e),p=e=>!e||typeof e!="string"?!1:/gx-pc-(checkbox-group|radio-group|select|dropdown|input)$/.test(e),u=e=>{let t=[];if(!e||typeof e!="string")return t;switch(e.replace(/^gx-pc-/,"")){case"menu":t=[{whetherNull:!1,canEdit:!1,isEnum:!1,isShow:!0,controlId:e,propertyId:"button-type",options:[{label:"菜单",value:"菜单"},{label:"子菜单",value:"子菜单"},{label:"操作",value:"操作"}],propertyName:"类型",defaultValue:"",propertyType:"文本",id:4,sn:4,hid:"4",placeholder:"请输入"},{whetherNull:!1,canEdit:!0,isEnum:!1,isShow:!0,controlId:e,propertyId:"menu-id",propertyName:"菜单",defaultValue:"",propertyType:"文本",id:5,sn:5,hid:"5"},{whetherNull:!1,canEdit:!0,isEnum:!1,isShow:!0,controlId:e,propertyId:"menu-item-id",propertyName:"子菜单",defaultValue:"",propertyType:"文本",id:6,sn:6,hid:"6",placeholder:"请输入"},{whetherNull:!1,canEdit:!0,isEnum:!1,isShow:!0,controlId:e,propertyId:"active-id",propertyName:"操作",defaultValue:"",propertyType:"文本",id:7,sn:7,hid:"7",placeholder:"请输入"}];break;default:t=[{whetherNull:!1,canEdit:!1,isEnum:!1,isShow:!0,controlId:e,propertyId:"back-interface-id",propertyName:"接口ID",defaultValue:"",propertyType:"文本",id:4,sn:4,hid:"4",placeholder:"请输入"},{whetherNull:!1,canEdit:!1,isEnum:!1,isShow:!0,controlId:e,propertyId:"back-interface-name",propertyName:"接口名称",defaultValue:"",propertyType:"文本",id:5,sn:5,hid:"5"},{whetherNull:!1,canEdit:!1,isEnum:!1,isShow:!0,controlId:e,propertyId:"back-interface-url",propertyName:"接口URL",defaultValue:"",propertyType:"文本",id:6,sn:6,hid:"6",placeholder:"请输入"}]}return t};export{s as a,p as b,n as c,u as g,i as h,l as i};
