mirror of https://github.com/ElemeFE/element
Scroll: feat scroll always show
parent
8ab1db83c5
commit
3e7360b600
|
@ -93,7 +93,7 @@ export default {
|
||||||
</div>
|
</div>
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
return h('div', { class: 'el-scrollbar' }, nodes);
|
return h('div', { 'class': ['el-scrollbar', this.always ? 'is-always' : ''] }, nodes);
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -14,6 +14,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@include when(always){
|
||||||
|
@include e(bar) {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@include e(wrap) {
|
@include e(wrap) {
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
Loading…
Reference in New Issue