sun-form-v3 1.0.81 → 1.0.82
Sign up to get free protection for your applications and to get access to all the features.
package/dist/sun-form-v3.es.js
CHANGED
package/dist/sun-form-v3.umd.js
CHANGED
@@ -54,4 +54,4 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:o,curr
|
|
54
54
|
${i.successFormat}
|
55
55
|
})()`)(f,r,this);o&&o({funRes:h,httpRes:f})}else o&&o({funRes:null,httpRes:f})}).catch(async f=>{i.errorFormat&&new Function("error","widget","app",`return (async function(){
|
56
56
|
${i.errorFormat}
|
57
|
-
})()`)(f,r,this)})}getWidgetById(n){return this.widgetMap.get(n)}updateByHistory(n){this.isHistory=!0,this.$utils.destructuring(this.widgetConfig,n)}updateWidget(n,r,o){const a=this.getWidgetById(n);if(a){if(a.id!==r.id&&this.widgetIds.includes(r.id)&&!o){Xo.warning("已经存在相同的id的组件,组件id不允许重复");return}n==="homepage"&&(r.id!==n&&Xo.warning("主页面的id不允许修改"),r.id=r.type="homepage"),this.$utils.destructuring(a,r)}else console.warn(`Widget with id ${n} not found.`)}rebuildWidgetMap(){this.widgetMap.clear(),this.widgetIds=[],this.buildWidgetMap(this.widgetConfig)}buildWidgetMap(n){this.widgetMap.set(n.id,n),this.widgetIds.push(n.id),n.widgetList&&n.widgetList.length&&n.widgetList.forEach(r=>{this.buildWidgetMap(r)})}setChosenId(n){this.widgetConfig.chosenId=n}getChosenId(){return this.widgetConfig.chosenId}getChosenInitData(n){n=this.$utils.clone(n,!0),n.id=this.getUniqueId(n.type),this.setChosenId(n.id);let r=["canAddDataTableQuery","canAddDataTableList","addToPanel","active"],o=a=>{delete n[a]};return r.forEach(a=>{o(a)}),n}getUniqueId(n){return n+"_"+Math.floor(new Date().getTime()%1e5)+this.$utils.uniqueId()}getWidgetList(){return this.widgetConfig.widgetList}getWidgetConfig(){return this.widgetConfig}updateWidgetConfig(n){this.widgetConfig=n}getParentWidgetById(n){function r(o){for(const a of o){if(a.id===n){let l=o.findIndex(i=>i.id===n);return{widgetList:o,index:l}}if(a.widgetList&&a.widgetList.length>0){const l=r(a.widgetList);if(l)return l}}return null}return r(this.widgetConfig.widgetList)}}const hm=Object.assign({name:"sunForm"},{__name:"show",props:{widgetConfig:{type:Object,default:null},httpSuccessHandle:{type:Function,default:null},httpErrorHandle:{type:Function,default:null},httpBeforeSendHandle:{type:Function,default:null},baseUrl:{type:String,default:""},headers:{type:Object,default:{}}},setup(t){let n=t,r=e.reactive(new gm({showMode:!0,widgetConfig:n.widgetConfig,httpSuccessHandle:n.httpSuccessHandle,httpErrorHandle:n.httpErrorHandle,httpBeforeSendHandle:n.httpBeforeSendHandle,baseUrl:n.baseUrl,headers:n.headers}));return(o,a)=>{const l=e.resolveComponent("widget-homepage"),i=e.resolveComponent("commonContainer");return e.openBlock(),e.createBlock(i,{class:"h-full w-full",widget:e.unref(r).widgetConfig,designer:e.unref(r)},{default:e.withCtx(()=>[e.createVNode(l,{widget:e.unref(r).widgetConfig,designer:e.unref(r)},null,8,["widget","designer"])]),_:1},8,["widget","designer"])}}}),dn=t=>(e.pushScopeId("data-v-ff1bcc33"),t=t(),e.popScopeId(),t),VL={class:"h-[100vh] bg-gray-100 flex flex-col"},xL={class:"head px-4 py-2 bg-gray-50 flex justify-between items-center"},EL=dn(()=>e.createElementVNode("div",{class:"logo"},[e.createElementVNode("img",{class:"h-[32px]",src:Cy,alt:""})],-1)),NL={class:"menu"},SL=dn(()=>e.createElementVNode("i",{class:e.normalizeClass("iconfont icon-xianghou")},null,-1)),$L=dn(()=>e.createElementVNode("i",{class:e.normalizeClass("iconfont icon-xiangqian")},null,-1)),kL={class:"content flex-1 flex border-t border-gray-200 overflow-hidden"},TL={class:"left flex bg-gray-50 border-r border-gray-200 relative"},OL={class:"w-12 border-r border-gray-200 pt-5"},IL=[dn(()=>e.createElementVNode("i",{class:e.normalizeClass("iconfont icon-zujian")},null,-1))],BL=[dn(()=>e.createElementVNode("i",{class:e.normalizeClass("iconfont icon-dagang")},null,-1))],vL=[dn(()=>e.createElementVNode("i",{class:e.normalizeClass("iconfont icon-yuanma")},null,-1))],DL={class:"absolute h-full w-[12px] right-[-10px] z-20 flex justify-center items-center"},AL={class:"mid flex-1 py-2 px-2 box-border w-full h-full overflow-auto"},RL={class:"inner w-full h-full bg-gray-50"},FL={class:"right bg-gray-50 w-80 border-l border-gray-200 overflow-y-auto overflow-x-hidden"},ML={class:"drawer"},PL=dn(()=>e.createElementVNode("span",null,"预览表单",-1)),ym=He(Object.assign({name:"designer"},{__name:"index",props:{widgetConfig:{type:Object,default:null},httpSuccessHandle:{type:Function,default:null},httpErrorHandle:{type:Function,default:null},httpBeforeSendHandle:{type:Function,default:null},baseUrl:{type:String,default:""},headers:{type:Object,default:{}}},setup(t,{expose:n}){let r=t,o=r.widgetConfig||ze.homepage,a=e.ref(!1),l=null,i=e.ref(!1),s=e.reactive(new gm({widgetConfig:o,httpSuccessHandle:r.httpSuccessHandle,httpErrorHandle:r.httpErrorHandle,httpBeforeSendHandle:r.httpBeforeSendHandle,baseUrl:r.baseUrl,headers:r.headers})),c=e.reactive({activeSidebar:0});const d=()=>{l=s.$utils.clone(s.widgetConfig,!0),a.value=!0},u=()=>{s.updateWidget("homepage",s.$utils.clone(ze.homepage,!0),!0)},f=_=>{s.historyIndex=_.index,s.updateByHistory(_.widgetConfig)},p=({row:_,rowIndex:V})=>{if(s.historyIndex===V)return{color:"rgb(85, 132, 255)",fontWeight:"bold"}},h=()=>{s.historyIndex>0&&(s.historyIndex--,s.updateByHistory(s.historyList[s.historyIndex].widgetConfig))},m=()=>{s.historyIndex<s.historyList.length-1&&(s.historyIndex++,s.updateByHistory(s.historyList[s.historyIndex].widgetConfig))},g=()=>{let _=s.chosenWidget;if(!_.type)return s.$message.warning("请选择组件");localStorage.getItem(_.type)?s.$confirm("已存在"+_.displayName+"模版,是否覆盖?","提示").then(()=>{localStorage.setItem(_.type,JSON.stringify(_))}).catch(()=>{}):localStorage.setItem(_.type,JSON.stringify(_))},b=()=>{let _=s.chosenWidget;if(!_.type)return s.$message.error("请选择组件");if(localStorage.getItem(_.type)){let V=JSON.parse(localStorage.getItem(_.type));s.updateWidget(_.id,V,!0)}else s.$notify.error("不存在"+widget.displayName+"模版")};return n({designer:s}),(_,V)=>{const w=e.resolveComponent("el-button"),C=e.resolveComponent("el-table-column"),E=e.resolveComponent("el-table"),$=e.resolveComponent("el-popover"),T=e.resolveComponent("el-button-group"),F=e.resolveComponent("CaretLeft"),v=e.resolveComponent("el-icon"),O=e.resolveComponent("CaretRight"),B=e.resolveComponent("vxe-modal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",VL,[e.createElementVNode("div",xL,[EL,e.createElementVNode("div",NL,[e.createVNode($,{placement:"bottom",width:360,trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(w,{class:"mr-3"},{default:e.withCtx(()=>[e.createTextVNode("历史记录")]),_:1})]),default:e.withCtx(()=>[e.createVNode(E,{"row-style":p,data:e.unref(s).historyList,onRowClick:f,"max-height":"300"},{default:e.withCtx(()=>[e.createVNode(C,{property:"id",label:"变更组件"},{default:e.withCtx(N=>[e.createElementVNode("div",null,e.toDisplayString(N.row.widgetConfig.chosenId),1)]),_:1}),e.createVNode(C,{width:"100",property:"time",label:"操作时间"})]),_:1},8,["data"])]),_:1}),e.createVNode(T,{class:"mr-3"},{default:e.withCtx(()=>[e.createVNode(w,{onClick:h,disabled:e.unref(s).historyIndex===0},{default:e.withCtx(()=>[SL]),_:1},8,["disabled"]),e.createVNode(w,{onClick:m,disabled:e.unref(s).historyIndex===e.unref(s).historyList.length-1},{default:e.withCtx(()=>[$L]),_:1},8,["disabled"])]),_:1}),e.createVNode(T,{class:"mx-2"},{default:e.withCtx(()=>[e.createVNode(w,{onClick:g},{default:e.withCtx(()=>[e.createTextVNode("存为模版")]),_:1}),e.createVNode(w,{onClick:b},{default:e.withCtx(()=>[e.createTextVNode("引入模版")]),_:1})]),_:1}),e.createVNode(w,{onClick:u},{default:e.withCtx(()=>[e.createTextVNode("重置")]),_:1}),e.createVNode(w,{type:"primary",onClick:d},{default:e.withCtx(()=>[e.createTextVNode("预览")]),_:1})])]),e.createElementVNode("div",kL,[e.createElementVNode("div",TL,[e.createElementVNode("div",OL,[e.createElementVNode("div",{class:e.normalizeClass(["btn_item",{active:e.unref(c).activeSidebar===0}]),onClick:V[0]||(V[0]=N=>e.unref(c).activeSidebar=0)},IL,2),e.createElementVNode("div",{class:e.normalizeClass(["btn_item",{active:e.unref(c).activeSidebar===1}]),onClick:V[1]||(V[1]=N=>e.unref(c).activeSidebar=1)},BL,2),e.createElementVNode("div",{class:e.normalizeClass(["btn_item",{active:e.unref(c).activeSidebar===2}]),onClick:V[2]||(V[2]=N=>e.unref(c).activeSidebar=2)},vL,2)]),e.createElementVNode("div",{class:"w-80 overflow-hidden",style:e.normalizeStyle({width:e.unref(i)?0:""})},[e.createVNode(Ay,{designer:e.unref(s),activeSidebar:e.unref(c).activeSidebar},null,8,["designer","activeSidebar"])],4),e.createElementVNode("div",DL,[e.createElementVNode("div",{onClick:V[3]||(V[3]=N=>e.isRef(i)?i.value=!e.unref(i):i=!e.unref(i)),class:"w-full h-[100px] opacity-40 hover:opacity-100 flex items-center justify-center bg-blue-700 rounded-r-md cursor-pointer"},[e.unref(i)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(v,{key:0,color:"#ffffff",size:"12"},{default:e.withCtx(()=>[e.createVNode(F)]),_:1})),e.unref(i)?(e.openBlock(),e.createBlock(v,{key:1,color:"#ffffff",size:"12"},{default:e.withCtx(()=>[e.createVNode(O)]),_:1})):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",AL,[e.createElementVNode("div",RL,[e.createVNode(Ry,{designer:e.unref(s)},null,8,["designer"])])]),e.createElementVNode("div",FL,[e.unref(s).chosenWidget?(e.openBlock(),e.createBlock(My,{key:0,designer:e.unref(s)},null,8,["designer"])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",ML,[e.createVNode(B,{modelValue:e.unref(a),"onUpdate:modelValue":V[4]||(V[4]=N=>e.isRef(a)?a.value=N:a=N),width:"99%",height:"99%","show-footer":""},{title:e.withCtx(()=>[PL]),default:e.withCtx(()=>[e.unref(a)?(e.openBlock(),e.createBlock(hm,{key:0,widgetConfig:e.unref(l),httpSuccessHandle:e.unref(r).httpSuccessHandle,httpErrorHandle:e.unref(r).httpErrorHandle,httpBeforeSendHandle:e.unref(r).httpBeforeSendHandle,baseUrl:e.unref(r).baseUrl,headers:e.unref(r).headers},null,8,["widgetConfig","httpSuccessHandle","httpErrorHandle","httpBeforeSendHandle","baseUrl","headers"])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])])],64)}}}),[["__scopeId","data-v-ff1bcc33"]]);ym.install=function(t){t.use(Gi),t.use(Xi)};let LL=[ym,hm];const UL={install:t=>{t.use(Gi),t.use(Xi),LL.forEach(n=>{t.component(n.name,n)})}},zL=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-button"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;const r=o=>!!n.widget.props.hasOwnProperty(o);return(o,a)=>{const l=e.resolveComponent("common-icon-choose"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-option"),c=e.resolveComponent("el-select"),d=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"图标选择"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.icon,"onUpdate:modelValue":a[0]||(a[0]=u=>e.unref(n).widget.props.icon=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":a[1]||(a[1]=u=>e.unref(n).widget.props.size=u)},{default:e.withCtx(()=>[e.createVNode(s,{label:"大尺寸",value:"large"}),e.createVNode(s,{label:"默认",value:"default"}),e.createVNode(s,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"组件对齐"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.align,"onUpdate:modelValue":a[2]||(a[2]=u=>e.unref(n).widget.props.align=u)},{default:e.withCtx(()=>[e.createVNode(s,{label:"居左",value:"left"}),e.createVNode(s,{label:"居中",value:"center"}),e.createVNode(s,{label:"居右",value:"right"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"组件类型"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.type,"onUpdate:modelValue":a[3]||(a[3]=u=>e.unref(n).widget.props.type=u)},{default:e.withCtx(()=>[e.createVNode(s,{label:"primary",value:"primary"}),e.createVNode(s,{label:"success",value:"success"}),e.createVNode(s,{label:"info",value:"info"}),e.createVNode(s,{label:"warning",value:"warning"}),e.createVNode(s,{label:"danger",value:"danger"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否朴素按钮"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isPlain,"onUpdate:modelValue":a[4]||(a[4]=u=>e.unref(n).widget.props.isPlain=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否文字按钮"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isText,"onUpdate:modelValue":a[5]||(a[5]=u=>e.unref(n).widget.props.isText=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否背景颜色"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isTextBgColor,"onUpdate:modelValue":a[6]||(a[6]=u=>e.unref(n).widget.props.isTextBgColor=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否链接按钮"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isLink,"onUpdate:modelValue":a[7]||(a[7]=u=>e.unref(n).widget.props.isLink=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否圆角按钮"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isRound,"onUpdate:modelValue":a[8]||(a[8]=u=>e.unref(n).widget.props.isRound=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否圆形按钮"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isCircle,"onUpdate:modelValue":a[9]||(a[9]=u=>e.unref(n).widget.props.isCircle=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否加载中"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isLoading,"onUpdate:modelValue":a[10]||(a[10]=u=>e.unref(n).widget.props.isLoading=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":a[11]||(a[11]=u=>e.unref(n).widget.props.disabled=u)},null,8,["modelValue"])]),_:1}),r("isSide")?(e.openBlock(),e.createBlock(i,{key:0,label:"是否侧边按钮"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isSide,"onUpdate:modelValue":a[12]||(a[12]=u=>e.unref(n).widget.props.isSide=u)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"})),HL=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-checkbox"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=c=>e.unref(n).widget.props.size=c)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否按钮"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.isButton,"onUpdate:modelValue":o[1]||(o[1]=c=>e.unref(n).widget.props.isButton=c)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否块状"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.isBlock,"onUpdate:modelValue":o[2]||(o[2]=c=>e.unref(n).widget.props.isBlock=c)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否必填"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.required,"onUpdate:modelValue":o[3]||(o[3]=c=>e.unref(n).widget.props.required=c)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[4]||(o[4]=c=>e.unref(n).widget.props.disabled=c)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),bm=t=>(e.pushScopeId("data-v-75dc2686"),t=t(),e.popScopeId(),t),qL=bm(()=>e.createElementVNode("span",null,"复杂表头配置",-1)),jL={key:0,class:"flex h-full flex-col"},WL={class:"flex-1 flex items-center justify-between"},YL=bm(()=>e.createElementVNode("span",null,"选择表头",-1)),KL={key:0,class:"flex h-full"},GL={class:"w-full h-full"},JL=He(Object.assign({name:"headerTreeConfig"},{__name:"headerTreeConfig",props:{modelValue:[Object,null],widget:{type:Object}},emits:["update:modelValue"],setup(t,{emit:n}){let r=t;r.designer,e.ref(null);let o=e.ref({});const a=e.ref(JSON.parse(JSON.stringify(r.widget.props.headerTree))),l=e.ref(r.widget.widgetList.filter(_=>_.compType===2));JSON.parse(JSON.stringify(l));const i=(_,V)=>{_.push({id:new Date().getTime(),children:[],label:null})},s=_=>{o.value=_,p.value=!0},c=_=>{o.value.label=_.props.label,o.value.id=_.id,o.value.isComponent=!0,p.value=!1},d=(_,V)=>{const w=_.parent,C=w.data.children||w.data,E=C.findIndex($=>$.id===V.id);C.splice(E,1),a.value=[...a.value]},u={children:"children",label:"label"};let f=e.ref(!1),p=e.ref(!1);const h=({row:_})=>{console.log(_)},m=()=>{f.value=!0},g=()=>{f.value=!1},b=()=>{f.value=!1,r.widget.props.headerTree=a.value};return(_,V)=>{const w=e.resolveComponent("el-button"),C=e.resolveComponent("el-input"),E=e.resolveComponent("el-button-group"),$=e.resolveComponent("el-tree"),T=e.resolveComponent("vxe-modal"),F=e.resolveComponent("vxe-column"),v=e.resolveComponent("vxe-table");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(w,{plain:"",type:e.unref(r).widget.props.headerTree.length?"primary":"",icon:"Setting",onClick:m},{default:e.withCtx(()=>[e.createTextVNode(" 复杂表头 ")]),_:1},8,["type"]),e.createVNode(T,{transfer:"",modelValue:e.unref(f),"onUpdate:modelValue":V[1]||(V[1]=O=>e.isRef(f)?f.value=O:f=O),width:"800px",height:"700px","show-footer":"",onClose:g},{title:e.withCtx(()=>[qL]),default:e.withCtx(()=>[e.unref(f)?(e.openBlock(),e.createElementBlock("div",jL,[e.createVNode(w,{type:"primary",size:"small",class:"w-20 mb-2",onClick:V[0]||(V[0]=O=>i(a.value))},{default:e.withCtx(()=>[e.createTextVNode("一级添加")]),_:1}),e.createVNode($,{data:a.value,props:u,"node-key":"id","expand-on-click-node":!1,"default-expand-all":"",class:"w-full mt-2 flex-1 overflow-auto"},{default:e.withCtx(({node:O,data:B})=>[e.createElementVNode("div",WL,[e.createElementVNode("div",null,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(B.children&&B.children.length?"分类":"组件")+" ",1),e.createVNode(C,{modelValue:B.label,"onUpdate:modelValue":N=>B.label=N,size:"small",class:"w-[120px]"},null,8,["modelValue","onUpdate:modelValue"])])]),e.createElementVNode("div",null,[e.createVNode(E,null,{default:e.withCtx(()=>[e.createVNode(w,{onClick:N=>i(B.children),link:"",type:"primary",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("新增")]),_:2},1032,["onClick"]),e.createVNode(w,{link:"",type:"danger",onClick:N=>d(O,B),size:"small"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"]),e.createVNode(w,{disabled:B.children&&!!B.children.length,onClick:N=>s(B),link:"",type:"success",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("选择")]),_:2},1032,["disabled","onClick"])]),_:2},1024)])])]),_:1},8,["data"])])):e.createCommentVNode("",!0)]),footer:e.withCtx(()=>[e.createVNode(w,{icon:"Close",size:"small",onClick:g},{default:e.withCtx(()=>[e.createTextVNode("关闭")]),_:1}),e.createVNode(w,{icon:"Check",type:"primary",size:"small",onClick:b},{default:e.withCtx(()=>[e.createTextVNode("确认")]),_:1})]),_:1},8,["modelValue"]),e.createVNode(T,{transfer:"",modelValue:e.unref(p),"onUpdate:modelValue":V[2]||(V[2]=O=>e.isRef(p)?p.value=O:p=O),width:"700px",height:"600px"},{title:e.withCtx(()=>[YL]),default:e.withCtx(()=>[e.unref(p)?(e.openBlock(),e.createElementBlock("div",KL,[e.createElementVNode("div",GL,[e.createVNode(v,{ref:"mainTable",data:l.value,height:"auto","row-config":{isCurrent:!0,isHover:!0},onCurrentChange:h,size:"mini",border:"","scroll-y":{enabled:!0},"column-config":{resizable:!0},align:"left",class:"w-full"},{default:e.withCtx(()=>[e.createVNode(F,{field:"name",title:"表头标签"},{default:e.withCtx(({row:O})=>[e.createElementVNode("div",null,e.toDisplayString(O.props.label),1)]),_:1}),e.createVNode(F,{field:"name",title:"表头字段"},{default:e.withCtx(({row:O})=>[e.createElementVNode("div",null,e.toDisplayString(O.props.zdname),1)]),_:1}),e.createVNode(F,{field:"name",title:"组件id",width:"180"},{default:e.withCtx(({row:O})=>[e.createElementVNode("div",null,e.toDisplayString(O.id),1)]),_:1}),e.createVNode(F,{field:"name",title:"组件类型"},{default:e.withCtx(({row:O})=>[e.createElementVNode("div",null,e.toDisplayString(O.displayName),1)]),_:1}),e.createVNode(F,{title:"操作栏",width:"60",align:"center"},{default:e.withCtx(({row:O})=>[e.createVNode(w,{link:"",type:"primary",size:"small",onClick:B=>c(O)},{default:e.withCtx(()=>[e.createTextVNode("选择")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])])])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])],64)}}}),[["__scopeId","data-v-75dc2686"]]),ZL={key:0},XL=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-datatable"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input"),c=e.resolveComponent("el-input-number"),d=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=u=>e.unref(n).widget.props.size=u)},{default:e.withCtx(()=>[e.createVNode(a,{label:"默认",value:"medium"}),e.createVNode(a,{label:"小尺寸",value:"small"}),e.createVNode(a,{label:"超小尺寸",value:"mini"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"表格高度"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.height,"onUpdate:modelValue":o[1]||(o[1]=u=>e.unref(n).widget.props.height=u),placeholder:"填写表格高度"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"操作栏宽度"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.oprateWidth,"onUpdate:modelValue":o[2]||(o[2]=u=>e.unref(n).widget.props.oprateWidth=u),placeholder:"不填则按默认宽度"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"数据字段"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.rows,"onUpdate:modelValue":o[3]||(o[3]=u=>e.unref(n).widget.props.rows=u),placeholder:"数据字段"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"总数字段"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.count,"onUpdate:modelValue":o[4]||(o[4]=u=>e.unref(n).widget.props.count=u),placeholder:"总数字段"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"分页字段"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.page,"onUpdate:modelValue":o[5]||(o[5]=u=>e.unref(n).widget.props.page=u),placeholder:"分页字段"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"页数字段"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.limit,"onUpdate:modelValue":o[6]||(o[6]=u=>e.unref(n).widget.props.limit=u),placeholder:"页数字段"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"默认页数"},{default:e.withCtx(()=>[e.createVNode(c,{class:"w-full",placeholder:"默认页数",modelValue:e.unref(n).widget.props.pageDefault,"onUpdate:modelValue":o[7]||(o[7]=u=>e.unref(n).widget.props.pageDefault=u),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"对齐方式"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.align,"onUpdate:modelValue":o[8]||(o[8]=u=>e.unref(n).widget.props.align=u)},{default:e.withCtx(()=>[e.createVNode(a,{label:"中间",value:"center"}),e.createVNode(a,{label:"左侧",value:"left"}),e.createVNode(a,{label:"右侧",value:"right"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否单选"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.singleselect,"onUpdate:modelValue":o[9]||(o[9]=u=>e.unref(n).widget.props.singleselect=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否分页"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.hasPage,"onUpdate:modelValue":o[10]||(o[10]=u=>e.unref(n).widget.props.hasPage=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"初始加载数据"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.initLoadData,"onUpdate:modelValue":o[11]||(o[11]=u=>e.unref(n).widget.props.initLoadData=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"内容过长隐藏"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.showOverFlow,"onUpdate:modelValue":o[12]||(o[12]=u=>e.unref(n).widget.props.showOverFlow=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否有斑马线"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isStripe,"onUpdate:modelValue":o[13]||(o[13]=u=>e.unref(n).widget.props.isStripe=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"隐藏选择栏"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isHideChoose,"onUpdate:modelValue":o[14]||(o[14]=u=>e.unref(n).widget.props.isHideChoose=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"收缩操作栏"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.hideHandleBtn,"onUpdate:modelValue":o[15]||(o[15]=u=>e.unref(n).widget.props.hideHandleBtn=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否树形表格"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.treeMode,"onUpdate:modelValue":o[16]||(o[16]=u=>e.unref(n).widget.props.treeMode=u)},null,8,["modelValue"])]),_:1}),e.unref(n).widget.props.treeMode?(e.openBlock(),e.createElementBlock("div",ZL,[e.createVNode(i,{label:"本级树节点"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.treeRowField,"onUpdate:modelValue":o[17]||(o[17]=u=>e.unref(n).widget.props.treeRowField=u),placeholder:"本级树节点"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"父级树节点"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.treeParentField,"onUpdate:modelValue":o[18]||(o[18]=u=>e.unref(n).widget.props.treeParentField=u),placeholder:"父级树节点"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"树子节点容器"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.treeChildrenField,"onUpdate:modelValue":o[19]||(o[19]=u=>e.unref(n).widget.props.treeChildrenField=u),placeholder:"树子节点容器"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否扁平数据"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.treeTransform,"onUpdate:modelValue":o[20]||(o[20]=u=>e.unref(n).widget.props.treeTransform=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否展开全部"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.treeExpandAll,"onUpdate:modelValue":o[21]||(o[21]=u=>e.unref(n).widget.props.treeExpandAll=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否手风琴"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.treeAccordion,"onUpdate:modelValue":o[22]||(o[22]=u=>e.unref(n).widget.props.treeAccordion=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否带连接线"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isLine,"onUpdate:modelValue":o[23]||(o[23]=u=>e.unref(n).widget.props.isLine=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否带连接线"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isLine,"onUpdate:modelValue":o[24]||(o[24]=u=>e.unref(n).widget.props.isLine=u)},null,8,["modelValue"])]),_:1})])):e.createCommentVNode("",!0),e.createVNode(i,{label:"复杂表头设置"},{default:e.withCtx(()=>[e.createVNode(JL,{widget:e.unref(n).widget},null,8,["widget"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),QL=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-date"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input"),c=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=d=>e.unref(n).widget.props.size=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"组件类型"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.type,"onUpdate:modelValue":o[1]||(o[1]=d=>e.unref(n).widget.props.type=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"日期",value:"date"}),e.createVNode(a,{label:"年",value:"year"}),e.createVNode(a,{label:"月",value:"month"}),e.createVNode(a,{label:"周",value:"week"}),e.createVNode(a,{label:"日期时间",value:"datetime"}),e.createVNode(a,{label:"日期区间",value:"daterange"}),e.createVNode(a,{label:"日期时间区间",value:"datetimerange"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"显示格式"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.format,"onUpdate:modelValue":o[2]||(o[2]=d=>e.unref(n).widget.props.format=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"YYYY",value:"YYYY"}),e.createVNode(a,{label:"YYYY-MM",value:"YYYY-MM"}),e.createVNode(a,{label:"YYYY-MM-DD",value:"YYYY-MM-DD"}),e.createVNode(a,{label:"YYYY/MM/DD",value:"YYYY/MM/DD"}),e.createVNode(a,{label:"YYYY年MM月DD",value:"YYYY年MM月DD"}),e.createVNode(a,{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"}),e.createVNode(a,{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"}),e.createVNode(a,{label:"YYYY-MM-DD hh:mm:ss",value:"YYYY-MM-DD hh:mm:ss"}),e.createVNode(a,{label:"YYYY/MM/DD hh:mm:ss",value:"YYYY/MM/DD hh:mm:ss"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"输出格式"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.valueFormat,"onUpdate:modelValue":o[3]||(o[3]=d=>e.unref(n).widget.props.valueFormat=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"YYYY",value:"YYYY"}),e.createVNode(a,{label:"YYYY-MM",value:"YYYY-MM"}),e.createVNode(a,{label:"YYYY-MM-DD",value:"YYYY-MM-DD"}),e.createVNode(a,{label:"YYYY/MM/DD",value:"YYYY/MM/DD"}),e.createVNode(a,{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"}),e.createVNode(a,{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"}),e.createVNode(a,{label:"YYYY-MM-DD hh:mm:ss",value:"YYYY-MM-DD hh:mm:ss"}),e.createVNode(a,{label:"YYYY/MM/DD hh:mm:ss",value:"YYYY/MM/DD hh:mm:ss"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"分隔符"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.rangeSeparator,"onUpdate:modelValue":o[4]||(o[4]=d=>e.unref(n).widget.props.rangeSeparator=d),placeholder:"填写分隔符"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"开始占位内容"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.startPlaceholder,"onUpdate:modelValue":o[5]||(o[5]=d=>e.unref(n).widget.props.startPlaceholder=d),placeholder:"填写开始占位内容"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"结束占位内容"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.endPlaceholder,"onUpdate:modelValue":o[6]||(o[6]=d=>e.unref(n).widget.props.endPlaceholder=d),placeholder:"填写结束占位内容"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"占位文字"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.placeholder,"onUpdate:modelValue":o[7]||(o[7]=d=>e.unref(n).widget.props.placeholder=d),placeholder:"填写占位文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否必填"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.required,"onUpdate:modelValue":o[8]||(o[8]=d=>e.unref(n).widget.props.required=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否只读"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.readonly,"onUpdate:modelValue":o[9]||(o[9]=d=>e.unref(n).widget.props.readonly=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[10]||(o[10]=d=>e.unref(n).widget.props.disabled=d)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),e5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-form"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-input"),l=e.resolveComponent("common-label-container"),i=e.resolveComponent("el-radio-button"),s=e.resolveComponent("el-radio-group"),c=e.resolveComponent("el-switch"),d=e.resolveComponent("common-api-config");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(l,{label:"表单高度"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(n).widget.props.height,"onUpdate:modelValue":o[0]||(o[0]=u=>e.unref(n).widget.props.height=u),placeholder:"填写表单容器高度"},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"提交按钮文字"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(n).widget.props.submitButtonText,"onUpdate:modelValue":o[1]||(o[1]=u=>e.unref(n).widget.props.submitButtonText=u),placeholder:"填写提交按钮文字"},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"表单类型"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.formType,"onUpdate:modelValue":o[2]||(o[2]=u=>e.unref(n).widget.props.formType=u)},{default:e.withCtx(()=>[e.createVNode(i,{value:"Create",label:"新增"}),e.createVNode(i,{value:"Update",label:"修改"}),e.createVNode(i,{value:"Detail",label:"详情"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(l,{label:"按钮位置"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.buttonAlign,"onUpdate:modelValue":o[3]||(o[3]=u=>e.unref(n).widget.props.buttonAlign=u)},{default:e.withCtx(()=>[e.createVNode(i,{value:"left",label:"左侧"}),e.createVNode(i,{value:"right",label:"右侧"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(l,{label:"底部显示底色"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.hasFooterBg,"onUpdate:modelValue":o[4]||(o[4]=u=>e.unref(n).widget.props.hasFooterBg=u)},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"是否显示底部"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.hasFooter,"onUpdate:modelValue":o[5]||(o[5]=u=>e.unref(n).widget.props.hasFooter=u)},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"显示提交按钮"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.hasSubmitButton,"onUpdate:modelValue":o[6]||(o[6]=u=>e.unref(n).widget.props.hasSubmitButton=u)},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"显示重置按钮"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.hasResetButton,"onUpdate:modelValue":o[7]||(o[7]=u=>e.unref(n).widget.props.hasResetButton=u)},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"新增数据"},{default:e.withCtx(()=>[e.unref(n).widget.props.apiSetCreate?(e.openBlock(),e.createBlock(d,{key:0,designer:t.designer,modelValue:e.unref(n).widget.props.apiSetCreate,"onUpdate:modelValue":o[8]||(o[8]=u=>e.unref(n).widget.props.apiSetCreate=u)},null,8,["designer","modelValue"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(l,{label:"修改数据"},{default:e.withCtx(()=>[e.unref(n).widget.props.apiSetUpdate?(e.openBlock(),e.createBlock(d,{key:0,designer:t.designer,modelValue:e.unref(n).widget.props.apiSetUpdate,"onUpdate:modelValue":o[9]||(o[9]=u=>e.unref(n).widget.props.apiSetUpdate=u)},null,8,["designer","modelValue"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(l,{label:"详情数据"},{default:e.withCtx(()=>[e.unref(n).widget.props.apiSetDetail?(e.openBlock(),e.createBlock(d,{key:0,designer:t.designer,modelValue:e.unref(n).widget.props.apiSetDetail,"onUpdate:modelValue":o[10]||(o[10]=u=>e.unref(n).widget.props.apiSetDetail=u)},null,8,["designer","modelValue"])):e.createCommentVNode("",!0)]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),t5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-homepage"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-input"),l=e.resolveComponent("common-label-container");return e.openBlock(),e.createBlock(l,{label:"页面高度"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(n).widget.props.height,"onUpdate:modelValue":o[0]||(o[0]=i=>e.unref(n).widget.props.height=i),placeholder:"填写页面高度"},null,8,["modelValue"])]),_:1})}}})},Symbol.toStringTag,{value:"Module"})),n5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-input"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input"),c=e.resolveComponent("el-input-number"),d=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=u=>e.unref(n).widget.props.size=u)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"组件类型"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.type,"onUpdate:modelValue":o[1]||(o[1]=u=>e.unref(n).widget.props.type=u)},{default:e.withCtx(()=>[e.createVNode(a,{label:"文字",value:"text"}),e.createVNode(a,{label:"密码",value:"password"}),e.createVNode(a,{label:"文本域",value:"textarea"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"占位文字"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.placeholder,"onUpdate:modelValue":o[2]||(o[2]=u=>e.unref(n).widget.props.placeholder=u),placeholder:"填写占位文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"前置内容文字"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.prependText,"onUpdate:modelValue":o[3]||(o[3]=u=>e.unref(n).widget.props.prependText=u),placeholder:"填写末尾按钮文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"末尾按钮文字"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.appendText,"onUpdate:modelValue":o[4]||(o[4]=u=>e.unref(n).widget.props.appendText=u),placeholder:"填写末尾按钮文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"最大输入长度"},{default:e.withCtx(()=>[e.createVNode(c,{class:"w-full",placeholder:"填写最大输入长度",modelValue:e.unref(n).widget.props.maxlength,"onUpdate:modelValue":o[5]||(o[5]=u=>e.unref(n).widget.props.maxlength=u),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.unref(n).widget.props.type=="textarea"?(e.openBlock(),e.createBlock(i,{key:0,label:"行数"},{default:e.withCtx(()=>[e.createVNode(c,{class:"w-full",placeholder:"填写行数",modelValue:e.unref(n).widget.props.rows,"onUpdate:modelValue":o[6]||(o[6]=u=>e.unref(n).widget.props.rows=u),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(i,{label:"是否去空格"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isTrim,"onUpdate:modelValue":o[7]||(o[7]=u=>e.unref(n).widget.props.isTrim=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否必填"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.required,"onUpdate:modelValue":o[8]||(o[8]=u=>e.unref(n).widget.props.required=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否只读"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.readonly,"onUpdate:modelValue":o[9]||(o[9]=u=>e.unref(n).widget.props.readonly=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[10]||(o[10]=u=>e.unref(n).widget.props.disabled=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"显示限制字数"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.showLimit,"onUpdate:modelValue":o[11]||(o[11]=u=>e.unref(n).widget.props.showLimit=u)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),r5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-modal"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-input"),l=e.resolveComponent("common-label-container"),i=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(l,{label:"弹窗标题"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(n).widget.props.title,"onUpdate:modelValue":o[0]||(o[0]=s=>e.unref(n).widget.props.title=s),placeholder:"填写弹窗标题"},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"弹窗宽度"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(n).widget.props.modalWidth,"onUpdate:modelValue":o[1]||(o[1]=s=>e.unref(n).widget.props.modalWidth=s),placeholder:"填写弹窗宽度"},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"弹窗高度"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(n).widget.props.modalHeight,"onUpdate:modelValue":o[2]||(o[2]=s=>e.unref(n).widget.props.modalHeight=s),placeholder:"填写弹窗高度"},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"是否显示按钮栏"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:e.unref(n).widget.props.hasFooter,"onUpdate:modelValue":o[3]||(o[3]=s=>e.unref(n).widget.props.hasFooter=s)},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"是否隐藏确定键"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:e.unref(n).widget.props.hideConfirm,"onUpdate:modelValue":o[4]||(o[4]=s=>e.unref(n).widget.props.hideConfirm=s)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),o5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-progress"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input-number"),c=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件状态"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.color,"onUpdate:modelValue":o[0]||(o[0]=d=>e.unref(n).widget.props.color=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"primary",value:"#409EFF"}),e.createVNode(a,{label:"success",value:"#67C23A"}),e.createVNode(a,{label:"warning",value:"#E6A23C"}),e.createVNode(a,{label:"danger",value:"#F56C6C"}),e.createVNode(a,{label:"info",value:"#909399"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"组件类型"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.type,"onUpdate:modelValue":o[1]||(o[1]=d=>e.unref(n).widget.props.type=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"直线",value:"line"}),e.createVNode(a,{label:"圆环",value:"circle"}),e.createVNode(a,{label:"仪表盘",value:"dashboard"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"进度条宽"},{default:e.withCtx(()=>[e.createVNode(s,{class:"w-full",placeholder:"填写进度条宽",modelValue:e.unref(n).widget.props.strokeWidth,"onUpdate:modelValue":o[2]||(o[2]=d=>e.unref(n).widget.props.strokeWidth=d),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"文字是否在内"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.textInside,"onUpdate:modelValue":o[3]||(o[3]=d=>e.unref(n).widget.props.textInside=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否有条纹"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.hasStriped,"onUpdate:modelValue":o[4]||(o[4]=d=>e.unref(n).widget.props.hasStriped=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"条纹是否流动"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.hasStripedFlow,"onUpdate:modelValue":o[5]||(o[5]=d=>e.unref(n).widget.props.hasStripedFlow=d)},null,8,["modelValue"])]),_:1}),e.unref(n).widget.props.type!=="line"?(e.openBlock(),e.createBlock(i,{key:0,label:"画布宽度"},{default:e.withCtx(()=>[e.createVNode(s,{class:"w-full",placeholder:"填写画布宽度",modelValue:e.unref(n).widget.props.circleWidth,"onUpdate:modelValue":o[6]||(o[6]=d=>e.unref(n).widget.props.circleWidth=d),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"})),a5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-radio"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=c=>e.unref(n).widget.props.size=c)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否按钮"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.isButton,"onUpdate:modelValue":o[1]||(o[1]=c=>e.unref(n).widget.props.isButton=c)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否块状"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.isBlock,"onUpdate:modelValue":o[2]||(o[2]=c=>e.unref(n).widget.props.isBlock=c)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否必填"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.required,"onUpdate:modelValue":o[3]||(o[3]=c=>e.unref(n).widget.props.required=c)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[4]||(o[4]=c=>e.unref(n).widget.props.disabled=c)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),l5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-rate"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input-number"),c=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=d=>e.unref(n).widget.props.size=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"最大分值"},{default:e.withCtx(()=>[e.createVNode(s,{class:"w-full",placeholder:"填写最大输入长度",modelValue:e.unref(n).widget.props.max,"onUpdate:modelValue":o[1]||(o[1]=d=>e.unref(n).widget.props.max=d),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[2]||(o[2]=d=>e.unref(n).widget.props.disabled=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否可半选"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.allowHalf,"onUpdate:modelValue":o[3]||(o[3]=d=>e.unref(n).widget.props.allowHalf=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否显示分数"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.showScore,"onUpdate:modelValue":o[4]||(o[4]=d=>e.unref(n).widget.props.showScore=d)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),i5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-select"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input"),c=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=d=>e.unref(n).widget.props.size=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"占位文字"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.placeholder,"onUpdate:modelValue":o[1]||(o[1]=d=>e.unref(n).widget.props.placeholder=d),placeholder:"填写占位文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否必填"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.required,"onUpdate:modelValue":o[2]||(o[2]=d=>e.unref(n).widget.props.required=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否可清除"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.clearable,"onUpdate:modelValue":o[3]||(o[3]=d=>e.unref(n).widget.props.clearable=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[4]||(o[4]=d=>e.unref(n).widget.props.disabled=d)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),s5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-selects"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input-number"),c=e.resolveComponent("el-input"),d=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=u=>e.unref(n).widget.props.size=u)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"最多可选"},{default:e.withCtx(()=>[e.createVNode(s,{class:"w-full",placeholder:"填写最多可选个数",modelValue:e.unref(n).widget.props.multipleLimit,"onUpdate:modelValue":o[1]||(o[1]=u=>e.unref(n).widget.props.multipleLimit=u),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"超出个数合并"},{default:e.withCtx(()=>[e.createVNode(s,{class:"w-full",placeholder:"填写超出多少条目合并",modelValue:e.unref(n).widget.props.maxCollapseTags,"onUpdate:modelValue":o[2]||(o[2]=u=>e.unref(n).widget.props.maxCollapseTags=u),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"占位文字"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.placeholder,"onUpdate:modelValue":o[3]||(o[3]=u=>e.unref(n).widget.props.placeholder=u),placeholder:"填写占位文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否必填"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.required,"onUpdate:modelValue":o[4]||(o[4]=u=>e.unref(n).widget.props.required=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否可清除"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.clearable,"onUpdate:modelValue":o[5]||(o[5]=u=>e.unref(n).widget.props.clearable=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[6]||(o[6]=u=>e.unref(n).widget.props.disabled=u)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),d5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-switch"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input"),c=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=d=>e.unref(n).widget.props.size=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"打开文字"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.activeText,"onUpdate:modelValue":o[1]||(o[1]=d=>e.unref(n).widget.props.activeText=d),placeholder:"填写打开文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"关闭文字"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.inactiveText,"onUpdate:modelValue":o[2]||(o[2]=d=>e.unref(n).widget.props.inactiveText=d),placeholder:"填写关闭文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[3]||(o[3]=d=>e.unref(n).widget.props.disabled=d)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),c5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-time"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input"),c=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=d=>e.unref(n).widget.props.size=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"组件类型"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.type,"onUpdate:modelValue":o[1]||(o[1]=d=>e.unref(n).widget.props.type=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"时间",value:"time"}),e.createVNode(a,{label:"时间区间",value:"timerange"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"显示格式"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.format,"onUpdate:modelValue":o[2]||(o[2]=d=>e.unref(n).widget.props.format=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"HH:mm:ss",value:"HH:mm:ss"}),e.createVNode(a,{label:"hh:mm:ss",value:"hh:mm:ss"}),e.createVNode(a,{label:"HH时mm分ss秒",value:"HH时mm分ss秒"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"输出格式"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.valueFormat,"onUpdate:modelValue":o[3]||(o[3]=d=>e.unref(n).widget.props.valueFormat=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"HH:mm:ss",value:"HH:mm:ss"}),e.createVNode(a,{label:"hh:mm:ss",value:"hh:mm:ss"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"分隔符"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.rangeSeparator,"onUpdate:modelValue":o[4]||(o[4]=d=>e.unref(n).widget.props.rangeSeparator=d),placeholder:"填写分隔符"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"开始占位内容"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.startPlaceholder,"onUpdate:modelValue":o[5]||(o[5]=d=>e.unref(n).widget.props.startPlaceholder=d),placeholder:"填写开始占位内容"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"结束占位内容"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.endPlaceholder,"onUpdate:modelValue":o[6]||(o[6]=d=>e.unref(n).widget.props.endPlaceholder=d),placeholder:"填写结束占位内容"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"占位文字"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.placeholder,"onUpdate:modelValue":o[7]||(o[7]=d=>e.unref(n).widget.props.placeholder=d),placeholder:"填写占位文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否必填"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.required,"onUpdate:modelValue":o[8]||(o[8]=d=>e.unref(n).widget.props.required=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否只读"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.readonly,"onUpdate:modelValue":o[9]||(o[9]=d=>e.unref(n).widget.props.readonly=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[10]||(o[10]=d=>e.unref(n).widget.props.disabled=d)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"}));return UL});
|
57
|
+
})()`)(f,r,this)})}getWidgetById(n){return this.widgetMap.get(n)}updateByHistory(n){this.isHistory=!0,this.$utils.destructuring(this.widgetConfig,n)}updateWidget(n,r,o){const a=this.getWidgetById(n);if(a){if(a.id!==r.id&&this.widgetIds.includes(r.id)&&!o){Xo.warning("已经存在相同的id的组件,组件id不允许重复");return}n==="homepage"&&(r.id!==n&&Xo.warning("主页面的id不允许修改"),r.id=r.type="homepage"),this.$utils.destructuring(a,r)}else console.warn(`Widget with id ${n} not found.`)}rebuildWidgetMap(){this.widgetMap.clear(),this.widgetIds=[],this.buildWidgetMap(this.widgetConfig)}buildWidgetMap(n){this.widgetMap.set(n.id,n),this.widgetIds.push(n.id),n.widgetList&&n.widgetList.length&&n.widgetList.forEach(r=>{this.buildWidgetMap(r)})}setChosenId(n){this.widgetConfig.chosenId=n}getChosenId(){return this.widgetConfig.chosenId}getChosenInitData(n){n=this.$utils.clone(n,!0),n.id=this.getUniqueId(n.type),this.setChosenId(n.id);let r=["canAddDataTableQuery","canAddDataTableList","addToPanel","active"],o=a=>{delete n[a]};return r.forEach(a=>{o(a)}),n}getUniqueId(n){return n+"_"+Math.floor(new Date().getTime()%1e5)+this.$utils.uniqueId()}getWidgetList(){return this.widgetConfig.widgetList}getWidgetConfig(){return this.widgetConfig}updateWidgetConfig(n){this.widgetConfig=n}getParentWidgetById(n){function r(o){for(const a of o){if(a.id===n){let l=o.findIndex(i=>i.id===n);return{widgetList:o,index:l}}if(a.widgetList&&a.widgetList.length>0){const l=r(a.widgetList);if(l)return l}}return null}return r(this.widgetConfig.widgetList)}}const hm=Object.assign({name:"sunForm"},{__name:"show",props:{widgetConfig:{type:Object,default:null},httpSuccessHandle:{type:Function,default:null},httpErrorHandle:{type:Function,default:null},httpBeforeSendHandle:{type:Function,default:null},baseUrl:{type:String,default:""},headers:{type:Object,default:{}}},setup(t){let n=t,r=e.reactive(new gm({showMode:!0,widgetConfig:n.widgetConfig,httpSuccessHandle:n.httpSuccessHandle,httpErrorHandle:n.httpErrorHandle,httpBeforeSendHandle:n.httpBeforeSendHandle,baseUrl:n.baseUrl,headers:n.headers}));return(o,a)=>{const l=e.resolveComponent("widget-homepage"),i=e.resolveComponent("commonContainer");return e.openBlock(),e.createBlock(i,{class:"h-full w-full",widget:e.unref(r).widgetConfig,designer:e.unref(r)},{default:e.withCtx(()=>[e.createVNode(l,{widget:e.unref(r).widgetConfig,designer:e.unref(r)},null,8,["widget","designer"])]),_:1},8,["widget","designer"])}}}),dn=t=>(e.pushScopeId("data-v-3669cbf8"),t=t(),e.popScopeId(),t),VL={class:"h-full bg-gray-100 flex flex-col"},xL={class:"head px-4 py-2 bg-gray-50 flex justify-between items-center"},EL=dn(()=>e.createElementVNode("div",{class:"logo"},[e.createElementVNode("img",{class:"h-[32px]",src:Cy,alt:""})],-1)),NL={class:"menu"},SL=dn(()=>e.createElementVNode("i",{class:e.normalizeClass("iconfont icon-xianghou")},null,-1)),$L=dn(()=>e.createElementVNode("i",{class:e.normalizeClass("iconfont icon-xiangqian")},null,-1)),kL={class:"content flex-1 flex border-t border-gray-200 overflow-hidden"},TL={class:"left flex bg-gray-50 border-r border-gray-200 relative"},OL={class:"w-12 border-r border-gray-200 pt-5"},IL=[dn(()=>e.createElementVNode("i",{class:e.normalizeClass("iconfont icon-zujian")},null,-1))],BL=[dn(()=>e.createElementVNode("i",{class:e.normalizeClass("iconfont icon-dagang")},null,-1))],vL=[dn(()=>e.createElementVNode("i",{class:e.normalizeClass("iconfont icon-yuanma")},null,-1))],DL={class:"absolute h-full w-[12px] right-[-10px] z-20 flex justify-center items-center"},AL={class:"mid flex-1 py-2 px-2 box-border w-full h-full overflow-auto"},RL={class:"inner w-full h-full bg-gray-50"},FL={class:"right bg-gray-50 w-80 border-l border-gray-200 overflow-y-auto overflow-x-hidden"},ML={class:"drawer"},PL=dn(()=>e.createElementVNode("span",null,"预览表单",-1)),ym=He(Object.assign({name:"designer"},{__name:"index",props:{widgetConfig:{type:Object,default:null},httpSuccessHandle:{type:Function,default:null},httpErrorHandle:{type:Function,default:null},httpBeforeSendHandle:{type:Function,default:null},baseUrl:{type:String,default:""},headers:{type:Object,default:{}}},setup(t,{expose:n}){let r=t,o=r.widgetConfig||ze.homepage,a=e.ref(!1),l=null,i=e.ref(!1),s=e.reactive(new gm({widgetConfig:o,httpSuccessHandle:r.httpSuccessHandle,httpErrorHandle:r.httpErrorHandle,httpBeforeSendHandle:r.httpBeforeSendHandle,baseUrl:r.baseUrl,headers:r.headers})),c=e.reactive({activeSidebar:0});const d=()=>{l=s.$utils.clone(s.widgetConfig,!0),a.value=!0},u=()=>{s.updateWidget("homepage",s.$utils.clone(ze.homepage,!0),!0)},f=_=>{s.historyIndex=_.index,s.updateByHistory(_.widgetConfig)},p=({row:_,rowIndex:V})=>{if(s.historyIndex===V)return{color:"rgb(85, 132, 255)",fontWeight:"bold"}},h=()=>{s.historyIndex>0&&(s.historyIndex--,s.updateByHistory(s.historyList[s.historyIndex].widgetConfig))},m=()=>{s.historyIndex<s.historyList.length-1&&(s.historyIndex++,s.updateByHistory(s.historyList[s.historyIndex].widgetConfig))},g=()=>{let _=s.chosenWidget;if(!_.type)return s.$message.warning("请选择组件");localStorage.getItem(_.type)?s.$confirm("已存在"+_.displayName+"模版,是否覆盖?","提示").then(()=>{localStorage.setItem(_.type,JSON.stringify(_))}).catch(()=>{}):localStorage.setItem(_.type,JSON.stringify(_))},b=()=>{let _=s.chosenWidget;if(!_.type)return s.$message.error("请选择组件");if(localStorage.getItem(_.type)){let V=JSON.parse(localStorage.getItem(_.type));s.updateWidget(_.id,V,!0)}else s.$notify.error("不存在"+widget.displayName+"模版")};return n({designer:s}),(_,V)=>{const w=e.resolveComponent("el-button"),C=e.resolveComponent("el-table-column"),E=e.resolveComponent("el-table"),$=e.resolveComponent("el-popover"),T=e.resolveComponent("el-button-group"),F=e.resolveComponent("CaretLeft"),v=e.resolveComponent("el-icon"),O=e.resolveComponent("CaretRight"),B=e.resolveComponent("vxe-modal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",VL,[e.createElementVNode("div",xL,[EL,e.createElementVNode("div",NL,[e.createVNode($,{placement:"bottom",width:360,trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(w,{class:"mr-3"},{default:e.withCtx(()=>[e.createTextVNode("历史记录")]),_:1})]),default:e.withCtx(()=>[e.createVNode(E,{"row-style":p,data:e.unref(s).historyList,onRowClick:f,"max-height":"300"},{default:e.withCtx(()=>[e.createVNode(C,{property:"id",label:"变更组件"},{default:e.withCtx(N=>[e.createElementVNode("div",null,e.toDisplayString(N.row.widgetConfig.chosenId),1)]),_:1}),e.createVNode(C,{width:"100",property:"time",label:"操作时间"})]),_:1},8,["data"])]),_:1}),e.createVNode(T,{class:"mr-3"},{default:e.withCtx(()=>[e.createVNode(w,{onClick:h,disabled:e.unref(s).historyIndex===0},{default:e.withCtx(()=>[SL]),_:1},8,["disabled"]),e.createVNode(w,{onClick:m,disabled:e.unref(s).historyIndex===e.unref(s).historyList.length-1},{default:e.withCtx(()=>[$L]),_:1},8,["disabled"])]),_:1}),e.createVNode(T,{class:"mx-2"},{default:e.withCtx(()=>[e.createVNode(w,{onClick:g},{default:e.withCtx(()=>[e.createTextVNode("存为模版")]),_:1}),e.createVNode(w,{onClick:b},{default:e.withCtx(()=>[e.createTextVNode("引入模版")]),_:1})]),_:1}),e.createVNode(w,{onClick:u},{default:e.withCtx(()=>[e.createTextVNode("重置")]),_:1}),e.createVNode(w,{type:"primary",onClick:d},{default:e.withCtx(()=>[e.createTextVNode("预览")]),_:1})])]),e.createElementVNode("div",kL,[e.createElementVNode("div",TL,[e.createElementVNode("div",OL,[e.createElementVNode("div",{class:e.normalizeClass(["btn_item",{active:e.unref(c).activeSidebar===0}]),onClick:V[0]||(V[0]=N=>e.unref(c).activeSidebar=0)},IL,2),e.createElementVNode("div",{class:e.normalizeClass(["btn_item",{active:e.unref(c).activeSidebar===1}]),onClick:V[1]||(V[1]=N=>e.unref(c).activeSidebar=1)},BL,2),e.createElementVNode("div",{class:e.normalizeClass(["btn_item",{active:e.unref(c).activeSidebar===2}]),onClick:V[2]||(V[2]=N=>e.unref(c).activeSidebar=2)},vL,2)]),e.createElementVNode("div",{class:"w-80 overflow-hidden",style:e.normalizeStyle({width:e.unref(i)?0:""})},[e.createVNode(Ay,{designer:e.unref(s),activeSidebar:e.unref(c).activeSidebar},null,8,["designer","activeSidebar"])],4),e.createElementVNode("div",DL,[e.createElementVNode("div",{onClick:V[3]||(V[3]=N=>e.isRef(i)?i.value=!e.unref(i):i=!e.unref(i)),class:"w-full h-[100px] opacity-40 hover:opacity-100 flex items-center justify-center bg-blue-700 rounded-r-md cursor-pointer"},[e.unref(i)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(v,{key:0,color:"#ffffff",size:"12"},{default:e.withCtx(()=>[e.createVNode(F)]),_:1})),e.unref(i)?(e.openBlock(),e.createBlock(v,{key:1,color:"#ffffff",size:"12"},{default:e.withCtx(()=>[e.createVNode(O)]),_:1})):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",AL,[e.createElementVNode("div",RL,[e.createVNode(Ry,{designer:e.unref(s)},null,8,["designer"])])]),e.createElementVNode("div",FL,[e.unref(s).chosenWidget?(e.openBlock(),e.createBlock(My,{key:0,designer:e.unref(s)},null,8,["designer"])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",ML,[e.createVNode(B,{modelValue:e.unref(a),"onUpdate:modelValue":V[4]||(V[4]=N=>e.isRef(a)?a.value=N:a=N),width:"99%",height:"99%","show-footer":""},{title:e.withCtx(()=>[PL]),default:e.withCtx(()=>[e.unref(a)?(e.openBlock(),e.createBlock(hm,{key:0,widgetConfig:e.unref(l),httpSuccessHandle:e.unref(r).httpSuccessHandle,httpErrorHandle:e.unref(r).httpErrorHandle,httpBeforeSendHandle:e.unref(r).httpBeforeSendHandle,baseUrl:e.unref(r).baseUrl,headers:e.unref(r).headers},null,8,["widgetConfig","httpSuccessHandle","httpErrorHandle","httpBeforeSendHandle","baseUrl","headers"])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])])],64)}}}),[["__scopeId","data-v-3669cbf8"]]);ym.install=function(t){t.use(Gi),t.use(Xi)};let LL=[ym,hm];const UL={install:t=>{t.use(Gi),t.use(Xi),LL.forEach(n=>{t.component(n.name,n)})}},zL=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-button"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;const r=o=>!!n.widget.props.hasOwnProperty(o);return(o,a)=>{const l=e.resolveComponent("common-icon-choose"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-option"),c=e.resolveComponent("el-select"),d=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"图标选择"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.icon,"onUpdate:modelValue":a[0]||(a[0]=u=>e.unref(n).widget.props.icon=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":a[1]||(a[1]=u=>e.unref(n).widget.props.size=u)},{default:e.withCtx(()=>[e.createVNode(s,{label:"大尺寸",value:"large"}),e.createVNode(s,{label:"默认",value:"default"}),e.createVNode(s,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"组件对齐"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.align,"onUpdate:modelValue":a[2]||(a[2]=u=>e.unref(n).widget.props.align=u)},{default:e.withCtx(()=>[e.createVNode(s,{label:"居左",value:"left"}),e.createVNode(s,{label:"居中",value:"center"}),e.createVNode(s,{label:"居右",value:"right"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"组件类型"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.type,"onUpdate:modelValue":a[3]||(a[3]=u=>e.unref(n).widget.props.type=u)},{default:e.withCtx(()=>[e.createVNode(s,{label:"primary",value:"primary"}),e.createVNode(s,{label:"success",value:"success"}),e.createVNode(s,{label:"info",value:"info"}),e.createVNode(s,{label:"warning",value:"warning"}),e.createVNode(s,{label:"danger",value:"danger"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否朴素按钮"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isPlain,"onUpdate:modelValue":a[4]||(a[4]=u=>e.unref(n).widget.props.isPlain=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否文字按钮"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isText,"onUpdate:modelValue":a[5]||(a[5]=u=>e.unref(n).widget.props.isText=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否背景颜色"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isTextBgColor,"onUpdate:modelValue":a[6]||(a[6]=u=>e.unref(n).widget.props.isTextBgColor=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否链接按钮"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isLink,"onUpdate:modelValue":a[7]||(a[7]=u=>e.unref(n).widget.props.isLink=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否圆角按钮"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isRound,"onUpdate:modelValue":a[8]||(a[8]=u=>e.unref(n).widget.props.isRound=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否圆形按钮"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isCircle,"onUpdate:modelValue":a[9]||(a[9]=u=>e.unref(n).widget.props.isCircle=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否加载中"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isLoading,"onUpdate:modelValue":a[10]||(a[10]=u=>e.unref(n).widget.props.isLoading=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":a[11]||(a[11]=u=>e.unref(n).widget.props.disabled=u)},null,8,["modelValue"])]),_:1}),r("isSide")?(e.openBlock(),e.createBlock(i,{key:0,label:"是否侧边按钮"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isSide,"onUpdate:modelValue":a[12]||(a[12]=u=>e.unref(n).widget.props.isSide=u)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"})),HL=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-checkbox"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=c=>e.unref(n).widget.props.size=c)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否按钮"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.isButton,"onUpdate:modelValue":o[1]||(o[1]=c=>e.unref(n).widget.props.isButton=c)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否块状"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.isBlock,"onUpdate:modelValue":o[2]||(o[2]=c=>e.unref(n).widget.props.isBlock=c)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否必填"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.required,"onUpdate:modelValue":o[3]||(o[3]=c=>e.unref(n).widget.props.required=c)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[4]||(o[4]=c=>e.unref(n).widget.props.disabled=c)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),bm=t=>(e.pushScopeId("data-v-75dc2686"),t=t(),e.popScopeId(),t),qL=bm(()=>e.createElementVNode("span",null,"复杂表头配置",-1)),jL={key:0,class:"flex h-full flex-col"},WL={class:"flex-1 flex items-center justify-between"},YL=bm(()=>e.createElementVNode("span",null,"选择表头",-1)),KL={key:0,class:"flex h-full"},GL={class:"w-full h-full"},JL=He(Object.assign({name:"headerTreeConfig"},{__name:"headerTreeConfig",props:{modelValue:[Object,null],widget:{type:Object}},emits:["update:modelValue"],setup(t,{emit:n}){let r=t;r.designer,e.ref(null);let o=e.ref({});const a=e.ref(JSON.parse(JSON.stringify(r.widget.props.headerTree))),l=e.ref(r.widget.widgetList.filter(_=>_.compType===2));JSON.parse(JSON.stringify(l));const i=(_,V)=>{_.push({id:new Date().getTime(),children:[],label:null})},s=_=>{o.value=_,p.value=!0},c=_=>{o.value.label=_.props.label,o.value.id=_.id,o.value.isComponent=!0,p.value=!1},d=(_,V)=>{const w=_.parent,C=w.data.children||w.data,E=C.findIndex($=>$.id===V.id);C.splice(E,1),a.value=[...a.value]},u={children:"children",label:"label"};let f=e.ref(!1),p=e.ref(!1);const h=({row:_})=>{console.log(_)},m=()=>{f.value=!0},g=()=>{f.value=!1},b=()=>{f.value=!1,r.widget.props.headerTree=a.value};return(_,V)=>{const w=e.resolveComponent("el-button"),C=e.resolveComponent("el-input"),E=e.resolveComponent("el-button-group"),$=e.resolveComponent("el-tree"),T=e.resolveComponent("vxe-modal"),F=e.resolveComponent("vxe-column"),v=e.resolveComponent("vxe-table");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(w,{plain:"",type:e.unref(r).widget.props.headerTree.length?"primary":"",icon:"Setting",onClick:m},{default:e.withCtx(()=>[e.createTextVNode(" 复杂表头 ")]),_:1},8,["type"]),e.createVNode(T,{transfer:"",modelValue:e.unref(f),"onUpdate:modelValue":V[1]||(V[1]=O=>e.isRef(f)?f.value=O:f=O),width:"800px",height:"700px","show-footer":"",onClose:g},{title:e.withCtx(()=>[qL]),default:e.withCtx(()=>[e.unref(f)?(e.openBlock(),e.createElementBlock("div",jL,[e.createVNode(w,{type:"primary",size:"small",class:"w-20 mb-2",onClick:V[0]||(V[0]=O=>i(a.value))},{default:e.withCtx(()=>[e.createTextVNode("一级添加")]),_:1}),e.createVNode($,{data:a.value,props:u,"node-key":"id","expand-on-click-node":!1,"default-expand-all":"",class:"w-full mt-2 flex-1 overflow-auto"},{default:e.withCtx(({node:O,data:B})=>[e.createElementVNode("div",WL,[e.createElementVNode("div",null,[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(B.children&&B.children.length?"分类":"组件")+" ",1),e.createVNode(C,{modelValue:B.label,"onUpdate:modelValue":N=>B.label=N,size:"small",class:"w-[120px]"},null,8,["modelValue","onUpdate:modelValue"])])]),e.createElementVNode("div",null,[e.createVNode(E,null,{default:e.withCtx(()=>[e.createVNode(w,{onClick:N=>i(B.children),link:"",type:"primary",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("新增")]),_:2},1032,["onClick"]),e.createVNode(w,{link:"",type:"danger",onClick:N=>d(O,B),size:"small"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"]),e.createVNode(w,{disabled:B.children&&!!B.children.length,onClick:N=>s(B),link:"",type:"success",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("选择")]),_:2},1032,["disabled","onClick"])]),_:2},1024)])])]),_:1},8,["data"])])):e.createCommentVNode("",!0)]),footer:e.withCtx(()=>[e.createVNode(w,{icon:"Close",size:"small",onClick:g},{default:e.withCtx(()=>[e.createTextVNode("关闭")]),_:1}),e.createVNode(w,{icon:"Check",type:"primary",size:"small",onClick:b},{default:e.withCtx(()=>[e.createTextVNode("确认")]),_:1})]),_:1},8,["modelValue"]),e.createVNode(T,{transfer:"",modelValue:e.unref(p),"onUpdate:modelValue":V[2]||(V[2]=O=>e.isRef(p)?p.value=O:p=O),width:"700px",height:"600px"},{title:e.withCtx(()=>[YL]),default:e.withCtx(()=>[e.unref(p)?(e.openBlock(),e.createElementBlock("div",KL,[e.createElementVNode("div",GL,[e.createVNode(v,{ref:"mainTable",data:l.value,height:"auto","row-config":{isCurrent:!0,isHover:!0},onCurrentChange:h,size:"mini",border:"","scroll-y":{enabled:!0},"column-config":{resizable:!0},align:"left",class:"w-full"},{default:e.withCtx(()=>[e.createVNode(F,{field:"name",title:"表头标签"},{default:e.withCtx(({row:O})=>[e.createElementVNode("div",null,e.toDisplayString(O.props.label),1)]),_:1}),e.createVNode(F,{field:"name",title:"表头字段"},{default:e.withCtx(({row:O})=>[e.createElementVNode("div",null,e.toDisplayString(O.props.zdname),1)]),_:1}),e.createVNode(F,{field:"name",title:"组件id",width:"180"},{default:e.withCtx(({row:O})=>[e.createElementVNode("div",null,e.toDisplayString(O.id),1)]),_:1}),e.createVNode(F,{field:"name",title:"组件类型"},{default:e.withCtx(({row:O})=>[e.createElementVNode("div",null,e.toDisplayString(O.displayName),1)]),_:1}),e.createVNode(F,{title:"操作栏",width:"60",align:"center"},{default:e.withCtx(({row:O})=>[e.createVNode(w,{link:"",type:"primary",size:"small",onClick:B=>c(O)},{default:e.withCtx(()=>[e.createTextVNode("选择")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])])])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])],64)}}}),[["__scopeId","data-v-75dc2686"]]),ZL={key:0},XL=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-datatable"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input"),c=e.resolveComponent("el-input-number"),d=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=u=>e.unref(n).widget.props.size=u)},{default:e.withCtx(()=>[e.createVNode(a,{label:"默认",value:"medium"}),e.createVNode(a,{label:"小尺寸",value:"small"}),e.createVNode(a,{label:"超小尺寸",value:"mini"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"表格高度"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.height,"onUpdate:modelValue":o[1]||(o[1]=u=>e.unref(n).widget.props.height=u),placeholder:"填写表格高度"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"操作栏宽度"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.oprateWidth,"onUpdate:modelValue":o[2]||(o[2]=u=>e.unref(n).widget.props.oprateWidth=u),placeholder:"不填则按默认宽度"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"数据字段"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.rows,"onUpdate:modelValue":o[3]||(o[3]=u=>e.unref(n).widget.props.rows=u),placeholder:"数据字段"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"总数字段"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.count,"onUpdate:modelValue":o[4]||(o[4]=u=>e.unref(n).widget.props.count=u),placeholder:"总数字段"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"分页字段"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.page,"onUpdate:modelValue":o[5]||(o[5]=u=>e.unref(n).widget.props.page=u),placeholder:"分页字段"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"页数字段"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.limit,"onUpdate:modelValue":o[6]||(o[6]=u=>e.unref(n).widget.props.limit=u),placeholder:"页数字段"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"默认页数"},{default:e.withCtx(()=>[e.createVNode(c,{class:"w-full",placeholder:"默认页数",modelValue:e.unref(n).widget.props.pageDefault,"onUpdate:modelValue":o[7]||(o[7]=u=>e.unref(n).widget.props.pageDefault=u),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"对齐方式"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.align,"onUpdate:modelValue":o[8]||(o[8]=u=>e.unref(n).widget.props.align=u)},{default:e.withCtx(()=>[e.createVNode(a,{label:"中间",value:"center"}),e.createVNode(a,{label:"左侧",value:"left"}),e.createVNode(a,{label:"右侧",value:"right"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否单选"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.singleselect,"onUpdate:modelValue":o[9]||(o[9]=u=>e.unref(n).widget.props.singleselect=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否分页"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.hasPage,"onUpdate:modelValue":o[10]||(o[10]=u=>e.unref(n).widget.props.hasPage=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"初始加载数据"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.initLoadData,"onUpdate:modelValue":o[11]||(o[11]=u=>e.unref(n).widget.props.initLoadData=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"内容过长隐藏"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.showOverFlow,"onUpdate:modelValue":o[12]||(o[12]=u=>e.unref(n).widget.props.showOverFlow=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否有斑马线"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isStripe,"onUpdate:modelValue":o[13]||(o[13]=u=>e.unref(n).widget.props.isStripe=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"隐藏选择栏"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isHideChoose,"onUpdate:modelValue":o[14]||(o[14]=u=>e.unref(n).widget.props.isHideChoose=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"收缩操作栏"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.hideHandleBtn,"onUpdate:modelValue":o[15]||(o[15]=u=>e.unref(n).widget.props.hideHandleBtn=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否树形表格"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.treeMode,"onUpdate:modelValue":o[16]||(o[16]=u=>e.unref(n).widget.props.treeMode=u)},null,8,["modelValue"])]),_:1}),e.unref(n).widget.props.treeMode?(e.openBlock(),e.createElementBlock("div",ZL,[e.createVNode(i,{label:"本级树节点"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.treeRowField,"onUpdate:modelValue":o[17]||(o[17]=u=>e.unref(n).widget.props.treeRowField=u),placeholder:"本级树节点"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"父级树节点"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.treeParentField,"onUpdate:modelValue":o[18]||(o[18]=u=>e.unref(n).widget.props.treeParentField=u),placeholder:"父级树节点"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"树子节点容器"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.treeChildrenField,"onUpdate:modelValue":o[19]||(o[19]=u=>e.unref(n).widget.props.treeChildrenField=u),placeholder:"树子节点容器"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否扁平数据"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.treeTransform,"onUpdate:modelValue":o[20]||(o[20]=u=>e.unref(n).widget.props.treeTransform=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否展开全部"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.treeExpandAll,"onUpdate:modelValue":o[21]||(o[21]=u=>e.unref(n).widget.props.treeExpandAll=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否手风琴"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.treeAccordion,"onUpdate:modelValue":o[22]||(o[22]=u=>e.unref(n).widget.props.treeAccordion=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否带连接线"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isLine,"onUpdate:modelValue":o[23]||(o[23]=u=>e.unref(n).widget.props.isLine=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否带连接线"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isLine,"onUpdate:modelValue":o[24]||(o[24]=u=>e.unref(n).widget.props.isLine=u)},null,8,["modelValue"])]),_:1})])):e.createCommentVNode("",!0),e.createVNode(i,{label:"复杂表头设置"},{default:e.withCtx(()=>[e.createVNode(JL,{widget:e.unref(n).widget},null,8,["widget"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),QL=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-date"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input"),c=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=d=>e.unref(n).widget.props.size=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"组件类型"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.type,"onUpdate:modelValue":o[1]||(o[1]=d=>e.unref(n).widget.props.type=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"日期",value:"date"}),e.createVNode(a,{label:"年",value:"year"}),e.createVNode(a,{label:"月",value:"month"}),e.createVNode(a,{label:"周",value:"week"}),e.createVNode(a,{label:"日期时间",value:"datetime"}),e.createVNode(a,{label:"日期区间",value:"daterange"}),e.createVNode(a,{label:"日期时间区间",value:"datetimerange"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"显示格式"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.format,"onUpdate:modelValue":o[2]||(o[2]=d=>e.unref(n).widget.props.format=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"YYYY",value:"YYYY"}),e.createVNode(a,{label:"YYYY-MM",value:"YYYY-MM"}),e.createVNode(a,{label:"YYYY-MM-DD",value:"YYYY-MM-DD"}),e.createVNode(a,{label:"YYYY/MM/DD",value:"YYYY/MM/DD"}),e.createVNode(a,{label:"YYYY年MM月DD",value:"YYYY年MM月DD"}),e.createVNode(a,{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"}),e.createVNode(a,{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"}),e.createVNode(a,{label:"YYYY-MM-DD hh:mm:ss",value:"YYYY-MM-DD hh:mm:ss"}),e.createVNode(a,{label:"YYYY/MM/DD hh:mm:ss",value:"YYYY/MM/DD hh:mm:ss"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"输出格式"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.valueFormat,"onUpdate:modelValue":o[3]||(o[3]=d=>e.unref(n).widget.props.valueFormat=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"YYYY",value:"YYYY"}),e.createVNode(a,{label:"YYYY-MM",value:"YYYY-MM"}),e.createVNode(a,{label:"YYYY-MM-DD",value:"YYYY-MM-DD"}),e.createVNode(a,{label:"YYYY/MM/DD",value:"YYYY/MM/DD"}),e.createVNode(a,{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"}),e.createVNode(a,{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"}),e.createVNode(a,{label:"YYYY-MM-DD hh:mm:ss",value:"YYYY-MM-DD hh:mm:ss"}),e.createVNode(a,{label:"YYYY/MM/DD hh:mm:ss",value:"YYYY/MM/DD hh:mm:ss"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"分隔符"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.rangeSeparator,"onUpdate:modelValue":o[4]||(o[4]=d=>e.unref(n).widget.props.rangeSeparator=d),placeholder:"填写分隔符"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"开始占位内容"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.startPlaceholder,"onUpdate:modelValue":o[5]||(o[5]=d=>e.unref(n).widget.props.startPlaceholder=d),placeholder:"填写开始占位内容"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"结束占位内容"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.endPlaceholder,"onUpdate:modelValue":o[6]||(o[6]=d=>e.unref(n).widget.props.endPlaceholder=d),placeholder:"填写结束占位内容"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"占位文字"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.placeholder,"onUpdate:modelValue":o[7]||(o[7]=d=>e.unref(n).widget.props.placeholder=d),placeholder:"填写占位文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否必填"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.required,"onUpdate:modelValue":o[8]||(o[8]=d=>e.unref(n).widget.props.required=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否只读"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.readonly,"onUpdate:modelValue":o[9]||(o[9]=d=>e.unref(n).widget.props.readonly=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[10]||(o[10]=d=>e.unref(n).widget.props.disabled=d)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),e5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-form"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-input"),l=e.resolveComponent("common-label-container"),i=e.resolveComponent("el-radio-button"),s=e.resolveComponent("el-radio-group"),c=e.resolveComponent("el-switch"),d=e.resolveComponent("common-api-config");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(l,{label:"表单高度"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(n).widget.props.height,"onUpdate:modelValue":o[0]||(o[0]=u=>e.unref(n).widget.props.height=u),placeholder:"填写表单容器高度"},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"提交按钮文字"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(n).widget.props.submitButtonText,"onUpdate:modelValue":o[1]||(o[1]=u=>e.unref(n).widget.props.submitButtonText=u),placeholder:"填写提交按钮文字"},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"表单类型"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.formType,"onUpdate:modelValue":o[2]||(o[2]=u=>e.unref(n).widget.props.formType=u)},{default:e.withCtx(()=>[e.createVNode(i,{value:"Create",label:"新增"}),e.createVNode(i,{value:"Update",label:"修改"}),e.createVNode(i,{value:"Detail",label:"详情"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(l,{label:"按钮位置"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.buttonAlign,"onUpdate:modelValue":o[3]||(o[3]=u=>e.unref(n).widget.props.buttonAlign=u)},{default:e.withCtx(()=>[e.createVNode(i,{value:"left",label:"左侧"}),e.createVNode(i,{value:"right",label:"右侧"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(l,{label:"底部显示底色"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.hasFooterBg,"onUpdate:modelValue":o[4]||(o[4]=u=>e.unref(n).widget.props.hasFooterBg=u)},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"是否显示底部"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.hasFooter,"onUpdate:modelValue":o[5]||(o[5]=u=>e.unref(n).widget.props.hasFooter=u)},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"显示提交按钮"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.hasSubmitButton,"onUpdate:modelValue":o[6]||(o[6]=u=>e.unref(n).widget.props.hasSubmitButton=u)},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"显示重置按钮"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.hasResetButton,"onUpdate:modelValue":o[7]||(o[7]=u=>e.unref(n).widget.props.hasResetButton=u)},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"新增数据"},{default:e.withCtx(()=>[e.unref(n).widget.props.apiSetCreate?(e.openBlock(),e.createBlock(d,{key:0,designer:t.designer,modelValue:e.unref(n).widget.props.apiSetCreate,"onUpdate:modelValue":o[8]||(o[8]=u=>e.unref(n).widget.props.apiSetCreate=u)},null,8,["designer","modelValue"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(l,{label:"修改数据"},{default:e.withCtx(()=>[e.unref(n).widget.props.apiSetUpdate?(e.openBlock(),e.createBlock(d,{key:0,designer:t.designer,modelValue:e.unref(n).widget.props.apiSetUpdate,"onUpdate:modelValue":o[9]||(o[9]=u=>e.unref(n).widget.props.apiSetUpdate=u)},null,8,["designer","modelValue"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(l,{label:"详情数据"},{default:e.withCtx(()=>[e.unref(n).widget.props.apiSetDetail?(e.openBlock(),e.createBlock(d,{key:0,designer:t.designer,modelValue:e.unref(n).widget.props.apiSetDetail,"onUpdate:modelValue":o[10]||(o[10]=u=>e.unref(n).widget.props.apiSetDetail=u)},null,8,["designer","modelValue"])):e.createCommentVNode("",!0)]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),t5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-homepage"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-input"),l=e.resolveComponent("common-label-container");return e.openBlock(),e.createBlock(l,{label:"页面高度"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(n).widget.props.height,"onUpdate:modelValue":o[0]||(o[0]=i=>e.unref(n).widget.props.height=i),placeholder:"填写页面高度"},null,8,["modelValue"])]),_:1})}}})},Symbol.toStringTag,{value:"Module"})),n5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-input"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input"),c=e.resolveComponent("el-input-number"),d=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=u=>e.unref(n).widget.props.size=u)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"组件类型"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.type,"onUpdate:modelValue":o[1]||(o[1]=u=>e.unref(n).widget.props.type=u)},{default:e.withCtx(()=>[e.createVNode(a,{label:"文字",value:"text"}),e.createVNode(a,{label:"密码",value:"password"}),e.createVNode(a,{label:"文本域",value:"textarea"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"占位文字"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.placeholder,"onUpdate:modelValue":o[2]||(o[2]=u=>e.unref(n).widget.props.placeholder=u),placeholder:"填写占位文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"前置内容文字"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.prependText,"onUpdate:modelValue":o[3]||(o[3]=u=>e.unref(n).widget.props.prependText=u),placeholder:"填写末尾按钮文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"末尾按钮文字"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.appendText,"onUpdate:modelValue":o[4]||(o[4]=u=>e.unref(n).widget.props.appendText=u),placeholder:"填写末尾按钮文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"最大输入长度"},{default:e.withCtx(()=>[e.createVNode(c,{class:"w-full",placeholder:"填写最大输入长度",modelValue:e.unref(n).widget.props.maxlength,"onUpdate:modelValue":o[5]||(o[5]=u=>e.unref(n).widget.props.maxlength=u),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.unref(n).widget.props.type=="textarea"?(e.openBlock(),e.createBlock(i,{key:0,label:"行数"},{default:e.withCtx(()=>[e.createVNode(c,{class:"w-full",placeholder:"填写行数",modelValue:e.unref(n).widget.props.rows,"onUpdate:modelValue":o[6]||(o[6]=u=>e.unref(n).widget.props.rows=u),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(i,{label:"是否去空格"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.isTrim,"onUpdate:modelValue":o[7]||(o[7]=u=>e.unref(n).widget.props.isTrim=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否必填"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.required,"onUpdate:modelValue":o[8]||(o[8]=u=>e.unref(n).widget.props.required=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否只读"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.readonly,"onUpdate:modelValue":o[9]||(o[9]=u=>e.unref(n).widget.props.readonly=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[10]||(o[10]=u=>e.unref(n).widget.props.disabled=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"显示限制字数"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.showLimit,"onUpdate:modelValue":o[11]||(o[11]=u=>e.unref(n).widget.props.showLimit=u)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),r5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-modal"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-input"),l=e.resolveComponent("common-label-container"),i=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(l,{label:"弹窗标题"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(n).widget.props.title,"onUpdate:modelValue":o[0]||(o[0]=s=>e.unref(n).widget.props.title=s),placeholder:"填写弹窗标题"},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"弹窗宽度"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(n).widget.props.modalWidth,"onUpdate:modelValue":o[1]||(o[1]=s=>e.unref(n).widget.props.modalWidth=s),placeholder:"填写弹窗宽度"},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"弹窗高度"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(n).widget.props.modalHeight,"onUpdate:modelValue":o[2]||(o[2]=s=>e.unref(n).widget.props.modalHeight=s),placeholder:"填写弹窗高度"},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"是否显示按钮栏"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:e.unref(n).widget.props.hasFooter,"onUpdate:modelValue":o[3]||(o[3]=s=>e.unref(n).widget.props.hasFooter=s)},null,8,["modelValue"])]),_:1}),e.createVNode(l,{label:"是否隐藏确定键"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:e.unref(n).widget.props.hideConfirm,"onUpdate:modelValue":o[4]||(o[4]=s=>e.unref(n).widget.props.hideConfirm=s)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),o5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-progress"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input-number"),c=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件状态"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.color,"onUpdate:modelValue":o[0]||(o[0]=d=>e.unref(n).widget.props.color=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"primary",value:"#409EFF"}),e.createVNode(a,{label:"success",value:"#67C23A"}),e.createVNode(a,{label:"warning",value:"#E6A23C"}),e.createVNode(a,{label:"danger",value:"#F56C6C"}),e.createVNode(a,{label:"info",value:"#909399"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"组件类型"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.type,"onUpdate:modelValue":o[1]||(o[1]=d=>e.unref(n).widget.props.type=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"直线",value:"line"}),e.createVNode(a,{label:"圆环",value:"circle"}),e.createVNode(a,{label:"仪表盘",value:"dashboard"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"进度条宽"},{default:e.withCtx(()=>[e.createVNode(s,{class:"w-full",placeholder:"填写进度条宽",modelValue:e.unref(n).widget.props.strokeWidth,"onUpdate:modelValue":o[2]||(o[2]=d=>e.unref(n).widget.props.strokeWidth=d),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"文字是否在内"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.textInside,"onUpdate:modelValue":o[3]||(o[3]=d=>e.unref(n).widget.props.textInside=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否有条纹"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.hasStriped,"onUpdate:modelValue":o[4]||(o[4]=d=>e.unref(n).widget.props.hasStriped=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"条纹是否流动"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.hasStripedFlow,"onUpdate:modelValue":o[5]||(o[5]=d=>e.unref(n).widget.props.hasStripedFlow=d)},null,8,["modelValue"])]),_:1}),e.unref(n).widget.props.type!=="line"?(e.openBlock(),e.createBlock(i,{key:0,label:"画布宽度"},{default:e.withCtx(()=>[e.createVNode(s,{class:"w-full",placeholder:"填写画布宽度",modelValue:e.unref(n).widget.props.circleWidth,"onUpdate:modelValue":o[6]||(o[6]=d=>e.unref(n).widget.props.circleWidth=d),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"})),a5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-radio"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=c=>e.unref(n).widget.props.size=c)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否按钮"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.isButton,"onUpdate:modelValue":o[1]||(o[1]=c=>e.unref(n).widget.props.isButton=c)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否块状"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.isBlock,"onUpdate:modelValue":o[2]||(o[2]=c=>e.unref(n).widget.props.isBlock=c)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否必填"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.required,"onUpdate:modelValue":o[3]||(o[3]=c=>e.unref(n).widget.props.required=c)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[4]||(o[4]=c=>e.unref(n).widget.props.disabled=c)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),l5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-rate"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input-number"),c=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=d=>e.unref(n).widget.props.size=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"最大分值"},{default:e.withCtx(()=>[e.createVNode(s,{class:"w-full",placeholder:"填写最大输入长度",modelValue:e.unref(n).widget.props.max,"onUpdate:modelValue":o[1]||(o[1]=d=>e.unref(n).widget.props.max=d),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[2]||(o[2]=d=>e.unref(n).widget.props.disabled=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否可半选"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.allowHalf,"onUpdate:modelValue":o[3]||(o[3]=d=>e.unref(n).widget.props.allowHalf=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否显示分数"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.showScore,"onUpdate:modelValue":o[4]||(o[4]=d=>e.unref(n).widget.props.showScore=d)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),i5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-select"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input"),c=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=d=>e.unref(n).widget.props.size=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"占位文字"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.placeholder,"onUpdate:modelValue":o[1]||(o[1]=d=>e.unref(n).widget.props.placeholder=d),placeholder:"填写占位文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否必填"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.required,"onUpdate:modelValue":o[2]||(o[2]=d=>e.unref(n).widget.props.required=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否可清除"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.clearable,"onUpdate:modelValue":o[3]||(o[3]=d=>e.unref(n).widget.props.clearable=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[4]||(o[4]=d=>e.unref(n).widget.props.disabled=d)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),s5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-selects"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input-number"),c=e.resolveComponent("el-input"),d=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=u=>e.unref(n).widget.props.size=u)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"最多可选"},{default:e.withCtx(()=>[e.createVNode(s,{class:"w-full",placeholder:"填写最多可选个数",modelValue:e.unref(n).widget.props.multipleLimit,"onUpdate:modelValue":o[1]||(o[1]=u=>e.unref(n).widget.props.multipleLimit=u),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"超出个数合并"},{default:e.withCtx(()=>[e.createVNode(s,{class:"w-full",placeholder:"填写超出多少条目合并",modelValue:e.unref(n).widget.props.maxCollapseTags,"onUpdate:modelValue":o[2]||(o[2]=u=>e.unref(n).widget.props.maxCollapseTags=u),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"占位文字"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.placeholder,"onUpdate:modelValue":o[3]||(o[3]=u=>e.unref(n).widget.props.placeholder=u),placeholder:"填写占位文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否必填"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.required,"onUpdate:modelValue":o[4]||(o[4]=u=>e.unref(n).widget.props.required=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否可清除"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.clearable,"onUpdate:modelValue":o[5]||(o[5]=u=>e.unref(n).widget.props.clearable=u)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[6]||(o[6]=u=>e.unref(n).widget.props.disabled=u)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),d5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-switch"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input"),c=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=d=>e.unref(n).widget.props.size=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"打开文字"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.activeText,"onUpdate:modelValue":o[1]||(o[1]=d=>e.unref(n).widget.props.activeText=d),placeholder:"填写打开文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"关闭文字"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.inactiveText,"onUpdate:modelValue":o[2]||(o[2]=d=>e.unref(n).widget.props.inactiveText=d),placeholder:"填写关闭文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[3]||(o[3]=d=>e.unref(n).widget.props.disabled=d)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"})),c5=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"config-time"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}}},setup(t){let n=t;return(r,o)=>{const a=e.resolveComponent("el-option"),l=e.resolveComponent("el-select"),i=e.resolveComponent("common-label-container"),s=e.resolveComponent("el-input"),c=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(i,{label:"组件尺寸"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.size,"onUpdate:modelValue":o[0]||(o[0]=d=>e.unref(n).widget.props.size=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"大尺寸",value:"large"}),e.createVNode(a,{label:"默认",value:"default"}),e.createVNode(a,{label:"小尺寸",value:"small"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"组件类型"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.type,"onUpdate:modelValue":o[1]||(o[1]=d=>e.unref(n).widget.props.type=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"时间",value:"time"}),e.createVNode(a,{label:"时间区间",value:"timerange"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"显示格式"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.format,"onUpdate:modelValue":o[2]||(o[2]=d=>e.unref(n).widget.props.format=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"HH:mm:ss",value:"HH:mm:ss"}),e.createVNode(a,{label:"hh:mm:ss",value:"hh:mm:ss"}),e.createVNode(a,{label:"HH时mm分ss秒",value:"HH时mm分ss秒"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"输出格式"},{default:e.withCtx(()=>[e.createVNode(l,{modelValue:e.unref(n).widget.props.valueFormat,"onUpdate:modelValue":o[3]||(o[3]=d=>e.unref(n).widget.props.valueFormat=d)},{default:e.withCtx(()=>[e.createVNode(a,{label:"HH:mm:ss",value:"HH:mm:ss"}),e.createVNode(a,{label:"hh:mm:ss",value:"hh:mm:ss"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"分隔符"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.rangeSeparator,"onUpdate:modelValue":o[4]||(o[4]=d=>e.unref(n).widget.props.rangeSeparator=d),placeholder:"填写分隔符"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"开始占位内容"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.startPlaceholder,"onUpdate:modelValue":o[5]||(o[5]=d=>e.unref(n).widget.props.startPlaceholder=d),placeholder:"填写开始占位内容"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"结束占位内容"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.endPlaceholder,"onUpdate:modelValue":o[6]||(o[6]=d=>e.unref(n).widget.props.endPlaceholder=d),placeholder:"填写结束占位内容"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"占位文字"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(n).widget.props.placeholder,"onUpdate:modelValue":o[7]||(o[7]=d=>e.unref(n).widget.props.placeholder=d),placeholder:"填写占位文字"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否必填"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.required,"onUpdate:modelValue":o[8]||(o[8]=d=>e.unref(n).widget.props.required=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否只读"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.readonly,"onUpdate:modelValue":o[9]||(o[9]=d=>e.unref(n).widget.props.readonly=d)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否禁用"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(n).widget.props.disabled,"onUpdate:modelValue":o[10]||(o[10]=d=>e.unref(n).widget.props.disabled=d)},null,8,["modelValue"])]),_:1})],64)}}})},Symbol.toStringTag,{value:"Module"}));return UL});
|