1 |
- import{t as d,z as m,O as p,d as l,x as g,Z as V,b8 as h,c as r,D as u,N as f,C as k,am as v,E as P}from"./index.5f7ffb46.js";import{c as b,s as C}from"./Checker.40bdbb46.js";const[c,S]=d("radio-group"),_={shape:String,disabled:Boolean,iconSize:m,direction:String,modelValue:p,checkedColor:String},i=Symbol(c);var R=l({name:c,props:_,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{linkChildren:o}=g(i),s=a=>t("update:modelValue",a);return V(()=>e.modelValue,a=>t("change",a)),o({props:e,updateValue:s}),h(()=>e.modelValue),()=>{var a;return r("div",{class:S([e.direction]),role:"radiogroup"},[(a=n.default)==null?void 0:a.call(n)])}}});const G=u(R),$=f({},b,{shape:String}),[w,x]=d("radio");var N=l({name:w,props:$,emits:["update:modelValue"],setup(e,{emit:t,slots:n}){const{parent:o}=k(i),s=()=>(o?o.props.modelValue:e.modelValue)===e.name,a=()=>{o?o.updateValue(e.name):t("update:modelValue",e.name)};return()=>r(C,P({bem:x,role:"radio",parent:o,checked:s(),onToggle:a},e),v(n,["default","icon"]))}});const I=u(N);export{G as R,I as a};
|