index.vue 879 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <script setup>
  2. </script>
  3. <template>
  4. <div class="dropdown-text-box">
  5. <!-- <el-button type="primary"
  6. > -->
  7. <div class="dropdown-text">
  8. <slot></slot>
  9. </div>
  10. <el-icon style="margin-left: 13px;"><arrow-down /></el-icon>
  11. <!-- </el-button> -->
  12. </div>
  13. </template>
  14. <style lang="scss">
  15. .dropdown-text-box{
  16. display: flex;
  17. align-items: center;
  18. justify-content: flex-start;
  19. background-color: var(--themeColor);
  20. border-radius: 4px;
  21. color: white;
  22. cursor: pointer;
  23. height: 40px;
  24. padding: 9px 13px 9px 20px;
  25. box-sizing: border-box;
  26. .dropdown-text{
  27. display: flex;
  28. align-items: center;
  29. height: 100%;
  30. border-right: solid 1px white;
  31. padding-right: 20px;
  32. flex-grow: 1;
  33. }
  34. &:hover{
  35. background-color: #c4b565;
  36. border-color: #c4b565;
  37. }
  38. }
  39. </style>