Skip to content

Commit 8020ae0

Browse files
committed
Add index page
1 parent 71da6c7 commit 8020ae0

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

example/src/views/Index/Main.vue

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
<template>
22
<div class="index">
33
<github-corner />
4+
5+
<h2 class="name">vue-virtual-scroll-list</h2>
6+
7+
<div class="head">
8+
<img src="https://nodei.co/npm/vue-virtual-scroll-list.png?downloads=true&downloadRank=true&stars=true">
9+
</div>
10+
11+
<h3 class="title">What's news in v2.0</h3>
12+
<ul>
13+
<li>Support header slot, footer slot.</li>
14+
<li>Code structure is more reasonable and good maintainability.</li>
15+
<li>Abandoned v-for mode and variable mode, all condition unify into one mode.</li>
16+
<li>Don't have to care about each item size, in sometimes it's difficult to know that.</li>
17+
</ul>
18+
19+
<h3 class="title">Todos</h3>
20+
<ul>
21+
<li>Improve calculate offset efficient.</li>
22+
<li>Support page scroll, table layout.</li>
23+
<li>......</li>
24+
</ul>
425
</div>
526
</template>
627

@@ -9,8 +30,19 @@ export default {
930
name: 'index',
1031
1132
data() {
12-
return {
13-
}
33+
return {}
1434
}
1535
}
1636
</script>
37+
38+
<style lang="less" scoped>
39+
.name {
40+
margin: 1em 0;
41+
}
42+
.head {
43+
margin-bottom: 2em;
44+
}
45+
.title {
46+
margin: 1em 0;
47+
}
48+
</style>

0 commit comments

Comments
 (0)