<input type="number" class="mui-input-clear" v-model.number="sum" @input="oninput" placeholder="请输入金额">
oninput(e) {
var that = this
// 通过正则过滤小数点后两位
e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
that.sum = e.target.value;
console.log('e', e.target.value)
}