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
@@ -64,11 +64,11 @@ export default {
### Props
| 参数 | 说明 | 类型 | 默认值 |
| ---------- | ---------------------------- | ------------------ | ------ |
| offset-top | 吸顶时与顶部的距离,单位`px` | _number \| string_ | `0` |
| z-index | 吸顶时的 z-index | _number \| string_ | `99` |
| container | 容器对应的 HTML 节点 | _Element_ | - |
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| offset-top `v2.8.7` | 吸顶时与顶部的距离,支持 `px``rem` 单位,默认 `px` | _number \| string_ | `0` |
| z-index | 吸顶时的 z-index | _number \| string_ | `99` |
| container | 容器对应的 HTML 节点 | _Element_ | - |
### Events