import{d as C}from"./addNotice-0d8f69a1.js";import{I as x}from"./Imgs-5872fe00.js";import{d as B,p,i as t,a as A,z as g,m as l,k as o,l as y,j as D,v as _,e as E}from"./index-deffec86.js";const N={class:"pt20"},z=B({__name:"TagForm",emits:["update:value","update:loading","cancel","submit"],setup(R,{expose:i,emit:f}){const r=f,n=p(),u=p({resource:"",desc:""}),F=async m=>{await m.validate((e,d)=>{e&&r("submit")})},v=()=>{r("cancel")};return i({resetForm:()=>{n.value.resetFields()}}),(m,e)=>{const d=t("el-input"),a=t("el-form-item"),b=t("el-switch"),V=t("el-col"),k=t("el-row"),c=t("el-button"),w=t("el-form");return A(),g(w,{model:u.value,ref_key:"ruleFormRef",ref:n,rules:E(C),"scroll-to-error":!0,"label-width":"180px"},{default:l(()=>[o(k,null,{default:l(()=>[o(V,{span:12},{default:l(()=>[o(a,{label:"\u540D\u79F0\uFF1A",prop:"resource"},{default:l(()=>[o(d,{modelValue:u.value.resource,"onUpdate:modelValue":e[0]||(e[0]=s=>u.value.resource=s),placeholder:"Please input"},null,8,["modelValue"])]),_:1}),o(a,{label:"\u56FE\u6807\uFF1A"},{default:l(()=>[o(x)]),_:1}),o(a,{label:"\u7B80\u4ECB\uFF1A"},{default:l(()=>[y(" <WangEditor /> ")]),_:1}),o(a,{label:"\u72B6\u6001\uFF1A"},{default:l(()=>[o(b,{modelValue:u.value.desc,"onUpdate:modelValue":e[1]||(e[1]=s=>u.value.desc=s)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(a,null,{default:l(()=>[D("div",N,[o(c,{onClick:v},{default:l(()=>e[3]||(e[3]=[_("\u53D6\u6D88")])),_:1}),o(c,{type:"primary",onClick:e[2]||(e[2]=s=>F(n.value))},{default:l(()=>e[4]||(e[4]=[_("\u63D0\u4EA4")])),_:1})])]),_:1})]),_:1},8,["model","rules"])}}});export{z as _};
