import{a as r,e as p,o as a,b as c,g as h,l as t,F as d,H as b,X as v}from"./@vue.e84e1286.js";import{p as _}from"./preview.2bfe2f00.js";import"./bus.f1893518.js";import"./mitt.550594b0.js";/* empty css */import"./index.c8cfbd6c.js";import"./vue-router.54876e93.js";const V={__name:"demo1",setup(i){const e=r(5),u=o=>{console.log(o)};return(o,l)=>{const n=p("m-input-number");return a(),c(n,{modelValue:e.value,"onUpdate:modelValue":l[0]||(l[0]=s=>e.value=s),min:1,max:10,onChange:u},null,8,["modelValue"])}}},g={__name:"demo2",setup(i){const e=r(5);return(u,o)=>{const l=p("m-input-number");return a(),c(l,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=n=>e.value=n),disabled:""},null,8,["modelValue"])}}},f={__name:"demo3",setup(i){const e=r(5);return(u,o)=>{const l=p("m-input-number");return a(),c(l,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=n=>e.value=n),step:2},null,8,["modelValue"])}}},N={__name:"demo4",setup(i){const e=r(2);return(u,o)=>{const l=p("m-input-number");return a(),c(l,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=n=>e.value=n),step:2,"step-strictly":""},null,8,["modelValue"])}}},x={__name:"demo5",setup(i){const e=r(5);return(u,o)=>{const l=p("m-input-number");return a(),c(l,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=n=>e.value=n),max:10,step:.2,precision:2},null,8,["modelValue","step"])}}},y={__name:"demo6",setup(i){const e=r(5),u=o=>{console.log(o)};return(o,l)=>{const n=p("m-input-number");return a(),c(n,{modelValue:e.value,"onUpdate:modelValue":l[0]||(l[0]=s=>e.value=s),"controls-position":"right",min:1,max:10,onChange:u},null,8,["modelValue"])}}},U={style:{"margin-top":"20px"}},$={__name:"demo7",setup(i){const e=r(1),u=r(2),o=r(3);return(l,n)=>{const s=p("m-input-number");return a(),h(b,null,[t("div",null,[d(s,{modelValue:e.value,"onUpdate:modelValue":n[0]||(n[0]=m=>e.value=m)},null,8,["modelValue"]),d(s,{modelValue:u.value,"onUpdate:modelValue":n[1]||(n[1]=m=>u.value=m),size:"medium",style:{"margin-left":"20px","margin-right":"20px"}},null,8,["modelValue"]),d(s,{modelValue:o.value,"onUpdate:modelValue":n[2]||(n[2]=m=>o.value=m),size:"small"},null,8,["modelValue"])]),t("div",U,[d(s,{modelValue:e.value,"onUpdate:modelValue":n[3]||(n[3]=m=>e.value=m),"controls-position":"right"},null,8,["modelValue"]),d(s,{modelValue:u.value,"onUpdate:modelValue":n[4]||(n[4]=m=>u.value=m),"controls-position":"right",size:"medium",style:{"margin-left":"20px","margin-right":"20px"}},null,8,["modelValue"]),d(s,{modelValue:o.value,"onUpdate:modelValue":n[5]||(n[5]=m=>o.value=m),"controls-position":"right",size:"small"},null,8,["modelValue"])])],64)}}},z={class:"markdown-body"},B=t("h1",null,"InputNumber \u8BA1\u6570\u5668",-1),C=t("h4",null,"\u4EC5\u5141\u8BB8\u8F93\u5165\u6807\u51C6\u7684\u6570\u5B57\u503C\uFF0C\u53EF\u5B9A\u4E49\u8303\u56F4",-1),I=t("br",null,null,-1),k=t("h2",null,"\u57FA\u7840\u7528\u6CD5",-1),E=t("h4",null,"\u8981\u4F7F\u7528\u5B83\uFF0C\u53EA\u9700\u8981\u5728m-input-number\u5143\u7D20\u4E2D\u4F7F\u7528v-model\u7ED1\u5B9A\u53D8\u91CF\u5373\u53EF\uFF0C\u53D8\u91CF\u7684\u521D\u59CB\u503C\u5373\u4E3A\u9ED8\u8BA4\u503C",-1),w={class:"source"},F=t("h2",null,"\u7981\u7528\u72B6\u6001",-1),A=t("h4",null,"disabled\u5C5E\u6027\u63A5\u53D7\u4E00\u4E2ABoolean\uFF0C\u8BBE\u7F6E\u4E3Atrue\u5373\u53EF\u7981\u7528\u6574\u4E2A\u7EC4\u4EF6",-1),H={class:"source"},S=t("h2",null,"\u6B65\u6570",-1),X=t("h4",null,"\u5141\u8BB8\u5B9A\u4E49\u9012\u589E\u9012\u51CF\u7684\u6B65\u6570\u63A7\u5236,\u8BBE\u7F6Estep\u5C5E\u6027\u53EF\u4EE5\u63A7\u5236\u6B65\u957F\uFF0C\u63A5\u53D7\u4E00\u4E2ANumber",-1),j={class:"source"},q=t("h2",null,"\u4E25\u683C\u6B65\u6570",-1),D=t("h4",null,"step-strictly\u5C5E\u6027\u63A5\u53D7\u4E00\u4E2ABoolean\u3002\u5982\u679C\u8FD9\u4E2A\u5C5E\u6027\u88AB\u8BBE\u7F6E\u4E3Atrue\uFF0C\u5219\u53EA\u80FD\u8F93\u5165\u6B65\u6570\u7684\u500D\u6570",-1),G={class:"source"},J=t("h2",null,"\u7CBE\u5EA6",-1),K=t("h4",null,"\u8BBE\u7F6E precision \u5C5E\u6027\u53EF\u4EE5\u63A7\u5236\u6570\u503C\u7CBE\u5EA6\uFF0C\u63A5\u6536\u4E00\u4E2A Number",-1),L={class:"source"},M=t("h2",null,"\u6309\u94AE\u4F4D\u7F6E",-1),O=t("h4",null,"\u8BBE\u7F6E controls-position \u5C5E\u6027\u53EF\u4EE5\u63A7\u5236\u6309\u94AE\u4F4D\u7F6E",-1),P={class:"source"},Q=t("h2",null,"\u5C3A\u5BF8",-1),R=t("h4",null,"\u4F7F\u7528 size \u5C5E\u6027\u989D\u5916\u914D\u7F6E\u5C3A\u5BF8\uFF0C\u53EF\u9009\u7684\u5C3A\u5BF8\u5927\u5C0F\u4E3A\uFF1Amedium \u6216 small",-1),T={class:"source"},W=v("

Attributes

\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u53EF\u9009\u503C\u9ED8\u8BA4\u503C
v-model\u7ED1\u5B9A\u503Cnumber\u2014\u2014
min\u8BBE\u7F6E\u8BA1\u6570\u5668\u5141\u8BB8\u7684\u6700\u5C0F\u503Cnumber\u2014-Infinity
max\u8BBE\u7F6E\u8BA1\u6570\u5668\u5141\u8BB8\u7684\u6700\u5927\u503Cnumber\u2014Infinity
step\u8BA1\u6570\u5668\u6B65\u957Fnumber\u20141
step-strictly\u662F\u5426\u53EA\u80FD\u8F93\u5165 step \u7684\u500D\u6570boolean\u2014false
precision\u6570\u503C\u7CBE\u5EA6number\u2014\u2014
size\u8BA1\u6570\u5668\u5C3A\u5BF8stringmedium, small\u2014
disabled\u662F\u5426\u7981\u7528\u8BA1\u6570\u5668boolean\u2014false
controls\u662F\u5426\u4F7F\u7528\u63A7\u5236\u6309\u94AEboolean\u2014true
controls-position\u63A7\u5236\u6309\u94AE\u4F4D\u7F6Estringright-
name\u539F\u751F\u5C5E\u6027string\u2014\u2014

Events

\u4E8B\u4EF6\u540D\u79F0\u8BF4\u660E\u56DE\u8C03\u53C2\u6570
change\u7ED1\u5B9A\u503C\u88AB\u6539\u53D8\u65F6\u89E6\u53D1currentValue
blur\u5728\u7EC4\u4EF6 Input \u5931\u53BB\u7126\u70B9\u65F6\u89E6\u53D1(event: Event)
focus\u5728\u7EC4\u4EF6 Input \u83B7\u5F97\u7126\u70B9\u65F6\u89E6\u53D1(event: Event)

",7),lt={__name:"doc",setup(i,{expose:e}){return e({frontmatter:{}}),(o,l)=>(a(),h("div",z,[B,C,I,k,E,t("div",w,[d(V)]),d(_,{compName:"input-number",demoName:"demo1"}),F,A,t("div",H,[d(g)]),d(_,{compName:"input-number",demoName:"demo2"}),S,X,t("div",j,[d(f)]),d(_,{compName:"input-number",demoName:"demo3"}),q,D,t("div",G,[d(N)]),d(_,{compName:"input-number",demoName:"demo4"}),J,K,t("div",L,[d(x)]),d(_,{compName:"input-number",demoName:"demo5"}),M,O,t("div",P,[d(y)]),d(_,{compName:"input-number",demoName:"demo6"}),Q,R,t("div",T,[d($)]),d(_,{compName:"input-number",demoName:"demo7"}),W]))}};export{lt as default};