import{_ as p}from"./app-DNz6g4aI.js";import{r as a,o as d,g as m,b as f,u as g}from"./app-BYcXwl4U.js";const x={__name:"NSDomainGroupSelector",props:["v-domain-group-id"],emits:["change"],setup(r,{expose:s,emit:t}){const u=r,n=t,e=a(),{userId:c,groupId:l}=function(){let o=u.vDomainGroupId;return o==null&&(o=0),{userId:a(0),groupId:a(o)}}(),i=function(o){o!=null?n("change",o.id):n("change",0)};return s({reload:function(o){c.value=o,e.value.clear(),e.value.setDataURL("/ns/domains/groups/options?userId="+o),e.value.reloadData()}}),(o,_)=>(d(),m("div",null,[f(p,{"data-url":"/ns/domains/groups/options",placeholder:"选择分组","data-key":"groups",name:"groupId","v-value":g(l),onChange:i,ref_key:"comboBox",ref:e},null,8,["v-value"])]))}};export{x as _};
