From 062f5c54b46ec0730c11d0e52b117ba37e1361b9 Mon Sep 17 00:00:00 2001 From: Glory 1997 <49900283+rongyao97@users.noreply.github.com> Date: Wed, 17 Mar 2021 16:38:09 +0800 Subject: [PATCH] docs(Sticky): reorder documents (#8370) --- src/sticky/README.md | 16 ++++++++-------- src/sticky/README.zh-CN.md | 18 +++++++++--------- 2 files changed, 17 insertions(+), 17 deletions(-) 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