Listview 280px height
Listview 50%(400px) height
<template>
<div style="height: 800px">
<p style="font-size: 30px; padding: 0 20px; margin: 0">
Listview 280px height
</p>
<listview
height="280"
:filter-fields="filterFields"
:table-columns="tableColumns"
/>
<p style="font-size: 30px; padding: 0 20px; margin: 20px 0 0">
Listview 50%(400px) height
</p>
<listview
height="50%"
:filter-fields="filterFields"
:table-columns="tableColumns"
/>
</div>
</template>
<script>
export default {
data() {
return {
filterFields: [
{
type: 'text',
model: 'name',
label: '文本字段',
},
],
tableColumns: [
{
label: 'id',
prop: 'id',
width: 100,
align: 'center',
},
],
}
},
}
</script>
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