channel.vue
503 Bytes
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
<template>
<div class="div">
<ul>
<li v-for="i in 10000" :key="i" @click="onClick(i, $event)">
{{i}}
</li>
</ul>
</div>
</template>
<script>
export default {
name: 'Channel',
methods: {
onClick(i, evt) {
evt.preventDefault();
console.log(i);
}
}
};
</script>
<style lang="scss" scoped>
body {
width: 100%;
}
.div {
width: 100%;
pointer-events: none;
li {
border: 1px solid #000;
height: 50px;
margin: 5px;
}
}
</style>