<el-select class="my-el-select" v-model="tenantCont" placeholder="请输入机构标识"> <el-option-group v-for="group in options" :key="group.label" :label="group.label"> <el-option v-for="item in group.options" :key="item.value" :label="item.label" :value="item.value"> </el-option> </el-option-group> </el-select>
// 内容居中 .el-scrollbar .el-select-group__wrap /deep/ .el-select-dropdown__item{ text-align: center !important; }