cscshtml:
<el-select v-model="item.toolState">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
css:
/* 以下是选择框的长度设置 */
.el-select {
width: 150px;
}
.el-select ::v-deep .popper-class {
width: 150px;
}
.iclass-text-ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* // 设置选择框的样式 */
::v-deep .el-input--suffix .el-input__inner {
background-color: transparent;
color: #fff;
font-size: 16px;
border: none;
}