import{aH as e,l as a,k as l,aI as t}from"./naive-ui.js?v=20260328163632";import{k as s,r as d,w as u,O as o,s as i}from"./base-lib.js?v=20260328163632";const p=s({name:"BtRadio",props:{modelValue:{type:[Boolean,String,Number],default:""},...e,options:{type:Array,required:!0},type:{type:String,default:"radio"}},emits:["update:modelValue"],setup(e,{attrs:s,emit:p}){const r=d(e.modelValue);u((()=>e.modelValue),(e=>{r.value=e}));const m=e=>{p("update:modelValue",e)};return()=>o(a,i(s,e,{value:r.value,"onUpdate:value":m}),{default:()=>["radio"===e.type?e.options.map(((e,a)=>e.isHide?null:o(l,{key:a,value:e.value,disabled:e.disabled},{default:()=>[e.label]}))):e.options.map(((e,a)=>e.isHide?null:o(t,{key:a,value:e.value,disabled:e.disabled},{default:()=>[e.label]})))]})}});export{p as B};
