Reference article: (8 messages) When the antd library is developed, the label in the form is too long (recommended collection)_Gulanxun's blog-CSDN blog_antd label
First you have to use solt to customize the label
<!-- 这里的label必须去掉,就算是label='',下面的solt都不能用 -->
<a-form-model-item>
<span slot="label" class="label-box">产业、产品类型及规模以及所在地址</span>
<a-textarea v-model="infoData.conditionContent" placeholder="请输入" />
</a-form-model-item>
custom style
.label-box{
width: 80%; // 建议80%,太长就会超出内容
display: inline-block;
height: auto;
white-space: break-spaces;
line-height: 18px;
text-align: left;
vertical-align: bottom; // 这是为了让整体的字往下移动一点
}
Original link: https://blog.csdn.net/qq_43106047/article/details/127368794