5.10航天ui交易所pc端,代码jiem-pc
lxf
2025-05-23 e9fcfc26a37a207f74372483fd93efedd89dc85e
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
<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: #f7b328;
}
 
::v-deep .el-dropdown-menu__item {
  font-size: 12px;
  color: #b7bdc6;
}
</style>
 
<style></style>