import{u as g}from"./useInstance.233fbdde.js";import{d as v,r as b,b as i,c as a,e as k,k as E,i as e,h as t,u as l,a2 as x,q as y,m as p}from"./index.0308b213.js";const D=p("\u63D0\u4EA4"),h=p("\u53D6\u6D88"),q=v({props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(_,{emit:f}){const{global:V}=g(),n=b(),u=i({content:""}),F=i({content:[{required:!0,message:"\u6C9F\u901A\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}),C=()=>{var s;(s=n.value)==null||s.validate(o=>{})},d=()=>{f("update:modelValue",!1),V.$resetForm(n.value,u)};return(s,o)=>{const B=a("el-input"),m=a("el-form-item"),c=a("el-button"),A=a("el-dialog");return k(),E(A,{modelValue:_.modelValue,"onUpdate:modelValue":o[1]||(o[1]=r=>y(modelValue)?modelValue.value=r:null),title:"\u4E0E\u5BA2\u6237\u6C9F\u901A",width:"50%",onClose:d},{default:e(()=>[t(l(x),{ref_key:"contactFormRef",ref:n,model:l(u),rules:l(F)},{default:e(()=>[t(m,{prop:"content"},{default:e(()=>[t(B,{modelValue:l(u).content,"onUpdate:modelValue":o[0]||(o[0]=r=>l(u).content=r),placeholder:"\u8BF7\u8F93\u5165\u6C9F\u901A\u5185\u5BB9",type:"textarea",rows:8},null,8,["modelValue"])]),_:1}),t(m,null,{default:e(()=>[t(c,{type:"primary",onClick:C},{default:e(()=>[D]),_:1}),t(c,{onClick:d},{default:e(()=>[h]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}}});export{q as default};
