Affix
In non-string templates,it is necessary to use h-affix.
Support page
Fixed in the container
If you encounter a fixed dom higher than the container, be sure to add style overflow: hidden;
affix 参数
| Property |
Description |
Type |
Optional |
Default |
| offsetTop |
Positioning after reaching the specified offset at the top of the window |
Number |
- |
- |
| offsetBottom |
Positioning after reaching the specified offset from the bottom of the window |
Number |
- |
- |
| fixedOffsetTop |
Positioning after reaching the specified offset from the top of the page |
Number |
- |
- |
| container |
Use the positioning in the container |
Function |
- |
- |
affix Event
| Event |
Description |
| onchange |
This method is triggered when the fixed state changes. |
affix Method
| Method |
Description |
| refresh |
Undetected page changes, need to refresh the location of affix components |