element ui 中自带的表单必填项校验输入空格时,依然能逃过验证(required: true还是可以通过),
需要再 在v-model 加上 .trim 来禁止输入空格字符。
加上之后则不能输入空格。