Files
Electron_Test/front/assets/FormLayout.c7820bdd.js
2024-04-07 09:46:14 +08:00

2 lines
1.1 KiB
JavaScript

/* empty css */import{n as h}from"./vueComponentNormalizer.9ef17bb1.js";const v={inheritAttrs:!1,methods:{async validate(){try{await this.$refs.form_layout.validate()}catch(e){const t=Object.values(e)[0][0].message;throw this.$message.error(t),t}}},render(e){const{items:t,...s}=this.$attrs,n=[];for(let r=0,u=t.length;r<u;r++){const{model:m,style:_,...o}=t[r];n.push(e("el-form-item",{style:{width:s.inline===""?"36%":null,..._},props:o,scopedSlots:{default:()=>{var a;if(o.prop&&this.$scopedSlots[o.prop])return this.$scopedSlots[o.prop](t[r]);const{tag:p,on:d,attrs:l={},...i}=m;return(a=l.maxlength)!=null||(l.maxlength=99),e(p,{props:{...i,value:s.model[o.prop]},attrs:{placeholder:p==="el-input"?"\u8BF7\u8F93\u5165":i.placeholder||"\u8BF7\u9009\u62E9",...l},on:{input:f=>s.model[o.prop]=f,...d}})}}}))}return e("el-form",{ref:"form_layout",props:s,class:"form_layout"},n)}};let y,g;const c={};var $=h(v,y,g,!1,x,null,null,null);function x(e){for(let t in c)this[t]=c[t]}const F=function(){return $.exports}();export{F};