feat(Sticky): offset-top support rem unit (#6556)

This commit is contained in:
neverland
2020-06-17 18:10:07 +08:00
committed by GitHub
parent fd388d0475
commit f2543b5dfa
5 changed files with 49 additions and 17 deletions
+5 -5
View File
@@ -54,11 +54,11 @@ export default {
### Props
| Attribute | Description | Type | Default |
| ---------- | ------------------- | ------------------ | ------- |
| offset-top | Offset top | _number \| string_ | `0` |
| z-index | z-index when sticky | _number \| string_ | `99` |
| container | Container DOM | _Element_ | - |
| Attribute | Description | Type | Default |
| --- | --- | --- | --- |
| offset-top `v2.8.7` | Offset top, supports `px` ans `rem` unit, default `px` | _number \| string_ | `0` |
| z-index | z-index when sticky | _number \| string_ | `99` |
| container | Container DOM | _Element_ | - |
### Events