select 滚动条

This commit is contained in:
zhanglipeng 2021-08-12 17:42:42 +08:00
parent 757b4824b7
commit 4efdee0ea1

View File

@ -22,6 +22,7 @@
<el-col :xs="24" :ms="12" :md="5">
<el-form-item label="选择教师" prop="jsid">
<el-select
ref="fieldSelect"
v-model="queryParams.jsid"
clearable
size="small"
@ -382,6 +383,13 @@ export default {
});
},
},
mounted() {
this.$nextTick(function () {
this.$refs.fieldSelect.$refs.scrollbar.$el.classList.add(
"scroll-opacity"
);
});
},
methods: {
/** 查询教师月绩效考核列表 */
getList() {
@ -564,4 +572,9 @@ export default {
.no-margin ::v-deep.el-form-item__content {
margin: 0 !important;
}
.el-select-dropdown
.scroll-opacity.el-scrollbar
.el-scrollbar__bar.is-vertical {
opacity: 1; //0
}
</style>