发布时间:2024-04-17 15:01
input中只能输入数字
<el-form-item
label=\"盒内数量\"
prop=\"pill_amount\"
style=\"width: 320px\">
<el-input
placeholder=\"请输入\"
@input=\"data.pill_amount = String(data.pill_amount).replace(
/[^\\d]/g,
\'\'
)
\"
v-model.number=\"data.pill_amount\"
>
</el-input>
</el-form-item>