demo.89c8272f.js 2.4 KB

1
  1. import{c as e}from"./mobile.4165a21d.js";import{m as o,a as i,W as s,B as l,C as t,r as n,o as u,e as a,j as c}from"./vendor.6bc94963.js";import"./index.2d3e4af8.js";const{createDemo:v}=e("numberkeyboard");var b=v({props:{},setup(){let{proxy:e}=s();const l=o(!1),t=o(!1),n=o(!1),u=o(!1),a=o(!1),c=o(""),v=i(["."]),b=i(["."]),d=[l,t,n,u,a];return{input:function(o){e.$toast.text(`输入:${o}`)},onDelete:function(){e.$toast.text("删除")},close:function(e){d[e-1].value=!1},showKeyBoard:function(e){d[e-1].value=!0},customKey1:v,customKey2:b,visible1:l,visible2:t,visible3:n,visible4:u,visible5:a,value:c}}});l("data-v-dab9d0d8");const d={class:"demo full"};t(),b.render=function(e,o,i,s,l,t){const v=n("nut-cell"),b=n("nut-numberkeyboard");return u(),a("div",d,[c(v,{isLink:!0,onClick:o[0]||(o[0]=o=>e.showKeyBoard(1)),showIcon:!0,title:"默认键盘"}),c(b,{visible:e.visible1,"onUpdate:visible":o[1]||(o[1]=o=>e.visible1=o),onInput:e.input,onDelete:e.onDelete,onClose:o[2]||(o[2]=o=>e.close(1))},null,8,["visible","onInput","onDelete"]),c(v,{isLink:!0,onClick:o[3]||(o[3]=o=>e.showKeyBoard(2)),showIcon:!0,title:"带右侧栏键盘"}),c(b,{type:"rightColumn",visible:e.visible2,"onUpdate:visible":o[4]||(o[4]=o=>e.visible2=o),"custom-key":e.customKey1,onInput:e.input,onClose:o[5]||(o[5]=o=>e.close(2))},null,8,["visible","custom-key","onInput"]),c(v,{isLink:!0,onClick:o[6]||(o[6]=o=>e.showKeyBoard(3)),showIcon:!0,title:"随机数键盘"}),c(b,{type:"rightColumn",visible:e.visible3,"onUpdate:visible":o[7]||(o[7]=o=>e.visible3=o),randomKeys:"true","custom-key":e.customKey1,onInput:e.input,onClose:o[8]||(o[8]=o=>e.close(3))},null,8,["visible","custom-key","onInput"]),c(v,{isLink:!0,onClick:o[9]||(o[9]=o=>e.showKeyBoard(4)),showIcon:!0,title:"带标题栏键盘"}),c(b,{title:"默认键盘",visible:e.visible4,"onUpdate:visible":o[10]||(o[10]=o=>e.visible4=o),"custom-key":e.customKey2,onInput:e.input,onClose:o[11]||(o[11]=o=>e.close(4))},null,8,["visible","custom-key","onInput"]),c(v,{isLink:!0,"desc-text-align":"left",onClick:o[12]||(o[12]=o=>e.showKeyBoard(5)),desc:e.value,showIcon:!0,title:"双向绑定:"},null,8,["desc"]),c(b,{visible:e.visible5,"onUpdate:visible":o[13]||(o[13]=o=>e.visible5=o),value:e.value,"onUpdate:value":o[14]||(o[14]=o=>e.value=o),maxlength:"6",onClose:o[15]||(o[15]=o=>e.close(5))},null,8,["visible","value"])])},b.__scopeId="data-v-dab9d0d8";export{b as default};