优化scroll组件, 支持动态高度
parent
624f275cee
commit
58be54911b
|
@ -26,6 +26,7 @@ class Scroll extends Component {
|
|||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-height: inherit;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
|
@ -33,6 +34,7 @@ class Scroll extends Component {
|
|||
scrollbar-width: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-height: inherit;
|
||||
scrollbar-width: 0;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
|
@ -232,6 +234,8 @@ class Scroll extends Component {
|
|||
} else {
|
||||
this.$refs.y.parentNode.style.display = 'none'
|
||||
}
|
||||
|
||||
// this.$requestUpdate()
|
||||
}
|
||||
|
||||
_fetchScrollX(moveX) {
|
||||
|
|
Loading…
Reference in New Issue