Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5debe54

Browse files
authored
Update README.md
1 parent ed8a41c commit 5debe54

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

‎README.md‎

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
### 重构待测
1414
1. 测嵌套 👌
1515
2. 触发各事件 👌
16-
3. 平滑滚动
16+
3. 平滑滚动 👌
1717
4. 锚点跳转 👌
1818
5. 键盘事件 👌
1919
6. 变颜色,换位置,随机改变大小 👌
2020
7. 各方法测试 👌
2121
8. safari 多次触发触底触顶事件 👌
22-
9. 整理代码 👌
23-
10. padding 2px 👌
24-
11. firefox scrollTo滚动到顶部 模拟滚动条没动
25-
12. IE11 轨道上点击,位置没对
26-
13. 轨道上点击 needSmooth问题
22+
9. 整理代码 👌
23+
10. padding 2px 👌
24+
11. firefox scrollTo滚动到顶部 模拟滚动条没动 👌 firefox不触发scroll事件
25+
12. IE11 轨道上点击,位置没对 👌 IE11不支持Number.isFinite
26+
13. 轨道上点击 needSmooth问题 👌
2727

2828
### 特性
2929

@@ -50,7 +50,7 @@
5050
全局注册
5151

5252
```js
53-
import Ohyeah from 'vue-ohyeah-scroll';
53+
import { Ohyeah } from 'vue-ohyeah-scroll';
5454
Vue.use(Ohyeah);
5555
```
5656

@@ -70,9 +70,9 @@ export default {
7070

7171
```js
7272
<template>
73-
<ohyeah width="100vw" height="100vh">
73+
<Ohyeah width="100vw" height="100vh">
7474
...
75-
</ohyeah>
75+
</Ohyeah>
7676
</template>
7777
```
7878

@@ -91,8 +91,7 @@ export default {
9191
| noVer | Boolean | false | 是否禁用垂直滚动条(overflow-y:hidden) |
9292
| noHor | Boolean | false | 是否禁用水平滚动条(overflow-x:hidden) |
9393
| minLength | Number | 20 | 当内容无限多的时候,滑块最短不得低于此值,单位: px |
94-
| useKeybord | Boolean | false | 是否启用键盘方向键控制 |
95-
| movePx | Number | 160 | 当用键盘控制时,单次按键,页面滚动的距离,单位: px |
94+
|
9695
| resizeObject | Boolean | false | 如果存在监听不到内容高度变化的情况可以把这个值改为true试试,(nuxt.js打包后发现有这种情况) |
9796

9897
### 自定义事件

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /