How to set the width of the select selector font in the form in elementUI is squeezed

You only need to el-formadd a label-width="100px"width to increase it . Notelabel-width="70px" after the original modification : it is not recommended to use , and it is easy to report errors. The correct source code is as follows:label-width="100px"
auto

 <el-form :rules="loginFormRules" :model="form" label-width="100px">
              <el-form-item prop='method' label="Method">
                <el-select v-model="form.method" placeholder="请选择活动区域">
                  <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
                  </el-option>
                </el-select>
              </el-form-item>
            </el-form>

1. The following picture has not been modified:

insert image description here

2. Modify the following picture:

insert image description here

If you feel that the article is good, remember to pay attention, pay attention and collect it. Please correct me if there is any mistake. If you need to reprint, please indicate the source, thank you! ! !

Guess you like

Origin blog.csdn.net/m0_49714202/article/details/124375131