最近测试人员输入金额时要输入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>元
网友评论