Skip to content

Commit f2bd610

Browse files
committed
Build docs
1 parent d612fca commit f2bd610

File tree

6 files changed

+56
-36
lines changed

6 files changed

+56
-36
lines changed

docs/css/app.8a0735d5.css renamed to docs/css/app.07c3cf9a.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +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.0c99226a.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.ad1b8c2c.css rel=prefetch><link href=js/chat-room.e6d20940.js rel=prefetch><link href=js/chat-room~dynamic-size~fixed-size~horizontal~infinite-loading~keep-state.2e7deb58.js rel=prefetch><link href=js/dynamic-size.debe7fb6.js rel=prefetch><link href=js/fixed-size.fab2dd0f.js rel=prefetch><link href=js/horizontal.6faaaf18.js rel=prefetch><link href=js/infinite-loading.afbe430b.js rel=prefetch><link href=js/keep-state.d5fcfbd1.js rel=prefetch><link href=css/app.8a0735d5.css rel=preload as=style><link href=js/app.18b2b032.js rel=preload as=script><link href=js/chunk-vendors.01cce721.js rel=preload as=script><link href=css/app.8a0735d5.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.01cce721.js></script><script src=js/app.18b2b032.js></script></body></html>
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.0c99226a.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.ad1b8c2c.css rel=prefetch><link href=js/chat-room.e6d20940.js rel=prefetch><link href=js/chat-room~dynamic-size~fixed-size~horizontal~infinite-loading~keep-state.2e7deb58.js rel=prefetch><link href=js/dynamic-size.debe7fb6.js rel=prefetch><link href=js/fixed-size.fab2dd0f.js rel=prefetch><link href=js/horizontal.6faaaf18.js rel=prefetch><link href=js/infinite-loading.afbe430b.js rel=prefetch><link href=js/keep-state.d5fcfbd1.js rel=prefetch><link href=css/app.07c3cf9a.css rel=preload as=style><link href=js/app.8bbd22f6.js rel=preload as=script><link href=js/chunk-vendors.01cce721.js rel=preload as=script><link href=css/app.07c3cf9a.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.01cce721.js></script><script src=js/app.8bbd22f6.js></script></body></html>

docs/index.js

