File tree Expand file tree Collapse file tree 4 files changed +21
-2
lines changed
Expand file tree Collapse file tree 4 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " vue-windowing" ,
3- "version" : " 0.6.1 " ,
3+ "version" : " 0.7.0 " ,
44 "description" : " Set of components used for virtualizing DOM" ,
55 "main" : " dist/vue-windowing.ssr.js" ,
66 "browser" : " dist/vue-windowing.esm.js" ,
Original file line number Diff line number Diff line change 33 :items =" flattenedItems"
44 :render-ahead =" renderAhead"
55 :estimated-height =" estimatedHeight" >
6+ <template #header >
7+ <slot name =" header" />
8+ </template >
69 <template #item =" { item , index } " >
710 <div
811 v-if =" typeof headers[item] !== 'undefined'"
1720 :index =" index"
1821 :item =" item" />
1922 </template >
23+ <template #footer >
24+ <slot name =" footer" />
25+ </template >
2026 </VirtualScroll >
2127</template >
2228
Original file line number Diff line number Diff line change 33 :items =" flattenedItems"
44 :render-ahead =" renderAhead"
55 :estimated-height =" estimatedHeight" >
6+ <template #header >
7+ <slot name =" header" />
8+ </template >
69 <template #item =" { item , index } " >
710 <slot
811 v-if =" parents[index]"
1417 :index =" index"
1518 :item =" item" />
1619 </template >
20+ <template #footer >
21+ <slot name =" footer" />
22+ </template >
1723 </VirtualScroll >
1824</template >
1925
Original file line number Diff line number Diff line change 44 class =" virtual-scroll"
55 ref =" root"
66 @scroll =" onScroll" >
7+ <slot name =" header" />
78 <div
89 :style =" viewportStyle"
910 class =" virtual-scroll__viewport" >
2324 </AutoHeightMeasurer >
2425 </div >
2526 </div >
27+ <slot name =" footer" />
2628 </div >
2729 </ResizeObserver >
2830</template >
@@ -183,7 +185,7 @@ export default {
183185
184186<style lang="scss" scoped>
185187.virtual-scroll {
186- height : 100 % ;
188+ position : relative ;
187189 overflow : auto ;
188190
189191 & __spacer {
@@ -197,4 +199,9 @@ export default {
197199 overflow : hidden ;
198200 }
199201}
202+
203+ .test {
204+ position : sticky ;
205+ top : 0 ;
206+ }
200207 </style >
You can’t perform that action at this time.
0 commit comments