element ui input 无法输入0.01
2020-09-29 本文已影响0人
打静爵
最近测试人员输入金额时要输入0.01方便支付测试,然后发现无法输入0.01,最后发现是写法的锅:
<el-input v-model.number="formData.reduceMoney"
class="input200"
type="number"
@focus="discountMethodFocus(1)"
:disabled="disabledOptions.includes('reduceMoney')">
</el-input>元
将上面的.number去掉即可
<el-input v-model="formData.reduceMoney"
class="input200"
type="number"
@focus="discountMethodFocus(1)"
:disabled="disabledOptions.includes('reduceMoney')">
</el-input>元