Lines changed: 50 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-virtual-scroll-list v2.1.5
2+
* vue-virtual-scroll-list v2.1.6
33
* open source under the MIT license
44
* https://github.com/tangbc/vue-virtual-scroll-list#readme
55
*/
@@ -386,39 +386,42 @@
386386
type: Number,
387387
"default": 50
388388
},
389-
rootTag: {
390-
type: String,
391-
"default": 'div'
392-
},
393-
wrapTag: {
394-
type: String,
395-
"default": 'div'
396-
},
397-
wrapClass: {
398-
type: String,
399-
"default": ''
400-
},
401389
direction: {
402390
type: String,
403391
"default": 'vertical' // the other value is horizontal
404392

405393
},
406-
topThreshold: {
394+
start: {
407395
type: Number,
408396
"default": 0
409397
},
410-
bottomThreshold: {
398+
offset: {
411399
type: Number,
412400
"default": 0
413401
},
414-
start: {
402+
topThreshold: {
415403
type: Number,
416404
"default": 0
417405
},
418-
offset: {
406+
bottomThreshold: {
419407
type: Number,
420408
"default": 0
421409
},
410+
rootTag: {
411+
type: String,
412+
"default": 'div'
413+
},
414+
wrapTag: {
415+
type: String,
416+
"default": 'div'
417+
},
418+
wrapClass: {
419+
type: String,
420+
"default": ''
421+
},
422+
wrapStyle: {
423+
type: Object
424+
},
422425
itemTag: {
423426
type: String,
424427
"default": 'div'
@@ -430,6 +433,9 @@
430433
itemClassAdd: {
431434
type: Function
432435
},
436+
itemStyle: {
437+
type: Object
438+
},
433439
headerTag: {
434440
type: String,
435441
"default": 'div'
@@ -438,13 +444,19 @@
438444
type: String,
439445
"default": ''
440446
},
447+
headerStyle: {
448+
type: Object
449+
},
441450
footerTag: {
442451
type: String,
443452
"default": 'div'
444453
},
445454
footerClass: {
446455
type: String,
447456
"default": ''
457+
},
458+
footerStyle: {
459+
type: Object
448460
}
449461
};
450462
var ItemProps = {
@@ -539,7 +551,9 @@
539551
extraProps.source = this.source;
540552
extraProps.index = index;
541553
return h(tag, {
542-
role: 'item'
554+
attrs: {
555+
role: 'item'
556+
}
543557
}, [h(component, {
544558
props: extraProps
545559
})]);
@@ -760,6 +774,7 @@
760774
dataKey = this.dataKey,
761775
itemClass = this.itemClass,
762776
itemTag = this.itemTag,
777+
itemStyle = this.itemStyle,
763778
isHorizontal = this.isHorizontal,
764779
extraProps = this.extraProps,
765780
dataComponent = this.dataComponent;
@@ -780,7 +795,8 @@
780795
extraProps: extraProps,
781796
component: dataComponent
782797
},
783-
"class": "".concat(itemClass, " ").concat(this.itemClassAdd ? this.itemClassAdd(index) : '')
798+
style: itemStyle,
799+
"class": "".concat(itemClass).concat(this.itemClassAdd ? ' ' + this.itemClassAdd(index) : '')
784800
}));
785801
} else {
786802
console.warn("Cannot get the data-key '".concat(dataKey, "' from data-sources."));
@@ -802,15 +818,21 @@
802818
var _this$range2 = this.range,
803819
padFront = _this$range2.padFront,
804820
padBehind = _this$range2.padBehind;
805-
var rootTag = this.rootTag,
806-
headerClass = this.headerClass,
807-
headerTag = this.headerTag,
821+
var isHorizontal = this.isHorizontal,
822+
rootTag = this.rootTag,
808823
wrapTag = this.wrapTag,
809824
wrapClass = this.wrapClass,
810-
footerClass = this.footerClass,
825+
wrapStyle = this.wrapStyle,
826+
headerTag = this.headerTag,
827+
headerClass = this.headerClass,
828+
headerStyle = this.headerStyle,
811829
footerTag = this.footerTag,
812-
isHorizontal = this.isHorizontal;
813-
var padding = isHorizontal ? "0px ".concat(padBehind, "px 0px ").concat(padFront, "px") : "".concat(padFront, "px 0px ").concat(padBehind, "px");
830+
footerClass = this.footerClass,
831+
footerStyle = this.footerStyle;
832+
var paddingStyle = {
833+
padding: isHorizontal ? "0px ".concat(padBehind, "px 0px ").concat(padFront, "px") : "".concat(padFront, "px 0px ").concat(padBehind, "px")
834+
};
835+
var wrapperStyle = wrapStyle ? Object.assign({}, wrapStyle, paddingStyle) : paddingStyle;
814836
return h(rootTag, {
815837
ref: 'root',
816838
on: {
@@ -819,6 +841,7 @@
819841
}, [// header slot
820842
header ? h(Slot, {
821843
"class": headerClass,
844+
style: headerStyle,
822845
props: {
823846
tag: headerTag,
824847
event: EVENT_TYPE.SLOT,
@@ -830,12 +853,11 @@
830853
attrs: {
831854
role: 'group'
832855
},
833-
style: {
834-
padding: padding
835-
}
856+
style: wrapperStyle
836857
}, this.getRenderSlots(h)), // footer slot
837858
footer ? h(Slot, {
838859
"class": footerClass,
860+
style: footerStyle,
839861
props: {
840862
tag: footerTag,
841863
event: EVENT_TYPE.SLOT,

docs/js/app.18b2b032.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/js/app.8bbd22f6.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/src/views/home/Main.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@
2323
</span>
2424
</div>
2525

26-
<div class="head">
27-
<img alt="Travis CI Status" src="https://travis-ci.org/tangbc/vue-virtual-scroll-list.svg?branch=master"/>
28-
<!-- <img alt="Code Coverage" src="https://codecov.io/gh/tangbc/vue-virtual-scroll-list/branch/master/graph/badge.svg"/> -->
26+
<!-- <div class="head">
2927
<img alt="NPM downloads" src="https://img.shields.io/npm/dm/vue-virtual-scroll-list.svg">
3028
<img alt="NPM version" src="https://img.shields.io/npm/v/vue-virtual-scroll-list.svg"/>
3129
<img alt="Package quality" src="https://npm.packagequality.com/shield/vue-virtual-scroll-list.svg">
32-
</div>
30+
</div> -->
3331

3432
<h3 class="title">What's news in v2.0</h3>
3533
<ul>

0 commit comments

Comments
 (0)