import{_ as l,b as e,d as t,p as a,w as s,H as n,i as c,o as i,f as u,k as d,K as o}from"./index-2PZN6pGH.js";const h=l({data:()=>({title:"switch 开关"}),methods:{switch1Change:function(l){console.log("switch1 发生 change 事件，携带值为",l.detail.value)},switch2Change:function(l){console.log("switch2 发生 change 事件，携带值为",l.detail.value)}}},[["render",function(l,h,f,g,r,_){const C=e(t("page-head"),n),w=c,m=o;return i(),a(w,null,{default:s((()=>[u(C,{title:r.title},null,8,["title"]),u(w,{class:"uni-padding-wrap uni-common-mt"},{default:s((()=>[u(w,{class:"uni-title"},{default:s((()=>[d("默认样式")])),_:1}),u(w,null,{default:s((()=>[u(m,{checked:"",onChange:_.switch1Change},null,8,["onChange"]),u(m,{onChange:_.switch2Change},null,8,["onChange"])])),_:1}),u(w,{class:"uni-title"},{default:s((()=>[d("不同颜色和尺寸的switch")])),_:1}),u(w,null,{default:s((()=>[u(m,{checked:"",color:"#FFCC33",style:{transform:"scale(0.7)"}}),u(m,{color:"#FFCC33",style:{transform:"scale(0.7)"}})])),_:1}),u(w,{class:"uni-title"},{default:s((()=>[d("推荐展示样式")])),_:1})])),_:1}),u(w,{class:"uni-list"},{default:s((()=>[u(w,{class:"uni-list-cell uni-list-cell-pd"},{default:s((()=>[u(w,{class:"uni-list-cell-db"},{default:s((()=>[d("开启中")])),_:1}),u(m,{checked:""})])),_:1}),u(w,{class:"uni-list-cell uni-list-cell-pd"},{default:s((()=>[u(w,{class:"uni-list-cell-db"},{default:s((()=>[d("关闭")])),_:1}),u(m)])),_:1})])),_:1})])),_:1})}]]);export{h as default};
