sun-form-v3 1.0.108 → 1.0.109
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{index-QxOmRCLL.js → index-1mhHvaqm.js} +1 -1
- package/dist/{index-DKLdVKkV.js → index-Bhrln_aP.js} +1 -1
- package/dist/{index-bVwrXTS-.js → index-CbNGZTlq.js} +4 -4
- package/dist/{index-CcQm-JOw.js → index-ClLoOagm.js} +1 -1
- package/dist/{index-BOdLFItr.js → index-SUiZvJlC.js} +1 -1
- package/dist/{index-aVVGTvks.js → index-TMY_iT1q.js} +1 -1
- package/dist/{index-CGcT-fr5.js → index-hoaNwJl5.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/sun-form-v3.es.js +1 -1
- package/dist/sun-form-v3.umd.js +1 -1
- package/package.json +1 -1
package/dist/sun-form-v3.es.js
CHANGED
package/dist/sun-form-v3.umd.js
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
$2
|
12
12
|
})`,insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"过滤"},{label:"find",kind:monaco.languages.CompletionItemKind.Snippet,insertText:`$1.find((e,i)=>{
|
13
13
|
$2
|
14
|
-
})`,insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"查找"},{label:"suc",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"app.\\$message.success( $1 )",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"消息成功"},{label:"war",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"app.\\$message.warning( $1 )",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"消息警告"},{label:"err",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"app.\\$message.error( $1 )",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"消息报错"}]}}}),l.addCommand(monaco.KeyMod.CtrlCmd|monaco.KeyCode.KeyD,function(){l.trigger("keyboard","editor.action.deleteLines",null)}),l.addCommand(monaco.KeyMod.CtrlCmd|monaco.KeyMod.Shift|monaco.KeyCode.KeyF,function(){l.getAction("editor.action.formatDocument").run()})):console.error("编辑器容器元素不存在")})}),s.onUnmounted(()=>{l.dispose()});const u=()=>{console.log(l.getValue())},c=h=>{l.setValue(h)},f=()=>{l.trigger("keyboard","editor.action.formatDocument",null)},d=h=>{const g=l.getSelection(),b=l.getPosition();let x;g.isEmpty()?x=new monaco.Range(b.lineNumber,b.column,b.lineNumber,b.column):x=g,l.executeEdits("",[{range:x,text:h,forceMoveMarkers:!0}])},p=h=>{h&&h.type&&(h.type=="api"&&d(h.row.example),h.type=="id"&&d(h.row.id))};return e({getValue:u,setValue:c,setPositionValue:d,formatCode:f}),(h,g)=>{const b=s.resolveComponent("common-sidetree"),x=s.resolveDirective("loading");return s.withDirectives((s.openBlock(),s.createElementBlock("div",Ime,[r.pure?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Pme,[s.createVNode(b,{designer:t.designer,canAddApi:!0,onAddApi:p},null,8,["designer"])])),s.createElementVNode("div",kme,[r.pure?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Vme,[t.isAsync?(s.openBlock(),s.createElementBlock("span",Rme,"async ")):s.createCommentVNode("",!0),Lme,Bme,(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.params,(w,C)=>(s.openBlock(),s.createElementBlock("span",Fme,s.toDisplayString(w)+" "+s.toDisplayString(C==r.params.length-1?"":" , "),1))),256)),jme])),s.createElementVNode("div",{class:"flex-1 h-full",ref_key:"container",ref:i,style:s.normalizeStyle({width:r.width,height:r.height})},null,4),r.pure?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",$me," } "))])])),[[x,a.value]])}}},zme=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-codeEditor"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const o=n;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());let i=s.computed(()=>r.widget.props);const a=s.computed({set:u=>{i.value.isTableItem?o("update:modelValue",u):i.value.value=u},get:()=>i.value.isTableItem?r.modelValue===void 0?i.value.value:r.modelValue:i.value.value}),l=u=>{i.value.isTrim&&(i.value.value=r.designer.$utils.trim(u)),r.designer.eventHandle({eventType:"onChange",value:i.value.value,widget:r.widget})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),s.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:l}),(u,c)=>{const f=s.resolveComponent("common-widget-label-container");return s.openBlock(),s.createBlock(f,{props:s.unref(i),class:"min-h-80"},{default:s.withCtx(()=>[s.createVNode(dP,{designer:t.designer,pure:!0,modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=d=>a.value=d),language:s.unref(i).language},null,8,["designer","modelValue","language"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),kl={homepage:{isContainer:!0,displayName:"页面",widgetList:[],type:"homepage",id:"homepage",chosenId:"homepage",props:{label:"",width:24,remark:"",hide:!1,onCreated:null,onMounted:null,height:null,style:{}}},form:{isContainer:!0,displayName:"表单",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,widgetList:[],props:{hasLabel:!1,label:"",width:24,remark:"",hasFooter:!0,hasSubmitButton:!0,hasResetButton:!0,buttonAlign:"right",submitButtonText:"提交",hasFooterBg:!0,hasBorder:!0,list:[],hide:!1,style:{},formType:"Create",apiSetCreate:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},apiSetUpdate:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},apiSetDetail:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},onCreated:null,onMounted:null,onButtonClick:null}},div:{isContainer:!0,displayName:"工作区容器",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],complete:!0,props:{hasLabel:!1,remark:"",width:24,flex:!0,flexWrap:!0,flexDirection:"row",alignItems:"center",justifyContent:"flex-start",hide:!1,onCreated:null,onMounted:null}},card:{isContainer:!0,displayName:"卡片容器",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],complete:!0,props:{hasLabel:!1,remark:"",value:"",width:24,title:"卡片标题",list:[],flex:!0,flexWrap:!0,flexDirection:"row",alignItems:"center",justifyContent:"flex-start",hide:!1,hasSplitLine:!0,onCreated:null,onMounted:null,onButtonClick:null}},modal:{isContainer:!0,displayName:"弹窗",isForm:!1,widgetList:[],canAddDataTableQuery:!1,complete:!0,canAddDataTableList:!1,props:{hasLabel:!1,title:"弹窗",show:!1,width:24,modalWidth:"80%",modalHeight:"80%",hideConfirm:!1,hasFooter:!0,list:[],height:null,onCreated:null,onMounted:null,onConfirm:null,onButtonClick:null}},tabs:{isContainer:!0,displayName:"标签页",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],props:{hasLabel:!1,label:"标签页",width:24,type:"border-card",remark:"",activeName:null,loadType:"loadOnce",tabs:[{label:"标签页1",value:"tab1",widgetList:[]},{label:"标签页2",value:"tab2",widgetList:[]},{label:"标签页3",value:"tab3",widgetList:[]}],onCreated:null,onMounted:null,onChange:null}},input:{isContainer:!1,displayName:"输入框",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{hasLabel:!0,size:"default",remark:"",required:!1,readonly:!1,disabled:!1,isDetail:!1,hide:!1,placeholder:"请输入",prependText:"",appendText:"",labelPosition:"left",value:null,zdname:null,label:"输入框",labelAlign:"right",labelWidth:"120px",width:24,type:"text",rows:3,isTrim:!1,maxlength:null,showLimit:!1,onCreated:null,onMounted:null,onInput:null,onChange:null,onFocus:null,onBlur:null,onHandle:null}},select:{isContainer:!1,displayName:"下拉框",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{hasLabel:!0,size:"default",label:"下拉框",required:!1,disabled:!1,hide:!1,labelPosition:"left",placeholder:"请选择",remark:"",value:null,zdname:null,isDetail:!1,labelAlign:"right",labelWidth:"120px",clearable:!0,width:24,apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null,onChange:null}},selects:{isContainer:!1,displayName:"下拉多选框",isForm:!0,canAddDataTableQuery:!0,complete:!0,canAddDataTableList:!0,props:{size:"default",required:!1,hasLabel:!0,disabled:!1,remark:"",hide:!1,labelPosition:"left",placeholder:"请选择",value:[],isDetail:!1,multipleLimit:null,maxCollapseTags:null,collapseTags:!1,zdname:null,label:"下拉多选框",labelAlign:"right",clearable:!1,labelWidth:"120px",width:24,apiSet:{method:"get",apiurl:"",params:[],contentType:"JSON",dataFormat:"",labelField:"",valueField:"",beforeSend:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null,onChange:null}},radio:{isContainer:!1,displayName:"单选框",isForm:!0,complete:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,props:{hasLabel:!0,required:!1,disabled:!1,size:"default",hide:!1,remark:"",labelPosition:"left",isButton:!1,isDetail:!1,isBlock:!1,value:null,zdname:null,label:"单选框",labelAlign:"right",labelWidth:"120px",width:24,apiSet:{method:"get",apiurl:"",params:[],contentType:"JSON",dataFormat:"",labelField:"",valueField:"",beforeSend:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null,onChange:null}},checkbox:{isContainer:!1,displayName:"多选框",isForm:!0,canAddDataTableQuery:!0,complete:!0,canAddDataTableList:!0,props:{hasLabel:!0,size:"default",required:!1,disabled:!1,hide:!1,remark:"",isDetail:!1,labelPosition:"left",isButton:!1,isBlock:!1,value:[],zdname:null,label:"多选框",labelAlign:"right",labelWidth:"120px",width:24,apiSet:{method:"get",apiurl:"",params:[],contentType:"JSON",dataFormat:"",labelField:"",valueField:"",beforeSend:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null,onChange:null}},date:{isContainer:!1,displayName:"日期",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{size:"default",required:!1,hasLabel:!0,disabled:!1,remark:"",hide:!1,labelPosition:"left",placeholder:"请选择",isDetail:!1,value:null,type:"date",format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",rangeSeparator:"-",startPlaceholder:"开始时间",endPlaceholder:"结束时间",defaultNow:!1,zdname:null,label:"日期",labelAlign:"right",labelWidth:"120px",width:24,onCreated:null,onMounted:null,onChange:null,onFocus:null,onBlur:null}},progress:{isContainer:!1,displayName:"进度条",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!0,complete:!0,props:{hasLabel:!0,size:"default",remark:"",color:"#67C23A",strokeWidth:6,textInside:!1,hasStriped:!0,hasStripedFlow:!0,hide:!1,circleWidth:126,labelPosition:"left",value:null,zdname:null,label:"进度条",labelAlign:"right",labelWidth:"120px",width:24,type:"line",onCreated:null,onMounted:null,format:null}},switch:{isContainer:!1,displayName:"开关",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{size:"default",required:!1,isDetail:!1,hasLabel:!0,width:24,disabled:!1,hide:!1,labelPosition:"left",remark:"",value:!1,zdname:null,label:"开关",labelAlign:"right",labelWidth:"120px",activeText:"开",inactiveText:"关",onCreated:null,onMounted:null,onChange:null}},time:{isContainer:!1,displayName:"时间",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{size:"default",hasLabel:!0,required:!1,disabled:!1,hide:!1,remark:"",labelPosition:"left",isDetail:!1,placeholder:"请选择",value:null,format:"HH:mm:ss",valueFormat:"HH:mm:ss",rangeSeparator:"-",startPlaceholder:"开始时间",endPlaceholder:"结束时间",zdname:null,label:"时间",type:"time",labelAlign:"right",labelWidth:"120px",width:24,onCreated:null,onMounted:null,onChange:null,onFocus:null,onBlur:null}},rate:{isContainer:!1,displayName:"评分",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{size:"default",required:!1,hasLabel:!0,disabled:!1,isDetail:!1,hide:!1,labelPosition:"left",value:5,zdname:null,remark:"",label:"评分",labelAlign:"right",labelWidth:"120px",width:24,max:5,allowHalf:!1,showScore:!1,onCreated:null,onMounted:null,onChange:null}},file:{isContainer:!1,displayName:"文件上传",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],complete:!0,props:{size:"default",hasLabel:!0,required:!1,disabled:!1,isDetail:!1,hideFileName:!1,hidePreview:!1,hide:!1,placeholder:"请上传文件",labelPosition:"left",remark:"",value:null,zdname:null,label:"文件上传",labelAlign:"right",labelWidth:"120px",width:24,fileField:"file",fileIdField:"id",fileNameField:"name",fileUrlField:"url",fileSaveType:"name,id",fileDownType:"blob",fileGetUrl:"",fileDownUrl:"",accept:"",limit:100,fileSize:10,readonly:!1,multiple:!0,hideTable:!1,apiSet:{method:"post",apiurl:"",params:[],contentType:"file",dataFormat:"",labelField:"",valueField:"",beforeSend:""},onCreated:null,onMounted:null,onNameFormat:null}},location:{isContainer:!1,displayName:"位置选择器",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,props:{size:"medium",required:!1,remark:"",hasLabel:!0,readonly:!1,disabled:!1,isDetail:!1,hide:!1,labelPosition:"left",value:null,zdname:null,label:"",labelAlign:"right",labelWidth:"120px",width:24,city:"北京市",onCreated:null,onMounted:null,onInput:null,onChange:null,onFocus:null,onBlur:null,onHandle:null}},service:{isContainer:!1,displayName:"服务",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],complete:!0,props:{label:"",remark:"",hasLabel:!1,width:24,serviceJson:"",apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},onCreated:null,onMounted:null}},iframe:{isContainer:!1,displayName:"iframe",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],props:{label:"iframe",hasLabel:!1,width:24,remark:"",height:"50vh",src:"",onCreated:null,onMounted:null}},editor:{isContainer:!1,displayName:"富文本编辑器",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!0,required:!1,readonly:!1,isDetail:!1,remark:"",hide:!1,labelPosition:"left",value:null,zdname:null,label:"富文本编辑器",labelAlign:"right",labelWidth:"120px",width:24,fileField:"file",fileUrlField:"",apiSet:{method:"post",apiurl:"",params:[],contentType:"FormData",dataFormat:"",beforeSend:""},onCreated:null,onMounted:null,onChange:null}},codeEditor:{isContainer:!1,displayName:"代码编辑器",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{height:"200px",value:null,hasLabel:!0,language:"javascript",remark:"",isDetail:!1,required:!1,readonly:!1,hide:!1,labelPosition:"left",zdname:null,label:"代码编辑器",labelAlign:"right",labelWidth:"120px",width:24,style:{height:"400px"},onCreated:null,onMounted:null}},button:{isContainer:!1,displayName:"按钮",isForm:!0,canAddDataTableQuery:!1,complete:!0,canAddDataTableList:!0,props:{size:"default",type:"primary",isPlain:!1,isText:!1,isTextBgColor:!1,isLink:!1,isRound:!1,isCircle:!1,isLoading:!1,disabled:!1,hide:!1,hasLabel:!1,remark:"",label:"按钮",icon:"",align:"left",onCreated:null,onMounted:null,onClick:null}},divider:{isContainer:!1,displayName:"分割线",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!1,width:24,onCreated:null,onMounted:null}},title:{isContainer:!1,displayName:"标题",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!1,value:"标题",remark:"",width:24,onCreated:null,onMounted:null}},html:{isContainer:!1,displayName:"html",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,props:{hasLabel:!1,value:null,remark:"",width:24,onCreated:null,onMounted:null}},alert:{isContainer:!1,displayName:"警告",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{title:"提示",hasLabel:!1,type:"info",description:"",closable:!1,center:!1,closeText:"",showIcon:!0,width:24,hide:!1,effect:"light",onCreated:null,onMounted:null}},image:{isContainer:!1,displayName:"图片",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!0,complete:!0,props:{hasLabel:!1,value:"https://fuss10.elemecdn.com/a/3f/3302e58f9a181d2509f3dc0fa68b0jpeg.jpeg",hide:!1,fit:null,alt:"",canPreview:!1,imgWidth:"100px",imgHeight:"100px",onCreated:null,onMounted:null,onFormat:null}},edittable:{isContainer:!1,displayName:"可编辑表格",isForm:!0,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,props:{zdname:null,hasLabel:!1,label:"",labelAlign:"right",labelWidth:"120px",isDetail:!1,width:24,remark:"",height:"80vh",required:!1,hide:!1,value:[],apiSet:{method:"get",apiurl:"",params:[],contentType:"JSON",dataFormat:"",beforeSend:""},tableConfig:{baseInfo:{rows:"datas",count:"totalCount",page:"pageindex",limit:"pagesize",count:"totalCount",pageDefault:20,pageDefaultIndex:1,oprateWidth:null,singleselect:!1,align:"center",hasPage:!0,showOverFlow:!0,initLoadData:!0,hideHandleBtn:!1,isStripe:!0,normalTable:!1,hideEditButton:!1,formTableMode:"table",treeMode:!1,treeTransform:!1,treeRowField:"id",treeParentField:"pid",treeChildrenField:"children",treeLazySign:"hasChild",treeExpandAll:!1,treeAccordion:!1,isLazy:!1,isLine:!1,isHideChoose:!1},buttonList:[],queryList:[],tableList:[]},onCreated:null,onMounted:null,onDataLoad:null,onRowsChange:null,onChildLoad:null}},datatable:{isContainer:!1,displayName:"数据表格",isForm:!0,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!1,isDetail:!1,width:24,hide:!1,apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},size:"small",height:"80vh",oprateWidth:null,rows:"ListOrders",count:"OrderCount",page:"pageIndex",limit:"pageSize",pageDefault:20,align:"left",singleselect:!1,border:"default",hasPage:!0,initLoadData:!0,showOverFlow:!0,isStripe:!0,isHideChoose:!1,isHideQuery:!1,isHideButton:!1,isHideIndex:!1,isHideHeader:!1,isHideQueryBtn:!1,isHideResetBtn:!1,isCurrendClick:!0,isNotAuto:!1,treeMode:!1,treeRowField:"id",treeParentField:"pid",treeChildrenField:"children",mergeRowKey:null,treeTransform:!1,treeExpandAll:!1,treeAccordion:!1,isLine:!1,cellStyle:null,rowStyle:null,cellClassName:null,rowClassName:null,onCreated:null,onMounted:null,onDataLoad:null,headerTree:[]}},transfer:{isContainer:!1,displayName:"穿梭框",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!0,size:"medium",required:!1,readonly:!1,remark:"",disabled:!1,isDetail:!1,hide:!1,labelPosition:"left",value:[],zdname:null,label:"穿梭框",labelAlign:"right",labelWidth:"120px",width:24,propsKey:"value",propsLabel:"label",leftTitle:"备选项",rightTitle:"已选项",apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null}},checkCode:{isContainer:!1,displayName:"手机验证码",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{size:"default",remark:"",hasLabel:!0,required:!1,isDetail:!1,hide:!1,placeholder:"请输入手机验证码",labelPosition:"left",value:null,zdname:null,label:"手机验证码",labelAlign:"right",labelWidth:"120px",width:24,type:"text",timeSec:60,apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},onCreated:null,onMounted:null,onInput:null,onChange:null,onFocus:null,onBlur:null}},datatableitem:{isContainer:!1,displayName:"数据表格表头",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!0,addToPanel:!1,complete:!0,props:{hasLabel:!1,zdname:null,label:"",onFormat:null,hide:!1}},echarts:{isContainer:!1,displayName:"图表",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{hasLabel:!0,remark:"",isDetail:!1,hide:!1,labelPosition:"left",label:"",labelAlign:"right",labelWidth:"0px",width:12,type:"普通柱状图",onCreated:null,onMounted:null,initOption:null,style:{height:"400px"}}},statistic:{isContainer:!1,displayName:"统计",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{remark:"",isDetail:!1,hide:!1,width:8,title:"统计标题",value:100,unit:"%",color:"rgba(123, 104, 238, 1)",fontColor:"#ffffff",split:3,data:[{title:"同比",value:100,key:"a",unit:"%"},{title:"环比",value:100,key:"b",unit:"元"},{title:"周同比",value:100,key:"c",unit:"美元"}],onCreated:null,onMounted:null}},text:{isContainer:!1,displayName:"文字",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!0,addToPanel:!0,complete:!0,props:{isDetail:!1,hide:!1,value:"文字内容",size:"default",type:"primary",truncated:!1,lineClamp:null,onCreated:null,onMounted:null,onFormat:null,onTypeFormat:null}},tag:{isContainer:!1,displayName:"标签",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!0,addToPanel:!0,complete:!0,props:{isDetail:!1,hide:!1,value:"标签",size:"default",type:"primary",closable:!1,hit:!1,round:!1,color:null,effect:"light",onCreated:null,onMounted:null,onFormat:null,onTypeFormat:null}},steps:{isContainer:!1,displayName:"步骤条",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{remark:"",isDetail:!1,hide:!1,width:24,value:1,space:null,direction:"horizontal",alignCenter:!0,simple:!1,space:null,data:[{title:"数据填写",description:"步骤条描述"},{title:"初审",description:"步骤条描述"},{title:"复审",description:"步骤条描述"},{title:"终审",description:"步骤条描述"},{title:"完成",description:"步骤条描述"}],onCreated:null,onMounted:null,onStepClick:null}},timeline:{isContainer:!1,displayName:"时间线",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{remark:"",isDetail:!1,hide:!1,width:24,hideTimestamp:!1,center:!1,hollow:!1,placement:"top",size:"normal",data:[{time:"2024-04-05",title:"数据填写",description:"时间线详细内容描述"},{time:"2024-04-06",title:"初审",description:"时间线详细内容描述"},{time:"2024-04-07",title:"复审",description:"时间线详细内容描述"},{time:"2024-04-08",title:"终审",description:"时间线详细内容描述"},{time:"2024-04-09",title:"完成",description:"时间线详细内容描述"}],onCreated:null,onMounted:null}},flow:{isContainer:!1,displayName:"流程设计器",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{remark:"",isDetail:!1,hide:!1,width:24,onCreated:null,onMounted:null,onFlowClick:null,style:{height:"800px"}}},cascader:{isContainer:!1,displayName:"级联选择器",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{hasLabel:!0,size:"default",remark:"",required:!1,readonly:!1,disabled:!1,isDetail:!1,hide:!1,clearable:!0,placeholder:"请输入",labelPosition:"left",value:null,zdname:null,propsKey:"value",propsLabel:"label",propsChildren:"children",label:"级联选择器",labelAlign:"right",labelWidth:"120px",showAllLevels:!0,postLastLevel:!1,width:24,options:[{value:"guide",label:"Guide",children:[{value:"disciplines",label:"Disciplines",children:[{value:"consistency",label:"Consistency"},{value:"feedback",label:"Feedback"}]},{value:"navigation",label:"Navigation",children:[{value:"side nav",label:"Side Navigation"},{value:"top nav",label:"Top Navigation"}]}]}],apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},onCreated:null,onMounted:null,onChange:null}}},Hme=Object.assign({name:"headerItem"},{__name:"headerItem",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})},headerTree:{type:Array,default:[]}},setup(t){let e=t;return(n,r)=>{const o=s.resolveComponent("headerItem",!0),i=s.resolveComponent("vxe-colgroup"),a=s.resolveComponent("vxe-column");return s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(e).headerTree,(l,u)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:u},[l.children&&l.children.length?(s.openBlock(),s.createBlock(i,{key:0,title:l.label},{default:s.withCtx(()=>[s.createVNode(o,{headerTree:l.children,designer:s.unref(e).designer},null,8,["headerTree","designer"])]),_:2},1032,["title"])):(s.openBlock(),s.createBlock(a,{key:1,field:s.unref(e).designer.getWidgetById(l.id).props.zdname,title:s.unref(e).designer.getWidgetById(l.id).props.label},{default:s.withCtx(({row:c})=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+s.unref(e).designer.getWidgetById(l.id).type),{ref_for:!0,ref:l.id,widget:s.unref(e).designer.getWidgetById(l.id),designer:s.unref(e).designer,tableItemData:c,modelValue:c[s.unref(e).designer.getWidgetById(l.id).props.zdname],"onUpdate:modelValue":f=>c[s.unref(e).designer.getWidgetById(l.id).props.zdname]=f},null,8,["widget","designer","tableItemData","modelValue","onUpdate:modelValue"]))]),_:2},1032,["field","title"]))],64))),128)}}}),Wme={key:0,class:"flex flex-col bg-white border overflow-hidden mb-1 dark:border-slate-800 dark:bg-black"},Ume={key:0,class:"w-full flex flex-wrap py-1 px-2"},Gme={key:1,class:"flex bg-gray-50 justify-between px-2 py-1 border-t dark:bg-slate-800 dark:border-gray-800"},Yme={class:"flex"},qme={class:"flex"},Xme={class:"flex-1 bg-white border border-t-0 overflow-hidden flex flex-col dark:bg-slate-800 dark:border-gray-800"},Kme={class:"flex-1 overflow-hidden"},Zme={key:0,class:"bg-gray-100 py-1 px-2 dark:bg-slate-800 dark:border-gray-800"},Jme=Ra(Object.assign({name:"show"},{__name:"show",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})}},setup(t,{expose:e}){let n=t;n.designer.setVueIncetance(n.widget.id,s.getCurrentInstance());const r=s.computed(()=>n.widget.props),o=s.ref([]),i=s.ref([]),a=s.ref({}),l=s.ref([]),u=s.ref([]),c=s.ref([]),f=s.ref(!1),d=s.ref(0),p=s.ref(),h=s.ref(!1),g=s.ref({transform:r.value.treeTransform,rowField:r.value.treeRowField,parentField:r.value.treeParentField,childrenField:r.value.treeChildrenField,expandAll:r.value.treeExpandAll,accordion:r.value.accordion,showLine:r.value.isLine,iconOpen:"vxe-icon-square-minus",iconClose:"vxe-icon-square-plus",checkboxConfig:{checkField:"checked",halfField:"halfChecked",disabledField:"_checkbox_disabled"}}),b=s.ref({trigger:"row",labelField:"my_check"}),x=s.ref({trigger:"row",labelField:"my_check",highlight:!0,range:r.value.treeMode?void 0:!0}),w=s.reactive({pageSize:20,pageIndex:1}),C=le=>{let me=[];return o.value.forEach(Be=>{Be.props.isSide===le&&!Be.props.hide&&me.push(Be)}),me},O=s.computed(()=>{function le(we){return/[\u4e00-\u9fff]/.test(we)}let me=0;return C(!0).forEach(we=>{let Me=we.props.label;for(let Ge of Me)le(Ge)?me+=14:me+=8;me+=24,we.props.icon&&(me+=6)}),me<80&&(me=80),me}),A=le=>{let me=0;return l.value.forEach((Be,we)=>{!Be.props.hide&&we<=le&&(me+=Be.props.width)}),!(me>48)},I=({row:le,_rowIndex:me,column:Be,visibleData:we})=>{const Me=["ProtocolName","ProtocolFormula","ProtocolStandard","outNum","result","remark"],Ge=le[Be.field];if(Ge&&Me.includes(Be.field)){const tt=we[me-1];let Ye=we[me+1];if(tt&&tt[Be.field]===Ge)return{rowspan:0,colspan:0};{let Pe=1;for(;Ye&&Ye[Be.field]===Ge;)Ye=we[++Pe+me];if(Pe>1)return{rowspan:Pe,colspan:1}}}},M=()=>{let le=0;return l.value.forEach(me=>{me.props.hide||(le+=me.props.width)}),le},P=(le,me)=>{let Be=le.props.onBtnFormat;if(Be){let Me=new Function("widget","tableItemData","app",Be)(le,me,n.designer);return Me&&n.designer.$utils.isPlainObject(Me)?Me:{disabled:le.props.disabled,type:le.props.type,hide:le.props.hide}}else return{disabled:le.props.disabled,type:le.props.type,hide:le.props.hide}},k=({row:le,column:me})=>{let Be=r.value.cellStyle;if(Be)return new Function("widget","row","column","app",Be)(n.widget,le,me,n.designer)},V=({row:le,column:me})=>{let Be=r.value.cellClassName;if(Be)return new Function("widget","row","column","app",Be)(n.widget,le,me,n.designer)},F=({row:le})=>{let me=r.value.rowStyle;if(me)return new Function("widget","row","app",me)(n.widget,le,n.designer)},j=({row:le})=>{let me=r.value.rowClassName;if(me)return new Function("widget","row","app",me)(n.widget,le,n.designer)},L=()=>r.value.singleselect?p.value.getRadioRecord():p.value.getCheckboxRecords(!0),B=()=>p.value.getCheckboxIndeterminateRecords(!0),U=()=>L().concat(B()),W=()=>p.value.getTableData().fullData,J=le=>{p.value.insertAt(le,-1)},ie=()=>{p.value.insertAt(a.value,-1)},X=le=>{c.value=le},Q=le=>{p.value.remove(le)},fe=le=>{d.value=le},ve=(le,me)=>{n.designer.eventHandle({eventType:"onItemClick",widget:le,value:me||L()})},Ne=le=>{},Le=()=>{l.value=n.designer.$utils.clone(i.value,!0),ne()},Ke=()=>{w.pageIndex=1,ne()},nt=()=>{let le={};return l.value.forEach(me=>{le[me.props.zdname]=me.props.value}),le[r.value.page]=w.pageIndex,le[r.value.limit]=w.pageSize,le},rt=le=>{p.value.setAllTreeExpand(le)},He=(le=[])=>{var me=Be=>{var we=[];return Be.forEach(Me=>{p.value.setCheckboxRow(Me,!1),le.includes(Me[g.value.rowField])&&(p.value.setCheckboxRow(Me,!0),Me[g.value.childrenField]&&Me[g.value.childrenField].length>0&&p.value.setCheckboxRow(Me[g.value.childrenField],!1)),Me[g.value.childrenField]&&Me[g.value.childrenField].length>0&&me(Me[g.value.childrenField])}),we};p.value.setCheckboxRow(me(c.value),!0)},ne=async()=>{try{if(!n.widget.props.apiSet.apiurl)return;f.value=!0,await n.designer.requestByApisetConfig({widget:n.widget,resultCb:({funRes:le,httpRes:me})=>{f.value=!1,d.value=le[r.value.count],c.value=le[r.value.rows],s.nextTick(()=>{n.designer.eventHandle({eventType:"onDataLoad",widget:n.widget})})},paramCb:le=>(le[r.value.page]=w.pageIndex,le[r.value.limit]=w.pageSize,l.value.forEach(me=>{le[me.props.zdname]=me.props.value}),le)})}catch{f.value=!1}};return(()=>{n.widget.widgetList.forEach(le=>{switch(le.compType){case 0:o.value.push(le);break;case 1:l.value.push(le);break;case 2:u.value.push(le);break}}),w.pageSize=r.value.pageDefault,i.value=n.designer.$utils.clone(l.value,!0),u.value.forEach(le=>{le.props.zdname&&(a.value[le.props.zdname]=le.props.value)}),r.value.initLoadData&&ne()})(),e({chosen:L,getRows:W,setRows:X,setTotal:fe,refresh:Ke,getSearchParams:nt,allTreeChosen:U,setRowsCheckedByIds:He,addRow:J,addRowByDefault:ie,removeRow:Q,setAllTreeExpand:rt}),(le,me)=>{const Be=s.resolveComponent("common-label-container"),we=s.resolveComponent("ArrowDownBold"),Me=s.resolveComponent("el-icon"),Ge=s.resolveComponent("ArrowUpBold"),tt=s.resolveComponent("el-button"),Ye=s.resolveComponent("el-button-group"),Pe=s.resolveComponent("vxe-table-column"),st=s.resolveComponent("vxe-column"),Re=s.resolveComponent("vxe-table"),xt=s.resolveComponent("el-pagination");return s.openBlock(),s.createElementBlock("div",{class:"flex flex-col",style:s.normalizeStyle({width:`${r.value.width/24*100}%`,height:"100%"})},[l.value.length&&!r.value.isHideQuery||!r.value.isHideButton?(s.openBlock(),s.createElementBlock("div",Wme,[l.value.length&&!r.value.isHideQuery?(s.openBlock(),s.createElementBlock("div",Ume,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(Tt,Pt)=>s.withDirectives((s.openBlock(),s.createBlock(Be,{key:Tt.id,style:s.normalizeStyle({width:`${Tt.props.width/24*100}%`}),class:"!my-1",label:Tt.props.label,align:"right"},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+Tt.type),{ref_for:!0,ref:Tt.id,widget:Tt,designer:s.unref(n).designer},null,8,["widget","designer"]))]),_:2},1032,["style","label"])),[[s.vShow,!Tt.props.hide&&(h.value||A(Pt))]])),128))])):s.createCommentVNode("",!0),r.value.isHideButton?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Gme,[s.createElementVNode("div",Yme,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C(!1),(Tt,Pt)=>(s.openBlock(),s.createElementBlock("div",{key:Pt,class:"flex-1 flex justify-center items-center mx-1"},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+Tt.type),{ref_for:!0,ref:Tt.id,widget:Tt,designer:s.unref(n).designer,onClick:Rt=>ve(Tt)},null,8,["widget","designer","onClick"]))]))),128))]),s.createElementVNode("div",qme,[M()>48?(s.openBlock(),s.createBlock(tt,{key:0,link:"",size:"small",type:"primary",class:"mr-2",onClick:me[0]||(me[0]=Tt=>h.value=!h.value)},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(h.value?"收起":"展开")+" ",1),h.value?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(Me,{key:0},{default:s.withCtx(()=>[s.createVNode(we)]),_:1})),h.value?(s.openBlock(),s.createBlock(Me,{key:1},{default:s.withCtx(()=>[s.createVNode(Ge)]),_:1})):s.createCommentVNode("",!0)]),_:1})):s.createCommentVNode("",!0),s.createVNode(Ye,null,{default:s.withCtx(()=>[r.value.isHideQueryBtn?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(tt,{key:0,icon:"Search",onClick:ne},{default:s.withCtx(()=>[s.createTextVNode("查询")]),_:1})),r.value.isHideResetBtn?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(tt,{key:1,icon:"Refresh",onClick:Le},{default:s.withCtx(()=>[s.createTextVNode("重置")]),_:1}))]),_:1})])]))])):s.createCommentVNode("",!0),s.createElementVNode("div",Xme,[s.createElementVNode("div",Kme,[s.createVNode(Re,{ref_key:"mainTable",ref:p,data:c.value,height:r.value.isNotAuto?null:"auto",border:r.value.border,"span-method":r.value.mergeRowKey?I:null,"row-config":{isCurrent:!r.value.isHideChoose,isHover:!0,useKey:r.value.treeMode},stripe:!r.value.treeMode&&r.value.isStripe,"scroll-y":{enabled:!0},"column-config":{resizable:!0},"show-overflow":r.value.treeMode?!0:r.value.showOverFlow,loading:f.value,"radio-config":r.value.singleselect?b.value:{},"checkbox-config":r.value.singleselect?{}:x.value,align:r.value.align,"tree-config":r.value.treeMode?g.value:null,class:"w-full",size:r.value.size,"cell-style":k,"row-style":F,"show-header":!r.value.isHideHeader,"header-row-class-name":Ne,"cell-class-name":V,"row-class-name":j},{default:s.withCtx(()=>[r.value.singleselect&&!r.value.isHideChoose?(s.openBlock(),s.createBlock(Pe,{key:0,width:"50",type:"radio",field:"my_check",align:"center"})):s.createCommentVNode("",!0),!r.value.singleselect&&!r.value.isHideChoose?(s.openBlock(),s.createBlock(Pe,{key:1,width:"50",type:"checkbox",field:"my_check",align:"center"})):s.createCommentVNode("",!0),r.value.isHideIndex?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(st,{key:2,type:"seq",width:"50",title:"序号"},{default:s.withCtx(({row:Tt,$rowIndex:Pt})=>[s.createElementVNode("span",null,s.toDisplayString(Pt+1+(w.pageIndex-1)*w.pageSize),1)]),_:1})),r.value.headerTree&&r.value.headerTree.length?(s.openBlock(),s.createBlock(Hme,{key:3,headerTree:r.value.headerTree,designer:s.unref(n).designer},null,8,["headerTree","designer"])):s.createCommentVNode("",!0),!r.value.headerTree||!r.value.headerTree.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:4},s.renderList(u.value,(Tt,Pt)=>(s.openBlock(),s.createBlock(st,{key:Pt,field:Tt.props.zdname,"tree-node":Pt===0,title:Tt.props.label,width:Tt.props.tableItemWidth},{default:s.withCtx(({row:Rt})=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+Tt.type),{ref_for:!0,ref:Tt.id,widget:Tt,designer:s.unref(n).designer,tableItemData:Rt,modelValue:Rt[Tt.props.zdname],"onUpdate:modelValue":Ce=>Rt[Tt.props.zdname]=Ce},null,8,["widget","designer","tableItemData","modelValue","onUpdate:modelValue"]))]),_:2},1032,["field","tree-node","title","width"]))),128)):s.createCommentVNode("",!0),C(!0).length?(s.openBlock(),s.createBlock(st,{key:5,fixed:"right",title:"操作栏",align:"center",width:r.value.oprateWidth||O.value},{default:s.withCtx(({row:Tt})=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C(!0),(Pt,Rt)=>s.withDirectives((s.openBlock(),s.createBlock(tt,{link:"",type:P(Pt,Tt).type,class:"!mx-0",size:"small",disabled:P(Pt,Tt).disabled,key:Rt,icon:Pt.props.icon,onClick:s.withModifiers(Ce=>ve(Pt,Tt),["stop"])},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(Pt.props.label),1)]),_:2},1032,["type","disabled","icon","onClick"])),[[s.vShow,!P(Pt,Tt).hide]])),128))]),_:1},8,["width"])):s.createCommentVNode("",!0)]),_:1},8,["data","height","border","span-method","row-config","stripe","show-overflow","loading","radio-config","checkbox-config","align","tree-config","size","show-header"])]),r.value.hasPage?(s.openBlock(),s.createElementBlock("div",Zme,[s.createVNode(xt,{"current-page":w.pageIndex,"onUpdate:currentPage":me[1]||(me[1]=Tt=>w.pageIndex=Tt),"page-size":w.pageSize,"onUpdate:pageSize":me[2]||(me[2]=Tt=>w.pageSize=Tt),"page-sizes":[20,50,100,200,300,400],layout:"total, sizes, prev, pager, next, jumper",total:d.value,onSizeChange:ne,onCurrentChange:ne},null,8,["current-page","page-size","total"])])):s.createCommentVNode("",!0)])],4)}}}),[["__scopeId","data-v-d83c565e"]]);/**!
|
14
|
+
})`,insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"查找"},{label:"suc",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"app.\\$message.success( $1 )",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"消息成功"},{label:"war",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"app.\\$message.warning( $1 )",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"消息警告"},{label:"err",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"app.\\$message.error( $1 )",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"消息报错"}]}}}),l.addCommand(monaco.KeyMod.CtrlCmd|monaco.KeyCode.KeyD,function(){l.trigger("keyboard","editor.action.deleteLines",null)}),l.addCommand(monaco.KeyMod.CtrlCmd|monaco.KeyMod.Shift|monaco.KeyCode.KeyF,function(){l.getAction("editor.action.formatDocument").run()})):console.error("编辑器容器元素不存在")})}),s.onUnmounted(()=>{l.dispose()});const u=()=>{console.log(l.getValue())},c=h=>{l.setValue(h)},f=()=>{l.trigger("keyboard","editor.action.formatDocument",null)},d=h=>{const g=l.getSelection(),b=l.getPosition();let x;g.isEmpty()?x=new monaco.Range(b.lineNumber,b.column,b.lineNumber,b.column):x=g,l.executeEdits("",[{range:x,text:h,forceMoveMarkers:!0}])},p=h=>{h&&h.type&&(h.type=="api"&&d(h.row.example),h.type=="id"&&d(h.row.id))};return e({getValue:u,setValue:c,setPositionValue:d,formatCode:f}),(h,g)=>{const b=s.resolveComponent("common-sidetree"),x=s.resolveDirective("loading");return s.withDirectives((s.openBlock(),s.createElementBlock("div",Ime,[r.pure?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Pme,[s.createVNode(b,{designer:t.designer,canAddApi:!0,onAddApi:p},null,8,["designer"])])),s.createElementVNode("div",kme,[r.pure?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Vme,[t.isAsync?(s.openBlock(),s.createElementBlock("span",Rme,"async ")):s.createCommentVNode("",!0),Lme,Bme,(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.params,(w,C)=>(s.openBlock(),s.createElementBlock("span",Fme,s.toDisplayString(w)+" "+s.toDisplayString(C==r.params.length-1?"":" , "),1))),256)),jme])),s.createElementVNode("div",{class:"flex-1 h-full",ref_key:"container",ref:i,style:s.normalizeStyle({width:r.width,height:r.height})},null,4),r.pure?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",$me," } "))])])),[[x,a.value]])}}},zme=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-codeEditor"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const o=n;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());let i=s.computed(()=>r.widget.props);const a=s.computed({set:u=>{i.value.isTableItem?o("update:modelValue",u):i.value.value=u},get:()=>i.value.isTableItem?r.modelValue===void 0?i.value.value:r.modelValue:i.value.value}),l=u=>{i.value.isTrim&&(i.value.value=r.designer.$utils.trim(u)),r.designer.eventHandle({eventType:"onChange",value:i.value.value,widget:r.widget})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),s.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:l}),(u,c)=>{const f=s.resolveComponent("common-widget-label-container");return s.openBlock(),s.createBlock(f,{props:s.unref(i),class:"min-h-80"},{default:s.withCtx(()=>[s.createVNode(dP,{designer:t.designer,pure:!0,modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=d=>a.value=d),language:s.unref(i).language},null,8,["designer","modelValue","language"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),kl={homepage:{isContainer:!0,displayName:"页面",widgetList:[],type:"homepage",id:"homepage",chosenId:"homepage",props:{label:"",width:24,remark:"",hide:!1,onCreated:null,onMounted:null,height:null,style:{}}},form:{isContainer:!0,displayName:"表单",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,widgetList:[],props:{hasLabel:!1,label:"",width:24,remark:"",hasFooter:!0,hasSubmitButton:!0,hasResetButton:!0,buttonAlign:"right",submitButtonText:"提交",hasFooterBg:!0,hasBorder:!0,list:[],hide:!1,style:{},formType:"Create",apiSetCreate:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},apiSetUpdate:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},apiSetDetail:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},onCreated:null,onMounted:null,onButtonClick:null}},div:{isContainer:!0,displayName:"工作区容器",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],complete:!0,props:{hasLabel:!1,remark:"",width:24,flex:!0,flexWrap:!0,flexDirection:"row",alignItems:"center",justifyContent:"flex-start",hide:!1,onCreated:null,onMounted:null}},card:{isContainer:!0,displayName:"卡片容器",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],complete:!0,props:{hasLabel:!1,remark:"",value:"",width:24,title:"卡片标题",list:[],flex:!0,flexWrap:!0,flexDirection:"row",alignItems:"center",justifyContent:"flex-start",hide:!1,hasSplitLine:!0,onCreated:null,onMounted:null,onButtonClick:null}},modal:{isContainer:!0,displayName:"弹窗",isForm:!1,widgetList:[],canAddDataTableQuery:!1,complete:!0,canAddDataTableList:!1,props:{hasLabel:!1,title:"弹窗",show:!1,width:24,modalWidth:"80%",modalHeight:"80%",hideConfirm:!1,hasFooter:!0,list:[],height:null,onCreated:null,onMounted:null,onConfirm:null,onButtonClick:null}},tabs:{isContainer:!0,displayName:"标签页",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],props:{hasLabel:!1,label:"标签页",width:24,type:"border-card",remark:"",activeName:null,loadType:"loadOnce",tabs:[{label:"标签页1",value:"tab1",widgetList:[]},{label:"标签页2",value:"tab2",widgetList:[]},{label:"标签页3",value:"tab3",widgetList:[]}],onCreated:null,onMounted:null,onChange:null}},input:{isContainer:!1,displayName:"输入框",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{hasLabel:!0,size:"default",remark:"",required:!1,readonly:!1,disabled:!1,isDetail:!1,hide:!1,placeholder:"请输入",prependText:"",appendText:"",labelPosition:"left",value:null,zdname:null,label:"输入框",labelAlign:"right",labelWidth:"120px",width:24,type:"text",rows:3,isTrim:!1,maxlength:null,showLimit:!1,onCreated:null,onMounted:null,onInput:null,onChange:null,onFocus:null,onBlur:null,onHandle:null}},select:{isContainer:!1,displayName:"下拉框",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{hasLabel:!0,size:"default",label:"下拉框",required:!1,disabled:!1,hide:!1,labelPosition:"left",placeholder:"请选择",remark:"",value:null,zdname:null,isDetail:!1,labelAlign:"right",labelWidth:"120px",clearable:!0,width:24,apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null,onChange:null}},selects:{isContainer:!1,displayName:"下拉多选框",isForm:!0,canAddDataTableQuery:!0,complete:!0,canAddDataTableList:!0,props:{size:"default",required:!1,hasLabel:!0,disabled:!1,remark:"",hide:!1,labelPosition:"left",placeholder:"请选择",value:[],isDetail:!1,multipleLimit:null,maxCollapseTags:null,collapseTags:!1,zdname:null,label:"下拉多选框",labelAlign:"right",clearable:!1,labelWidth:"120px",width:24,apiSet:{method:"get",apiurl:"",params:[],contentType:"JSON",dataFormat:"",labelField:"",valueField:"",beforeSend:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null,onChange:null}},radio:{isContainer:!1,displayName:"单选框",isForm:!0,complete:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,props:{hasLabel:!0,required:!1,disabled:!1,size:"default",hide:!1,remark:"",labelPosition:"left",isButton:!1,isDetail:!1,isBlock:!1,value:null,zdname:null,label:"单选框",labelAlign:"right",labelWidth:"120px",width:24,apiSet:{method:"get",apiurl:"",params:[],contentType:"JSON",dataFormat:"",labelField:"",valueField:"",beforeSend:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null,onChange:null}},checkbox:{isContainer:!1,displayName:"多选框",isForm:!0,canAddDataTableQuery:!0,complete:!0,canAddDataTableList:!0,props:{hasLabel:!0,size:"default",required:!1,disabled:!1,hide:!1,remark:"",isDetail:!1,labelPosition:"left",isButton:!1,isBlock:!1,value:[],zdname:null,label:"多选框",labelAlign:"right",labelWidth:"120px",width:24,apiSet:{method:"get",apiurl:"",params:[],contentType:"JSON",dataFormat:"",labelField:"",valueField:"",beforeSend:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null,onChange:null}},date:{isContainer:!1,displayName:"日期",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{size:"default",required:!1,hasLabel:!0,disabled:!1,remark:"",hide:!1,labelPosition:"left",placeholder:"请选择",isDetail:!1,value:null,type:"date",format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",rangeSeparator:"-",startPlaceholder:"开始时间",endPlaceholder:"结束时间",defaultNow:!1,zdname:null,label:"日期",labelAlign:"right",labelWidth:"120px",width:24,onCreated:null,onMounted:null,onChange:null,onFocus:null,onBlur:null}},progress:{isContainer:!1,displayName:"进度条",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!0,complete:!0,props:{hasLabel:!0,size:"default",remark:"",color:"#67C23A",strokeWidth:6,textInside:!1,hasStriped:!0,hasStripedFlow:!0,hide:!1,circleWidth:126,labelPosition:"left",value:null,zdname:null,label:"进度条",labelAlign:"right",labelWidth:"120px",width:24,type:"line",onCreated:null,onMounted:null,format:null}},switch:{isContainer:!1,displayName:"开关",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{size:"default",required:!1,isDetail:!1,hasLabel:!0,width:24,disabled:!1,hide:!1,labelPosition:"left",remark:"",value:!1,zdname:null,label:"开关",labelAlign:"right",labelWidth:"120px",activeText:"开",inactiveText:"关",onCreated:null,onMounted:null,onChange:null}},time:{isContainer:!1,displayName:"时间",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{size:"default",hasLabel:!0,required:!1,disabled:!1,hide:!1,remark:"",labelPosition:"left",isDetail:!1,placeholder:"请选择",value:null,format:"HH:mm:ss",valueFormat:"HH:mm:ss",rangeSeparator:"-",startPlaceholder:"开始时间",endPlaceholder:"结束时间",zdname:null,label:"时间",type:"time",labelAlign:"right",labelWidth:"120px",width:24,onCreated:null,onMounted:null,onChange:null,onFocus:null,onBlur:null}},rate:{isContainer:!1,displayName:"评分",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{size:"default",required:!1,hasLabel:!0,disabled:!1,isDetail:!1,hide:!1,labelPosition:"left",value:5,zdname:null,remark:"",label:"评分",labelAlign:"right",labelWidth:"120px",width:24,max:5,allowHalf:!1,showScore:!1,onCreated:null,onMounted:null,onChange:null}},file:{isContainer:!1,displayName:"文件上传",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],complete:!0,props:{size:"default",hasLabel:!0,required:!1,disabled:!1,isDetail:!1,hideFileName:!1,hidePreview:!1,hide:!1,placeholder:"请上传文件",labelPosition:"left",remark:"",value:null,zdname:null,label:"文件上传",labelAlign:"right",labelWidth:"120px",width:24,fileField:"file",fileIdField:"id",fileNameField:"name",fileUrlField:"url",fileSaveType:"name,id",fileDownType:"blob",fileGetUrl:"",fileDownUrl:"",accept:"",limit:100,fileSize:10,readonly:!1,multiple:!0,hideTable:!1,apiSet:{method:"post",apiurl:"",params:[],contentType:"file",dataFormat:"",labelField:"",valueField:"",beforeSend:""},onCreated:null,onMounted:null,onNameFormat:null}},location:{isContainer:!1,displayName:"位置选择器",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,props:{size:"medium",required:!1,remark:"",hasLabel:!0,readonly:!1,disabled:!1,isDetail:!1,hide:!1,labelPosition:"left",value:null,zdname:null,label:"",labelAlign:"right",labelWidth:"120px",width:24,city:"北京市",onCreated:null,onMounted:null,onInput:null,onChange:null,onFocus:null,onBlur:null,onHandle:null}},service:{isContainer:!1,displayName:"服务",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],complete:!0,props:{label:"",remark:"",hasLabel:!1,width:24,serviceJson:"",apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},onCreated:null,onMounted:null}},iframe:{isContainer:!1,displayName:"iframe",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],props:{label:"iframe",hasLabel:!1,width:24,remark:"",height:"50vh",src:"",onCreated:null,onMounted:null}},editor:{isContainer:!1,displayName:"富文本编辑器",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!0,required:!1,readonly:!1,isDetail:!1,remark:"",hide:!1,labelPosition:"left",value:null,zdname:null,label:"富文本编辑器",labelAlign:"right",labelWidth:"120px",width:24,fileField:"file",fileUrlField:"",apiSet:{method:"post",apiurl:"",params:[],contentType:"FormData",dataFormat:"",beforeSend:""},onCreated:null,onMounted:null,onChange:null}},codeEditor:{isContainer:!1,displayName:"代码编辑器",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{height:"200px",value:null,hasLabel:!0,language:"javascript",remark:"",isDetail:!1,required:!1,readonly:!1,hide:!1,labelPosition:"left",zdname:null,label:"代码编辑器",labelAlign:"right",labelWidth:"120px",width:24,style:{height:"400px"},onCreated:null,onMounted:null}},button:{isContainer:!1,displayName:"按钮",isForm:!0,canAddDataTableQuery:!1,complete:!0,canAddDataTableList:!0,props:{size:"default",type:"primary",isPlain:!1,isText:!1,isTextBgColor:!1,isLink:!1,isRound:!1,isCircle:!1,isLoading:!1,disabled:!1,hide:!1,hasLabel:!1,remark:"",label:"按钮",icon:"",align:"left",onCreated:null,onMounted:null,onClick:null}},divider:{isContainer:!1,displayName:"分割线",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!1,width:24,onCreated:null,onMounted:null}},title:{isContainer:!1,displayName:"标题",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!1,value:"标题",remark:"",width:24,onCreated:null,onMounted:null}},html:{isContainer:!1,displayName:"html",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,props:{hasLabel:!1,value:null,remark:"",width:24,onCreated:null,onMounted:null}},alert:{isContainer:!1,displayName:"警告",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{title:"提示",hasLabel:!1,type:"info",description:"",closable:!1,center:!1,closeText:"",showIcon:!0,width:24,hide:!1,effect:"light",onCreated:null,onMounted:null}},image:{isContainer:!1,displayName:"图片",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!0,complete:!0,props:{hasLabel:!1,value:"https://fuss10.elemecdn.com/a/3f/3302e58f9a181d2509f3dc0fa68b0jpeg.jpeg",hide:!1,fit:null,alt:"",canPreview:!1,imgWidth:"100px",imgHeight:"100px",onCreated:null,onMounted:null,onFormat:null}},edittable:{isContainer:!1,displayName:"可编辑表格",isForm:!0,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,props:{zdname:null,hasLabel:!1,label:"",labelAlign:"right",labelWidth:"120px",isDetail:!1,width:24,remark:"",height:"80vh",required:!1,hide:!1,value:[],apiSet:{method:"get",apiurl:"",params:[],contentType:"JSON",dataFormat:"",beforeSend:""},tableConfig:{baseInfo:{rows:"datas",count:"totalCount",page:"pageindex",limit:"pagesize",count:"totalCount",pageDefault:20,pageDefaultIndex:1,oprateWidth:null,singleselect:!1,align:"center",hasPage:!0,showOverFlow:!0,initLoadData:!0,hideHandleBtn:!1,isStripe:!0,normalTable:!1,hideEditButton:!1,formTableMode:"table",treeMode:!1,treeTransform:!1,treeRowField:"id",treeParentField:"pid",treeChildrenField:"children",treeLazySign:"hasChild",treeExpandAll:!1,treeAccordion:!1,isLazy:!1,isLine:!1,isHideChoose:!1},buttonList:[],queryList:[],tableList:[]},onCreated:null,onMounted:null,onDataLoad:null,onRowsChange:null,onChildLoad:null}},datatable:{isContainer:!1,displayName:"数据表格",isForm:!0,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!1,isDetail:!1,width:24,hide:!1,apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},size:"small",height:"80vh",oprateWidth:null,rows:"ListOrders",count:"OrderCount",page:"pageIndex",limit:"pageSize",pageDefault:20,align:"left",singleselect:!1,border:"default",hasPage:!0,initLoadData:!0,showOverFlow:!0,isStripe:!0,isHideChoose:!1,isHideQuery:!1,isHideButton:!1,isHideIndex:!1,isHideHeader:!1,isHideQueryBtn:!1,isHideResetBtn:!1,isCurrendClick:!0,isNotAuto:!1,treeMode:!1,treeRowField:"id",treeParentField:"pid",treeChildrenField:"children",mergeRowKey:null,treeTransform:!1,treeExpandAll:!1,treeAccordion:!1,isLine:!1,cellStyle:null,rowStyle:null,cellClassName:null,rowClassName:null,onCreated:null,onMounted:null,onDataLoad:null,headerTree:[]}},transfer:{isContainer:!1,displayName:"穿梭框",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!0,size:"medium",required:!1,readonly:!1,remark:"",disabled:!1,isDetail:!1,hide:!1,labelPosition:"left",value:[],zdname:null,label:"穿梭框",labelAlign:"right",labelWidth:"120px",width:24,propsKey:"value",propsLabel:"label",leftTitle:"备选项",rightTitle:"已选项",apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null}},checkCode:{isContainer:!1,displayName:"手机验证码",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{size:"default",remark:"",hasLabel:!0,required:!1,isDetail:!1,hide:!1,placeholder:"请输入手机验证码",labelPosition:"left",value:null,zdname:null,label:"手机验证码",labelAlign:"right",labelWidth:"120px",width:24,type:"text",timeSec:60,apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},onCreated:null,onMounted:null,onInput:null,onChange:null,onFocus:null,onBlur:null}},datatableitem:{isContainer:!1,displayName:"数据表格表头",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!0,addToPanel:!1,complete:!0,props:{hasLabel:!1,zdname:null,label:"",onFormat:null,hide:!1}},echarts:{isContainer:!1,displayName:"图表",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{hasLabel:!0,remark:"",isDetail:!1,hide:!1,labelPosition:"left",label:"",labelAlign:"right",labelWidth:"0px",width:12,type:"普通柱状图",onCreated:null,onMounted:null,initOption:null,style:{height:"400px"}}},statistic:{isContainer:!1,displayName:"统计",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{remark:"",isDetail:!1,hide:!1,width:8,title:"统计标题",value:100,unit:"%",color:"rgba(123, 104, 238, 1)",fontColor:"#ffffff",split:3,data:[{title:"同比",value:100,key:"a",unit:"%"},{title:"环比",value:100,key:"b",unit:"元"},{title:"周同比",value:100,key:"c",unit:"美元"}],onCreated:null,onMounted:null}},text:{isContainer:!1,displayName:"文字",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!0,addToPanel:!0,complete:!0,props:{isDetail:!1,hide:!1,value:"文字内容",size:"default",type:"primary",truncated:!1,lineClamp:null,onCreated:null,onMounted:null,onFormat:null,onTypeFormat:null}},tag:{isContainer:!1,displayName:"标签",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!0,addToPanel:!0,complete:!0,props:{isDetail:!1,hide:!1,value:"标签",size:"default",type:"primary",closable:!1,hit:!1,round:!1,color:null,effect:"light",onCreated:null,onMounted:null,onFormat:null,onTypeFormat:null}},steps:{isContainer:!1,displayName:"步骤条",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{remark:"",isDetail:!1,hide:!1,width:24,value:1,space:null,direction:"horizontal",alignCenter:!0,simple:!1,space:null,data:[{title:"数据填写",description:"步骤条描述"},{title:"初审",description:"步骤条描述"},{title:"复审",description:"步骤条描述"},{title:"终审",description:"步骤条描述"},{title:"完成",description:"步骤条描述"}],onCreated:null,onMounted:null,onStepClick:null}},timeline:{isContainer:!1,displayName:"时间线",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{remark:"",isDetail:!1,hide:!1,width:24,hideTimestamp:!1,center:!1,hollow:!1,placement:"top",size:"normal",data:[{time:"2024-04-05",title:"数据填写",description:"时间线详细内容描述"},{time:"2024-04-06",title:"初审",description:"时间线详细内容描述"},{time:"2024-04-07",title:"复审",description:"时间线详细内容描述"},{time:"2024-04-08",title:"终审",description:"时间线详细内容描述"},{time:"2024-04-09",title:"完成",description:"时间线详细内容描述"}],onCreated:null,onMounted:null}},flow:{isContainer:!1,displayName:"流程设计器",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{remark:"",isDetail:!1,hide:!1,width:24,onCreated:null,onMounted:null,onFlowClick:null,style:{height:"800px"}}},cascader:{isContainer:!1,displayName:"级联选择器",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{hasLabel:!0,size:"default",remark:"",required:!1,readonly:!1,disabled:!1,isDetail:!1,hide:!1,clearable:!0,placeholder:"请输入",labelPosition:"left",value:null,zdname:null,propsKey:"value",propsLabel:"label",propsChildren:"children",label:"级联选择器",labelAlign:"right",labelWidth:"120px",showAllLevels:!0,postLastLevel:!1,width:24,options:[{value:"guide",label:"Guide",children:[{value:"disciplines",label:"Disciplines",children:[{value:"consistency",label:"Consistency"},{value:"feedback",label:"Feedback"}]},{value:"navigation",label:"Navigation",children:[{value:"side nav",label:"Side Navigation"},{value:"top nav",label:"Top Navigation"}]}]}],apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},onCreated:null,onMounted:null,onChange:null}}},Hme=Object.assign({name:"headerItem"},{__name:"headerItem",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})},headerTree:{type:Array,default:[]}},setup(t){let e=t;return(n,r)=>{const o=s.resolveComponent("headerItem",!0),i=s.resolveComponent("vxe-colgroup"),a=s.resolveComponent("vxe-column");return s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(e).headerTree,(l,u)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:u},[l.children&&l.children.length?(s.openBlock(),s.createBlock(i,{key:0,title:l.label},{default:s.withCtx(()=>[s.createVNode(o,{headerTree:l.children,designer:s.unref(e).designer},null,8,["headerTree","designer"])]),_:2},1032,["title"])):(s.openBlock(),s.createBlock(a,{key:1,field:s.unref(e).designer.getWidgetById(l.id).props.zdname,title:s.unref(e).designer.getWidgetById(l.id).props.label},{default:s.withCtx(({row:c})=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+s.unref(e).designer.getWidgetById(l.id).type),{ref_for:!0,ref:l.id,widget:s.unref(e).designer.getWidgetById(l.id),designer:s.unref(e).designer,tableItemData:c,modelValue:c[s.unref(e).designer.getWidgetById(l.id).props.zdname],"onUpdate:modelValue":f=>c[s.unref(e).designer.getWidgetById(l.id).props.zdname]=f},null,8,["widget","designer","tableItemData","modelValue","onUpdate:modelValue"]))]),_:2},1032,["field","title"]))],64))),128)}}}),Wme={key:0,class:"flex flex-col bg-white border overflow-hidden mb-1 dark:border-slate-800 dark:bg-black"},Ume={key:0,class:"w-full flex flex-wrap py-1 px-2"},Gme={key:1,class:"flex bg-gray-50 justify-between px-2 py-1 border-t dark:bg-slate-800 dark:border-gray-800"},Yme={class:"flex"},qme={class:"flex"},Xme={class:"flex-1 bg-white border border-t-0 overflow-hidden flex flex-col dark:bg-slate-800 dark:border-gray-800"},Kme={class:"flex-1 overflow-hidden"},Zme={key:0,class:"bg-gray-100 py-1 px-2 dark:bg-slate-800 dark:border-gray-800"},Jme=Ra(Object.assign({name:"show"},{__name:"show",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})}},setup(t,{expose:e}){let n=t;n.designer.setVueIncetance(n.widget.id,s.getCurrentInstance());const r=s.computed(()=>n.widget.props),o=s.ref([]),i=s.ref([]),a=s.ref({}),l=s.ref([]),u=s.ref([]),c=s.ref([]),f=s.ref(!1),d=s.ref(0),p=s.ref(),h=s.ref(!1),g=s.ref({transform:r.value.treeTransform,rowField:r.value.treeRowField,parentField:r.value.treeParentField,childrenField:r.value.treeChildrenField,expandAll:r.value.treeExpandAll,accordion:r.value.accordion,showLine:r.value.isLine,iconOpen:"vxe-icon-square-minus",iconClose:"vxe-icon-square-plus",checkboxConfig:{checkField:"checked",halfField:"halfChecked",disabledField:"_checkbox_disabled"}}),b=s.ref({trigger:r.value.isHideChoose?void 0:"row",labelField:"my_check"}),x=s.ref({trigger:r.value.isHideChoose?void 0:"row",labelField:"my_check",highlight:!0,range:r.value.treeMode?void 0:!0}),w=s.reactive({pageSize:20,pageIndex:1}),C=le=>{let me=[];return o.value.forEach(Be=>{Be.props.isSide===le&&!Be.props.hide&&me.push(Be)}),me},O=s.computed(()=>{function le(we){return/[\u4e00-\u9fff]/.test(we)}let me=0;return C(!0).forEach(we=>{let Me=we.props.label;for(let Ge of Me)le(Ge)?me+=14:me+=8;me+=24,we.props.icon&&(me+=6)}),me<80&&(me=80),me}),A=le=>{let me=0;return l.value.forEach((Be,we)=>{!Be.props.hide&&we<=le&&(me+=Be.props.width)}),!(me>48)},I=({row:le,_rowIndex:me,column:Be,visibleData:we})=>{const Me=["ProtocolName","ProtocolFormula","ProtocolStandard","outNum","result","remark"],Ge=le[Be.field];if(Ge&&Me.includes(Be.field)){const tt=we[me-1];let Ye=we[me+1];if(tt&&tt[Be.field]===Ge)return{rowspan:0,colspan:0};{let Pe=1;for(;Ye&&Ye[Be.field]===Ge;)Ye=we[++Pe+me];if(Pe>1)return{rowspan:Pe,colspan:1}}}},M=()=>{let le=0;return l.value.forEach(me=>{me.props.hide||(le+=me.props.width)}),le},P=(le,me)=>{let Be=le.props.onBtnFormat;if(Be){let Me=new Function("widget","tableItemData","app",Be)(le,me,n.designer);return Me&&n.designer.$utils.isPlainObject(Me)?Me:{disabled:le.props.disabled,type:le.props.type,hide:le.props.hide}}else return{disabled:le.props.disabled,type:le.props.type,hide:le.props.hide}},k=({row:le,column:me})=>{let Be=r.value.cellStyle;if(Be)return new Function("widget","row","column","app",Be)(n.widget,le,me,n.designer)},V=({row:le,column:me})=>{let Be=r.value.cellClassName;if(Be)return new Function("widget","row","column","app",Be)(n.widget,le,me,n.designer)},F=({row:le})=>{let me=r.value.rowStyle;if(me)return new Function("widget","row","app",me)(n.widget,le,n.designer)},j=({row:le})=>{let me=r.value.rowClassName;if(me)return new Function("widget","row","app",me)(n.widget,le,n.designer)},L=()=>r.value.singleselect?p.value.getRadioRecord():p.value.getCheckboxRecords(!0),B=()=>p.value.getCheckboxIndeterminateRecords(!0),U=()=>L().concat(B()),W=()=>p.value.getTableData().fullData,J=le=>{p.value.insertAt(le,-1)},ie=()=>{p.value.insertAt(a.value,-1)},X=le=>{c.value=le},Q=le=>{p.value.remove(le)},fe=le=>{d.value=le},ve=(le,me)=>{n.designer.eventHandle({eventType:"onItemClick",widget:le,value:me||L()})},Ne=le=>{},Le=()=>{l.value=n.designer.$utils.clone(i.value,!0),ne()},Ke=()=>{w.pageIndex=1,ne()},nt=()=>{let le={};return l.value.forEach(me=>{le[me.props.zdname]=me.props.value}),le[r.value.page]=w.pageIndex,le[r.value.limit]=w.pageSize,le},rt=le=>{p.value.setAllTreeExpand(le)},He=(le=[])=>{var me=Be=>{var we=[];return Be.forEach(Me=>{p.value.setCheckboxRow(Me,!1),le.includes(Me[g.value.rowField])&&(p.value.setCheckboxRow(Me,!0),Me[g.value.childrenField]&&Me[g.value.childrenField].length>0&&p.value.setCheckboxRow(Me[g.value.childrenField],!1)),Me[g.value.childrenField]&&Me[g.value.childrenField].length>0&&me(Me[g.value.childrenField])}),we};p.value.setCheckboxRow(me(c.value),!0)},ne=async()=>{try{if(!n.widget.props.apiSet.apiurl)return;f.value=!0,await n.designer.requestByApisetConfig({widget:n.widget,resultCb:({funRes:le,httpRes:me})=>{f.value=!1,d.value=le[r.value.count],c.value=le[r.value.rows],s.nextTick(()=>{n.designer.eventHandle({eventType:"onDataLoad",widget:n.widget})})},paramCb:le=>(le[r.value.page]=w.pageIndex,le[r.value.limit]=w.pageSize,l.value.forEach(me=>{le[me.props.zdname]=me.props.value}),le)})}catch{f.value=!1}};return(()=>{n.widget.widgetList.forEach(le=>{switch(le.compType){case 0:o.value.push(le);break;case 1:l.value.push(le);break;case 2:u.value.push(le);break}}),w.pageSize=r.value.pageDefault,i.value=n.designer.$utils.clone(l.value,!0),u.value.forEach(le=>{le.props.zdname&&(a.value[le.props.zdname]=le.props.value)}),r.value.initLoadData&&ne()})(),e({chosen:L,getRows:W,setRows:X,setTotal:fe,refresh:Ke,getSearchParams:nt,allTreeChosen:U,setRowsCheckedByIds:He,addRow:J,addRowByDefault:ie,removeRow:Q,setAllTreeExpand:rt}),(le,me)=>{const Be=s.resolveComponent("common-label-container"),we=s.resolveComponent("ArrowDownBold"),Me=s.resolveComponent("el-icon"),Ge=s.resolveComponent("ArrowUpBold"),tt=s.resolveComponent("el-button"),Ye=s.resolveComponent("el-button-group"),Pe=s.resolveComponent("vxe-table-column"),st=s.resolveComponent("vxe-column"),Re=s.resolveComponent("vxe-table"),xt=s.resolveComponent("el-pagination");return s.openBlock(),s.createElementBlock("div",{class:"flex flex-col",style:s.normalizeStyle({width:`${r.value.width/24*100}%`,height:"100%"})},[l.value.length&&!r.value.isHideQuery||!r.value.isHideButton?(s.openBlock(),s.createElementBlock("div",Wme,[l.value.length&&!r.value.isHideQuery?(s.openBlock(),s.createElementBlock("div",Ume,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(Tt,Pt)=>s.withDirectives((s.openBlock(),s.createBlock(Be,{key:Tt.id,style:s.normalizeStyle({width:`${Tt.props.width/24*100}%`}),class:"!my-1",label:Tt.props.label,align:"right"},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+Tt.type),{ref_for:!0,ref:Tt.id,widget:Tt,designer:s.unref(n).designer},null,8,["widget","designer"]))]),_:2},1032,["style","label"])),[[s.vShow,!Tt.props.hide&&(h.value||A(Pt))]])),128))])):s.createCommentVNode("",!0),r.value.isHideButton?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Gme,[s.createElementVNode("div",Yme,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C(!1),(Tt,Pt)=>(s.openBlock(),s.createElementBlock("div",{key:Pt,class:"flex-1 flex justify-center items-center mx-1"},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+Tt.type),{ref_for:!0,ref:Tt.id,widget:Tt,designer:s.unref(n).designer,onClick:Rt=>ve(Tt)},null,8,["widget","designer","onClick"]))]))),128))]),s.createElementVNode("div",qme,[M()>48?(s.openBlock(),s.createBlock(tt,{key:0,link:"",size:"small",type:"primary",class:"mr-2",onClick:me[0]||(me[0]=Tt=>h.value=!h.value)},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(h.value?"收起":"展开")+" ",1),h.value?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(Me,{key:0},{default:s.withCtx(()=>[s.createVNode(we)]),_:1})),h.value?(s.openBlock(),s.createBlock(Me,{key:1},{default:s.withCtx(()=>[s.createVNode(Ge)]),_:1})):s.createCommentVNode("",!0)]),_:1})):s.createCommentVNode("",!0),s.createVNode(Ye,null,{default:s.withCtx(()=>[r.value.isHideQueryBtn?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(tt,{key:0,icon:"Search",onClick:ne},{default:s.withCtx(()=>[s.createTextVNode("查询")]),_:1})),r.value.isHideResetBtn?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(tt,{key:1,icon:"Refresh",onClick:Le},{default:s.withCtx(()=>[s.createTextVNode("重置")]),_:1}))]),_:1})])]))])):s.createCommentVNode("",!0),s.createElementVNode("div",Xme,[s.createElementVNode("div",Kme,[s.createVNode(Re,{ref_key:"mainTable",ref:p,data:c.value,height:r.value.isNotAuto?null:"auto",border:r.value.border,"span-method":r.value.mergeRowKey?I:null,"row-config":{isCurrent:!r.value.isHideChoose,isHover:!0,useKey:r.value.treeMode},stripe:!r.value.treeMode&&r.value.isStripe,"scroll-y":{enabled:!0},"column-config":{resizable:!0},"show-overflow":r.value.treeMode?!0:r.value.showOverFlow,loading:f.value,"radio-config":r.value.singleselect?b.value:{},"checkbox-config":r.value.singleselect?{}:x.value,align:r.value.align,"tree-config":r.value.treeMode?g.value:null,class:"w-full",size:r.value.size,"cell-style":k,"row-style":F,"show-header":!r.value.isHideHeader,"header-row-class-name":Ne,"cell-class-name":V,"row-class-name":j},{default:s.withCtx(()=>[r.value.singleselect&&!r.value.isHideChoose?(s.openBlock(),s.createBlock(Pe,{key:0,width:"50",type:"radio",field:"my_check",align:"center"})):s.createCommentVNode("",!0),!r.value.singleselect&&!r.value.isHideChoose?(s.openBlock(),s.createBlock(Pe,{key:1,width:"50",type:"checkbox",field:"my_check",align:"center"})):s.createCommentVNode("",!0),r.value.isHideIndex?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(st,{key:2,type:"seq",width:"50",title:"序号"},{default:s.withCtx(({row:Tt,$rowIndex:Pt})=>[s.createElementVNode("span",null,s.toDisplayString(Pt+1+(w.pageIndex-1)*w.pageSize),1)]),_:1})),r.value.headerTree&&r.value.headerTree.length?(s.openBlock(),s.createBlock(Hme,{key:3,headerTree:r.value.headerTree,designer:s.unref(n).designer},null,8,["headerTree","designer"])):s.createCommentVNode("",!0),!r.value.headerTree||!r.value.headerTree.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:4},s.renderList(u.value,(Tt,Pt)=>(s.openBlock(),s.createBlock(st,{key:Pt,field:Tt.props.zdname,"tree-node":Pt===0,title:Tt.props.label,width:Tt.props.tableItemWidth},{default:s.withCtx(({row:Rt})=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+Tt.type),{ref_for:!0,ref:Tt.id,widget:Tt,designer:s.unref(n).designer,tableItemData:Rt,modelValue:Rt[Tt.props.zdname],"onUpdate:modelValue":Ce=>Rt[Tt.props.zdname]=Ce},null,8,["widget","designer","tableItemData","modelValue","onUpdate:modelValue"]))]),_:2},1032,["field","tree-node","title","width"]))),128)):s.createCommentVNode("",!0),C(!0).length?(s.openBlock(),s.createBlock(st,{key:5,fixed:"right",title:"操作栏",align:"center",width:r.value.oprateWidth||O.value},{default:s.withCtx(({row:Tt})=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C(!0),(Pt,Rt)=>s.withDirectives((s.openBlock(),s.createBlock(tt,{link:"",type:P(Pt,Tt).type,class:"!mx-0",size:"small",disabled:P(Pt,Tt).disabled,key:Rt,icon:Pt.props.icon,onClick:s.withModifiers(Ce=>ve(Pt,Tt),["stop"])},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(Pt.props.label),1)]),_:2},1032,["type","disabled","icon","onClick"])),[[s.vShow,!P(Pt,Tt).hide]])),128))]),_:1},8,["width"])):s.createCommentVNode("",!0)]),_:1},8,["data","height","border","span-method","row-config","stripe","show-overflow","loading","radio-config","checkbox-config","align","tree-config","size","show-header"])]),r.value.hasPage?(s.openBlock(),s.createElementBlock("div",Zme,[s.createVNode(xt,{"current-page":w.pageIndex,"onUpdate:currentPage":me[1]||(me[1]=Tt=>w.pageIndex=Tt),"page-size":w.pageSize,"onUpdate:pageSize":me[2]||(me[2]=Tt=>w.pageSize=Tt),"page-sizes":[20,50,100,200,300,400],layout:"total, sizes, prev, pager, next, jumper",total:d.value,onSizeChange:ne,onCurrentChange:ne},null,8,["current-page","page-size","total"])])):s.createCommentVNode("",!0)])],4)}}}),[["__scopeId","data-v-bb4dff6b"]]);/**!
|
15
15
|
* Sortable 1.15.2
|
16
16
|
* @author RubaXa <trash@rubaxa.org>
|
17
17
|
* @author owenm <owen23355@gmail.com>
|