1
jhzh
2024-08-12 f1dc8f5a7f3a661ce19513a9ad47fe18e3e883ff
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
<template>
  <div id="dropdown">
    <el-dropdown>
      <div class="cursor-pointer right-wrapper">
        <span>{{ title }}</span>
        <i class="el-icon-caret-bottom"></i>
      </div>
      <el-dropdown-menu slot="dropdown" class="item-dropdown-wrapper">
        <el-dropdown-item
            v-for="(item, index) in list"
            :key="index"
        >{{ item }}
        </el-dropdown-item>
      </el-dropdown-menu>
    </el-dropdown>
  </div>
</template>
 
<script>
export default {
  name: "ItemDropdown",
  props: ['title', 'list']
}
</script>
 
<style scoped>
.cursor-pointer {
  cursor: pointer;
}
.right-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
 
.right-wrapper span {
  margin-right: 6px;
  color: #1D91FF;
}
 
::v-deep .el-dropdown-menu__item {
  font-size: 12px;
  color: #B7BDC6;
}
</style>
 
<style>
 
</style>