Vux: XNumber不支持小数输入

Created on 28 Jul 2017  ·  6Comments  ·  Source: airyland/vux


可否通过增加一个属性表示需要支持小数

componenx-number

Most helpful comment

开启 fillable 是可以输入小数的,但是在IOS type=‘number’ 时 无小数点

All 6 comments

不知道你的输入是什么意思,你开启 fillable 是可以输入小数的,step 也是可以设置小数的。

怎么限制只能输入正整数呢?

开启 fillable 是可以输入小数的,但是在IOS type=‘number’ 时 无小数点

怎么限制只能输入正整数呢?

你的问题解决了吗?怎么限制输入正数?

@KarlHuang0509 min={0}?

@KarlHuang0509 min={0}?
什么意思? 我控件设置是这样。
title="用量"
width="5em"
v-model="qty"
align="left"
required
fillable
ref="qty"
:min="0"
:max="2147483647"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GloriaCHL picture GloriaCHL  ·  4Comments

hao-li picture hao-li  ·  3Comments

hjmmc picture hjmmc  ·  3Comments

LS1231 picture LS1231  ·  3Comments

wonghoman picture wonghoman  ·  4Comments