限制最大只能10位且小数点后两位
<vxe-column field="totalWeight" title="总毛重(g)">
<template #default="{ row, rowIndex }">
<el-input
oninput="value=value.replace(/^([0-9-]\d*\.?\d{0,2})?.*$/,'$1')"
maxlength="10"
placeholder="请输入"
v-model="row.totalWeight"
></el-input>
</template>
</vxe-column>