<el-input placeholder="请输入内容" v-model="input" @keyup.native="input = ValReplace(input)"> </el-input>
ValReplace(val) {
val=val.replace(/[^0-9.]/g,'');
val=val.replace(/^\./g, '');
val=val.replace(/\.{2,}/g, '');
val=val.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.');
return val
},