import{a5 as m}from"./index.17037962789732.js";import"./index.170379627897316.js";import"./index.170379627897317.js";import{n as g}from"./template.1703796278973.js";import{d,l as f,k as _,m as T,o as v,c as h,u as p,M as w}from"./vue.1703796278973.js";const B=d({__name:"ToTag",props:{toTag:null,type:null,configId:null},emits:["update:toTag"],setup(c,{emit:n}){const t=c,e=f({get:()=>t.toTag,set:o=>n("update:toTag",o)}),s=_([]),l=async()=>{if(!t.configId)return;const{result:o}=await g.getTags(t.configId);s.value=o.map(a=>({label:a.name,value:a.id}))};l();const r=o=>{n("update:toTag",o)};return T(()=>t.configId,()=>{l()}),(o,a)=>{const u=m;return v(),h(u,{options:p(s),onChange:r,placeholder:"请选择标签推送",style:{width:"100%"},allowClear:!0,value:p(e),"onUpdate:value":a[0]||(a[0]=i=>w(e)?e.value=i:null)},null,8,["options","value"])}}});export{B as _};
