1 |
- import{c as d,d as r,ag as m,w as p,aa as V,a as s,n as g,ab as h,k as u,aj as f,ak as k,h as v}from"./index-5125bda4.js";import{c as b,s as P}from"./Checker-8e7f5cd9.js";const[c,C]=d("radio-group"),_={disabled:Boolean,iconSize:g,direction:String,modelValue:h,checkedColor:String},i=Symbol(c);var w=r({name:c,props:_,emits:["change","update:modelValue"],setup(e,{emit:n,slots:t}){const{linkChildren:o}=m(i),l=a=>n("update:modelValue",a);return p(()=>e.modelValue,a=>n("change",a)),o({props:e,updateValue:l}),V(()=>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(w),[R,S]=d("radio");var $=r({name:R,props:b,emits:["update:modelValue"],setup(e,{emit:n,slots:t}){const{parent:o}=f(i),l=()=>(o?o.props.modelValue:e.modelValue)===e.name,a=()=>{o?o.updateValue(e.name):n("update:modelValue",e.name)};return()=>s(P,v({bem:S,role:"radio",parent:o,checked:l(),onToggle:a},e),k(t,["default","icon"]))}});const x=u($);export{j as R,x as a};
|