2 lines
5.9 KiB
JavaScript
2 lines
5.9 KiB
JavaScript
import{I as h,y as g,J as w,G as x,H as U,w as v,K as F,D as k,C as E}from"./element-plus.517d4382.js";import{_ as M}from"./index.8b1962e9.js";import{o as p,c as s,V as e,M as d,W as B,a8 as C,T as n,L as z}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.1d82ee7c.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const L={components:{},props:[],data(){return{formData:{field101:void 0,field102:void 0,field103:void 0,field107:null,field108:void 0,field109:void 0,field110:void 0,field111:null,field112:void 0,field113:null},rules:{field101:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E3B\u9898",trigger:"blur"}],field102:[],field103:[],field107:[{required:!0,message:"\u8BF7\u9009\u62E9\u65E5\u671F",trigger:"change"}],field108:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B",trigger:"change"}],field109:[],field110:[],field112:[],field113:[]},field111Action:"https://jsonplaceholder.typicode.com/posts/",field111fileList:[],field108Options:[{label:"\u9009\u9879\u4E00",value:1},{label:"\u9009\u9879\u4E8C",value:2}]}},computed:{},watch:{},created(){},mounted(){},methods:{submitForm(){this.$refs.elForm.validate(a=>{})},resetForm(){this.$refs.elForm.resetFields()},field111BeforeUpload(a){let o=a.size/1024/1024<2;return o||this.$message.error("\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7 2MB"),o}}},q=n("\u70B9\u51FB\u4E0A\u4F20"),I=n("\u63D0\u4EA4"),O=n("\u91CD\u7F6E");function R(a,o,A,N,l,f){const r=h,i=g,u=w,_=x,c=U,m=v,b=F,y=k,V=E;return p(),s("div",null,[e(V,null,{default:d(()=>[e(y,{ref:"elForm",model:l.formData,rules:l.rules,size:"medium","label-width":"100px","label-position":"left"},{default:d(()=>[e(i,{label:"\u4E3B\u9898",prop:"field101"},{default:d(()=>[e(r,{modelValue:l.formData.field101,"onUpdate:modelValue":o[0]||(o[0]=t=>l.formData.field101=t),placeholder:"\u8BF7\u8F93\u5165\u4E3B\u9898",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5BA2\u6237\u540D\u79F0",prop:"field102"},{default:d(()=>[e(r,{modelValue:l.formData.field102,"onUpdate:modelValue":o[1]||(o[1]=t=>l.formData.field102=t),placeholder:"\u8BF7\u8F93\u5165\u672C\u6587\u884C\u5355\u5BA2\u6237\u540D\u79F0",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u8054\u7CFB\u4EBA",prop:"field103"},{default:d(()=>[e(r,{modelValue:l.formData.field103,"onUpdate:modelValue":o[2]||(o[2]=t=>l.formData.field103=t),placeholder:"\u8BF7\u8F93\u5165\u672C\u6587\u884C\u5355\u8054\u7CFB\u4EBA",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u65E5\u671F",prop:"field107"},{default:d(()=>[e(u,{modelValue:l.formData.field107,"onUpdate:modelValue":o[3]||(o[3]=t=>l.formData.field107=t),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",clearable:""},null,8,["modelValue"])]),_:1}),e(i,{label:"\u7C7B\u578B",prop:"field108"},{default:d(()=>[e(c,{modelValue:l.formData.field108,"onUpdate:modelValue":o[4]||(o[4]=t=>l.formData.field108=t),placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B",clearable:"",style:{width:"100%"}},{default:d(()=>[(p(!0),s(B,null,C(l.field108Options,(t,D)=>(p(),z(_,{key:D,label:t.label,value:t.value,disabled:t.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u6267\u884C\u4EBA",prop:"field109"},{default:d(()=>[e(r,{modelValue:l.formData.field109,"onUpdate:modelValue":o[5]||(o[5]=t=>l.formData.field109=t),placeholder:"\u8BF7\u8F93\u5165\u672C\u6587\u884C\u5355\u6267\u884C\u4EBA",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u884C\u52A8\u63CF\u8FF0",prop:"field110"},{default:d(()=>[e(r,{modelValue:l.formData.field110,"onUpdate:modelValue":o[6]||(o[6]=t=>l.formData.field110=t),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u884C\u52A8\u63CF\u8FF0",autosize:{minRows:4,maxRows:4},style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u9644\u4EF6/\u73B0\u573A\u7167\u7247",prop:"field111","label-width":"120px"},{default:d(()=>[e(b,{ref:"field111","file-list":l.field111fileList,action:l.field111Action,"before-upload":f.field111BeforeUpload},{default:d(()=>[e(m,{size:"small",type:"primary",icon:"el-icon-upload"},{default:d(()=>[q]),_:1})]),_:1},8,["file-list","action","before-upload"])]),_:1}),e(i,{label:"\u4F4D\u7F6E",prop:"field112"},{default:d(()=>[e(r,{modelValue:l.formData.field112,"onUpdate:modelValue":o[7]||(o[7]=t=>l.formData.field112=t),placeholder:"\u8BF7\u8F93\u5165\u4F4D\u7F6E",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u4E0B\u6B21\u56DE\u8BBF\u65E5\u671F",prop:"field113"},{default:d(()=>[e(u,{modelValue:l.formData.field113,"onUpdate:modelValue":o[8]||(o[8]=t=>l.formData.field113=t),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u4E0B\u6B21\u56DE\u8BBF\u65E5\u671F",clearable:""},null,8,["modelValue"])]),_:1}),e(i,{size:"large"},{default:d(()=>[e(m,{type:"primary",onClick:f.submitForm},{default:d(()=>[I]),_:1},8,["onClick"]),e(m,{onClick:f.resetForm},{default:d(()=>[O]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model","rules"])]),_:1})])}const De=M(L,[["render",R]]);export{De as default};
|