index.4ef31a7f.js 1018 B

1
  1. import{A as l,E as m,H as p,d as r,ai as V,a2 as g,a_ as h,j as s,N as u,as as f,aA as v,a7 as k}from"./index.394decd7.js";import{c as P,s as _}from"./index.b91a923c.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 E=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 G=u(w);export{E as R,G as a};