Skip to content

Commit

Permalink
Build docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tangbc committed Jun 10, 2020
1 parent 2496d77 commit b80943d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><title>vue-virtual-scroll-list</title><link rel=icon href=favicon.png><link rel=stylesheet href=milligram.css><link rel=stylesheet href=highlight/theme.css><script src=highlight/pack.js></script><script async defer src=https://buttons.github.io/buttons.js></script><script>hljs.initHighlightingOnLoad()</script><link href=css/chat-room.9f37805a.css rel=prefetch><link href=css/dynamic-size.9013d8ce.css rel=prefetch><link href=css/fixed-size.840ec49f.css rel=prefetch><link href=css/horizontal.50e26ffa.css rel=prefetch><link href=css/infinite-loading.4b238c18.css rel=prefetch><link href=css/keep-state.2736386a.css rel=prefetch><link href=css/page-mode.bb1117ff.css rel=prefetch><link href=js/chat-room.4c2298c2.js rel=prefetch><link href=js/chat-room~dynamic-size~fixed-size~horizontal~infinite-loading~keep-state~page-mode.fea2e070.js rel=prefetch><link href=js/dynamic-size.f88ee3d0.js rel=prefetch><link href=js/fixed-size.abad1ab0.js rel=prefetch><link href=js/horizontal.838e374b.js rel=prefetch><link href=js/infinite-loading.9cbcdfab.js rel=prefetch><link href=js/keep-state.63b60a2b.js rel=prefetch><link href=js/page-mode.2a8b2ebd.js rel=prefetch><link href=css/app.12df65ee.css rel=preload as=style><link href=js/app.458afe24.js rel=preload as=script><link href=js/chunk-vendors.cb54c5d1.js rel=preload as=script><link href=css/app.12df65ee.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.cb54c5d1.js></script><script src=js/app.458afe24.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><title>vue-virtual-scroll-list</title><link rel=icon href=favicon.png><link rel=stylesheet href=milligram.css><link rel=stylesheet href=highlight/theme.css><script src=highlight/pack.js></script><script async defer src=https://buttons.github.io/buttons.js></script><script>hljs.initHighlightingOnLoad()</script><link href=css/chat-room.9f37805a.css rel=prefetch><link href=css/dynamic-size.9013d8ce.css rel=prefetch><link href=css/fixed-size.840ec49f.css rel=prefetch><link href=css/horizontal.50e26ffa.css rel=prefetch><link href=css/infinite-loading.4b238c18.css rel=prefetch><link href=css/keep-state.2736386a.css rel=prefetch><link href=css/page-mode.bb1117ff.css rel=prefetch><link href=js/chat-room.3f3773fd.js rel=prefetch><link href=js/chat-room~dynamic-size~fixed-size~horizontal~infinite-loading~keep-state~page-mode.fea2e070.js rel=prefetch><link href=js/dynamic-size.f88ee3d0.js rel=prefetch><link href=js/fixed-size.abad1ab0.js rel=prefetch><link href=js/horizontal.838e374b.js rel=prefetch><link href=js/infinite-loading.9cbcdfab.js rel=prefetch><link href=js/keep-state.63b60a2b.js rel=prefetch><link href=js/page-mode.2a8b2ebd.js rel=prefetch><link href=css/app.12df65ee.css rel=preload as=style><link href=js/app.51234fe0.js rel=preload as=script><link href=js/chunk-vendors.cb54c5d1.js rel=preload as=script><link href=css/app.12df65ee.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.cb54c5d1.js></script><script src=js/app.51234fe0.js></script></body></html>
13 changes: 7 additions & 6 deletions docs/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-virtual-scroll-list v2.2.7
* vue-virtual-scroll-list v2.2.8
* open source under the MIT license
* https://github.com/tangbc/vue-virtual-scroll-list#readme
*/
Expand Down Expand Up @@ -683,7 +683,7 @@
// return current scroll offset
getOffset: function getOffset() {
if (this.pageMode) {
return document.documentElement[this.directionKey];
return document.documentElement[this.directionKey] || document.body[this.directionKey];
} else {
var root = this.$refs.root;
return root ? Math.ceil(root[this.directionKey]) : 0;
Expand All @@ -694,26 +694,27 @@
var key = this.isHorizontal ? 'clientWidth' : 'clientHeight';

if (this.pageMode) {
return document.documentElement[key];
return document.documentElement[key] || document.body[key];
} else {
var root = this.$refs.root;
return root ? root[key] : 0;
return root ? Math.ceil(root[key]) : 0;
}
},
// return all scroll size
getScrollSize: function getScrollSize() {
var key = this.isHorizontal ? 'scrollWidth' : 'scrollHeight';

if (this.pageMode) {
return document.documentElement[key];
return document.documentElement[key] || document.body[key];
} else {
var root = this.$refs.root;
return root ? root[key] : 0;
return root ? Math.ceil(root[key]) : 0;
}
},
// set current scroll position to a expectant offset
scrollToOffset: function scrollToOffset(offset) {
if (this.pageMode) {
document.body[this.directionKey] = offset;
document.documentElement[this.directionKey] = offset;
} else {
var root = this.$refs.root;
Expand Down
2 changes: 1 addition & 1 deletion docs/js/app.458afe24.js → docs/js/app.51234fe0.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion example/src/views/chat-room/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export default {
created () {
const loadType = getLoadType()
console.log('loadType: ', loadType)
this.param = {
pageSize: loadType === LOAD_TYPES.FEW ? 2 : 10,
Expand Down

0 comments on commit b80943d

Please sign in to comment.