<el-input v-model="form.theoProportions[item].theoProportion"  @keyup.native="proving(form.theoProportions[item].theoProportion,item)" placeholder="请输入用量"></el-input>

proving (params, item) {

          this.form.theoProportions[item].theoProportion = params.match(/\d+(\.\d{0,2})?/) ? params.match(/\d+(\.\d{0,2})?/)[0] : '';

    }

Logo

前往低代码交流专区

更多推荐