sinosoft-common-form 1.2.5 → 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 +712 -2593
- 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(l,D){typeof exports=="object"&&typeof module<"u"?module.exports=D(require("vue")):typeof define=="function"&&define.amd?define(["vue"],D):(l=typeof globalThis<"u"?globalThis:l||self,l.Form=D(l.Vue))})(this,function(l){"use strict";const D={props:{fieldList:{type:Array,required:!0},model:Object,options:Object},emits:["selectChange","radioChange","checkChange","submit","reset"],setup(h,{emit:f}){const V=l.ref({}),o=l.ref(null),E=l.computed(()=>Object.assign([],h.options)),q=()=>{console.log("3`222",h.model),V.value=h.model},t=(p,y,B)=>{o.value&&(y?o.value.validate(c=>{if(c)f(B||"submit",V.value,p);else return!1}):B==="reset"?o.value.resetFields():f(B||"submit",V.value,p))},i=(p,y)=>{f("selectChange",p,y)},b=(p,y)=>{f("radioChange",p,y)},k=(p,y)=>{f("checkChange",p,y)},_=(p,y)=>{const B=V.value[y].length;B!==1&&(B>1&&V.value[y].shift(),f("checkChange",p,y))},w=(p,y,B)=>{t(p,y,B)},x=(p,y)=>{p&&(y==null?void 0:y.key)==="Enter"&&t(void 0,!0,"submit")},C=()=>{o.value.resetFields()},g=()=>{o.value.clearValidate()};l.onMounted(()=>{q()});const S=l.reactive({count:0,text:"hello"});return l.watch(()=>h.fieldList,(p,y)=>{p!==y&&q()}),{...l.toRefs(S),formRef:o,model:V,_options:E,onSubmit:t,selectChange:i,radioChange:b,checkChange:k,handleCheckedChange:_,handleClick:w,handleKeyUp:x,resetFieldsTest:C,clearValidateTest:g}}},oe="",F=(h,f)=>{const V=h.__vccOpts||h;for(const[o,E]of f)V[o]=E;return V},m=h=>(l.pushScopeId("data-v-92bd879a"),h=h(),l.popScopeId(),h),Y={key:0},H={class:"header-title"},M={class:"title-content"},L={key:0,class:"custom-required"},T={key:0,class:"custom-required"},P=["src"],I={key:0,class:"custom-required"},O={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"},$=m(()=>l.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"20px 0"}},null,-1)),u={key:0,class:"custom-required"},v={key:1},ll={class:"header-title"},el={class:"title-content"},al={key:0,class:"custom-required"},ol={key:0,class:"custom-required"},dl=["src"],nl={key:0,class:"custom-required"},rl={class:"lable"},tl={class:"lable_note"},sl={key:0,class:"custom-required"},cl={key:0,class:"custom-required"},il={key:0,class:"custom-required"},pl={key:0,class:"custom-required"},yl={key:0,class:"custom-required"},hl={key:0,class:"custom-required"},bl={key:0,class:"custom-required"},kl={key:0,class:"custom-required"},fl=m(()=>l.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"20px 0"}},null,-1)),Vl={key:0,class:"custom-required"},_l={key:2},wl={class:"header-title"},xl={class:"title-content"},Cl={key:0,class:"custom-required"},gl={key:0,class:"custom-required"},Bl=["src"],Nl={key:0,class:"custom-required"},Sl={class:"lable"},Dl={class:"lable_note"},ml={key:0,class:"custom-required"},El={key:0,class:"custom-required"},Ul={key:0,class:"custom-required"},Kl={key:0,class:"custom-required"},ql={key:0,class:"custom-required"},zl={key:0,class:"custom-required"},Fl={key:0,class:"custom-required"},Yl={key:0,class:"custom-required"},Hl=m(()=>l.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"20px 0"}},null,-1)),Ml={key:0,class:"custom-required"},Ll={key:3},Tl={class:"header-title"},Pl={class:"title-content"},Il={key:0,class:"custom-required"},Ol={key:0,class:"custom-required"},Rl=["src"],jl={key:0,class:"custom-required"},Wl={class:"lable"},Al={class:"lable_note"},Gl={key:0,class:"custom-required"},Jl={key:0,class:"custom-required"},Ql={key:0,class:"custom-required"},Xl={key:0,class:"custom-required"},Zl={key:0,class:"custom-required"},$l={key:0,class:"custom-required"},ul={key:0,class:"custom-required"},vl={key:0,class:"custom-required"},le=m(()=>l.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"20px 0"}},null,-1)),ee={key:0,class:"custom-required"};function ae(h,f,V,o,E,q){const t=l.resolveComponent("el-form-item"),i=l.resolveComponent("el-input"),b=l.resolveComponent("el-radio"),k=l.resolveComponent("el-radio-group"),_=l.resolveComponent("el-checkbox"),w=l.resolveComponent("el-checkbox-group"),x=l.resolveComponent("el-option"),C=l.resolveComponent("el-select"),g=l.resolveComponent("el-date-picker"),S=l.resolveComponent("el-col"),p=l.resolveComponent("el-row"),y=l.resolveComponent("sinosoft-common-button"),B=l.resolveComponent("el-form");return l.openBlock(),l.createBlock(B,l.mergeProps({"hide-required-asterisk":"",onSubmit:f[0]||(f[0]=l.withModifiers(()=>{},["prevent"])),model:o.model},o._options,{"label-position":o._options.labelPosition,ref:"formRef"}),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(V.fieldList,(c,z)=>(l.openBlock(),l.createElementBlock("div",{key:z},[c.colNum===4?(l.openBlock(),l.createElementBlock("div",Y,[l.createVNode(p,{gutter:10},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.formItemList,(e,N)=>l.withDirectives((l.openBlock(),l.createBlock(S,{xs:24,sm:6,md:6,lg:6,xl:6,key:N},{default:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle(e.style)},[e.type==="title"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:0},{default:l.withCtx(()=>[l.createElementVNode("div",H,[l.createElementVNode("span",M,l.toDisplayString(e.title),1)])]),_:2},1536)),[[l.vShow,!e.isHide]]):e.type==="name"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:1,label:e.label,disabled:e.disabled||o._options.isDisabled,class:"container_name",rules:e.rules.nameEnFamily},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",L,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(t,{rules:e.rules.nameEnFamily,prop:[e.field.nameEnFamily],class:"item-name"},{default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field.nameEnFamily],"onUpdate:modelValue":a=>o.model[e.field.nameEnFamily]=a,"show-word-limit":"",readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameEnFamily,disabled:e.disabled||o._options.isDisabled,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.nameEn,prop:[e.field.nameEn],class:"item-name-right"},{default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field.nameEn],"onUpdate:modelValue":a=>o.model[e.field.nameEn]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameEn,disabled:e.disabled||o._options.isDisabled,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.nameChFamily,prop:[e.field.nameChFamily],class:"item-name"},{default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field.nameChFamily],"onUpdate:modelValue":a=>o.model[e.field.nameChFamily]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameChFamily,disabled:e.disabled||o._options.isDisabled,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.nameCh,prop:[e.field.nameCh],class:"item-name-right"},{default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field.nameCh],"onUpdate:modelValue":a=>o.model[e.field.nameCh]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameCh,disabled:e.disabled||o._options.isDisabled,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled","rules"])),[[l.vShow,!e.isHide]]):e.type==="gender"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:2,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",T,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(k,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,onChange:a=>o.radioChange(a,e.field)},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(b,{label:d[((n=e.options)==null?void 0:n.valueKey)||"code"],size:"large",key:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>[l.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,P)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="radio"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:3,label:e.label,rules:e.rules,prop:[e.field],class:l.normalizeClass([e.labelNode?"radio_Note":"rule_err"])},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",I,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(k,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,onChange:a=>o.radioChange(a,e.field)},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(b,{size:"large",label:d[((n=e.options)==null?void 0:n.valueKey)||"code"],key:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[l.vShow,!e.isHide]]):e.type==="radioNote"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:4,label:e.label,rules:e.rules,prop:[e.field],class:l.normalizeClass([e.labelNode?"radio_Note":"rule_err"])},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createElementVNode("span",O,l.toDisplayString(e.labelBefore),1),l.createElementVNode("span",R,l.toDisplayString(e.labelNode),1),e.required?(l.openBlock(),l.createElementBlock("span",j,"*")):l.createCommentVNode("",!0)]),l.createVNode(k,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,onChange:a=>o.radioChange(a,e.field)},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(b,{size:"large",label:d[((n=e.options)==null?void 0:n.valueKey)||"code"],key:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[l.vShow,!e.isHide]]):e.type==="checkbox"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:5,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",W,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(w,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,onChange:a=>o.checkChange(a,e.field),disabled:e.disabled||o._options.isDisabled,style:l.normalizeStyle(e.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(_,{key:d[((n=e.options)==null?void 0:n.valueKey)||"code"],label:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="checkboxRadio"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:6,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",A,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(w,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,onChange:a=>o.handleCheckedChange(a,e.field),disabled:e.disabled||o._options.isDisabled,style:l.normalizeStyle(e.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(_,{key:d[((n=e.options)==null?void 0:n.valueKey)||"code"],label:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="select"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:7,label:e.label,rules:e.rules,disabled:e.disabled||o._options.isDisabled,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",G,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(C,{onChange:a=>o.selectChange(a,e.field),modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,placeholder:e.placeholder,clearable:e.clearable},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r,s;return l.openBlock(),l.createBlock(x,{key:d[((n=e.options)==null?void 0:n.valueKey)||"code"],label:d[((r=e.options)==null?void 0:r.labelkey)||"name"],value:d[((s=e.options)==null?void 0:s.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"]),l.createElementVNode("div",{class:"item_tips_blow",style:l.normalizeStyle(e.tipsBlowStyle)},l.toDisplayString(e.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])),[[l.vShow,!e.isHide]]):e.type==="date"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:8,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",J,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(g,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":e.disabledDate,modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,readonly:e.readonly,type:e.type,placeholder:e.placeholder||e.label},null,8,["disabled-date","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="daterange"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:9,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",Q,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(g,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":e.disabledDate,modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,type:"daterange","range-separator":"To","start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,size:"large"},null,8,["disabled-date","modelValue","onUpdate:modelValue","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="slotItem"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:10,label:e.label,rules:e.rules,prop:[e.field],class:"rule_err"},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",X,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(h.$slots,e.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="phone"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:11,label:e.label,rules:e.rules.phoneNumber,prop:[e.field.phoneNumber],class:"phone_item"},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",Z,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field.phoneNumber],"onUpdate:modelValue":a=>o.model[e.field.phoneNumber]=a,disabled:e.disabled||o._options.isDisabled,placeholder:e.placeholder||"请选择",clearable:e.clearable},{prepend:l.withCtx(()=>{var a;return[l.createVNode(C,{disabled:e.disabled||o._options.isDisabled,modelValue:o.model[e.field.areaCode],"onUpdate:modelValue":d=>o.model[e.field.areaCode]=d,placeholder:((a=e.options)==null?void 0:a.placeholder)||"请选择",style:{width:"115px"}},{default:l.withCtx(()=>{var d;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((d=e.options)==null?void 0:d.data,(n,r)=>(l.openBlock(),l.createBlock(x,{label:n.name,value:n.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"])),[[l.vShow,!e.isHide]]):e.type==="line"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:12,label:e.label},{default:l.withCtx(()=>[$]),_:2},1032,["label"])),[[l.vShow,!e.isHide]]):l.withDirectives((l.openBlock(),l.createBlock(t,{key:13,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",u,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholder||e.label,disabled:e.disabled||o._options.isDisabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},l.createSlots({_:2},[e.prepend?{name:"prepend",fn:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.field),1)]),key:"0"}:void 0,e.append?{name:"append",fn:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.append),1)]),key:"1"}:void 0]),1032,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]])],4)]),_:2},1024)),[[l.vShow,!e.isHide]])),128))]),_:2},1024)])):c.colNum===3?(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(p,{gutter:20},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.formItemList,(e,N)=>l.withDirectives((l.openBlock(),l.createBlock(S,{xs:24,sm:8,md:8,lg:8,xl:8,key:N},{default:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle(e.style)},[e.type==="title"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:0},{default:l.withCtx(()=>[l.createElementVNode("div",ll,[l.createElementVNode("span",el,l.toDisplayString(e.title),1)])]),_:2},1536)),[[l.vShow,!e.isHide]]):e.type==="name"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:1,label:e.label,disabled:e.disabled||o._options.isDisabled,class:"container_name",rules:e.rules.nameEnFamily},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",al,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(t,{rules:e.rules.nameEnFamily,prop:[e.field.nameEnFamily],class:"item-name"},{default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field.nameEnFamily],"onUpdate:modelValue":a=>o.model[e.field.nameEnFamily]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameEnFamily,disabled:e.disabled||o._options.isDisabled,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.nameEn,prop:[e.field.nameEn],class:"item-name-right"},{default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field.nameEn],"onUpdate:modelValue":a=>o.model[e.field.nameEn]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameEn,disabled:e.disabled||o._options.isDisabled,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.nameChFamily,prop:[e.field.nameChFamily],class:"item-name"},{default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field.nameChFamily],"onUpdate:modelValue":a=>o.model[e.field.nameChFamily]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameChFamily,disabled:e.disabled||o._options.isDisabled,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.nameCh,prop:[e.field.nameCh],class:"item-name-right"},{default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field.nameCh],"onUpdate:modelValue":a=>o.model[e.field.nameCh]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameCh,disabled:e.disabled||o._options.isDisabled,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled","rules"])),[[l.vShow,!e.isHide]]):e.type==="gender"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:2,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",ol,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(k,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,onChange:a=>o.radioChange(a,e.field)},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(b,{label:d[((n=e.options)==null?void 0:n.valueKey)||"code"],size:"large",key:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>[l.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,dl)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="radio"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:3,label:e.label,rules:e.rules,prop:[e.field],class:l.normalizeClass([e.labelNode?"radio_Note":"rule_err"])},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",nl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(k,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,onChange:a=>o.radioChange(a,e.field)},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(b,{size:"large",label:d[((n=e.options)==null?void 0:n.valueKey)||"code"],key:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[l.vShow,!e.isHide]]):e.type==="radioNote"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:4,label:e.label,rules:e.rules,prop:[e.field],class:l.normalizeClass([e.labelNode?"radio_Note":"rule_err"])},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createElementVNode("span",rl,l.toDisplayString(e.labelBefore),1),l.createElementVNode("span",tl,l.toDisplayString(e.labelNode),1),e.required?(l.openBlock(),l.createElementBlock("span",sl,"*")):l.createCommentVNode("",!0)]),l.createVNode(k,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,onChange:a=>o.radioChange(a,e.field)},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(b,{size:"large",label:d[((n=e.options)==null?void 0:n.valueKey)||"code"],key:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[l.vShow,!e.isHide]]):e.type==="checkbox"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:5,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",cl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(w,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,onChange:a=>o.checkChange(a,e.field),disabled:e.disabled||o._options.isDisabled,style:l.normalizeStyle(e.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(_,{key:d[((n=e.options)==null?void 0:n.valueKey)||"code"],label:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="checkboxRadio"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:6,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",il,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(w,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,onChange:a=>o.handleCheckedChange(a,e.field),disabled:e.disabled||o._options.isDisabled,style:l.normalizeStyle(e.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(_,{key:d[((n=e.options)==null?void 0:n.valueKey)||"code"],label:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="select"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:7,label:e.label,rules:e.rules,disabled:e.disabled||o._options.isDisabled,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",pl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(C,{onChange:a=>o.selectChange(a,e.field),modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,placeholder:e.placeholder,clearable:e.clearable},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r,s;return l.openBlock(),l.createBlock(x,{key:d[((n=e.options)==null?void 0:n.valueKey)||"code"],label:d[((r=e.options)==null?void 0:r.labelkey)||"name"],value:d[((s=e.options)==null?void 0:s.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"]),l.createElementVNode("div",{class:"item_tips_blow",style:l.normalizeStyle(e.tipsBlowStyle)},l.toDisplayString(e.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])),[[l.vShow,!e.isHide]]):e.type==="date"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:8,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",yl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(g,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":e.disabledDate,modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,readonly:e.readonly,type:e.type,placeholder:e.placeholder||e.label},null,8,["disabled-date","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="daterange"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:9,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",hl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(g,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":e.disabledDate,modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,type:"daterange","range-separator":"To","start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,size:"large"},null,8,["disabled-date","modelValue","onUpdate:modelValue","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="slotItem"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:10,label:e.label,rules:e.rules,prop:[e.field],class:"rule_err"},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",bl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(h.$slots,e.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="phone"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:11,label:e.label,class:"phone_item",rules:e.rules.phoneNumber,prop:[e.field.phoneNumber]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",kl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field.phoneNumber],"onUpdate:modelValue":a=>o.model[e.field.phoneNumber]=a,disabled:e.disabled||o._options.isDisabled,placeholder:e.placeholder||"请选择",clearable:e.clearable},{prepend:l.withCtx(()=>{var a;return[l.createVNode(C,{disabled:e.disabled||o._options.isDisabled,modelValue:o.model[e.field.areaCode],"onUpdate:modelValue":d=>o.model[e.field.areaCode]=d,placeholder:((a=e.options)==null?void 0:a.placeholder)||"请选择",style:{width:"115px"}},{default:l.withCtx(()=>{var d;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((d=e.options)==null?void 0:d.data,(n,r)=>(l.openBlock(),l.createBlock(x,{label:n.name,value:n.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"])),[[l.vShow,!e.isHide]]):e.type==="line"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:12,label:e.label},{default:l.withCtx(()=>[fl]),_:2},1032,["label"])),[[l.vShow,!e.isHide]]):l.withDirectives((l.openBlock(),l.createBlock(t,{key:13,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",Vl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholder||e.label,disabled:e.disabled||o._options.isDisabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},l.createSlots({_:2},[e.prepend?{name:"prepend",fn:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.field),1)]),key:"0"}:void 0,e.append?{name:"append",fn:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.append),1)]),key:"1"}:void 0]),1032,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]])],4)]),_:2},1024)),[[l.vShow,!e.isHide]])),128))]),_:2},1024)])):c.colNum===2?(l.openBlock(),l.createElementBlock("div",_l,[l.createVNode(p,{gutter:20},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.formItemList,(e,N)=>l.withDirectives((l.openBlock(),l.createBlock(S,{xs:24,sm:12,md:12,lg:12,xl:12,key:N},{default:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle(e.style)},[e.type==="title"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:0},{default:l.withCtx(()=>[l.createElementVNode("div",wl,[l.createElementVNode("span",xl,l.toDisplayString(e.title),1)])]),_:2},1536)),[[l.vShow,!e.isHide]]):e.type==="name"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:1,label:e.label,disabled:e.disabled||o._options.isDisabled,class:"container_name",rules:e.rules.nameEnFamily},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",Cl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(t,{rules:e.rules.nameEnFamily,prop:[e.field.nameEnFamily],class:"item-name"},{default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field.nameEnFamily],"onUpdate:modelValue":a=>o.model[e.field.nameEnFamily]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameEnFamily,disabled:e.disabled||o._options.isDisabled,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.nameEn,prop:[e.field.nameEn],class:"item-name-right"},{default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field.nameEn],"onUpdate:modelValue":a=>o.model[e.field.nameEn]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameEn,disabled:e.disabled||o._options.isDisabled,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.nameChFamily,prop:[e.field.nameChFamily],class:"item-name"},{default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field.nameChFamily],"onUpdate:modelValue":a=>o.model[e.field.nameChFamily]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameChFamily,disabled:e.disabled||o._options.isDisabled,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.nameCh,prop:[e.field.nameCh],class:"item-name-right"},{default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field.nameCh],"onUpdate:modelValue":a=>o.model[e.field.nameCh]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameCh,disabled:e.disabled||o._options.isDisabled,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled","rules"])),[[l.vShow,!e.isHide]]):e.type==="gender"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:2,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",gl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(k,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,onChange:a=>o.radioChange(a,e.field)},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(b,{label:d[((n=e.options)==null?void 0:n.valueKey)||"code"],size:"large",key:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>[l.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,Bl)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="radio"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:3,label:e.label,rules:e.rules,prop:[e.field],class:l.normalizeClass([e.labelNode?"radio_Note":"rule_err"])},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",Nl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(k,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,onChange:a=>o.radioChange(a,e.field)},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(b,{size:"large",label:d[((n=e.options)==null?void 0:n.valueKey)||"code"],key:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[l.vShow,!e.isHide]]):e.type==="radioNote"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:4,label:e.label,rules:e.rules,prop:[e.field],class:l.normalizeClass([e.labelNode?"radio_Note":"rule_err"])},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createElementVNode("span",Sl,l.toDisplayString(e.labelBefore),1),l.createElementVNode("span",Dl,l.toDisplayString(e.labelNode),1),e.required?(l.openBlock(),l.createElementBlock("span",ml,"*")):l.createCommentVNode("",!0)]),l.createVNode(k,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,onChange:a=>o.radioChange(a,e.field)},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(b,{size:"large",label:d[((n=e.options)==null?void 0:n.valueKey)||"code"],key:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[l.vShow,!e.isHide]]):e.type==="checkbox"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:5,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",El,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(w,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,onChange:a=>o.checkChange(a,e.field),disabled:e.disabled||o._options.isDisabled,style:l.normalizeStyle(e.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(_,{key:d[((n=e.options)==null?void 0:n.valueKey)||"code"],label:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="checkboxRadio"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:6,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",Ul,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(w,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,onChange:a=>o.handleCheckedChange(a,e.field),disabled:e.disabled||o._options.isDisabled,style:l.normalizeStyle(e.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(_,{key:d[((n=e.options)==null?void 0:n.valueKey)||"code"],label:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="select"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:7,label:e.label,rules:e.rules,disabled:e.disabled||o._options.isDisabled,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",Kl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(C,{onChange:a=>o.selectChange(a,e.field),modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,placeholder:e.placeholder,clearable:e.clearable},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r,s;return l.openBlock(),l.createBlock(x,{key:d[((n=e.options)==null?void 0:n.valueKey)||"code"],label:d[((r=e.options)==null?void 0:r.labelkey)||"name"],value:d[((s=e.options)==null?void 0:s.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"]),l.createElementVNode("div",{class:"item_tips_blow",style:l.normalizeStyle(e.tipsBlowStyle)},l.toDisplayString(e.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])),[[l.vShow,!e.isHide]]):e.type==="date"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:8,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",ql,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(g,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":e.disabledDate,modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,readonly:e.readonly,type:e.type,placeholder:e.placeholder||e.label},null,8,["disabled-date","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="daterange"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:9,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",zl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(g,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":e.disabledDate,modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,type:"daterange","range-separator":"To","start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,size:"large"},null,8,["disabled-date","modelValue","onUpdate:modelValue","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="slotItem"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:10,label:e.label,rules:e.rules,prop:[e.field],class:"rule_err"},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",Fl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(h.$slots,e.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="phone"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:11,label:e.label,rules:e.rules.phoneNumber,class:"phone_item",prop:[e.field.phoneNumber]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",Yl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field.phoneNumber],"onUpdate:modelValue":a=>o.model[e.field.phoneNumber]=a,disabled:e.disabled||o._options.isDisabled,placeholder:e.placeholder||"请选择",clearable:e.clearable},{prepend:l.withCtx(()=>{var a;return[l.createVNode(C,{disabled:e.disabled||o._options.isDisabled,modelValue:o.model[e.field.areaCode],"onUpdate:modelValue":d=>o.model[e.field.areaCode]=d,placeholder:((a=e.options)==null?void 0:a.placeholder)||"请选择",style:{width:"115px"}},{default:l.withCtx(()=>{var d;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((d=e.options)==null?void 0:d.data,(n,r)=>(l.openBlock(),l.createBlock(x,{label:n.name,value:n.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"])),[[l.vShow,!e.isHide]]):e.type==="line"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:12,label:e.label},{default:l.withCtx(()=>[Hl]),_:2},1032,["label"])),[[l.vShow,!e.isHide]]):l.withDirectives((l.openBlock(),l.createBlock(t,{key:13,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",Ml,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholder||e.label,disabled:e.disabled||o._options.isDisabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},l.createSlots({_:2},[e.prepend?{name:"prepend",fn:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.field),1)]),key:"0"}:void 0,e.append?{name:"append",fn:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.append),1)]),key:"1"}:void 0]),1032,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]])],4)]),_:2},1024)),[[l.vShow,!e.isHide]])),128))]),_:2},1024)])):c.colNum===1?(l.openBlock(),l.createElementBlock("div",Ll,[l.createVNode(p,{gutter:20},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.formItemList,(e,N)=>l.withDirectives((l.openBlock(),l.createBlock(S,{xs:24,sm:24,md:24,lg:24,xl:24,key:N},{default:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle(e.style)},[e.type==="title"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:0},{default:l.withCtx(()=>[l.createElementVNode("div",Tl,[l.createElementVNode("span",Pl,l.toDisplayString(e.title),1)])]),_:2},1536)),[[l.vShow,!e.isHide]]):e.type==="name"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:1,label:e.label,disabled:e.disabled||o._options.isDisabled,class:"container_name",rules:e.rules.nameEnFamily},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",Il,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(t,{rules:e.rules.nameEnFamily,prop:[e.field.nameEnFamily],class:"item-name"},{default:l.withCtx(()=>[l.createVNode(i,{name:e.field.nameEnFamily,maxlength:e.maxlength,modelValue:o.model[e.field.nameEnFamily],"onUpdate:modelValue":a=>o.model[e.field.nameEnFamily]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameEnFamily,disabled:e.disabled||o._options.isDisabled,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},null,8,["name","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.nameEn,prop:[e.field.nameEn],class:"item-name-right"},{default:l.withCtx(()=>[l.createVNode(i,{name:e.field.nameEn,maxlength:e.maxlength,modelValue:o.model[e.field.nameEn],"onUpdate:modelValue":a=>o.model[e.field.nameEn]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:"item.placeholderNameEn",disabled:e.disabled||o._options.isDisabled,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},null,8,["name","maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.nameChFamily,prop:[e.field.nameChFamily],class:"item-name"},{default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,name:e.field.nameChFamily,modelValue:o.model[e.field.nameChFamily],"onUpdate:modelValue":a=>o.model[e.field.nameChFamily]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameChFamily,disabled:e.disabled||o._options.isDisabled,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},null,8,["maxlength","name","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.nameCh,prop:[e.field.nameCh],class:"item-name-right"},{default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field.nameCh],"onUpdate:modelValue":a=>o.model[e.field.nameCh]=a,name:e.field.nameCh,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameCh,disabled:e.disabled||o._options.isDisabled,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","name","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled","rules"])),[[l.vShow,!e.isHide]]):e.type==="gender"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:2,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",Ol,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(k,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,onChange:a=>o.radioChange(a,e.field)},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(b,{label:d[((n=e.options)==null?void 0:n.valueKey)||"code"],size:"large",key:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>[l.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,Rl)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="radio"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:3,label:e.label,rules:e.rules,prop:[e.field],class:l.normalizeClass([e.labelNode?"radio_Note":"rule_err"])},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",jl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(k,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,onChange:a=>o.radioChange(a,e.field)},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(b,{size:"large",label:d[((n=e.options)==null?void 0:n.valueKey)||"code"],key:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[l.vShow,!e.isHide]]):e.type==="radioNote"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:4,label:e.label,rules:e.rules,prop:[e.field],class:l.normalizeClass([e.labelNode?"radio_Note":"rule_err"])},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createElementVNode("span",Wl,l.toDisplayString(e.labelBefore),1),l.createElementVNode("span",Al,l.toDisplayString(e.labelNode),1),e.required?(l.openBlock(),l.createElementBlock("span",Gl,"*")):l.createCommentVNode("",!0)]),l.createVNode(k,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,onChange:a=>o.radioChange(a,e.field)},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(b,{size:"large",label:d[((n=e.options)==null?void 0:n.valueKey)||"code"],key:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])),[[l.vShow,!e.isHide]]):e.type==="checkbox"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:5,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",Jl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(w,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,onChange:a=>o.checkChange(a,e.field),style:l.normalizeStyle(e.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(_,{key:d[((n=e.options)==null?void 0:n.valueKey)||"code"],label:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange","style"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="checkboxRadio"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:6,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",Ql,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(w,{modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,onChange:a=>o.handleCheckedChange(a,e.field),disabled:e.disabled||o._options.isDisabled,style:l.normalizeStyle(e.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r;return l.openBlock(),l.createBlock(_,{key:d[((n=e.options)==null?void 0:n.valueKey)||"code"],label:d[((r=e.options)==null?void 0:r.valueKey)||"code"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="select"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:7,label:e.label,rules:e.rules,disabled:e.disabled||o._options.isDisabled,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",Xl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(C,{onChange:a=>o.selectChange(a,e.field),modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,placeholder:e.placeholder,clearable:e.clearable},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var n,r,s;return l.openBlock(),l.createBlock(x,{key:d[((n=e.options)==null?void 0:n.valueKey)||"code"],label:d[((r=e.options)==null?void 0:r.labelkey)||"name"],value:d[((s=e.options)==null?void 0:s.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"]),l.createElementVNode("div",{class:"item_tips_blow",style:l.normalizeStyle(e.tipsBlowStyle)},l.toDisplayString(e.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])),[[l.vShow,!e.isHide]]):e.type==="date"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:8,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",Zl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(g,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":e.disabledDate,modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,disabled:e.disabled||o._options.isDisabled,readonly:e.readonly,type:e.type,placeholder:e.placeholder||e.label},null,8,["disabled-date","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="daterange"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:9,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",$l,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(g,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":e.disabledDate,modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,type:"daterange","range-separator":"To","start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,size:"large"},null,8,["disabled-date","modelValue","onUpdate:modelValue","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="slotItem"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:10,label:e.label,rules:e.rules,prop:[e.field],class:"rule_err"},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",ul,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(h.$slots,e.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])),[[l.vShow,!e.isHide]]):e.type==="phone"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:11,label:e.label,rules:e.rules.phoneNumber,prop:[e.field.phoneNumber],class:"phone_item"},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",vl,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field.phoneNumber],"onUpdate:modelValue":a=>o.model[e.field.phoneNumber]=a,disabled:e.disabled||o._options.isDisabled,placeholder:e.placeholder||"请选择",clearable:e.clearable},{prepend:l.withCtx(()=>{var a;return[l.createVNode(C,{disabled:e.disabled||o._options.isDisabled,modelValue:o.model[e.field.areaCode],"onUpdate:modelValue":d=>o.model[e.field.areaCode]=d,placeholder:((a=e.options)==null?void 0:a.placeholder)||"请选择",style:{width:"115px"}},{default:l.withCtx(()=>{var d;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((d=e.options)==null?void 0:d.data,(n,r)=>(l.openBlock(),l.createBlock(x,{label:n.name,value:n.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"])),[[l.vShow,!e.isHide]]):e.type==="line"?l.withDirectives((l.openBlock(),l.createBlock(t,{key:12,label:e.label},{default:l.withCtx(()=>[le]),_:2},1032,["label"])),[[l.vShow,!e.isHide]]):l.withDirectives((l.openBlock(),l.createBlock(t,{key:13,label:e.label,rules:e.rules,prop:[e.field]},{label:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle([{display:"inline-block"},e.lableStyle])},l.toDisplayString(e.label),5),e.required?(l.openBlock(),l.createElementBlock("span",ee,"*")):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(i,{maxlength:e.maxlength,modelValue:o.model[e.field],"onUpdate:modelValue":a=>o.model[e.field]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholder||e.label,disabled:e.disabled||o._options.isDisabled,showPassword:e.showPassword,clearable:e.clearable,autosize:e.autosize,rows:e.rows,onKeyup:l.withKeys(a=>o.handleKeyUp(e.enterable),["enter"])},l.createSlots({_:2},[e.prepend?{name:"prepend",fn:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.field),1)]),key:"0"}:void 0,e.append?{name:"append",fn:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.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"])),[[l.vShow,!e.isHide]])],4)]),_:2},1024)),[[l.vShow,!e.isHide]])),128))]),_:2},1024)])):l.createCommentVNode("",!0)]))),128)),l.createVNode(t,{class:"btnsItem"},{default:l.withCtx(()=>[l.renderSlot(h.$slots,"buttons",{model:o.model,onBtnClick:o.onSubmit},()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o._options.btnConfig,(c,z)=>(l.openBlock(),l.createElementBlock("div",{key:z},[c.isShow?(l.openBlock(),l.createBlock(y,{key:0,btnCode:c.btnCode,plain:c.plain,primary:c.primary,info:c.info,text:c.text,link:c.link,loading:c.loading,loadingColor:c.loadingColor,width:c.width,height:c.height,circle:c.circle,color:c.color,bgColor:c.bgColor,borderColor:c.borderColor,borderStyle:c.borderStyle,borderWidth:c.borderWidth,icon:c.icon,size:c.size,fontSize:c.fontSize,fontWeight:c.fontWeight,styleObj:{...c.style},class:l.normalizeClass(c.class),onHandleClick:e=>o.handleClick(e,c.isRule,c.emitName)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(c.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"])):l.createCommentVNode("",!0)]))),128))],!0)]),_:3})]),_:3},16,["model","label-position"])}const U=F(D,[["render",ae],["__scopeId","data-v-92bd879a"]]);function K(h,f={}){K.installed||(K.installed=!0,h.component("common-el-form",U))}return U.install=K,U});
|
|
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}
|