index-legacy.23ddccbf.js 1.1 KB

1
  1. System.register(["./index-legacy.eb062188.js","./Checker-legacy.9bbda964.js"],(function(e){"use strict";var a,t,o,l,n,r,u,d,i,s,c,m,p,g,V;return{setters:[function(e){a=e.t,t=e.z,o=e.O,l=e.d,n=e.x,r=e.Z,u=e.b8,d=e.c,i=e.D,s=e.N,c=e.C,m=e.am,p=e.E},function(e){g=e.c,V=e.s}],execute:function(){const[h,b]=a("radio-group"),S={shape:String,disabled:Boolean,iconSize:t,direction:String,modelValue:o,checkedColor:String},f=Symbol(h);var v=l({name:h,props:S,emits:["change","update:modelValue"],setup(e,{emit:a,slots:t}){const{linkChildren:o}=n(f);return r((()=>e.modelValue),(e=>a("change",e))),o({props:e,updateValue:e=>a("update:modelValue",e)}),u((()=>e.modelValue)),()=>{var a;return d("div",{class:b([e.direction]),role:"radiogroup"},[null==(a=t.default)?void 0:a.call(t)])}}});e("R",i(v));const k=s({},g,{shape:String}),[y,C]=a("radio");var x=l({name:y,props:k,emits:["update:modelValue"],setup(e,{emit:a,slots:t}){const{parent:o}=c(f),l=()=>{o?o.updateValue(e.name):a("update:modelValue",e.name)};return()=>d(V,p({bem:C,role:"radio",parent:o,checked:(o?o.props.modelValue:e.modelValue)===e.name,onToggle:l},e),m(t,["default","icon"]))}});e("a",i(x))}}}));