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