From f13fa387e1c41d9e153acfa06a15bc4df4a9f808 Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 31 Jan 2021 17:14:09 +0800 Subject: [PATCH] docs(Sticky): add version tag (#8047) --- src/sticky/README.md | 4 ++-- src/sticky/README.zh-CN.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/sticky/README.md b/src/sticky/README.md index b96ba64ff..c17e88808 100644 --- a/src/sticky/README.md +++ b/src/sticky/README.md @@ -61,9 +61,9 @@ export default { | Attribute | Description | Type | Default | | --- | --- | --- | --- | +| position `v3.0.6` | Offset position, can be set to `bottom` | _string_ | `top` | | offset-top | Offset top, supports `px` `vw` `vh` `rem` unit, default `px` | _number \| string_ | `0` | -| offset-bottom | Offset bottom, supports `px` `vw` `vh` `rem` unit, default `px` | _number \| string_ | `0` | -| position | Offset position, supports `top` `bottom` | _string_ | `top` | +| offset-bottom `v3.0.6` | Offset bottom, supports `px` `vw` `vh` `rem` unit, default `px` | _number \| string_ | `0` | | z-index | z-index when sticky | _number \| string_ | `99` | | container | Container DOM | _Element_ | - | diff --git a/src/sticky/README.zh-CN.md b/src/sticky/README.zh-CN.md index a80e8f018..ea043e626 100644 --- a/src/sticky/README.zh-CN.md +++ b/src/sticky/README.zh-CN.md @@ -2,7 +2,7 @@ ### 介绍 -Sticky 组件与 CSS 中`position: sticky`属性实现的效果一致,当组件在屏幕范围内时,会按照正常的布局排列,当组件滚出屏幕范围时,始终会固定在屏幕顶部。 +Sticky 组件与 CSS 中 `position: sticky` 属性实现的效果一致,当组件在屏幕范围内时,会按照正常的布局排列,当组件滚出屏幕范围时,始终会固定在屏幕顶部。 ### 引入 @@ -50,7 +50,7 @@ app.use(Sticky); ### 吸底距离 -通过 `offset-bottom` 属性可以设置组件在吸底时与底部的距离。通过 `position` 属性控制吸附位置,默认值为 `top`。 +将 `position` 设置为 `bottom` 可以让组件吸附在底部。通过 `offset-bottom` 属性可以设置组件在吸底时与底部的距离。 ```html @@ -73,9 +73,9 @@ export default { | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | +| position `v3.0.6` | 吸附位置,可选值为 `bottom` | _string_ | `top` | | offset-top | 吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px` | _number \| string_ | `0` | -| offset-bottom | 吸底时与底部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px` | _number \| string_ | `0` | -| position | 吸附位置,支持 `top` `bottom` | _string_ | `top` | +| offset-bottom `v3.0.6` | 吸底时与底部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px` | _number \| string_ | `0` | | z-index | 吸顶时的 z-index | _number \| string_ | `99` | | container | 容器对应的 HTML 节点 | _Element_ | - |