-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathindex.html
56 lines (48 loc) · 1.46 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
}
html,
body,
#app {
height: 100%;
overflow: hidden;
}
.container {
height: 100%;
width: 100%;
overflow: hidden;
background: #f5f5f5;
}
.item {
height: 150px;
margin-bottom: 20px;
background: #fff;
overflow: hidden;
}
/* 注意:伪类选择最后一项是nth-last-of-type(2)不是(1) */
.item:nth-last-of-type(2) {
margin-bottom: 0;
}
</style>
</head>
<body>
<div id="app">
<div class="container">
<garen-loadmore @top-method="handleTop" ref="vueLoad" class="loadmore" :top-change-text="topChangeText" @top-status-change="handleStatusChange"
@bottom-method="handleBottom" @bottom-status-change="handleBottomStatusChange" @bottom-error-click="handleBottomError"
:event-scroll="eventScroll" :disable-top="false" :disable-bottom="false">
<div class="item" v-for="(item,index) in dataList" :key="index">{{index}}</div>
</garen-loadmore>
</div>
</div>
</body>
</html>