1 |
- import{E as l,G as m,I as p,d as r,aj as V,a3 as g,a$ as h,j as s,O as u,at as f,aB as v,a8 as k}from"./ResizeObserver.es.39b48a47.js";import{c as P,s as $}from"./index.3c44a6d7.js";const[i,b]=l("radio-group"),C={disabled:Boolean,iconSize:m,direction:String,modelValue:p,checkedColor:String},c=Symbol(i);var _=r({name:i,props:C,emits:["change","update:modelValue"],setup(e,{emit:n,slots:t}){const{linkChildren:o}=V(c),d=a=>n("update:modelValue",a);return g(()=>e.modelValue,a=>n("change",a)),o({props:e,updateValue:d}),h(()=>e.modelValue),()=>{var a;return s("div",{class:b([e.direction]),role:"radiogroup"},[(a=t.default)==null?void 0:a.call(t)])}}});const j=u(_),[R,S]=l("radio");var w=r({name:R,props:P,emits:["update:modelValue"],setup(e,{emit:n,slots:t}){const{parent:o}=f(c),d=()=>(o?o.props.modelValue:e.modelValue)===e.name,a=()=>{o?o.updateValue(e.name):n("update:modelValue",e.name)};return()=>s($,k({bem:S,role:"radio",parent:o,checked:d(),onToggle:a},e),v(t,["default","icon"]))}});const B=u(w);export{j as R,B as a};
|