Scroll: feat scroll always show

pull/21930/head
王叨叨 2022-06-17 11:00:37 +08:00
parent 8ab1db83c5
commit 3e7360b600
2 changed files with 7 additions and 1 deletions

View File

@ -93,7 +93,7 @@ export default {
</div>
]);
}
return h('div', { class: 'el-scrollbar' }, nodes);
return h('div', { 'class': ['el-scrollbar', this.always ? 'is-always' : ''] }, nodes);
},
methods: {

View File

@ -14,6 +14,12 @@
}
}
@include when(always){
@include e(bar) {
opacity: 1;
}
}
@include e(wrap) {
overflow: scroll;
height: 100%;