direction as horizontal, and also can use wrap-class, item-class to help you layout items in horizontal."}}),i("div",{staticClass:"example-content"},[i("tab",{on:{"tab-change":t.onTabChange}}),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowView,expression:"isShowView"}]},[i("virtual-list",{staticClass:"list-horizontal scroll-touch",attrs:{"data-key":"id","data-sources":t.items,"data-component":t.itemComponent,"estimate-size":110,direction:"horizontal","wrap-class":"wrapper","item-class":"list-item-horizontal"}})],1),i("codeblock",{directives:[{name:"show",rawName:"v-show",value:!t.isShowView,expression:"!isShowView"}]})],1)],1)},n=[],o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"item-inner",style:{width:t.source.size+"px"}},[i("div",{staticClass:"index"},[t._v("# "+t._s(t.source.index))]),i("div",{staticClass:"size"},[t._v(t._s(t.source.size))])])},s=[],c={name:"horizontal-item",props:{source:{type:Object,default:function(){return{}}}}},r=c,l=(i("a0c6"),i("2877")),d=Object(l["a"])(r,o,s,!1,null,"3248155a",null),u=d.exports,h=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.html?i("code-high-light",{attrs:{type:"html",code:t.html}}):t._e(),t.js?i("code-high-light",{attrs:{type:"js",code:t.js}}):t._e()],1)},m=[],p='\npage-mode virtual list using global document to scroll through the list."}}),n("div",{staticClass:"example-content"},[n("div",[n("virtual-list",{ref:"vsl",staticClass:"list-page scroll-touch",attrs:{"data-key":"id","data-sources":e.items,"data-component":e.itemComponent,"estimate-size":135,"item-class":"list-item-page","page-mode":!0},on:{totop:e.totop,tobottom:e.tobottom}}),e._m(0)],1)])],1)},o=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bottom"},[n("h2",[e._v("This is page footer")])])}],i=(n("b0c0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"item-inner"},[n("div",{staticClass:"head"},[n("span",[e._v("# "+e._s(e.source.index))]),n("span",[e._v(e._s(e.source.name))])]),n("div",{staticClass:"desc"},[e._v(e._s(e.source.desc))])])}),s=[],l={name:"page-mode-item",props:{source:{type:Object,default:function(){return{}}}}},r=l,h=(n("2fcf"),n("2877")),u=Object(h["a"])(r,i,s,!1,null,"1df8c792",null),m=u.exports,d=n("adf9"),c=n("c927"),g=n("c57d"),w=1e3,I=[],p=w;while(p--){var f=w-p;I.push({index:f,name:d["Random"].name(),id:Object(g["a"])(f),desc:Object(c["a"])()})}var b={name:"page-mode",components:{},data:function(){return{items:I,itemComponent:m}},methods:{totop:function(){console.log("reach totop")},tobottom:function(){console.log("reach tobottom")}}},v=b,y=(n("e5d8"),Object(h["a"])(v,a,o,!1,null,null,null));t["default"]=y.exports},"7fe2":function(e,t,n){},c57d:function(e,t,n){"use strict";n("99af"),n("d3b7"),n("25f0");t["a"]=function(e){return"".concat(e,"$").concat(Math.random().toString(16).substr(9))}},c927:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("a15b");var a=n("adf9"),o=n("835c");function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=h[a["Random"].pick([0,1,2])],i=[],s=a["Random"].integer(e,o["a"]?3:t);while(s--)i.push(a["Random"].pick(n));return i.join(". ")+"."}var s=["I messed up tonight I lost another fight","I still mess up but I'll just start again","I keep falling down I keep on hitting the ground","I always get up now to see what's next","Birds don't just fly they fall down and get up","Nobody learns without getting it won","I won't give up no I won't give in","Till I reach the end and then I'll start again","No I won't leave I wanna try everything","I wanna try even though I could fail","I won't give up no I won't give in","Till I reach the end and then I'll start again","No I won't leave I wanna try everything","I wanna try even though I could fail","Look at how far you've come you filled your heart with love","Baby you've done enough that cut your breath","Don't beat yourself up don't need to run so fast","Sometimes we come last but we did our best","I won't give up no I won't give in","Till I reach the end and then I'll start again","No I won't leave I wanna try everything","I wanna try even though I could fail","I won't give up no I won't give in","Till I reach the end and then I'll start again","No I won't leave I wanna try everything","I wanna try even though I could fail","I'll keep on making those new mistakes","I'll keep on making them every day","Those new mistakes"],l=["I will run I will climb I will soar","I'm undefeated","Jumping out of my skin pull the chord","Yeah I believe it","The past is everything we were don't make us who we are","So I'll dream until I make it real and all I see is stars","It's not until you fall that you fly","When your dreams come alive you're unstoppable","Take a shot chase the sun find the beautiful","We will glow in the dark turning dust to gold","And we'll dream it possible","And we'll dream it possible","I will chase I will reach I will fly","Until I'm breaking until I'm breaking","Out of my cage like a bird in the night","I know I'm changing I know I'm changing","In into something big better than before","And if it takes takes a thousand lives","Then it's worth fighting for","It's not until you fall that you fly","When your dreams come alive you're unstoppable","Take a shot chase the sun find the beautiful","We will glow in the dark turning dust to gold","And we'll dream it possible","It possible","From the bottom to the top","We're sparking wild fire's","Never quit and never stop","The rest of our lives","From the bottom to the top","We're sparking wild fire's","Never quit and never stop","It's not until you fall that you fly","When your dreams come alive you're unstoppable","Take a shot chase the sun find the beautiful","We will glow in the dark turning dust to gold","And we'll dream it possible","And we'll dream it possible"],r=["I can almost see it","That dream I'm dreamin' but","There's a voice inside my head saying","You'll never reach it","Every step I'm taking","Every move I make feels","Lost with no direction","My faith is shakin","But I I gotta keep tryin","Gotta keep my head held high","There's always gonna be another mountain","I'm always gonna wanna make it move","Always gonna be an uphill battle","Sometimes I'm gonna have to lose","Ain't about how fast I get there","Ain't about what's waitin on the other side","It's the climb","The struggles I'm facing","The chances I'm taking","Sometimes might knock me down but","No I'm not breaking","I may not know it","But these are the moments that","I'm gonna remember most yeah","Just gotta keep going","And I I gotta be strong","Just keep pushing on 'cause","There's always gonna be another mountain","I'm always gonna wanna make it move","Always gonna be an uphill battle","But Sometimes I'm gonna have to lose","Ain't about how fast I get there","Ain't about what's waitin on the other side","It's the climb","Yeah-yeah","There's always gonna be another mountain","I'm always gonna wanna make it move","Always gonna be an uphill battle","Sometimes you're gonna have to lose","Ain't about how fast I get there","Ain't about what's waitin on the other side","It's the climb","Yeah-yeah-yea","Keep on moving","Keep climbing","Keep the faith","Baby It's all about","It's all about the climb","Keep your faith","Whoa O Whoa"],h=[s,l,r]},cc99:function(e,t,n){},e5d8:function(e,t,n){"use strict";var a=n("cc99"),o=n.n(a);o.a}}]);
--------------------------------------------------------------------------------
/docs/js/dynamic-size.3003e8a2.js:
--------------------------------------------------------------------------------
1 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["dynamic-size"],{2146:function(e,t,n){"use strict";var a=n("fe3f"),i=n.n(a);i.a},"960e":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"example"},[n("github-corner"),n("introduction",{attrs:{description:"The size of each item is dynamic,\n you don't have to care about size, it will calculate automatic,\n but you have to make sure that there's an unique id for every array data."}}),n("div",{staticClass:"example-content"},[n("tab",{on:{"tab-change":e.onTabChange}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowView,expression:"isShowView"}]},[n("virtual-list",{staticClass:"list-dynamic scroll-touch",attrs:{"data-key":"id","data-sources":e.items,"data-component":e.itemComponent,"estimate-size":80,"item-class":"list-item-dynamic"}})],1),n("codeblock",{directives:[{name:"show",rawName:"v-show",value:!e.isShowView,expression:"!isShowView"}]})],1)],1)},i=[],o=(n("b0c0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"item-inner"},[n("div",{staticClass:"head"},[n("span",[e._v("# "+e._s(e.source.index))]),n("span",[e._v(e._s(e.source.name))])]),n("div",{staticClass:"desc"},[e._v(e._s(e.source.desc))])])}),s=[],l={name:"dynamic-size-item",props:{source:{type:Object,default:function(){return{}}}}},r=l,h=(n("ed29"),n("2877")),u=Object(h["a"])(r,o,s,!1,null,"5f14b5b8",null),m=u.exports,d=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("code-high-light",{attrs:{type:"html",code:e.html}}),n("code-high-light",{attrs:{type:"js",code:e.js}})],1)},c=[],w='\nv-on:tobottom to listen scroll reach bottom, add a footer slot as loading, then append next parts data into data-sources array."}}),n("div",{staticClass:"example-content"},[n("tab",{on:{"tab-change":t.onTabChange}}),n("div",{staticClass:"result"},[t._v("Items count: "+t._s(t.items.length)+".")]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowView,expression:"isShowView"}]},[n("virtual-list",{staticClass:"list-infinite scroll-touch",attrs:{"data-key":"id","data-sources":t.items,"data-component":t.itemComponent,"estimate-size":70,"item-class":"list-item-infinite","footer-class":"loader-wrapper"},on:{totop:t.onScrollToTop,tobottom:t.onScrollToBottom}},[n("div",{staticClass:"loader",attrs:{slot:"footer"},slot:"footer"})])],1),n("codeblock",{directives:[{name:"show",rawName:"v-show",value:!t.isShowView,expression:"!isShowView"}]})],1)],1)},o=[],i=(n("99af"),n("b0c0"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"item-inner"},[n("div",{staticClass:"head"},[n("span",{staticClass:"index"},[t._v("# "+t._s(t.source.index))]),n("span",{staticClass:"name"},[t._v(t._s(t.source.name))])]),n("div",{staticClass:"desc"},[t._v(t._s(t.source.desc))])])}),s=[],l={name:"infinite-loading-item",props:{source:{type:Object,default:function(){return{}}}}},r=l,h=(n("d316"),n("2877")),u=Object(h["a"])(r,i,s,!1,null,"b5a02d2e",null),d=u.exports,c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("code-high-light",{attrs:{type:"html",code:t.html}}),n("code-high-light",{attrs:{type:"js",code:t.js}})],1)},m=[],g='\n