docs: add period at the end of sentence
This commit is contained in:
@@ -17,7 +17,7 @@ Vue.use(Sticky);
|
||||
|
||||
### 基础用法
|
||||
|
||||
将内容包裹在`Sticky`组件内即可
|
||||
将内容包裹在 `Sticky` 组件内即可。
|
||||
|
||||
```html
|
||||
<van-sticky>
|
||||
@@ -27,7 +27,7 @@ Vue.use(Sticky);
|
||||
|
||||
### 吸顶距离
|
||||
|
||||
通过`offset-top`属性可以设置组件在吸顶时与顶部的距离
|
||||
通过 `offset-top` 属性可以设置组件在吸顶时与顶部的距离。
|
||||
|
||||
```html
|
||||
<van-sticky :offset-top="50">
|
||||
@@ -37,7 +37,7 @@ Vue.use(Sticky);
|
||||
|
||||
### 指定容器
|
||||
|
||||
通过`container`属性可以指定组件的容器,页面滚动时,组件会始终保持在容器范围内,当组件即将超出容器底部时,会固定在容器的底部
|
||||
通过 `container` 属性可以指定组件的容器,页面滚动时,组件会始终保持在容器范围内,当组件即将超出容器底部时,会固定在容器的底部。
|
||||
|
||||
```html
|
||||
<div ref="container" style="height: 150px;">
|
||||
|
||||
Reference in New Issue
Block a user