import{d as V,r as D,s as c,c as i,e as r,k as E,i as a,g as u,H as w,h as _,u as m,q as f,f as v,j as F,t as b,F as A,m as z,_ as N}from"./index.0308b213.js";const R={class:"my-header"},S=["id"],P={class:"box"},T={class:"tags"},U=["onClick"],$={class:"dialog-footer"},j=z(" \u4FDD\u5B58 "),q=V({props:{show:{type:Boolean,default:!1},text:{type:String,default:""}},emits:["update:show","save","update:text"],setup(g,{emit:n}){const p=g,h=D(["\u591A\u653E\u70B9\u9999\u83DC","\u4E0D\u8981\u8471\u82B1","\u4E0D\u8981\u9999\u83DC","\u4E0D\u8981\u8471\u59DC\u849C","\u5C11\u8FA3","\u591A\u653E\u8FA3\u6912"]),l=c({get(){return p.show},set(t){n("update:show",t)}}),s=c({get(){return p.text},set(t){n("update:text",t)}});function x(t){s.value+=t+","}function C(){n("save",s.value)}return(t,o)=>{const y=i("el-input"),k=i("el-button"),B=i("el-dialog");return r(),E(B,{modelValue:m(l),"onUpdate:modelValue":o[2]||(o[2]=e=>f(l)?l.value=e:null),title:"",width:"35%"},{header:a(({titleId:e,titleClass:d})=>[u("div",R,[u("h4",{id:e,class:w(d)},"\u5907\u6CE8\u4FE1\u606F",10,S)])]),footer:a(()=>[u("div",$,[_(k,{size:"large",type:"primary",onClick:o[1]||(o[1]=e=>C())},{default:a(()=>[j]),_:1})])]),default:a(()=>[u("div",P,[_(y,{modelValue:m(s),"onUpdate:modelValue":o[0]||(o[0]=e=>f(s)?s.value=e:null),type:"textarea",rows:"5",placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8","input-style":{boxShadow:"none","font-size":"20px"}},null,8,["modelValue"]),u("div",T,[(r(!0),v(A,null,F(h.value,(e,d)=>(r(),v("div",{key:d,class:"tag",onClick:H=>x(e)},b(e),9,U))),128))])])]),_:1},8,["modelValue"])}}});const L=N(q,[["__scopeId","data-v-1fed6b81"]]);export{L as default};
