vant/v3/assets/index.1afd4cec.js
2024-04-20 08:49:23 +00:00

2 lines
1.1 KiB
JavaScript

import{c as u,b as m,E as p,u as V,p as g}from"./use-translate.d2900b8c.js";import{n as h,u as f,w as d}from"./with-install.19a35764.js";import{z as c,u as k,e as s,A as R}from"./vue-libs.b44bc779.js";import{c as b,C}from"./Checker.862ecffc.js";const[l,P]=u("radio-group"),w={disabled:Boolean,iconSize:h,direction:String,modelValue:f,checkedColor:String},i=Symbol(l),G=c({name:l,props:w,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{linkChildren:o}=m(i),r=a=>t("update:modelValue",a);return k(()=>e.modelValue,a=>t("change",a)),o({props:e,updateValue:r}),p(()=>e.modelValue),()=>{var a;return s("div",{class:P([e.direction]),role:"radiogroup"},[(a=n.default)==null?void 0:a.call(n)])}}}),S=d(G),y=S,[v,_]=u("radio"),z=c({name:v,props:b,emits:["update:modelValue"],setup(e,{emit:t,slots:n}){const{parent:o}=V(i),r=()=>(o?o.props.modelValue:e.modelValue)===e.name,a=()=>{o?o.updateValue(e.name):t("update:modelValue",e.name)};return()=>s(C,R({bem:_,role:"radio",parent:o,checked:r(),onToggle:a},e),g(n,["default","icon"]))}}),A=d(z),B=A;export{A as R,y as V,S as a,B as b};