1 |
- import{E as l,G as m,I as p,d as r,aj as V,a3 as g,a$ as h,i as s,O as u,at as f,aB as v,a8 as k}from"./index.7994470a.js";import{c as P,s as $}from"./index.c9af17c2.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 B=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 E=u(w);export{B as R,E as a};
|