[update] 单行文本去掉前后空格

This commit is contained in:
lideqin
2023-10-18 09:45:26 +08:00
parent 41adfa6baf
commit 0610d1b33b
5 changed files with 9 additions and 3 deletions
@@ -49,6 +49,7 @@
<a-col :span="12">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('title')">
<a-input v-decorator.trim="[ 'title', validatorRules.title]"
@change="event => event.target.value = event.target.value.trim()"
:placeholder="$t('pleaseEnter') + $t('title')"/>
</a-form-item>
</a-col>
@@ -78,7 +79,7 @@
<a-col :span="24">
<a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('businessSupport.questionAnswer.questionDesc')">
<a-textarea
v-decorator.trim="[ 'problemDescription', validatorRules.problemDescription]"
v-decorator="[ 'problemDescription', validatorRules.problemDescription]"
:placeholder="$t('pleaseEnter')+$t('businessSupport.questionAnswer.questionDesc')"
:maxLength="500"
:rows="4" />