import{c as E}from"./mobile.js";import{_ as y}from"./index.js";import{m as h,r as d,e as F,j as t,k as e,g as c,o as D,l as n}from"./vendor.js";const{createDemo:C}=E("swipe"),w=C({props:{},setup(){const s=h(),l=h(!1),r=h(0);return{checked:l,number:r,changSwitch:o=>{var u,a;o?(u=s.value)==null||u.open("left"):(a=s.value)==null||a.close()},refSwipe:s,open:o=>{console.log(o),l.value=!0},close:()=>{l.value=!1}}}}),v={class:"demo full"},b=c("h2",null,"\u57FA\u7840\u7528\u6CD5",-1),q=n("\u5220\u9664"),V=c("h2",null,"\u7981\u6B62\u6ED1\u52A8",-1),k=n("\u5220\u9664"),B=c("h2",null,"\u5DE6\u53F3\u6ED1\u52A8",-1),A=n("\u9009\u62E9"),S=n("\u5220\u9664"),j=n("\u6536\u85CF"),$=c("h2",null,"\u5F02\u6B65\u63A7\u5236",-1),N=n("\u5220\u9664"),O=c("h2",null,"\u81EA\u5B9A\u4E49",-1),U=n("\u9009\u62E9"),x=n("\u5220\u9664"),T=n("\u6536\u85CF");function z(s,l,r,_,p,f){const o=d("nut-cell"),u=d("nut-button"),a=d("nut-swipe"),m=d("nut-switch"),g=d("nut-inputnumber");return D(),F("div",v,[b,t(a,null,{right:e(()=>[t(u,{shape:"square",style:{height:"100%"},type:"danger"},{default:e(()=>[q]),_:1})]),default:e(()=>[t(o,{"round-radius":"0",desc:"\u5DE6\u6ED1\u5220\u9664"})]),_:1}),V,t(a,{disabled:""},{right:e(()=>[t(u,{shape:"square",style:{height:"100%"},type:"danger"},{default:e(()=>[k]),_:1})]),default:e(()=>[t(o,{"round-radius":"0",desc:"\u7981\u6B62\u6ED1\u52A8"})]),_:1}),B,t(a,null,{left:e(()=>[t(u,{shape:"square",style:{height:"100%"},type:"success"},{default:e(()=>[A]),_:1})]),right:e(()=>[t(u,{shape:"square",style:{height:"100%"},type:"danger"},{default:e(()=>[S]),_:1}),t(u,{shape:"square",style:{height:"100%"},type:"info"},{default:e(()=>[j]),_:1})]),default:e(()=>[t(o,{"round-radius":"0",desc:"\u5DE6\u6ED1\u53F3\u6ED1\u90FD\u53EF\u4EE5\u54E6"})]),_:1}),$,t(a,{ref:"refSwipe",onOpen:s.open,onClose:s.close},{right:e(()=>[t(u,{shape:"square",style:{height:"100%"},type:"danger"},{default:e(()=>[N]),_:1})]),default:e(()=>[t(o,{title:"\u5F02\u6B65\u6253\u5F00\u5173\u95ED"},{link:e(()=>[t(m,{modelValue:s.checked,"onUpdate:modelValue":l[0]||(l[0]=i=>s.checked=i),onChange:s.changSwitch,"active-text":"\u5F00","inactive-text":"\u5173"},null,8,["modelValue","onChange"])]),_:1})]),_:1},8,["onOpen","onClose"]),O,t(a,null,{left:e(()=>[t(u,{shape:"square",style:{height:"100%"},type:"success"},{default:e(()=>[U]),_:1})]),right:e(()=>[t(u,{shape:"square",style:{height:"100%"},type:"danger"},{default:e(()=>[x]),_:1}),t(u,{shape:"square",style:{height:"100%"},type:"info"},{default:e(()=>[T]),_:1})]),default:e(()=>[t(o,{title:"\u5546\u54C1\u63CF\u8FF0"},{link:e(()=>[t(g,{modelValue:s.number,"onUpdate:modelValue":l[1]||(l[1]=i=>s.number=i)},null,8,["modelValue"])]),_:1})]),_:1})])}var J=y(w,[["render",z]]);export{J as default};