diff --git a/src/sticky/README.md b/src/sticky/README.md
index c17e88808..622915c0d 100644
--- a/src/sticky/README.md
+++ b/src/sticky/README.md
@@ -38,14 +38,6 @@ app.use(Sticky);
```
-### Offset Bottom
-
-```html
-
- Offset Bottom
-
-```
-
```js
export default {
setup() {
@@ -55,6 +47,14 @@ export default {
};
```
+### Offset Bottom
+
+```html
+
+ Offset Bottom
+
+```
+
## API
### Props
diff --git a/src/sticky/README.zh-CN.md b/src/sticky/README.zh-CN.md
index ea043e626..2d6ff9b6c 100644
--- a/src/sticky/README.zh-CN.md
+++ b/src/sticky/README.zh-CN.md
@@ -48,6 +48,15 @@ app.use(Sticky);
```
+```js
+export default {
+ setup() {
+ const container = ref(null);
+ return { container };
+ },
+};
+```
+
### 吸底距离
将 `position` 设置为 `bottom` 可以让组件吸附在底部。通过 `offset-bottom` 属性可以设置组件在吸底时与底部的距离。
@@ -58,15 +67,6 @@ app.use(Sticky);
```
-```js
-export default {
- setup() {
- const container = ref(null);
- return { container };
- },
-};
-```
-
## API
### Props