Skip to content

Commit 92694e3

Browse files
committed
update doc
1 parent 86af85a commit 92694e3

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
# [vue-intersection-observer](https://github.com/BiYuqi/webpack-seed)
2-
3-
<p align="left">
4-
</p>
1+
# [vue-intersection-observer](https://github.com/BiYuqi/vue-intersection-observer)
52

63
## 前言
74
**Vue Intersection Observer** 是一个Vue组件,基于[IntersectionObserver API](https://developer.mozilla.org/zh-CN/docs/Web/API/Intersection_Observer_API)的集成, 包装,便于实现需要用到元素交集变化的信息.
@@ -20,7 +17,7 @@ npm i vue-intersection-observer -S
2017

2118
在懒加载图片中使用(Usage in Lazy-load-image):
2219

23-
[Demo](http://loadingmore.com/vue-intersection-observer/#/lazy-load)
20+
[Demo](https://biyuqi.github.io/vue-intersection-observer/#/lazy-load)
2421

2522
```js
2623
<!-- 基于本插件封装LazyImage组件 -->
@@ -138,7 +135,7 @@ npm install --save intersection-observer
138135

139136
## 文档 ( Documentation )
140137

141-
[DEMO](http://loadingmore.com/vue-intersection-observer)
138+
[DEMO](https://biyuqi.github.io/vue-intersection-observer)
142139

143140
## Options And Method
144141
Name | Type | Default | Required | Description
@@ -174,5 +171,3 @@ onChange(entry, unobserve) {
174171
// The method can remove target describe
175172
}
176173
```
177-
178-
> 文档不够完善,会持续补充.

vue.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const path = require("path");
21
const isProd = process.env.NODE_ENV === "production";
32

43
module.exports = {
5-
publicPath: isProd ? '/vue-intersection-observer/' : '/'
4+
publicPath: isProd ? "/vue-intersection-observer/" : "/",
5+
productionSourceMap: false
66
};

0 commit comments

Comments
 (0)