Merge branch 'dev' into next

This commit is contained in:
chenjiahan
2020-09-28 11:46:26 +08:00
72 changed files with 259 additions and 243 deletions
+3 -3
View File
@@ -18,7 +18,7 @@ app.use(Sticky);
### 基础用法
将内容包裹在`Sticky`组件内即可
将内容包裹在 `Sticky` 组件内即可
```html
<van-sticky>
@@ -28,7 +28,7 @@ app.use(Sticky);
### 吸顶距离
通过`offset-top`属性可以设置组件在吸顶时与顶部的距离
通过 `offset-top` 属性可以设置组件在吸顶时与顶部的距离
```html
<van-sticky :offset-top="50">
@@ -38,7 +38,7 @@ app.use(Sticky);
### 指定容器
通过`container`属性可以指定组件的容器,页面滚动时,组件会始终保持在容器范围内,当组件即将超出容器底部时,会固定在容器的底部
通过 `container` 属性可以指定组件的容器,页面滚动时,组件会始终保持在容器范围内,当组件即将超出容器底部时,会固定在容器的底部
```html
<div ref="container" style="height: 150px;">