zhangnuoyan
2024-08-25 77e5c96577bfe426e4a341361e5c196dd5c5b7c9
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
74
75
76
77
78
79
<template>
    <div class="menus">
        <div><the-a-change :data="changeData" default-value="custom"></the-a-change></div>
        <div><a-time-picker type="time-range" style="width: 250px" /></div>
        <div>
            <the-a-select :data="['正序', '倒序']" placeholder="请选择" title="排序"></the-a-select>
        </div>
        <div>
            <the-a-select :data="['1号楼', '2号楼']" placeholder="请选择" title="出现地点"></the-a-select>
        </div>
        <div>
            <a-button type="primary">
                <template #icon>
                    <icon-search />
                </template>
                <template #default>搜索</template>
            </a-button>
        </div>
        <div>
            <a-button>
                <template #icon>
                    <icon-refresh />
                </template>
                <template #default>重置</template>
            </a-button>
        </div>
        <div class="buttons">
            <div>
                <icon-list size="20" />
            </div>
            <div class="button active">
                <icon-apps size="20" />
            </div>
        </div>
    </div>
</template>
 
<script lang="ts" setup name="member-source">
const changeData = reactive([
    {
        name: "1天",
        value: "1"
    },
    {
        name: "2天",
        value: "2"
    },
    {
        name: "自定义",
        value: "custom"
    }
]);
</script>
 
<style lang="scss" scoped>
.menus {
    display: flex;
    padding: 0 5px 20px 20px;
    > div {
        margin-right: 10px;
        &.buttons {
            display: flex;
            background: var(--color-fill-2);
            > div {
                width: 34px;
                height: 34px;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                &.active {
                    background: #1057fd;
                    color: #fff;
                }
            }
        }
    }
}
</style>