Nested scroll view component, supports nested scrolling and sticky header
Example
Code
Example
Code
Props
| Name | Type | Description | Default |
|---|---|---|---|
scroll-y | boolean | Allow vertical scrolling, currently only supports vertical scrolling | false |
scroll-top | string | number | Set vertical scroll bar position | |
scroll-into-view | string | The value should be the ID of a child element (ID cannot start with a number). Set which direction to scroll, then scroll to the element in which direction | |
upper-threshold | string | number | When it is far from the top, the scrolltupper event is triggered | 50 |
lower-threshold | string | number | When it is far from the bottom, the scrollcolor event is triggered | 50 |
enhanced | boolean | Enable the scroll view enhancement feature. After enabling, you can operate scroll view through ScrollViewContext | false |
show-scrollbar | boolean | Enabled when enhanced:true, control the scrollbar show/hide | true |
scroll-with-animation | boolean | Use animation transitions when setting scroll bar position | false |
active | boolean | Set horizontal scroll bar position | true |
Events
| Name | Description |
|---|---|
bindscroll | bindscroll Triggered when scrolling,Argumentsevent: detail: Object — The detail event objectObject{ scrollLeft, scrollTop, scrollHeight, scrollWidth, deltaX, deltaY } |
bindscrollstart | bindscrollstart Triggered when scroll start, support msv >= 4.36.0Argumentsevent: detail: Object — The detail event objectObject{ scrollLeft, scrollTop, scrollHeight, scrollWidth } |
bindscrollend | bindscrollend Triggered when scroll end, support msv >= 4.36.0Argumentsevent: detail: Object — The detail event objectObject{ scrollLeft, scrollTop, scrollHeight, scrollWidth } |
bindscrolltoupper | bindscrolltoupper Scroll to the top/Triggered on the left |
bindscrolltolower | bindscrolltolower Scroll to the bottom/Triggered on the right |
Was this page helpful?
Last modified on