How to solve the left alignment of el-form-item text in a single el-form

        During the development process, I encountered a problem about page layout, how to left-align the label of an el-form-item in the el-form, the document provides the attribute label-position to control the position of the label of the entire form  .

        The label-width is provided in the document, and label-width:auto is set for a single el-form-item; the function is realized, but the verification prompt is misplaced, and finally the default style in the el-form cannot be modified to control His label is on the left

.group-item-vo {
  display: flex;
  justify-content: flex-start;
  padding-bottom: 14px;
  span {
    margin-right: 20px;
  }
}

 Effect picture after modification:

 

 

Guess you like

Origin blog.csdn.net/qq_43474235/article/details/127480583
Recommended