-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
73 lines (63 loc) · 1.09 KB
/
app.vue
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<template>
<div class="wrap">
<div class="left">
<div class="header">模拟 window scroll</div>
<table-component></table-component>
</div>
<div class="right">
<div class="header">
element scroll
</div>
<div class="content">
<table-component></table-component>
</div>
</div>
</div>
</template>
<script>
import TableComponent from './components/index.vue'
export default {
name: 'APP',
components: {
TableComponent
},
data () {
return {
}
}
}
</script>
<style lang="scss" scoped>
.wrap {
height: 100%;
display: flex;
}
.left, .right {
display: inline-block;
width: 50%;
height: 100%;
}
.header {
text-align: center;
font-size: 24px;
}
.left {
overflow: scroll;
.header {
height: 200px;
line-height: 200px;
background-color: yellow;
}
}
.right {
.header {
background: darkseagreen;
height: 100px;
line-height: 100px;
}
.content {
height: calc(100% - 100px);
overflow: scroll;
}
}
</style>