import{_ as a,b as e,d as l,p as t,w as s,H as u,i as n,o as i,f as d,k as r,e as c,y as o,F as f,Z as m,W as _,a0 as h,t as v}from"./index-2PZN6pGH.js";const p=a({data:()=>({title:"radio 单选框",items:[{value:"USA",name:"美国"},{value:"CHN",name:"中国",checked:"true"},{value:"BRA",name:"巴西"},{value:"JPN",name:"日本"},{value:"ENG",name:"英国"},{value:"FRA",name:"法国"}],current:0}),methods:{radioChange(a){for(let e=0;e<this.items.length;e++)if(this.items[e].value===a.detail.value){this.current=e;break}}}},[["render",function(a,p,g,C,k,y){const F=e(l("page-head"),u),x=n,w=m,A=_,N=h;return i(),t(x,null,{default:s((()=>[d(F,{title:k.title},null,8,["title"]),d(x,{class:"uni-padding-wrap"},{default:s((()=>[d(x,{class:"uni-title"},{default:s((()=>[r("默认样式")])),_:1}),d(x,null,{default:s((()=>[d(A,{class:"radio",style:{"margin-right":"30rpx"}},{default:s((()=>[d(w,{value:"r1",checked:"true"}),r("选中 ")])),_:1}),d(A,{class:"radio"},{default:s((()=>[d(w,{value:"r2"}),r("未选中 ")])),_:1})])),_:1})])),_:1}),d(x,{class:"uni-padding-wrap"},{default:s((()=>[d(x,{class:"uni-title"},{default:s((()=>[r("不同颜色和尺寸的radio")])),_:1}),d(x,null,{default:s((()=>[d(A,{class:"radio",style:{"margin-right":"30rpx"}},{default:s((()=>[d(w,{value:"r1",checked:"true",color:"#FFCC33",style:{transform:"scale(0.7)"}}),r("选中 ")])),_:1}),d(A,{class:"radio"},{default:s((()=>[d(w,{value:"r2",color:"#FFCC33",style:{transform:"scale(0.7)"}}),r("未选中 ")])),_:1})])),_:1})])),_:1}),d(x,{class:"uni-title uni-common-mt uni-common-pl"},{default:s((()=>[r("推荐展示样式")])),_:1}),d(x,{class:"uni-list"},{default:s((()=>[d(N,{onChange:y.radioChange},{default:s((()=>[(i(!0),c(f,null,o(k.items,((a,e)=>(i(),t(A,{class:"uni-list-cell uni-list-cell-pd",key:a.value},{default:s((()=>[d(x,null,{default:s((()=>[d(w,{value:a.value,checked:e===k.current},null,8,["value","checked"])])),_:2},1024),d(x,null,{default:s((()=>[r(v(a.name),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1},8,["onChange"])])),_:1})])),_:1})}],["__scopeId","data-v-71f21319"]]);export{p as default};
