import"./index-2a45336b.js";import{u as D}from"./useForm-269e95cd.js";import{b as r,aV as O,o as c,k as R,e,w as t,E as i,u as l,aY as V,aF as E,c as N,F as j}from"./ant-design-vue-710243d9.js";import"./tinymce-3184e0f1.js";import"./echarts-ca5d9323.js";import"./cropper-47c8e461.js";import"./lodash-es-7cb071db.js";import"./qrcode-bec2257a.js";import"./jschardet-bd496279.js";const M=Object.assign({name:"formBasic"},{__name:"index",setup(I){const v=[{label:"公开",value:1},{label:"部分公开",value:2},{label:"不公开",value:3}],{formRef:f,formData:a,formRules:s,resetForm:g}=D();a.value={field8:1},s.value={field1:{required:!0,message:"请输入标题"},field2:{required:!0,message:"请选择起止日期"},field3:{required:!0,message:"请输入目标描述"},field4:{required:!0,message:"请输入衡量标准"}};function b(){f.value.validateFields().then(m=>{console.log(m)})}function k(){g()}return(m,o)=>{const U=r("a-page-header"),d=r("a-input"),u=r("a-form-item"),w=r("a-range-picker"),p=r("a-textarea"),x=r("a-tooltip"),C=r("a-radio-group"),_=r("a-button"),F=r("a-space"),q=r("a-form"),B=r("a-card"),y=O("action");return c(),R(j,null,[e(U,{title:"基础表单",main:"",ghost:!1},{default:t(()=>[i(" 表单页用于向用户收集或验证信息，基础表单常见于数据项较少的表单场景。 ")]),_:1}),e(B,{class:"mt-8-2"},{default:t(()=>[e(q,{"label-col":{sm:7,lg:7},"wrapper-col":{sm:17,lg:10},ref_key:"formRef",ref:f,rules:l(s),model:l(a)},{default:t(()=>[e(u,{label:"标题",name:"field1"},{default:t(()=>[e(d,{value:l(a).field1,"onUpdate:value":o[0]||(o[0]=n=>l(a).field1=n),placeholder:"给目标起个名字"},null,8,["value"])]),_:1}),e(u,{label:"起止日期",name:"field2"},{default:t(()=>[e(w,{value:l(a).field2,"onUpdate:value":o[1]||(o[1]=n=>l(a).field2=n)},null,8,["value"])]),_:1}),e(u,{label:"目标描述",name:"field3"},{default:t(()=>[e(p,{value:l(a).field3,"onUpdate:value":o[2]||(o[2]=n=>l(a).field3=n),placeholder:"请输入你的阶段性工作目标",rows:4},null,8,["value"])]),_:1}),e(u,{label:"衡量标准",name:"field4"},{default:t(()=>[e(p,{value:l(a).field4,"onUpdate:value":o[3]||(o[3]=n=>l(a).field4=n),placeholder:"请输入衡量标准",rows:4},null,8,["value"])]),_:1}),e(u,{name:"field5"},{label:t(()=>[i(" 客户（选填） "),e(x,{title:"目标的服务对象"},{default:t(()=>[e(l(V))]),_:1})]),default:t(()=>[e(d,{value:l(a).field5,"onUpdate:value":o[4]||(o[4]=n=>l(a).field5=n),placeholder:"请描述你服务的客户,内部客户直接 姓名/工号"},null,8,["value"])]),_:1}),e(u,{label:"邀评人（选填）",name:"field6"},{default:t(()=>[e(d,{value:l(a).field6,"onUpdate:value":o[5]||(o[5]=n=>l(a).field6=n),placeholder:"请直接 姓名/工号,最多可邀请 5 人"},null,8,["value"])]),_:1}),e(u,{label:"权重（选填）",name:"field7"},{default:t(()=>[e(d,{value:l(a).field7,"onUpdate:value":o[6]||(o[6]=n=>l(a).field7=n),placeholder:"请输入"},null,8,["value"])]),_:1}),e(u,{label:"目标公开",name:"field8"},{default:t(()=>[e(C,{value:l(a).field8,"onUpdate:value":o[7]||(o[7]=n=>l(a).field8=n),options:v},null,8,["value"])]),_:1}),e(u,{"wrapper-col":{offset:7,sm:17,lg:10}},{default:t(()=>[e(F,null,{default:t(()=>[E((c(),N(_,{type:"primary",onClick:b},{default:t(()=>[i(" 提交 ")]),_:1})),[[y,"edit"]]),e(_,{onClick:k},{default:t(()=>[i("取消")]),_:1})]),_:1})]),_:1})]),_:1},8,["rules","model"])]),_:1})],64)}}});export{M as default};
