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
| <template>
| <div class="filter-flex">
| <div class="filter-flex-header" style="height:32px;"></div>
| <div class="filter-flex-content">
| <slot></slot>
| </div>
| <div class="filter-flex-footer">
| <slot name="footer"></slot>
| </div>
| <filter-box
| :status="status"
| @click="changeStatus">
| <slot name="filter"></slot>
| </filter-box>
| </div>
| </template>
|
| <script>
|
| import FilterBox from './FilterBox'
| export default {
| components: {
| FilterBox
| },
| data() {
| return {
| status: false,
| }
| },
| methods: {
| changeStatus(status) {
| this.status = status;
| }
| }
| };
| </script>
|
|
| <style scoped>
| .filter-flex {
| display: flex;
| height: 100%;
| flex-direction: column;
| }
| .filter-flex-header {
| height: 32px;
| }
| .filter-flex-content {
| flex: 1;
| }
| </style>
|
|