sinosoft-common-form 1.2.6 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common-form.es.js +713 -2590
- package/common-form.umd.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
package/common-form.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,N){typeof exports=="object"&&typeof module<"u"?module.exports=N(require("vue")):typeof define=="function"&&define.amd?define(["vue"],N):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=N(e.Vue))})(this,function(e){"use strict";const N={props:{fieldList:{type:Array,required:!0},model:Object,options:Object},emits:["selectChange","radioChange","checkChange","submit","reset"],setup(b,{emit:V}){const o=e.reactive({model:{}}),d=e.ref(null),D=e.computed(()=>Object.assign([],b.options)),z=()=>{o.model=b.model},s=(h,y,B)=>{d.value&&(y?d.value.validate(K=>{if(K)V(B||"submit",o.model,h);else return!1}):B==="reset"?d.value.resetFields():V(B||"submit",o.model,h))},p=(h,y)=>{V("selectChange",h,y)},k=(h,y)=>{V("radioChange",h,y)},f=(h,y)=>{V("checkChange",h,y)},w=(h,y)=>{const B=o.model[y].length;B!==1&&(B>1&&o.model[y].shift(),V("checkChange",h,y))},C=(h,y,B)=>{s(h,y,B)},x=(h,y)=>{h&&(y==null?void 0:y.key)==="Enter"&&s(void 0,!0,"submit")},_=()=>{d.value.resetFields()},g=()=>{d.value.clearValidate()};return e.onMounted(()=>{console.log("mmmmmmm",o.model,b.model),o.model=b.model}),e.watch(()=>b.fieldList,(h,y)=>{h!==y&&z()}),{...e.toRefs(o),formRef:d,formOptions:D,onSubmit:s,selectChange:p,radioChange:k,checkChange:f,handleCheckedChange:w,handleClick:C,handleKeyUp:x,resetFieldsTest:_,clearValidateTest:g}}},ol="",F=(b,V)=>{const o=b.__vccOpts||b;for(const[d,D]of V)o[d]=D;return o},S=b=>(e.pushScopeId("data-v-9ea36fde"),b=b(),e.popScopeId(),b),O={key:0},Y={class:"header-title"},H={class:"title-content"},M={key:0,class:"custom-required"},L={key:0,class:"custom-required"},T=["src"],P={key:0,class:"custom-required"},I={class:"lable"},R={class:"lable_note"},j={key:0,class:"custom-required"},W={key:0,class:"custom-required"},A={key:0,class:"custom-required"},G={key:0,class:"custom-required"},J={key:0,class:"custom-required"},Q={key:0,class:"custom-required"},X={key:0,class:"custom-required"},Z={key:0,class:"custom-required"},u=S(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"20px 0"}},null,-1)),$={key:0,class:"custom-required"},v={key:1},ee={class:"header-title"},le={class:"title-content"},ae={key:0,class:"custom-required"},oe={key:0,class:"custom-required"},de=["src"],ne={key:0,class:"custom-required"},te={class:"lable"},re={class:"lable_note"},se={key:0,class:"custom-required"},ce={key:0,class:"custom-required"},ie={key:0,class:"custom-required"},pe={key:0,class:"custom-required"},ye={key:0,class:"custom-required"},he={key:0,class:"custom-required"},be={key:0,class:"custom-required"},ke={key:0,class:"custom-required"},fe=S(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"20px 0"}},null,-1)),Ve={key:0,class:"custom-required"},we={key:2},Ce={class:"header-title"},xe={class:"title-content"},_e={key:0,class:"custom-required"},ge={key:0,class:"custom-required"},Be=["src"],me={key:0,class:"custom-required"},Ne={class:"lable"},Se={class:"lable_note"},De={key:0,class:"custom-required"},Ee={key:0,class:"custom-required"},Ue={key:0,class:"custom-required"},Ke={key:0,class:"custom-required"},qe={key:0,class:"custom-required"},ze={key:0,class:"custom-required"},Fe={key:0,class:"custom-required"},Oe={key:0,class:"custom-required"},Ye=S(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"20px 0"}},null,-1)),He={key:0,class:"custom-required"},Me={key:3},Le={class:"header-title"},Te={class:"title-content"},Pe={key:0,class:"custom-required"},Ie={key:0,class:"custom-required"},Re=["src"],je={key:0,class:"custom-required"},We={class:"lable"},Ae={class:"lable_note"},Ge={key:0,class:"custom-required"},Je={key:0,class:"custom-required"},Qe={key:0,class:"custom-required"},Xe={key:0,class:"custom-required"},Ze={key:0,class:"custom-required"},ue={key:0,class:"custom-required"},$e={key:0,class:"custom-required"},ve={key:0,class:"custom-required"},el=S(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"20px 0"}},null,-1)),ll={key:0,class:"custom-required"};function al(b,V,o,d,D,z){const s=e.resolveComponent("el-form-item"),p=e.resolveComponent("el-input"),k=e.resolveComponent("el-radio"),f=e.resolveComponent("el-radio-group"),w=e.resolveComponent("el-checkbox"),C=e.resolveComponent("el-checkbox-group"),x=e.resolveComponent("el-option"),_=e.resolveComponent("el-select"),g=e.resolveComponent("el-date-picker"),h=e.resolveComponent("el-col"),y=e.resolveComponent("el-row"),B=e.resolveComponent("sinosoft-common-button"),K=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(K,e.mergeProps({"hide-required-asterisk":"",onSubmit:V[0]||(V[0]=e.withModifiers(()=>{},["prevent"])),model:o.model},d.formOptions,{"label-position":d.formOptions.labelPosition,ref:"formRef"}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.fieldList,(i,q)=>(e.openBlock(),e.createElementBlock("div",{key:q},[i.colNum===4?(e.openBlock(),e.createElementBlock("div",O,[e.createVNode(y,{gutter:10},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.formItemList,(l,m)=>e.withDirectives((e.openBlock(),e.createBlock(h,{xs:24,sm:6,md:6,lg:6,xl:6,key:m},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",Y,[e.createElementVNode("span",H,e.toDisplayString(l.title),1)])]),_:2},1536)),[[e.vShow,!l.isHide]]):l.type==="name"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:1,label:l.label,disabled:l.disabled||d.formOptions.isDisabled,class:"container_name",rules:l.rules.nameEnFamily},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",M,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(s,{rules:l.rules.nameEnFamily,prop:[l.field.nameEnFamily],class:"item-name"},{default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field.nameEnFamily],"onUpdate:modelValue":a=>o.model[l.field.nameEnFamily]=a,"show-word-limit":"",readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||d.formOptions.isDisabled,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.rules.nameEn,prop:[l.field.nameEn],class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field.nameEn],"onUpdate:modelValue":a=>o.model[l.field.nameEn]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||d.formOptions.isDisabled,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.rules.nameChFamily,prop:[l.field.nameChFamily],class:"item-name"},{default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field.nameChFamily],"onUpdate:modelValue":a=>o.model[l.field.nameChFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameChFamily,disabled:l.disabled||d.formOptions.isDisabled,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.rules.nameCh,prop:[l.field.nameCh],class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field.nameCh],"onUpdate:modelValue":a=>o.model[l.field.nameCh]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameCh,disabled:l.disabled||d.formOptions.isDisabled,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled","rules"])),[[e.vShow,!l.isHide]]):l.type==="gender"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:2,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",L,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,onChange:a=>d.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(k,{label:n[((t=l.options)==null?void 0:t.valueKey)||"code"],size:"large",key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>[e.createElementVNode("img",{src:n.code==="M"?"http://192.168.5.200:9000/test/sex_img_M.png":"http://192.168.5.200:9000/test/sex_img_F.png",style:{width:"44px",height:"44px","margin-bottom":"-15px","margin-left":"4px"},alt:""},null,8,T)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="radio"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:3,label:l.label,rules:l.rules,prop:[l.field],class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",P,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,onChange:a=>d.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(k,{size:"large",label:n[((t=l.options)==null?void 0:t.valueKey)||"code"],key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(n[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[e.vShow,!l.isHide]]):l.type==="radioNote"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:4,label:l.label,rules:l.rules,prop:[l.field],class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",I,e.toDisplayString(l.labelBefore),1),e.createElementVNode("span",R,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",j,"*")):e.createCommentVNode("",!0)]),e.createVNode(f,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,onChange:a=>d.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(k,{size:"large",label:n[((t=l.options)==null?void 0:t.valueKey)||"code"],key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(n[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[e.vShow,!l.isHide]]):l.type==="checkbox"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:5,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",W,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(C,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,onChange:a=>d.checkChange(a,l.field),disabled:l.disabled||d.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(w,{key:n[((t=l.options)==null?void 0:t.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(n[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="checkboxRadio"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:6,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",A,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(C,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,onChange:a=>d.handleCheckedChange(a,l.field),disabled:l.disabled||d.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(w,{key:n[((t=l.options)==null?void 0:t.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(n[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="select"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:7,label:l.label,rules:l.rules,disabled:l.disabled||d.formOptions.isDisabled,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",G,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(_,{onChange:a=>d.selectChange(a,l.field),modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,placeholder:l.placeholder,clearable:l.clearable},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r,c;return e.openBlock(),e.createBlock(x,{key:n[((t=l.options)==null?void 0:t.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.labelkey)||"name"],value:n[((c=l.options)==null?void 0:c.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"]),e.createElementVNode("div",{class:"item_tips_blow",style:e.normalizeStyle(l.tipsBlowStyle)},e.toDisplayString(l.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])),[[e.vShow,!l.isHide]]):l.type==="date"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:8,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",J,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(g,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label},null,8,["disabled-date","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="daterange"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:9,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",Q,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(g,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,type:"daterange","range-separator":"To","start-placeholder":l.startPlaceholder,"end-placeholder":l.endPlaceholder,size:"large"},null,8,["disabled-date","modelValue","onUpdate:modelValue","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="slotItem"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:10,label:l.label,rules:l.rules,prop:[l.field],class:"rule_err"},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",X,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.renderSlot(b.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="phone"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:11,label:l.label,rules:l.rules.phoneNumber,prop:[l.field.phoneNumber],class:"phone_item"},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",Z,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field.phoneNumber],"onUpdate:modelValue":a=>o.model[l.field.phoneNumber]=a,disabled:l.disabled||d.formOptions.isDisabled,placeholder:l.placeholder||"请选择",clearable:l.clearable},{prepend:e.withCtx(()=>{var a;return[e.createVNode(_,{disabled:l.disabled||d.formOptions.isDisabled,modelValue:o.model[l.field.areaCode],"onUpdate:modelValue":n=>o.model[l.field.areaCode]=n,placeholder:((a=l.options)==null?void 0:a.placeholder)||"请选择",style:{width:"115px"}},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.options)==null?void 0:n.data,(t,r)=>(e.openBlock(),e.createBlock(x,{label:t.name,value:t.code,key:r},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder"])]}),_:2},1032,["maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="line"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:12,label:l.label},{default:e.withCtx(()=>[u]),_:2},1032,["label"])),[[e.vShow,!l.isHide]]):e.withDirectives((e.openBlock(),e.createBlock(s,{key:13,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",$,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||d.formOptions.isDisabled,showPassword:l.showPassword,clearable:l.clearable,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},e.createSlots({_:2},[l.prepend?{name:"prepend",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.field),1)]),key:"0"}:void 0,l.append?{name:"append",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.append),1)]),key:"1"}:void 0]),1032,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]])],4)]),_:2},1024)),[[e.vShow,!l.isHide]])),128))]),_:2},1024)])):i.colNum===3?(e.openBlock(),e.createElementBlock("div",v,[e.createVNode(y,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.formItemList,(l,m)=>e.withDirectives((e.openBlock(),e.createBlock(h,{xs:24,sm:8,md:8,lg:8,xl:8,key:m},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",ee,[e.createElementVNode("span",le,e.toDisplayString(l.title),1)])]),_:2},1536)),[[e.vShow,!l.isHide]]):l.type==="name"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:1,label:l.label,disabled:l.disabled||d.formOptions.isDisabled,class:"container_name",rules:l.rules.nameEnFamily},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",ae,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(s,{rules:l.rules.nameEnFamily,prop:[l.field.nameEnFamily],class:"item-name"},{default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field.nameEnFamily],"onUpdate:modelValue":a=>o.model[l.field.nameEnFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||d.formOptions.isDisabled,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.rules.nameEn,prop:[l.field.nameEn],class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field.nameEn],"onUpdate:modelValue":a=>o.model[l.field.nameEn]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||d.formOptions.isDisabled,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.rules.nameChFamily,prop:[l.field.nameChFamily],class:"item-name"},{default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field.nameChFamily],"onUpdate:modelValue":a=>o.model[l.field.nameChFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameChFamily,disabled:l.disabled||d.formOptions.isDisabled,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.rules.nameCh,prop:[l.field.nameCh],class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field.nameCh],"onUpdate:modelValue":a=>o.model[l.field.nameCh]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameCh,disabled:l.disabled||d.formOptions.isDisabled,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled","rules"])),[[e.vShow,!l.isHide]]):l.type==="gender"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:2,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",oe,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,onChange:a=>d.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(k,{label:n[((t=l.options)==null?void 0:t.valueKey)||"code"],size:"large",key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>[e.createElementVNode("img",{src:n.code==="M"?"http://192.168.5.200:9000/test/sex_img_M.png":"http://192.168.5.200:9000/test/sex_img_F.png",style:{width:"44px",height:"44px","margin-bottom":"-15px","margin-left":"4px"},alt:""},null,8,de)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="radio"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:3,label:l.label,rules:l.rules,prop:[l.field],class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",ne,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,onChange:a=>d.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(k,{size:"large",label:n[((t=l.options)==null?void 0:t.valueKey)||"code"],key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(n[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[e.vShow,!l.isHide]]):l.type==="radioNote"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:4,label:l.label,rules:l.rules,prop:[l.field],class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",te,e.toDisplayString(l.labelBefore),1),e.createElementVNode("span",re,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",se,"*")):e.createCommentVNode("",!0)]),e.createVNode(f,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,onChange:a=>d.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(k,{size:"large",label:n[((t=l.options)==null?void 0:t.valueKey)||"code"],key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(n[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[e.vShow,!l.isHide]]):l.type==="checkbox"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:5,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",ce,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(C,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,onChange:a=>d.checkChange(a,l.field),disabled:l.disabled||d.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(w,{key:n[((t=l.options)==null?void 0:t.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(n[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="checkboxRadio"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:6,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",ie,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(C,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,onChange:a=>d.handleCheckedChange(a,l.field),disabled:l.disabled||d.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(w,{key:n[((t=l.options)==null?void 0:t.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(n[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="select"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:7,label:l.label,rules:l.rules,disabled:l.disabled||d.formOptions.isDisabled,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",pe,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(_,{onChange:a=>d.selectChange(a,l.field),modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,placeholder:l.placeholder,clearable:l.clearable},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r,c;return e.openBlock(),e.createBlock(x,{key:n[((t=l.options)==null?void 0:t.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.labelkey)||"name"],value:n[((c=l.options)==null?void 0:c.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"]),e.createElementVNode("div",{class:"item_tips_blow",style:e.normalizeStyle(l.tipsBlowStyle)},e.toDisplayString(l.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])),[[e.vShow,!l.isHide]]):l.type==="date"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:8,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",ye,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(g,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label},null,8,["disabled-date","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="daterange"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:9,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",he,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(g,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,type:"daterange","range-separator":"To","start-placeholder":l.startPlaceholder,"end-placeholder":l.endPlaceholder,size:"large"},null,8,["disabled-date","modelValue","onUpdate:modelValue","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="slotItem"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:10,label:l.label,rules:l.rules,prop:[l.field],class:"rule_err"},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",be,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.renderSlot(b.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="phone"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:11,label:l.label,class:"phone_item",rules:l.rules.phoneNumber,prop:[l.field.phoneNumber]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",ke,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field.phoneNumber],"onUpdate:modelValue":a=>o.model[l.field.phoneNumber]=a,disabled:l.disabled||d.formOptions.isDisabled,placeholder:l.placeholder||"请选择",clearable:l.clearable},{prepend:e.withCtx(()=>{var a;return[e.createVNode(_,{disabled:l.disabled||d.formOptions.isDisabled,modelValue:o.model[l.field.areaCode],"onUpdate:modelValue":n=>o.model[l.field.areaCode]=n,placeholder:((a=l.options)==null?void 0:a.placeholder)||"请选择",style:{width:"115px"}},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.options)==null?void 0:n.data,(t,r)=>(e.openBlock(),e.createBlock(x,{label:t.name,value:t.code,key:r},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder"])]}),_:2},1032,["maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="line"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:12,label:l.label},{default:e.withCtx(()=>[fe]),_:2},1032,["label"])),[[e.vShow,!l.isHide]]):e.withDirectives((e.openBlock(),e.createBlock(s,{key:13,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",Ve,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||d.formOptions.isDisabled,showPassword:l.showPassword,clearable:l.clearable,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},e.createSlots({_:2},[l.prepend?{name:"prepend",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.field),1)]),key:"0"}:void 0,l.append?{name:"append",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.append),1)]),key:"1"}:void 0]),1032,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]])],4)]),_:2},1024)),[[e.vShow,!l.isHide]])),128))]),_:2},1024)])):i.colNum===2?(e.openBlock(),e.createElementBlock("div",we,[e.createVNode(y,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.formItemList,(l,m)=>e.withDirectives((e.openBlock(),e.createBlock(h,{xs:24,sm:12,md:12,lg:12,xl:12,key:m},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",Ce,[e.createElementVNode("span",xe,e.toDisplayString(l.title),1)])]),_:2},1536)),[[e.vShow,!l.isHide]]):l.type==="name"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:1,label:l.label,disabled:l.disabled||d.formOptions.isDisabled,class:"container_name",rules:l.rules.nameEnFamily},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",_e,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(s,{rules:l.rules.nameEnFamily,prop:[l.field.nameEnFamily],class:"item-name"},{default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field.nameEnFamily],"onUpdate:modelValue":a=>o.model[l.field.nameEnFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||d.formOptions.isDisabled,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.rules.nameEn,prop:[l.field.nameEn],class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field.nameEn],"onUpdate:modelValue":a=>o.model[l.field.nameEn]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||d.formOptions.isDisabled,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.rules.nameChFamily,prop:[l.field.nameChFamily],class:"item-name"},{default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field.nameChFamily],"onUpdate:modelValue":a=>o.model[l.field.nameChFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameChFamily,disabled:l.disabled||d.formOptions.isDisabled,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.rules.nameCh,prop:[l.field.nameCh],class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field.nameCh],"onUpdate:modelValue":a=>o.model[l.field.nameCh]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameCh,disabled:l.disabled||d.formOptions.isDisabled,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled","rules"])),[[e.vShow,!l.isHide]]):l.type==="gender"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:2,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",ge,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,onChange:a=>d.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(k,{label:n[((t=l.options)==null?void 0:t.valueKey)||"code"],size:"large",key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>[e.createElementVNode("img",{src:n.code==="M"?"http://192.168.5.200:9000/test/sex_img_M.png":"http://192.168.5.200:9000/test/sex_img_F.png",style:{width:"44px",height:"44px","margin-bottom":"-15px","margin-left":"4px"},alt:""},null,8,Be)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="radio"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:3,label:l.label,rules:l.rules,prop:[l.field],class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",me,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,onChange:a=>d.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(k,{size:"large",label:n[((t=l.options)==null?void 0:t.valueKey)||"code"],key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(n[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[e.vShow,!l.isHide]]):l.type==="radioNote"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:4,label:l.label,rules:l.rules,prop:[l.field],class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",Ne,e.toDisplayString(l.labelBefore),1),e.createElementVNode("span",Se,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",De,"*")):e.createCommentVNode("",!0)]),e.createVNode(f,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,onChange:a=>d.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(k,{size:"large",label:n[((t=l.options)==null?void 0:t.valueKey)||"code"],key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(n[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[e.vShow,!l.isHide]]):l.type==="checkbox"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:5,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",Ee,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(C,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,onChange:a=>d.checkChange(a,l.field),disabled:l.disabled||d.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(w,{key:n[((t=l.options)==null?void 0:t.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(n[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="checkboxRadio"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:6,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",Ue,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(C,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,onChange:a=>d.handleCheckedChange(a,l.field),disabled:l.disabled||d.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(w,{key:n[((t=l.options)==null?void 0:t.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(n[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="select"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:7,label:l.label,rules:l.rules,disabled:l.disabled||d.formOptions.isDisabled,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",Ke,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(_,{onChange:a=>d.selectChange(a,l.field),modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,placeholder:l.placeholder,clearable:l.clearable},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r,c;return e.openBlock(),e.createBlock(x,{key:n[((t=l.options)==null?void 0:t.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.labelkey)||"name"],value:n[((c=l.options)==null?void 0:c.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"]),e.createElementVNode("div",{class:"item_tips_blow",style:e.normalizeStyle(l.tipsBlowStyle)},e.toDisplayString(l.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])),[[e.vShow,!l.isHide]]):l.type==="date"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:8,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",qe,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(g,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label},null,8,["disabled-date","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="daterange"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:9,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",ze,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(g,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,type:"daterange","range-separator":"To","start-placeholder":l.startPlaceholder,"end-placeholder":l.endPlaceholder,size:"large"},null,8,["disabled-date","modelValue","onUpdate:modelValue","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="slotItem"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:10,label:l.label,rules:l.rules,prop:[l.field],class:"rule_err"},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",Fe,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.renderSlot(b.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="phone"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:11,label:l.label,rules:l.rules.phoneNumber,class:"phone_item",prop:[l.field.phoneNumber]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",Oe,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field.phoneNumber],"onUpdate:modelValue":a=>o.model[l.field.phoneNumber]=a,disabled:l.disabled||d.formOptions.isDisabled,placeholder:l.placeholder||"请选择",clearable:l.clearable},{prepend:e.withCtx(()=>{var a;return[e.createVNode(_,{disabled:l.disabled||d.formOptions.isDisabled,modelValue:o.model[l.field.areaCode],"onUpdate:modelValue":n=>o.model[l.field.areaCode]=n,placeholder:((a=l.options)==null?void 0:a.placeholder)||"请选择",style:{width:"115px"}},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.options)==null?void 0:n.data,(t,r)=>(e.openBlock(),e.createBlock(x,{label:t.name,value:t.code,key:r},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder"])]}),_:2},1032,["maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="line"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:12,label:l.label},{default:e.withCtx(()=>[Ye]),_:2},1032,["label"])),[[e.vShow,!l.isHide]]):e.withDirectives((e.openBlock(),e.createBlock(s,{key:13,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",He,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||d.formOptions.isDisabled,showPassword:l.showPassword,clearable:l.clearable,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},e.createSlots({_:2},[l.prepend?{name:"prepend",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.field),1)]),key:"0"}:void 0,l.append?{name:"append",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.append),1)]),key:"1"}:void 0]),1032,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]])],4)]),_:2},1024)),[[e.vShow,!l.isHide]])),128))]),_:2},1024)])):i.colNum===1?(e.openBlock(),e.createElementBlock("div",Me,[e.createVNode(y,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.formItemList,(l,m)=>e.withDirectives((e.openBlock(),e.createBlock(h,{xs:24,sm:24,md:24,lg:24,xl:24,key:m},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",Le,[e.createElementVNode("span",Te,e.toDisplayString(l.title),1)])]),_:2},1536)),[[e.vShow,!l.isHide]]):l.type==="name"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:1,label:l.label,disabled:l.disabled||d.formOptions.isDisabled,class:"container_name",rules:l.rules.nameEnFamily},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",Pe,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(s,{rules:l.rules.nameEnFamily,prop:[l.field.nameEnFamily],class:"item-name"},{default:e.withCtx(()=>[e.createVNode(p,{name:l.field.nameEnFamily,maxlength:l.maxlength,modelValue:o.model[l.field.nameEnFamily],"onUpdate:modelValue":a=>o.model[l.field.nameEnFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||d.formOptions.isDisabled,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},null,8,["name","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.rules.nameEn,prop:[l.field.nameEn],class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(p,{name:l.field.nameEn,maxlength:l.maxlength,modelValue:o.model[l.field.nameEn],"onUpdate:modelValue":a=>o.model[l.field.nameEn]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:"item.placeholderNameEn",disabled:l.disabled||d.formOptions.isDisabled,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},null,8,["name","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.rules.nameChFamily,prop:[l.field.nameChFamily],class:"item-name"},{default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,name:l.field.nameChFamily,modelValue:o.model[l.field.nameChFamily],"onUpdate:modelValue":a=>o.model[l.field.nameChFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameChFamily,disabled:l.disabled||d.formOptions.isDisabled,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","name","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.rules.nameCh,prop:[l.field.nameCh],class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field.nameCh],"onUpdate:modelValue":a=>o.model[l.field.nameCh]=a,name:l.field.nameCh,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameCh,disabled:l.disabled||d.formOptions.isDisabled,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","name","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled","rules"])),[[e.vShow,!l.isHide]]):l.type==="gender"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:2,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",Ie,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,onChange:a=>d.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(k,{label:n[((t=l.options)==null?void 0:t.valueKey)||"code"],size:"large",key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>[e.createElementVNode("img",{src:n.code==="M"?"http://192.168.5.200:9000/test/sex_img_M.png":"http://192.168.5.200:9000/test/sex_img_F.png",style:{width:"44px",height:"44px","margin-bottom":"-15px","margin-left":"4px"},alt:""},null,8,Re)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="radio"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:3,label:l.label,rules:l.rules,prop:[l.field],class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",je,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(f,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,onChange:a=>d.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(k,{size:"large",label:n[((t=l.options)==null?void 0:t.valueKey)||"code"],key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(n[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[e.vShow,!l.isHide]]):l.type==="radioNote"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:4,label:l.label,rules:l.rules,prop:[l.field],class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",We,e.toDisplayString(l.labelBefore),1),e.createElementVNode("span",Ae,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",Ge,"*")):e.createCommentVNode("",!0)]),e.createVNode(f,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,onChange:a=>d.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(k,{size:"large",label:n[((t=l.options)==null?void 0:t.valueKey)||"code"],key:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(n[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[e.vShow,!l.isHide]]):l.type==="checkbox"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:5,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",Je,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(C,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,onChange:a=>d.checkChange(a,l.field),style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(w,{key:n[((t=l.options)==null?void 0:t.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(n[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange","style"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="checkboxRadio"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:6,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",Qe,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(C,{modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,onChange:a=>d.handleCheckedChange(a,l.field),disabled:l.disabled||d.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r;return e.openBlock(),e.createBlock(w,{key:n[((t=l.options)==null?void 0:t.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.valueKey)||"code"]},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(n[((c=l.options)==null?void 0:c.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="select"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:7,label:l.label,rules:l.rules,disabled:l.disabled||d.formOptions.isDisabled,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",Xe,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(_,{onChange:a=>d.selectChange(a,l.field),modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,placeholder:l.placeholder,clearable:l.clearable},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,n=>{var t,r,c;return e.openBlock(),e.createBlock(x,{key:n[((t=l.options)==null?void 0:t.valueKey)||"code"],label:n[((r=l.options)==null?void 0:r.labelkey)||"name"],value:n[((c=l.options)==null?void 0:c.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"]),e.createElementVNode("div",{class:"item_tips_blow",style:e.normalizeStyle(l.tipsBlowStyle)},e.toDisplayString(l.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])),[[e.vShow,!l.isHide]]):l.type==="date"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:8,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",Ze,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(g,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,disabled:l.disabled||d.formOptions.isDisabled,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label},null,8,["disabled-date","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="daterange"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:9,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",ue,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(g,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,type:"daterange","range-separator":"To","start-placeholder":l.startPlaceholder,"end-placeholder":l.endPlaceholder,size:"large"},null,8,["disabled-date","modelValue","onUpdate:modelValue","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="slotItem"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:10,label:l.label,rules:l.rules,prop:[l.field],class:"rule_err"},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",$e,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.renderSlot(b.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="phone"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:11,label:l.label,rules:l.rules.phoneNumber,prop:[l.field.phoneNumber],class:"phone_item"},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",ve,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field.phoneNumber],"onUpdate:modelValue":a=>o.model[l.field.phoneNumber]=a,disabled:l.disabled||d.formOptions.isDisabled,placeholder:l.placeholder||"请选择",clearable:l.clearable},{prepend:e.withCtx(()=>{var a;return[e.createVNode(_,{disabled:l.disabled||d.formOptions.isDisabled,modelValue:o.model[l.field.areaCode],"onUpdate:modelValue":n=>o.model[l.field.areaCode]=n,placeholder:((a=l.options)==null?void 0:a.placeholder)||"请选择",style:{width:"115px"}},{default:e.withCtx(()=>{var n;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((n=l.options)==null?void 0:n.data,(t,r)=>(e.openBlock(),e.createBlock(x,{label:t.name,value:t.code,key:r},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder"])]}),_:2},1032,["maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="line"?e.withDirectives((e.openBlock(),e.createBlock(s,{key:12,label:l.label},{default:e.withCtx(()=>[el]),_:2},1032,["label"])),[[e.vShow,!l.isHide]]):e.withDirectives((e.openBlock(),e.createBlock(s,{key:13,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.lableStyle])},e.toDisplayString(l.label),5),l.required?(e.openBlock(),e.createElementBlock("span",ll,"*")):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(p,{maxlength:l.maxlength,modelValue:o.model[l.field],"onUpdate:modelValue":a=>o.model[l.field]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||d.formOptions.isDisabled,showPassword:l.showPassword,clearable:l.clearable,autosize:l.autosize,rows:l.rows,onKeyup:e.withKeys(a=>d.handleKeyUp(l.enterable),["enter"])},e.createSlots({_:2},[l.prepend?{name:"prepend",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.field),1)]),key:"0"}:void 0,l.append?{name:"append",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.append),1)]),key:"1"}:void 0]),1032,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","autosize","rows","onKeyup"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]])],4)]),_:2},1024)),[[e.vShow,!l.isHide]])),128))]),_:2},1024)])):e.createCommentVNode("",!0)]))),128)),e.createVNode(s,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(b.$slots,"buttons",{model:o.model,onBtnClick:d.onSubmit},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.formOptions.btnConfig,(i,q)=>(e.openBlock(),e.createElementBlock("div",{key:q},[i.isShow?(e.openBlock(),e.createBlock(B,{key:0,btnCode:i.btnCode,plain:i.plain,primary:i.primary,info:i.info,text:i.text,link:i.link,loading:i.loading,loadingColor:i.loadingColor,width:i.width,height:i.height,circle:i.circle,color:i.color,bgColor:i.bgColor,borderColor:i.borderColor,borderStyle:i.borderStyle,borderWidth:i.borderWidth,icon:i.icon,size:i.size,fontSize:i.fontSize,fontWeight:i.fontWeight,styleObj:{...i.style},class:e.normalizeClass(i.class),onHandleClick:l=>d.handleClick(l,i.isRule,i.emitName)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.name),1)]),_:2},1032,["btnCode","plain","primary","info","text","link","loading","loadingColor","width","height","circle","color","bgColor","borderColor","borderStyle","borderWidth","icon","size","fontSize","fontWeight","styleObj","class","onHandleClick"])):e.createCommentVNode("",!0)]))),128))],!0)]),_:3})]),_:3},16,["model","label-position"])}const E=F(N,[["render",al],["__scopeId","data-v-9ea36fde"]]);function U(b,V={}){U.installed||(U.installed=!0,b.component("common-el-form",E))}return E.install=U,E});
|
|
1
|
+
(function(e,k){typeof exports=="object"&&typeof module<"u"?module.exports=k(require("vue")):typeof define=="function"&&define.amd?define(["vue"],k):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=k(e.Vue))})(this,function(e){"use strict";const k={props:{fieldList:{type:Array,required:!0},model:Object,options:Object},emits:["selectChange","radioChange","checkChange","submit","reset"],setup(i,{emit:y}){const p=e.reactive({model:{}}),o=e.ref(null),V=e.computed(()=>Object.assign([],i.options)),D=()=>{p.model=i.model},t=(s,n,b)=>{o.value&&(n?o.value.validate(E=>{if(E)y(b||"submit",p.model,s);else return!1}):b==="reset"?o.value.resetFields():y(b||"submit",p.model,s))},f=(s,n)=>{y("selectChange",s,n)},_=(s,n)=>{y("radioChange",s,n)},C=(s,n)=>{y("checkChange",s,n)},x=(s,n)=>{const b=p.model[n].length;b!==1&&(b>1&&p.model[n].shift(),y("checkChange",s,n))},g=(s,n,b)=>{t(s,n,b)},w=(s,n)=>{s&&(n==null?void 0:n.key)==="Enter"&&t(void 0,!0,"submit")},m=()=>{o.value.resetFields()},B=()=>{o.value.clearValidate()};return e.onMounted(()=>{D(),o.value.resetFields()}),e.watch(()=>i.fieldList,(s,n)=>{s!==n&&D()}),{...e.toRefs(p),formRef:o,states:p,formOptions:V,onSubmit:t,selectChange:f,radioChange:_,checkChange:C,handleCheckedChange:x,handleClick:g,handleKeyUp:w,resetFieldsTest:m,clearValidateTest:B}}},$="",K=(i,y)=>{const p=i.__vccOpts||i;for(const[o,V]of y)p[o]=V;return p},z=i=>(e.pushScopeId("data-v-15f750a4"),i=i(),e.popScopeId(),i),F={class:"header-title"},O={class:"title-content"},q={key:0,class:"custom-required"},T={key:0,class:"custom-required"},H=["src"],Y={key:0,class:"custom-required"},L={class:"lable"},M={class:"lable_note"},I={key:0,class:"custom-required"},P={key:0,class:"custom-required"},j={key:0,class:"custom-required"},W={key:0,class:"custom-required"},R={key:0,class:"custom-required"},A={key:0,class:"custom-required"},G={key:0,class:"custom-required"},J={key:0,class:"custom-required"},Q=z(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"20px 0"}},null,-1)),X={key:0,class:"custom-required"};function Z(i,y,p,o,V,D){const t=e.resolveComponent("el-form-item"),f=e.resolveComponent("el-input"),_=e.resolveComponent("el-radio"),C=e.resolveComponent("el-radio-group"),x=e.resolveComponent("el-checkbox"),g=e.resolveComponent("el-checkbox-group"),w=e.resolveComponent("el-option"),m=e.resolveComponent("el-select"),B=e.resolveComponent("el-date-picker"),s=e.resolveComponent("el-col"),n=e.resolveComponent("el-row"),b=e.resolveComponent("sinosoft-common-button"),E=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(E,e.mergeProps({"hide-required-asterisk":"",onSubmit:y[0]||(y[0]=e.withModifiers(()=>{},["prevent"])),model:p.model},o.formOptions,{"label-position":o.formOptions.labelPosition,ref:"formRef"}),{default:e.withCtx(()=>[e.createVNode(n,{gutter:10},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.fieldList,(l,U)=>e.withDirectives((e.openBlock(),e.createBlock(s,{xs:l.xs?l.xs:24,sm:l.sm?l.sm:24,md:l.md?l.md:8,lg:l.lg?l.lg:8,xl:l.xl?l.xl:8,key:U},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",F,[e.createElementVNode("span",O,e.toDisplayString(l.title),1)])]),_:2},1536)),[[e.vShow,!l.isHide]]):l.type==="name"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:1,label:l.label,disabled:l.disabled||o.formOptions.isDisabled,class:"container_name",rules:l.rules.nameEnFamily},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.labelStyle])},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",q,"*")):e.createCommentVNode("",!0)],4)]),default:e.withCtx(()=>[e.createVNode(t,{rules:l.rules.nameEnFamily,prop:[l.field.nameEnFamily],class:"item-name"},{default:e.withCtx(()=>[e.createVNode(f,{maxlength:l.maxlength,modelValue:o.states.model[l.field.nameEnFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameEnFamily]=a,"show-word-limit":"",readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||o.formOptions.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.rules.nameEn,prop:[l.field.nameEn],class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(f,{maxlength:l.maxlength,modelValue:o.states.model[l.field.nameEn],"onUpdate:modelValue":a=>o.states.model[l.field.nameEn]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||o.formOptions.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.rules.nameChFamily,prop:[l.field.nameChFamily],class:"item-name"},{default:e.withCtx(()=>[e.createVNode(f,{maxlength:l.maxlength,modelValue:o.states.model[l.field.nameChFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameChFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameChFamily,disabled:l.disabled||o.formOptions.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(t,{rules:l.rules.nameCh,prop:[l.field.nameCh],class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(f,{maxlength:l.maxlength,modelValue:o.states.model[l.field.nameCh],"onUpdate:modelValue":a=>o.states.model[l.field.nameCh]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameCh,disabled:l.disabled||o.formOptions.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled","rules"])),[[e.vShow,!l.isHide]]):l.type==="gender"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:2,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.labelStyle])},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",T,"*")):e.createCommentVNode("",!0)],4)]),default:e.withCtx(()=>[e.createVNode(C,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var r,c;return e.openBlock(),e.createBlock(_,{label:d[((r=l.options)==null?void 0:r.valueKey)||"code"],size:"large",key:d[((c=l.options)==null?void 0:c.valueKey)||"code"]},{default:e.withCtx(()=>[e.createElementVNode("img",{src:d.code==="M"?"http://192.168.5.200:9000/test/sex_img_M.png":"http://192.168.5.200:9000/test/sex_img_F.png",style:{width:"44px",height:"44px","margin-bottom":"-15px","margin-left":"4px"},alt:""},null,8,H)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="radio"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:3,label:l.label,rules:l.rules,prop:[l.field],class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.labelStyle])},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Y,"*")):e.createCommentVNode("",!0)],4)]),default:e.withCtx(()=>[e.createVNode(C,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var r,c;return e.openBlock(),e.createBlock(_,{size:"large",label:d[((r=l.options)==null?void 0:r.valueKey)||"code"],key:d[((c=l.options)==null?void 0:c.valueKey)||"code"]},{default:e.withCtx(()=>{var h;return[e.createTextVNode(e.toDisplayString(d[((h=l.options)==null?void 0:h.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[e.vShow,!l.isHide]]):l.type==="radioNote"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:4,label:l.label,rules:l.rules,prop:[l.field],class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",L,e.toDisplayString(l.labelBefore),1),e.createElementVNode("span",M,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",I,"*")):e.createCommentVNode("",!0)]),e.createVNode(C,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var r,c;return e.openBlock(),e.createBlock(_,{size:"large",label:d[((r=l.options)==null?void 0:r.valueKey)||"code"],key:d[((c=l.options)==null?void 0:c.valueKey)||"code"]},{default:e.withCtx(()=>{var h;return[e.createTextVNode(e.toDisplayString(d[((h=l.options)==null?void 0:h.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[e.vShow,!l.isHide]]):l.type==="checkbox"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:5,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.labelStyle])},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",P,"*")):e.createCommentVNode("",!0)],4)]),default:e.withCtx(()=>[e.createVNode(g,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.checkChange(a,l.field),disabled:l.disabled||o.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var r,c;return e.openBlock(),e.createBlock(x,{key:d[((r=l.options)==null?void 0:r.valueKey)||"code"],label:d[((c=l.options)==null?void 0:c.valueKey)||"code"]},{default:e.withCtx(()=>{var h;return[e.createTextVNode(e.toDisplayString(d[((h=l.options)==null?void 0:h.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="checkboxRadio"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:6,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.labelStyle])},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",j,"*")):e.createCommentVNode("",!0)],4)]),default:e.withCtx(()=>[e.createVNode(g,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.handleCheckedChange(a,l.field),disabled:l.disabled||o.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var r,c;return e.openBlock(),e.createBlock(x,{key:d[((r=l.options)==null?void 0:r.valueKey)||"code"],label:d[((c=l.options)==null?void 0:c.valueKey)||"code"]},{default:e.withCtx(()=>{var h;return[e.createTextVNode(e.toDisplayString(d[((h=l.options)==null?void 0:h.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="select"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:7,label:l.label,rules:l.rules,disabled:l.disabled||o.formOptions.isDisabled,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.labelStyle])},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",W,"*")):e.createCommentVNode("",!0)],4)]),default:e.withCtx(()=>[e.createVNode(m,{onChange:a=>o.selectChange(a,l.field),modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,placeholder:l.placeholder,clearable:l.clearable},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var r,c,h;return e.openBlock(),e.createBlock(w,{key:d[((r=l.options)==null?void 0:r.valueKey)||"code"],label:d[((c=l.options)==null?void 0:c.labelkey)||"name"],value:d[((h=l.options)==null?void 0:h.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"]),e.createElementVNode("div",{class:"item_tips_blow",style:e.normalizeStyle(l.tipsBlowStyle)},e.toDisplayString(l.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])),[[e.vShow,!l.isHide]]):l.type==="date"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:8,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.labelStyle])},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",R,"*")):e.createCommentVNode("",!0)],4)]),default:e.withCtx(()=>[e.createVNode(B,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label},null,8,["disabled-date","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="daterange"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:9,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.labelStyle])},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",A,"*")):e.createCommentVNode("",!0)],4)]),default:e.withCtx(()=>[e.createVNode(B,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,type:"daterange","range-separator":"To","start-placeholder":l.startPlaceholder,"end-placeholder":l.endPlaceholder,size:"large"},null,8,["disabled-date","modelValue","onUpdate:modelValue","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="slotItem"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:10,label:l.label,rules:l.rules,prop:[l.field],class:"rule_err"},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.labelStyle])},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",G,"*")):e.createCommentVNode("",!0)],4)]),default:e.withCtx(()=>[e.renderSlot(i.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="phone"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:11,label:l.label,rules:l.rules.phoneNumber,prop:[l.field.phoneNumber],class:"phone_item"},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.labelStyle])},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",J,"*")):e.createCommentVNode("",!0)],4)]),default:e.withCtx(()=>[e.createVNode(f,{maxlength:l.maxlength,modelValue:o.states.model[l.field.phoneNumber],"onUpdate:modelValue":a=>o.states.model[l.field.phoneNumber]=a,disabled:l.disabled||o.formOptions.isDisabled,placeholder:l.placeholder||"请选择",clearable:l.clearable},{prepend:e.withCtx(()=>{var a;return[e.createVNode(m,{disabled:l.disabled||o.formOptions.isDisabled,modelValue:o.states.model[l.field.areaCode],"onUpdate:modelValue":d=>o.states.model[l.field.areaCode]=d,placeholder:((a=l.options)==null?void 0:a.placeholder)||"请选择",style:{width:"115px"}},{default:e.withCtx(()=>{var d;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((d=l.options)==null?void 0:d.data,(r,c)=>(e.openBlock(),e.createBlock(w,{label:r.name,value:r.code,key:c},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder"])]}),_:2},1032,["maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]]):l.type==="line"?e.withDirectives((e.openBlock(),e.createBlock(t,{key:12,label:l.label},{default:e.withCtx(()=>[Q]),_:2},1032,["label"])),[[e.vShow,!l.isHide]]):e.withDirectives((e.openBlock(),e.createBlock(t,{key:13,label:l.label,rules:l.rules,prop:[l.field]},{label:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{display:"inline-block"},l.labelStyle])},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",X,"*")):e.createCommentVNode("",!0)],4)]),default:e.withCtx(()=>[e.createVNode(f,{maxlength:l.maxlength,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||o.formOptions.isDisabled,showPassword:l.showPassword,clearable:l.clearable,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},e.createSlots({_:2},[l.prepend?{name:"prepend",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.field),1)]),key:"0"}:void 0,l.append?{name:"append",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.append),1)]),key:"1"}:void 0]),1032,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["label","rules","prop"])),[[e.vShow,!l.isHide]])],4)]),_:2},1032,["xs","sm","md","lg","xl"])),[[e.vShow,!l.isHide]])),128))]),_:3}),e.createVNode(t,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"buttons",{model:p.model,onBtnClick:o.onSubmit},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.formOptions.btnConfig,(l,U)=>(e.openBlock(),e.createElementBlock("div",{key:U},[l.isShow?(e.openBlock(),e.createBlock(b,{key:0,btnCode:l.btnCode,plain:l.plain,primary:l.primary,info:l.info,text:l.text,link:l.link,loading:l.loading,loadingColor:l.loadingColor,width:l.width,height:l.height,circle:l.circle,color:l.color,bgColor:l.bgColor,borderColor:l.borderColor,borderStyle:l.borderStyle,borderWidth:l.borderWidth,icon:l.icon,size:l.size,fontSize:l.fontSize,fontWeight:l.fontWeight,styleObj:{...l.style},class:e.normalizeClass(l.class),onHandleClick:a=>o.handleClick(a,l.isRule,l.emitName)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.name),1)]),_:2},1032,["btnCode","plain","primary","info","text","link","loading","loadingColor","width","height","circle","color","bgColor","borderColor","borderStyle","borderWidth","icon","size","fontSize","fontWeight","styleObj","class","onHandleClick"])):e.createCommentVNode("",!0)]))),128))],!0)]),_:3})]),_:3},16,["model","label-position"])}const N=K(k,[["render",Z],["__scopeId","data-v-15f750a4"]]);function S(i,y={}){S.installed||(S.installed=!0,i.component("common-el-form",N))}return N.install=S,N});
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";[data-v-
|
|
1
|
+
@charset "UTF-8";[data-v-15f750a4] .el-date-editor{height:60px!important;width:100%!important}.form-item[data-v-15f750a4]{width:50%;display:inline-block;padding-right:0;box-sizing:border-box}[data-v-15f750a4] .el-input__inner{height:42px;color:#1d1d1d}[data-v-15f750a4] .el-card__body{padding:0}[data-v-15f750a4] .el-input__inner::placeholder{font-family:Roboto;font-size:14px;font-weight:400;line-height:22px;letter-spacing:0em;text-align:left;color:#6e6e73}[data-v-15f750a4] .el-form-item__label{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Medium;min-height:22px!important}.form-item-title[data-v-15f750a4]{width:100%}[data-v-15f750a4] .el-checkbox-group,[data-v-15f750a4] .el-radio-group{height:62px;line-height:62px}[data-v-15f750a4] .el-radio-group .el-radio{height:auto}.rule_err[data-v-15f750a4] .el-form-item__content,.radio_Note[data-v-15f750a4] .el-form-item__content{display:block}.radio_Note .lable[data-v-15f750a4]{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Medium}.radio_Note .lable_note[data-v-15f750a4]{font-size:16px;line-height:22px;color:#6e6e73;font-weight:400;font-family:Roboto Medium}.container_name[data-v-15f750a4] .el-form-item__content{align-items:start}[data-v-15f750a4] .el-form-item__error{position:relative}.item-name[data-v-15f750a4]{width:51%;padding-right:20px;padding-bottom:12px;box-sizing:border-box}.item-name-right[data-v-15f750a4]{width:49%;padding-bottom:12px;padding-right:0}.btnsItem[data-v-15f750a4]{width:100%;margin:0 auto;justify-content:right}.btnsItem[data-v-15f750a4] .el-form-item__content{justify-content:right}label[data-v-15f750a4]{display:block}.title-content[data-v-15f750a4]{font-size:22px;line-height:30px;color:#1d1d1d;font-weight:300;font-family:Roboto Medium}[data-v-15f750a4] .el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{background-color:#fff;width:80px}[data-v-15f750a4] .el-input__wrapper{height:60px;border-radius:8px;border:1px solid #c7c8ca;box-shadow:none!important}.phone_item[data-v-15f750a4] .el-input__wrapper{border-left:0px!important}.phone_item[data-v-15f750a4] .el-input-group__prepend{box-shadow:none!important}.phone_item[data-v-15f750a4] .el-input-group__prepend .el-input__wrapper{height:60px;border-radius:8px;border:1px solid #c7c8ca!important;border-right:0px!important;box-shadow:none!important}.phone_item[data-v-15f750a4] .el-input-group__prepend .el-input__wrapper .el-input__suffix{display:none;width:0!important}.phone_item[data-v-15f750a4] .el-input-group__prepend:hover{box-shadow:none!important}.phone_item[data-v-15f750a4] .el-input-group__prepend:hover .el-input__wrapper:hover{border:none;border-right:0px!important;box-shadow:none!important}.phone_item[data-v-15f750a4] .el-input-group__prepend:hover .el-input__wrapper:hover .el-input__suffix{display:none;width:0!important}[data-v-15f750a4] .el-select{width:100%}.custom-required[data-v-15f750a4]{content:"*";color:#e2a650;margin-left:4px}.item_tips_blow[data-v-15f750a4]{font-size:14px;line-height:22px;color:#00000073;font-weight:400;font-family:Roboto Medium;width:100%;word-wrap:break-word;white-space:normal}
|