1 |
- import{E as l,G as m,I as p,d as r,aj as V,a3 as g,bf as f,j as s,O as u,at as h,aB as v,a8 as k}from"./ResizeObserver.es.b7226882.js";import{c as b,s as P}from"./index.b1e15d61.js";const[i,C]=l("radio-group"),_={disabled:Boolean,iconSize:m,direction:String,modelValue:p,checkedColor:String},c=Symbol(i);var $=r({name:i,props:_,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}),f(()=>e.modelValue),()=>{var a;return s("div",{class:C([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:b,emits:["update:modelValue"],setup(e,{emit:n,slots:t}){const{parent:o}=h(c),d=()=>(o?o.props.modelValue:e.modelValue)===e.name,a=()=>{o?o.updateValue(e.name):n("update:modelValue",e.name)};return()=>s(P,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};
|