const rules = reactive({ chargeManPhone: [
{
required: true,
message: '请输入电话!',
trigger: 'blur',
},
{
pattern: /^1(3|4|5|6|7|8|9)\d{9}$/,
message: '手机号格式错误',
trigger: 'blur',
},
],})
<a-input
v-model:value="form_data.chargeManPhone"
allowClear
type="number"
:maxlength="11"
placeholder="请输入"
/>